I am using the Emgu CV when I come across this code:
Image<Bgr, byte> image = new Image<Bgr, byte>("test.jpg");
Image<Bgr, byte> image2 = new Image<Bgr, byte>("test2.jpg");
CvInvoke.cvSmooth(image, image2, SMOOTH_TYPE.CV_GAUSSIAN, 5, 5, 9, 9);
According to the definition of cvSmooth()
, the first 2 parameters are IntPtr
.
My question is that why is it valid to pass in a type of Image<Bgr, byte>
into this?
looks like
Image<TColor,TDepth>
has aPtr
propertyPtr
Image
I would change your code to read
what version are you working with? I just went with the "Stable" version to find the docs