Hi I have a set of images of size 200x200 and I want to divide these images into 10 blocks of size 20x20(each image). After the images are divided into blocks,
1) I want to compare 1st block of image 1 with 1st block of image2, image 3 and 2nd block with 2nd block of image2, image 3 and so on.
2)After comparing blocks the block with maximum value should be used and put in a final image such that the final image has blocks with maximum value from image1, image2 or image3.
Is it possible to do such comparison and produce a new image.
image = cv2.resize(im,(200,200))
image1 = cv2.resize(im1,(200,200))
hs = round(h/10)
ws = round(w/10)
hs1 = round(hs1/10)
ws1 = round(ws1/10)
resized = cv2.resize(image, (ws,hs), interpolation = cv2.INTER_AREA)
resized1 = cv2.resize(image1, (ws1,hs1), interpolation = cv2.INTER_AREA)
The result is like as shown in the picture here
Images can be accessed here.
numpy.maximum.reduce()
. But i was expecting that after the comparison the final image would be like the original images(like a normal image) – Newbie