Login  Register

Re: Display Geotiff image using imageJ

Posted by Michael Schmid on Nov 13, 2014; 5:07pm
URL: http://imagej.273.s1.nabble.com/creating-a-real-blank-image-tp5010383p5010423.html

Hi Feras,

the SRTM files from
  http://www.cgiar-csi.org/data/srtm-90m-digital-elevation-database-v4-1
are 16-bit tiffs and open nicely in ImageJ.

Michael
________________________________________________________________
On Nov 13, 2014, at 17:43, Feras wrote:

> Hi Mark,Yes, I am using Shuttle Radar Topography Mission digital elevation model data to view the output of hillshades generated by uDig. At this moment I only can see the image by drag and drop ti ArcGIS.I just wonder how can I view the output using java code without using drag and drop in ArcGIS
> Many thanks in advance!Feras
>
>
>     On Thursday, November 13, 2014 11:32 AM, Mark J. Chopping <[hidden email]> wrote:
>
>
> Hi Feras,
>
> Is your GeoTIFF really a 64-bit image? Seems unlikely but if so, why not
> write it out as a 16-bit image, if that is an option?
>
> However, it looks like you are tyring to view a Shuttle Radar Topography
> Mission digital elevation model: what are the characteristics of the
> original SRTM file? 16-bit?
>
>   Mark
>
>> Date: Thu, 13 Nov 2014 16:22:22 +0000
>> From: Feras <[hidden email]>
>> Reply-To: Feras <[hidden email]>
>> To: [hidden email]
>> Subject: Re: Display Geotiff image using imageJ
>>
>> Hi Mark,I installed imageJ opensource and was able to view normal tif
>> file. however, when I tried to view geo tiff file as coded here, I get
>> an error as follows: The code:ImagePlus imp =
>> IJ.openImage("C:/localdata/output/srtm_13_02/srtm_13_02_1.tif30_200.tif");
>> imp.show(); The error:Unsupported BitsPerSample: 64
>>
>>  Thanks in advance!Feras
>>
>>     On Thursday, November 13, 2014 11:18 AM, Mark J. Chopping <[hidden email]> wrote:
>>
>>
>> Hi Feras,
>>
>> ImageJ is open source, so you can just go find the Java code that
>> accesses the image data and tags in TIFF files, if you need to extract
>> the 'geo' part -- but if it is just a matter of opening the TIFF image for
>> display, switch on the macro recorder and use the File menu to open the
>> image. The macro code will be recorded in the window; you can copy it to
>> a separate text file. There are many macro examples on the ImageJ website
>> that will help to get you started.
>>
>>   Best wishes,
>>
>>   Mark
>>
>>   Mark Chopping, Ph.D.
>>   Department of Earth & Environmental Studies
>>   Montclair State University
>>   Montclair, NJ 07043
>>
>>> Date: Wed, 12 Nov 2014 22:25:56 +0000 (UTC)
>>> From: Feras <[hidden email]>
>>> To: Mark J. Chopping <[hidden email]>,
>>>     Feras <[hidden email]>
>>> Cc: "[hidden email]" <[hidden email]>
>>> Subject: Re: Display Geotiff image using imageJ
>>>
>>> Thanks Mark,Is there an example/java code to show displaying TIFF file using imageJ
>>> ThanksFeras
>>>
>>>
>>>     On Wednesday, November 12, 2014 11:53 AM, Mark J. Chopping <[hidden email]> wrote:
>>>
>>>
>>> Hi Feras,
>>>
>>> ImageJ can open most TIFFs, including 16-bit (often used for global DEMS).
>>> The only difficulty you might come across is that there are a lot of
>>> different flavors of TIFF (e.g., some store raw and some store compressed
>>> image data). ImageJ will probably tell you why it cannot open a TIFF - and
>>> ArcGIS might give you options on exporting the image, so you can write out
>>> a compatible one. Good luck!
>>>
>>>   Best wishes,
>>>
>>>   Mark
>>>
>>>   Mark Chopping, Ph.D.
>>>   Department of Earth & Environmental Studies
>>>   Montclair State University
>>>   Montclair, NJ 07043
>>>
>>> -----
>>>> Date: Wed, 12 Nov 2014 13:56:37 +0000
>>>> From: Feras <[hidden email]>
>>>> Reply-To: Feras <[hidden email]>
>>>> To: [hidden email]
>>>> Subject: Display Geotiff image using imageJ
>>>>
>>>>  Hi All,I am using ArcGIS to display tiff image. Is it possible to use
>>>> image J to view his type of tiff image which usually presents maps
>>>> ?ThanksFeras
>>>>
>>>> --
>>>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>>>
>>>
>>>
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>>
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html