gdb-imshow icon indicating copy to clipboard operation
gdb-imshow copied to clipboard

Individual channel?

Open rwols opened this issue 7 years ago • 2 comments

I have an image with 4 channels and I'd like to inspect each channel separately. Is this possible?

rwols avatar Jan 08 '18 14:01 rwols

Currently there are no support to inspect channels separately. But that is a cool idea, it would be nice to show only the first channel with a command like: cv_imshow image 1

For now, a workaround would be to split the image channels with C++ code, with a function like cv::split. But that is far from ideal, since you would have to change the code before using the debugger.

renatoGarcia avatar Jan 08 '18 16:01 renatoGarcia

Yes, I thought of the same syntax as you. I played around with the struct.unpack calls but couldn’t get it to work right away. I frequently work with CMYK images and it’d be useful to see the separate channels.

rwols avatar Jan 08 '18 18:01 rwols