- Home /
This question was
closed Jul 17, 2017 at 05:31 PM by
Abirami-Govindarajan for the following reason:
The problem is solved.
Question by
Abirami-Govindarajan · Jul 12, 2017 at 07:10 AM ·
c#unity 5opencvrgba
How to access Pixel values of image in opencv C#
I'm trying to access pixel values from individual channels of color(RGBA) image(Mat image) using OpencvForUnity package. I used image.get(x,y) to access those values. It didn't work out. Is there any other way to access the pixel values of each channel in the image and displaying it? Kindly Help.
Comment
I found it how to get access the pixel values, its through image.get(i,j). I encountered another problem. Image.get(i,j) returns its type as double[]. How can I put these values into a $$anonymous$$at image.$$anonymous$$indly Help.
@Abirami-Govindarajan Check OpenCVForUnity.Converters, you can handle double[] to $$anonymous$$at with one of the functions