I am working on a fingerprint pore extraction project and stuck at the last stage of pore (white pixels clusters) extraction..I am having two output images from which we will get the pores but don't know how to do it..also the two images are of different size..image1 of size 240*320 and image2 is of size 230*310 ..here are my images..
image 1 (240*320) image2 (230*310) 

here is what i am doing to extract white clusters of pores..
for i = 1:230 for j = 1:310 if image1(i,j)==1 && image2(i,j)==1 result(i,j)=1; else result(i,j)= 0; end; end; end; figure(4);imshow(result,[]); here are my output
output (230*310) expected (different than input image)

image 3 (output) shows the resultant image from above code ..these errors are may be due to difference in size of two images i think...so what should i do to get the pores(white clusters)..Note that fourth image (expected) is different than the input images just to show you what should be the output look like...thanks in advance..