I am currently trying to partition an image into several images with fixed size and no padding spanning the whole area of the original. Subsequently, I want to do an arbitrary operation on each image part and reassemble the image by overlaying the results of this operation (repeated entries could be replaced by a mean). This would mean that the image parts have variable offset and overlay with each other depending on the size of the original.
As far as I understand it the offset of ImagePartition is fixed and ImageAssemble can only work with parts that do not have any overlays.
It should be something like the following:
im = Import["ExampleData/spikey.tiff"] (*this operation should give as many 100x100 images as are needed to cover all pixels of im possibly having considerable overlap*) parts = ImagePartitionSpecial[im, {100, 100}] parts = DoArbitraryImageOperation@parts (*this operation should assemble an image of the size im where repeated pixels should be replaced by a mean of them*) result = ImageAssembleSpecial[parts]
Has something like this been done before? Essentially my function only works on images of a fixed size so that I need to disassemble and reassemble the image I want to call it on. Note that setting a fixed offset of 1 would not be great as this will generate way too many parts.
Best, Max