gwlucastrig commented on pull request #108: URL: https://github.com/apache/commons-imaging/pull/108#issuecomment-732508068
I added some JUnit tests. I still want to write an example application showing how to use the API to get data. I've been using it myself quite a bit to read elevation data for testing my data compression project (the Auckland sample compresses down to 1.2539 bits per elevation). But I need to write a generic example that can be run with just Commons Imaging. I have been thinking about your suggestion regarding the directories. I am willing to modify this, but I'm not sure what would be better. As I said, the main issue is that in a TIFF file, the directory is the thing that bundles the image and the metadata (the TIFF spec calls them "Image File Directories", or IFDs). You can see examples of how they are used in the example classes in commons-imaging\src\test\java\org\apache\commons\imaging\examples\tiff. ReadTagsAndImages.java loops through the directories in a file getting metadata tags and imagery from each. ExampleReadFloatingPointData.java reads the floating-point raster data from the TIFF directory. In fact, the original U.S. Geological Survey products that got me started working on the floating-point format actually contain 6 separate directories, each at a different level of resolution. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
