Repository navigation
docs: Rename band to plane to match TIFF PlanarConfiguration terminology - #360
Conversation
Use the more generic 'plane' (component plane) term instead of band/channel, xref https://web.archive.org/web/20240528191227/https://www.awaresystems.be/imaging/tiff/tifftags/planarconfiguration.html.
| band-interleaved, the result will be a list of byte ranges, one for each | ||
| band/plane. |
There was a problem hiding this comment.
should we stick with plane-interleaved?
| band-interleaved, the result will be a list of byte ranges, one for each | |
| band/plane. | |
| plane-interleaved, the result will be a list of byte ranges, one for each | |
| plane. |
There was a problem hiding this comment.
No, band-interleaved is the proper (raster) term. I don't think anyone uses plane-interleaved.
There was a problem hiding this comment.
Is that only for GeoTIFFs or do non-raster TIFFs also follow that term?
Based on the links above, it doesn't seem like the term "band" surfaces anywhere in the TIFF spec?
| assert_eq!(ifd.tile_height(), Some(256)); | ||
|
|
||
| // Fetch tile at position (0, 0) - this fetches all 3 bands automatically | ||
| // Fetch tile at position (0, 0) - this fetches all 3 bands/planes automatically |
There was a problem hiding this comment.
| // Fetch tile at position (0, 0) - this fetches all 3 bands/planes automatically | |
| // Fetch tile at position (0, 0) - this fetches all 3 planes automatically |
There was a problem hiding this comment.
Let's keep it as bands/planes because the test name is test_band_interleaved.
There was a problem hiding this comment.
I feel that if we're renaming to plane instead of band, then we should use the terminology plane-interleaved rather than band-interleaved
…IFF (#251) * Add band-interleaved multi-band sample TIFF * Fetch range of bands for a tile instead of all bands * Add specific test pulling specific band ranges from a TIFF * Enable fetching disjoint bands from a TIFF Change from passing in a Range<usize> to a Vec<usize> so specific bands can be indexed. * Change parameters from just bands to more extensible fetch_options Create a FetchOptions struct that allows passing specific parameters (currently only `bands`) when doing a fetch_tile operation. Keep the existing option of passing only None to do the default action of fetching of all bands. * Check that we are not fetching bands outside the max band count With some special handling to handle 0-based indexing. * Support fetching specific bands with `fetch_tiles` Use the same FetchOptions struct, included another unit test using the eox_cloudless.tif data as test case. * Rename to ReadOptions * Enable fetching specific bands via TIFF.fetch_tile and .fetch_tiles Add `bands` kwarg to TIFF.fetch_tile and TIFF.fetch_tiles to allow fetching only specific bands (or by default, all bands when `None` is given). Included a unit test to ensure it is possible to fetch only 2 bands from an RGB TIFF. * Update geotiff-test-data from efc3ee1 to b7158c4 Include updated uint8_1band_deflate_block128_unaligned_predictor2.tif file from developmentseed/geotiff-test-data#74 * Change unit test to check against AEF embedding dataset with 64 bands Try pulling 3 bands out of 64 from the sample AlphaEarth Foundations embedding TIFF dataset. Updated geotiff-test-data from b7158c4 to 0b1055b which includes the tiled sample AEF embedding TIFF from developmentseed/geotiff-test-data#79 * Rename fetch_options parameter to read_options Following the ReadOptions struct name used in 72e1071 * Change bands/planes to be kwarg only * Rename bands -> planes Xref #360 * Clarify that planes arguments should be using 0-based indexing E.g. [0, 1, 2] for the first three planes/bands. --------- Co-authored-by: Kyle Barron <[email protected]>
Use the more generic 'plane' (component plane) term, instead of band/channel (that is more common for GeoTIFFs/GDAL). Motivated by #251 (comment).
Note that there are still some references to 'band' (e.g. band-interleave) scattered throughout which I've kept around, but most should be renamed (or changed to band/plane).
Reference: