Does a mask in "detectandcompute" restrict feature point center (pt), or contributing pixels (to the calculation of the feature point)

asked 2015-03-18 20:12:59 -0600

updated 2015-03-19 04:18:16 -0600

Guanta gravatar image

I've got a question about masks in feature detection.

Using the AKAZE detectandcompute method with a very restrictive mask will the mask limit just the possible center pt for the feature detection, or does it also limit the contributing pixels for the descriptor computation? i.e. will the descriptor compute the features for the pixels within the unmasked region USING or NOT USING pixels from the masked region?

(My bigger picture problem is that I would like to extract AKAZE decriptors from features detected with GFTT at a specific pixel location. I know that descriptors must match detectors.. which is exactly what I'm trying to skirt around)

Mat desc0;
std::vector<KeyPoint> key0;
m_akaze = AKAZE::create(...params...)

//make a very tight mask
Mat mask = Mat::zeros(240,320,CV_8U);


Any help would be greatly appreciated. thank you kindly.

edit retag flag offensive close merge delete



" I know that descriptors must match detectors.." - this is not generally true, unfortunately, - for akaze it is !

berak gravatar imageberak ( 2015-03-19 04:20:08 -0600 )edit