MHT Demosaicing not available in 3.1.0?

asked 2016-10-25 08:33:35 -0600

JAy gravatar image

The Debayering Algorithm of Malvar et al. is still in the documentation, but i couldn't find it in the imgproc.h. Isn't it available anymore?

edit retag flag offensive close merge delete

Comments

may be here but with CUDA

LBerger gravatar imageLBerger ( 2016-10-25 08:39:56 -0600 )edit

imgproc.h contains the no more maintained c-api things, that is for sure the wrong place to look.

is it this ?

berak gravatar imageberak ( 2016-10-25 08:40:08 -0600 )edit

Link

i tried that, but only bilinear interpolation works, "COLOR_BayerRG2BGR_MHT" gives a "not defined" error.

Is there maybe another 5x5 debayering method in opencv?

JAy gravatar imageJAy ( 2016-10-25 08:45:19 -0600 )edit

the COLOR_XXX enumerations are all to be used with cvtColor()

berak gravatar imageberak ( 2016-10-25 08:49:11 -0600 )edit

WORKS:

  • demosaicing(img, img, COLOR_BayerRG2BGR, 0); //bilinear interpolation
  • demosaicing(img, img, COLOR_BayerRG2BGR_EA, 0); //eadge aware interpolation

WORKS NOT:

  • demosaicing(img, img, COLOR_BayerRG2BGR_MHT, 0); //high quality interpolation, malvar et al.
  • cvtColor(img, img, COLOR_BayerRG2BGR_MHT, 0); //high quality interpolation, malvar et al.

seems it is not defined anymore. is there any other 5x5 interpolation implemented in opencv? i cant find any information about the size of the filterkernels in the documentation

JAy gravatar imageJAy ( 2016-10-25 08:50:57 -0600 )edit