Hi, I've successfully been using fcvCornerFast9Scoreu8 to detect corners; however, I now need to do some masking but fcvCornerFast9InMaskScoreu8 just doesn't seem to work (both v. 1.0.2 and v. 1.0.3).
I'm calling it like this:
fcvCornerFast9InMaskScoreu8( imgBuf, // Image data img->getWidth(), // Image width img->getHeight(), // Image height img->getStride(), // Image stride (bytes per row) FAST9_BARRIER, // FAST9 barrier value IMAGE_BORDER, // Image border _corners, // [out] Packed corner positions (128-bit aligned) _scores, // [out] Corner scores (128-bit aligned) MAX_CORNERS, // Max corners & numCorners, // [out] Number of corners mask, // Image mask (128-bit aligned) img->getWidth(), // Mask width img->getHeight() // Mask height );
Thanks.
Also I should note that I do not get any error messages through adb logcat and the image stride is the same as the image width.
Hi,
The use of the mask here can be little bit tricky. The mask you are providing is supposed to be a bitmask. In your case, because the masks dimensions match the images dimension, each bit activates one pixel. You should also make sure that in memory the bitmask should have a size of img->getWidth()*img->getHeight()/8 bytes.
Cheers,
Guy
Thanks, got it working.
Although it seems it's 1's that are excluded and 0's that are included, but it works nonetheless!
Hi,
Please have a look at this post. Will you Please tell me where I am going wrong. I am a student who is learning fastcv for my project.
Thanks in advance,
Cheers,
Shravan