我试图在pictureBox中查看未压缩的tif原始文件。用...生成的 " matrox成像库" 我正在使用emgu.cv
我在做:
Image<Gray, ushort> My_Image = new Image<Gray, ushort>(imgN);
Image<Gray, byte> My_Image1 = new Image<Gray, byte>(imgN);
和slso:
Image<Gray, byte> My_Image3 = My_Image.Convert<Gray, byte>();
我一直看到黑色的图像, 任何解决方案 我也试过更多的组合导致黑...
答案 0 :(得分:0)
这对我有用:
IntPtr img = CvInvoke.cvLoadImage(imgN,Emgu.CV.CvEnum.LOAD_IMAGE_TYPE.CV_LOAD_IMAGE_UNCHANGED);
MIplImage iplImage = (MIplImage)Marshal.PtrToStructure(img, typeof(MIplImage));
Image<Gray, UInt16> res;
res = new Image<Gray, UInt16>(1024, 872, iplImage.widthStep, iplImage.imageData);
imageBox1.Image = res;
使用imageBox1