MATLAB: How to compare images to find the difference among them at specific locations .

digital image processingimage analysisimage processingImage Processing Toolboxoptimizationtime series

Our goal is to find the shift of coastline in the given two images. For this task i have the satellite images of coastline I tried Using edge detection to find the coastline. So what should be the next processes that I can do .

Best Answer

First of all you have to make sure the images are the same resolution (number of pixels) over the area that is in common. Then next, register (align) the two images. Try imregister() or similar functions - see demos in the help. Crop after alignment, if necessary, to remove non-overlapping areas and make sure they're the same overall pixel dimensions (number of rows and columns). Then simply subtract them to find differences (non-zero values).