I'm trying to rebuild an image which has been cut into strips vertically and horizontally then the ordering of the strips has been rearranged.
For example:
So far I've only been able to come up with code which requires manual entry of the block size as well as the column/row reordering. What tools should I be using to automate the process of rebuilding the image without explicitly giving the code the block size and reordering needed.
For reference I am on Mathematica 10.2 but will welcome answers which use newer features as I plan to upgrade soon.
Thanks in advance.