Check if a binary image is within a particular binary area
조회 수: 1 (최근 30일)
DGM 2022년 4월 24일
편집: DGM 님. 2022년 4월 24일
I'm assuming your images are the same size, but contain objects of differing size.
The intersection of two binary images A and B is
intAB = A & B;
If the intersection is equal to one of the two images, then that image is wholly contained within the other.
BinA = isequal(B,intAB);
Otherwise, if you have different size images which contain similarly-sized and oriented copies of the same object, you might look at normxcorr() or something.
추가 답변 (1개)
Image Analyst 2022년 4월 24일
If you just want to know if ANY part of it is within the other blob, then you can make up your marker image and main image, and call imreconstruct(). You have years of image processing experience now so you should be able to figure it out.