You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bruno P. Kinoshita (Jira)" <ji...@apache.org> on 2020/03/10 20:58:00 UTC

[jira] [Commented] (IMAGING-251) Support TIFF standard floating point data

    [ https://issues.apache.org/jira/browse/IMAGING-251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056411#comment-17056411 ] 

Bruno P. Kinoshita commented on IMAGING-251:
--------------------------------------------

Hi [~gwlucas]

A contribution like this would be great. I use GeoTIFF at $work (weather obs & forecast data ingested into ArcGIS for gridded data), but never tried it with Commons Imaging.

I would be happy to test and review the code.

As for the API changes, we have intentionally postponed the 1.0 full release, and kept it in "alpha" as we knew the API needed further changes. So we can discuss the BufferedImage issue in the PR, but I think your approach to add new methods sounds sensible.

We just may have to verify whether it would be something specific to the TIFF format, or if we should push that up in the class hierarchy and make it available to other formats.

Feel free to ping me here or on GitHub (kinow), but I get notifications for PR's against commons-imaging, so should be on it pretty quick. My idea was to release 1.0-alpha2 in the Q1/2020, but I haven't had a chance, so will push it to Q2/2020, which should give us time to include it in the next release I guess.

Thank you

Bruno

> Support TIFF standard floating point data
> -----------------------------------------
>
>                 Key: IMAGING-251
>                 URL: https://issues.apache.org/jira/browse/IMAGING-251
>             Project: Commons Imaging
>          Issue Type: New Feature
>          Components: Format: TIFF
>    Affects Versions: 1.x
>            Reporter: Gary Lucas
>            Priority: Major
>             Fix For: 1.x
>
>
> Commons Imaging does not support the floating-point format included in the TIFF specification. There are prominent data sources that issue products in this format. The ability to support this information would open up new application areas for Commons Imaging.
> TIFF is often used as a mechanism for distributing data from geophysical applications in the form of GeoTIFF files.  Some of this is not imagery, but data. For example, the US Geological Survey is currently releasing high-resolution elevation data grids for the 3DEP program under the name Cloud-Optimized GeoTIFF (COG). It is a substantial data set with significant potential commercial and academic applications.
> To access this data means modifying the TIFF DataReaderStrips and DataReaderTile classes to recognize floating point data (which is typically indicated using TIFF tag #339, SampleFormat). Also, returning the data in the form of a BufferedImage makes no sense at all, so the API on the TiffImageParser and supporting classes would need additional methods to return arrays of floats.  The good news here is that that requirement would mean adding new methods to the classes rather than making significant changes to existing classes. So the probability of unintended consequences or new bugs in existing code would be minimized.
> Specification details for floating-point are given in the main TIFF-6 documentations and Adobe Photoshop TIFF Technical Note 3.
>  
> I am willing to volunteer to make these changes provided that there is interest and a high probability that my contributions would be evaluated and, if suitable, integrated into the Commons Imaging code base. 
> Thank you for your attention in this matter.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)