[
https://issues.apache.org/jira/browse/IMAGING-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17201408#comment-17201408
]
Gary Lucas edited comment on IMAGING-267 at 9/24/20, 9:44 AM:
--------------------------------------------------------------
My analysis here is that the Commons Imaging package already includes an API to
render the source file. I am recommending that this JIRA issue be marked as
"resolved".
The process of rendering files that contain floating-point data is a little bit
more involved than ordinary image files. To illustrate how it may be
accomplished, I have uploaded a simple example application called
RenderElevationTiff.java. This application demonstrates the various API
elements that support this kind of rendering. There are also related example
applications in the Commons Imaging source distribution, but this one is
optimized for elevation data such as that supplied by the test file that was
provided by Edgar Soldin.
I'm not sure that rendering this kind of data could be completely automated
because I think that a rendering application would have to have domain-specific
information. For example, some land-elevation GeoTIFF files include "no-data"
points specified as a large magnitude negative number. If an application were
to select gray tones exclusively on the bases of range-of-values, the no-data
points would be included in that range.
[^RenderElevationTiff.java]
was (Author: gwlucas):
My analysis here is that the Commons Imaging package already includes an API to
render the source file. I am recommending that this JIRA issue be marked as
"resolved".
The process of rendering files that contain floating-point data is a little bit
more involved than ordinary image files. To illustrate how it may be
accomplished, I have uploaded a simple example application called
RenderElevationTiff.java. This application demonstrates the various API
elements that support this kind of rendering. There are also related example
applications in the Commons Imaging source distribution, but this one is
optimized for elevation data such as that supplied by the test file that was
provided by Edgar Soldin.
I'm not sure that rendering this kind of data could be completely automated
because I think that a rendering application would have to have domain-specific
information. For example, some land-elevation GeoTIFF files include "no-data"
points specified as a large magnitude negative number. If an application were
to select gray tones exclusively on the bases of range-of-values, the no-data
points would be included in that range. [^RenderElevationTiff.java]
> Colorful rendering of b/w Monoband TIF
> --------------------------------------
>
> Key: IMAGING-267
> URL: https://issues.apache.org/jira/browse/IMAGING-267
> Project: Commons Imaging
> Issue Type: Bug
> Reporter: edgar soldin
> Priority: Major
> Attachments: ISSUE_267.JPG, RenderElevationTiff.java,
> mdt25a-commons.png, mdt25a-sextante.png, mdt25a.tfw, mdt25a.tif,
> mdt25a.tif.aux.xml
>
>
> see attached images.
> mdt25a.tif - the original tif
> mdt25a-commons.png - as rendered/read with Commons Imaging
> mdt25a-sextante.png - as rendered /read properly with ImageIO-Core from
> https://github.com/jai-imageio/jai-imageio-core
> thanks!.. ede
--
This message was sent by Atlassian Jira
(v8.3.4#803005)