# ITKMontage and Regular Grid Montages Requirement

**URL:** https://discourse.itk.org/t/itkmontage-and-regular-grid-montages-requirement/3884
**Category:** Engineering
**Created:** [February 19, 2021, 6:13pm UTC](https://discourse.itk.org/t/itkmontage-and-regular-grid-montages-requirement/3884 "2021-02-19T18:13:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![imikejackson](https://discourse.itk.org/user_avatar/discourse.itk.org/imikejackson/32/35_2.png) [@imikejackson](https://discourse.itk.org/u/imikejackson)
#### Post date: [February 19, 2021, 6:13pm UTC](https://discourse.itk.org/t/itkmontage-and-regular-grid-montages-requirement/3884/1 "2021-02-19T18:13:14Z")

</div>

Is there a requirement that the ITKMontage filters require a montage on a regular grid? And by that I mean if I have a montage that is 20 Tiles Wide by 10 Tiles High but let’s say that the each of the corner tile images are missing, is that going to work with the ITKMontage module?

Could we programmatically build up an mosaic if we know the origin and spacing for each image and just place the image into the mosaic ourselves? What class(es) would be use for that kind of operation?

Thanks  
Mike Jackson

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [February 24, 2021, 5:14pm UTC](https://discourse.itk.org/t/itkmontage-and-regular-grid-montages-requirement/3884/2 "2021-02-24T17:14:22Z")

</div>

If origins (and spacings) are known, you can use `TileMergeImageFilter` directly as demonstrated in [ResampleMontage](https://github.com/InsightSoftwareConsortium/ITKMontage/blob/master/examples/ResampleMontage.cxx) example. If corner tiles are missing, you could put some “all-black” placeholders there.

---

<div class="post-metadata">

### Author: ![imikejackson](https://discourse.itk.org/user_avatar/discourse.itk.org/imikejackson/32/35_2.png) [@imikejackson](https://discourse.itk.org/u/imikejackson)
#### Post date: [February 24, 2021, 6:22pm UTC](https://discourse.itk.org/t/itkmontage-and-regular-grid-montages-requirement/3884/3 "2021-02-24T18:22:21Z")

</div>

The issue with the assumption is that the tiles might not fall nicely into a regular grid. The only information at the moment that i have is that there are 436 total images. The max number of images in a given column at 21 (because I visually looked at the resulting map of tiles). I have the origin & spacing for each of the tiles. I just want to place them on a destination ITKImage object taking into account the origin, spacing of both the tile and the final montage mosaic. Hope that makes sense.
