이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Finding under vehicle undefined object - inspection system
조회 수: 1(최근 30일)
There are 2 images of a under vehicle recorded with a fisheye lens. How can I detect the undefined object in the 2nd image using the main image (1st image) in Matlab ? In the 2nd image, as I have marked in red, I need to locate the undefined object.
Thanks in advance.
Image Analyst 2020년 3월 5일
If the images are of the same size, and of the same magnification and fairly well aligned (a doubtful scenario in a real world situation) then you can subtract the images and look for blobs of non-zero. Untested code:
% Get the difference image.
diffImage = imabsdiff(double(image1), double(image2));
% Get the max in any of the color channels
diffImage = max(diffImage, , 3);
% Threshold to find significant differences.
mask = diffImage > 5; % or some value.
% Throw out any blobs less than 50 pixels in size (they're noise).
mask = bwareaopen(mask, 50);
% Make measurements of area and centroid.
props = regionprops(mask, 'Area', 'Centroid');
allAreas = [props.Area]
centroids = vertcat(props.Centroid)