Finding boundaries



Hello, I'm looking for an algorithm to calculate the enclosing
rectangles of any image areas remaining for the subtraction of two
similar images. Anyone got some pointers?
thanks, dwight

.