Skip to main content
added 1 character in body
Source Link
C. E.
  • 71.7k
  • 7
  • 144
  • 279

ImageAlign should probably be at least part of the solution:

img = Import["https://i.sstatic.net/pc6ul.png"]; {xdim, ydim} = ImageDimensions[img]; images = Flatten@ImagePartition[img, {xdim/4, ydim/4}]; aligned = ImageAlign[images]; ListAnimate[aligned] 

Alignment demo

Here is an attempt to make it more robust and to prevent it from clipping parts of the figure off at the edges:

images = Flatten@ImagePartition[ ImagePad[img, {{10, 15}, {15, 10}}], {xdim/4 + 20, ydim/4 + 20}, {xdim/4, ydim/4} ]; aligned = FoldList[ImageAlign, images]; ListAnimate[aligned] 

Alignment demo 2

WeThe padding is what it is because ImagePartition discards images that are smaller than the given size.

ImageAlign should probably be at least part of the solution:

img = Import["https://i.sstatic.net/pc6ul.png"]; {xdim, ydim} = ImageDimensions[img]; images = Flatten@ImagePartition[img, {xdim/4, ydim/4}]; aligned = ImageAlign[images]; ListAnimate[aligned] 

Alignment demo

Here is an attempt to make it more robust and to prevent it from clipping parts of the figure off at the edges:

images = Flatten@ImagePartition[ ImagePad[img, {{10, 15}, {15, 10}}], {xdim/4 + 20, ydim/4 + 20}, {xdim/4, ydim/4} ]; aligned = FoldList[ImageAlign, images]; ListAnimate[aligned] 

Alignment demo 2

We padding is what it is because ImagePartition discards images that are smaller than the given size.

ImageAlign should probably be at least part of the solution:

img = Import["https://i.sstatic.net/pc6ul.png"]; {xdim, ydim} = ImageDimensions[img]; images = Flatten@ImagePartition[img, {xdim/4, ydim/4}]; aligned = ImageAlign[images]; ListAnimate[aligned] 

Alignment demo

Here is an attempt to make it more robust and to prevent it from clipping parts of the figure off at the edges:

images = Flatten@ImagePartition[ ImagePad[img, {{10, 15}, {15, 10}}], {xdim/4 + 20, ydim/4 + 20}, {xdim/4, ydim/4} ]; aligned = FoldList[ImageAlign, images]; ListAnimate[aligned] 

Alignment demo 2

The padding is what it is because ImagePartition discards images that are smaller than the given size.

added 18 characters in body
Source Link
C. E.
  • 71.7k
  • 7
  • 144
  • 279

ImageAlign should probably be at least part of the solution:

img = Import["https://i.sstatic.net/pc6ul.png"]; {xdim, ydim} = ImageDimensions[img]; images = Flatten@ImagePartition[img, {xdim/4, ydim/4}]; aligned = ImageAlign[images]; ListAnimate[aligned] 

Alignment demo

Here is an attempt to make it more robust and to prevent it from clipping parts of the figure off at the edges:

images = Flatten@ImagePartition[ ImagePad[img, 10]{{10, 15}, {15, 10}}], {xdim/4 + 1820, ydim/4 + 1820}, {xdim/4, ydim/4} ]; aligned = FoldList[ImageAlign, images]; ListAnimate[aligned] 

Alignment demo 2Alignment demo 2

We padding is what it is because ImagePartition discards images that are smaller than the given size.

ImageAlign should probably be at least part of the solution:

img = Import["https://i.sstatic.net/pc6ul.png"]; {xdim, ydim} = ImageDimensions[img]; images = Flatten@ImagePartition[img, {xdim/4, ydim/4}]; aligned = ImageAlign[images]; ListAnimate[aligned] 

Alignment demo

Here is an attempt to make it more robust and to prevent it from clipping parts of the figure off at the edges:

images = Flatten@ImagePartition[ ImagePad[img, 10], {xdim/4 + 18, ydim/4 + 18}, {xdim/4, ydim/4} ]; aligned = FoldList[ImageAlign, images]; ListAnimate[aligned] 

Alignment demo 2

ImageAlign should probably be at least part of the solution:

img = Import["https://i.sstatic.net/pc6ul.png"]; {xdim, ydim} = ImageDimensions[img]; images = Flatten@ImagePartition[img, {xdim/4, ydim/4}]; aligned = ImageAlign[images]; ListAnimate[aligned] 

Alignment demo

Here is an attempt to make it more robust and to prevent it from clipping parts of the figure off at the edges:

images = Flatten@ImagePartition[ ImagePad[img, {{10, 15}, {15, 10}}], {xdim/4 + 20, ydim/4 + 20}, {xdim/4, ydim/4} ]; aligned = FoldList[ImageAlign, images]; ListAnimate[aligned] 

Alignment demo 2

We padding is what it is because ImagePartition discards images that are smaller than the given size.

added 404 characters in body
Source Link
C. E.
  • 71.7k
  • 7
  • 144
  • 279

ImageAlign should probably be at least part of the solution:

img = Import["https://i.sstatic.net/pc6ul.png"]; {xdim, ydim} = ImageDimensions[img]; images = Flatten@ImagePartition[img, {xdim/4, ydim/4}]; aligned = ImageAlign[images]; ListAnimate[aligned] 

Alignment demo

Here is an attempt to make it more robust and to prevent it from clipping parts of the figure off at the edges:

images = Flatten@ImagePartition[ ImagePad[img, 10], {xdim/4 + 18, ydim/4 + 18}, {xdim/4, ydim/4} ]; aligned = FoldList[ImageAlign, images]; ListAnimate[aligned] 

Alignment demo 2

ImageAlign should probably be at least part of the solution:

img = Import["https://i.sstatic.net/pc6ul.png"]; {xdim, ydim} = ImageDimensions[img]; images = Flatten@ImagePartition[img, {xdim/4, ydim/4}]; aligned = ImageAlign[images]; ListAnimate[aligned] 

Alignment demo

ImageAlign should probably be at least part of the solution:

img = Import["https://i.sstatic.net/pc6ul.png"]; {xdim, ydim} = ImageDimensions[img]; images = Flatten@ImagePartition[img, {xdim/4, ydim/4}]; aligned = ImageAlign[images]; ListAnimate[aligned] 

Alignment demo

Here is an attempt to make it more robust and to prevent it from clipping parts of the figure off at the edges:

images = Flatten@ImagePartition[ ImagePad[img, 10], {xdim/4 + 18, ydim/4 + 18}, {xdim/4, ydim/4} ]; aligned = FoldList[ImageAlign, images]; ListAnimate[aligned] 

Alignment demo 2

Source Link
C. E.
  • 71.7k
  • 7
  • 144
  • 279
Loading