c# - EmguCV: Create Image Histogram - Error -



c# - EmguCV: Create Image Histogram - Error -

i switched opencv emgucv because c++ applications can't straight hosted on target cloud platform -- histogram code won't work after making necessary changes conversion.

here snippet of have done:

image<gray, byte> img_gray = new image<gray, byte>(frame1_hist.rows, frame1_hist.cols); frame1_hist.copyto(img_gray, null); densehistogram hist = new densehistogram(256, new rangef(0, 256)); hist.calculate(new image<gray, byte>[] { img_gray }, true, null);

an unhandled exception of type 'system.nullreferenceexception' occurred in emgu.cv.dll

i appreciate kind help if may tell me how can prepare this. also, how can read processed image "hist" after operation. using emgucv 3.0.0. thanks

image<gray, byte> img_gray = new image<gray, byte(frame1_hist.image.bitmap); densehistogram hist = new densehistogram(256, new rangef(0.0f, 255.0f));

// histogram computing

hist.calculate<byte>(new image<gray, byte>[] { img_gray }, true, null);

c# histogram emgucv

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -