Closed GoogleCodeExporter closed 9 years ago
OpenCV does not specify any B, G, R, or A channel for IplImage. How do you
obtain those values?
Original comment by samuel.a...@gmail.com
on 20 Jul 2012 at 4:34
I converted the IplImage into a BufferedImage, and extracted the pixel data
32-bit integer from that, and split into 4x bytes, these were the BGRA
components. For the IplImage that was the destination from cvCopy, the R
component was always 0, and the other components were shifted as I specified in
the original post.
Original comment by thomasdu...@gmail.com
on 21 Jul 2012 at 11:54
Ok, so could you provide the code for that?
Original comment by samuel.a...@gmail.com
on 21 Jul 2012 at 12:32
How did you "convert the IplImage into a BufferedImage"?
If I can't reproduce the problem here, I won't be able to fix this issue...
Original comment by samuel.a...@gmail.com
on 15 Sep 2012 at 5:01
I've just tried this out and it works perfectly fine for me:
CvRect face = new CvRect(cvGetSeqElem(faces, i));
cvSetImageROI(frame, face);
IplImage image = cvCreateImage(cvGetSize(frame), frame.depth(), frame.nChannels());
cvCopy(frame, image);
frame.showImage(image.getBufferedImage());
cvResetImageROI(frame);
If you can't explain what the problem is more clearly, I will be forced to mark
this issue as "invalid"...
Original comment by samuel.a...@gmail.com
on 7 Oct 2012 at 12:50
Given the lack of feedback, I'm guessing whatever the problem was has been
resolved, but please let me know if this isn't the case.
Original comment by samuel.a...@gmail.com
on 5 Nov 2012 at 11:33
Original issue reported on code.google.com by
thomasdu...@gmail.com
on 20 Jul 2012 at 1:06