49 | | |
50 | | This is a "how to" on using ossim-band-merge command line application to merge image files that represent individual bands into a single file. |
51 | | |
52 | | Prerequisite: Typically all images have the same dimensions and are relative to the same projection. |
53 | | |
54 | | Given you have band1.tif, band2.tif and band3.tif you can do: |
55 | | |
56 | | ossim-band-merge tiff_tiled_band_separate band1.tif band2.tif band3.tif rgb.tif |
57 | | |
58 | | Where "tiff_tiled_band_separate" is the output file type. You can do: ossim-band-merge by itself to get the usage with valid output image types. |
59 | | |
60 | | NOTE: The ossim library likes "tiled" image types as ossim is tiled in nature. So if you are going to feed the output file to another ossim application you should choose a tiled output format for speed. |
| 36 | == Notes == |
| 37 | * "-w" option only valid with tiff type. |
| 38 | * Tile width must be a multiple of 32. |
| 39 | * The ossim library likes "tiled" image types as ossim is tiled in nature. So if you are going to feed the output file to another ossim application you should choose a tiled output format for speed. |