Custom RGB color filter in 3.1 [closed]

asked 2016-11-11 23:41:41 -0600

Qix gravatar image

I'm using version 3.1 and need to perform an RGB operation on an image and output a greyscale image. I know OpenCV uses kernels for things but since BaseFilter was privatized in 3.1 (why?..) it is no longer a trivial thing to do.

How would one do this with OpenCV? I've seen several threads saying you can't, but I sincerely hope that's not the case as that really limits the usefulness of this library for us.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-07 16:40:26.864026

Comments

Run each channel separately and add the results?

Tetragramm gravatar imageTetragramm ( 2016-11-12 11:48:31 -0600 )edit

I need to relate the channels to each other. I can't separate the channels.

Qix gravatar imageQix ( 2016-11-12 18:31:58 -0600 )edit

How do they relate that isn't handled by a multiply or an add? And if it isn't, how would a kernel do that work?

Tetragramm gravatar imageTetragramm ( 2016-11-12 21:40:38 -0600 )edit