필터 지우기
필터 지우기

What is the fastest way of ignoring MSER responses within a mask ?

조회 수: 1 (최근 30일)
UJJWAL
UJJWAL 2015년 8월 10일
댓글: Walter Roberson 2015년 8월 11일
Hello,
For a given image IM, the MSER regions can be obtained by using detectMSERFeatures function. Now Suppose, there is a masked region in IM, and I would like to ignore all those MSER regions whose elliptical supports intersect with that masked region. Suppose I have a mask M of that region.
My question is : What is the fastest way to ignore all such MSER regions whose elliptical supports intersect with M(M>0) ?
My attempt : My attempt has been very basic but I could not think of a faster way.
I iterate through all MSER regions in the MSERregions object and for each object, I construct its elliptical mask and check if that mask overlaps with M(M>0). If it does, I reject that MSER region.
It is a very inefficient method because, if 2000 MSER regions are detected in a single image (with many of them having concentric elliptical supports), I end up doing iteration over all the regions, creating their corresponding elliptical masks, and doing intersect operation with M(M>0).
My apprehension : Suppose instead of checking intersection through elliptical masks, I simply check using PixelList field of each MSER region. But I am not sure if that is the right approach, since I am suspecting that it might happen that PixelList field does not overlap with M(M>0), but the corresponding ellipse (with the same second order moments as the PixelList members does. However I did not find any mathematical work which could justify or reject this apprehension.
Could anyone tell me of a better way ?
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 8월 11일
Perhaps
[features, validpoints] = extractFeatures(~IM, MSERobject)
? They will have been filtered to the locations that are in the negation of IM, thus discarding what is selected in IM

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by