public double this[int idx0] { get { float res = PInvoke.cvQueryHistValue_1D(_hist, idx0); CVUtils.CheckLastError(); return(res); } }