gdb-imshow
gdb-imshow copied to clipboard
Individual channel?
I have an image with 4 channels and I'd like to inspect each channel separately. Is this possible?
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.
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.