Info

This question is closed. Reopen it to edit or answer.

I have 3 binary image (half of balloons) , I want to fit all of them together which all of them have the exact same bottom , I have used imadd and also I have used imregister but still there is defference between them , Is there any way to do this ?

1 view (last 30 days)
I have 3 binary image (half of balloons) , I want to fit all of them together which all of them have the exact same bottom , I have used imadd and also I have used imregister but still there is defference between them , Is there any way to do this ?
<<
>>

Answers (1)

Image Analyst
Image Analyst on 27 May 2014
They're not the same shape so there will be some pixels that will be misaligned. Do you want to align only the bottoms, and not overall?
  2 Comments
Image Analyst
Image Analyst on 28 May 2014
Zohreh's "Answer" moved here since it's a reply to me rather than an actual official Answer to the original posting:
Yes, I know they have different shape, but I want to all of them have the same bottom. Align only the bottoms. Is there any way??
Image Analyst
Image Analyst on 28 May 2014
I don't knwo what align means to you but how about you pick one column and find where the last row is
lastRow = find(binaryImage(column, :), 1, 'last');
Then do that for all other images and use circshift to vertically shift them so that they all have their last row at the same row. Something like (untested)
deltaY = lastRow2 - lastRow;
binaryImage2 = circshift(binaryImage2, [1, deltaY]);

Community Treasure Hunt

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

Start Hunting!