Hello everyone!!!
Does anyone know how to create a blank image? I.e. an image whose pixel values equal nothing: not zero, but nothing at all! I want to create an image that I can add or average to any existing image without modifying it at all. Anyone knows if this can be done? Thanks a lot in advance. Joaquim Soriano Felipe. Confocal Microscopy Unit Spanish National Cancer Research Centre (CNIO) Melchor Fernández Almagro,3, E-28029 Madrid, Spain Phone + 34 917 328 000, exts.: 3161, 3162. [hidden email]<mailto:[hidden email]> **NOTA DE CONFIDENCIALIDAD** Este correo electrÿnico, y en su caso los ficheros adjuntos, pueden contener informaciÿn protegida para el uso exclusivo de su destinatario. Se prohÿbe la distribuciÿn, reproducciÿn o cualquier otro tipo de transmisiÿn por parte de otra persona que no sea el destinatario. Si usted recibe por error este correo, se ruega comunicarlo al remitente y borrar el mensaje recibido. **CONFIDENTIALITY NOTICE** This email communication and any attachments may contain confidential and privileged information for the sole use of the designated recipient named above. Distribution, reproduction or any other use of this transmission by any party other than the intended recipient is prohibited. If you are not the intended recipient please contact the sender and delete all copies. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Good day Joaquim Soriano Felipe,
it's always interesting to realize special needs of colleagues! I really don't understand what you have in mind but you may first create a 32bit image with all values set to zero and then apply "Reciprocal" from the IJ menu item "Process > Math". This results in an image with all values set to NaN (not a number). Of course, "not a number" isn't "nothing at all"... Another approach could be based on transparency. Best Herbie ::::::::::::::::::::::::::::::::::::::::: On 12.11.14 12:57, Soriano.Joaquim wrote: > Hello everyone!!! Does anyone know how to create a blank image? I.e. > an image whose pixel values equal nothing: not zero, but nothing at > all! I want to create an image that I can add or average to any > existing image without modifying it at all. Anyone knows if this can > be done? Thanks a lot in advance. > > > Joaquim Soriano Felipe. Confocal Microscopy Unit Spanish National > Cancer Research Centre (CNIO) Melchor Fernández Almagro,3, E-28029 > Madrid, Spain Phone + 34 917 328 000, exts.: 3161, 3162. > [hidden email]<mailto:[hidden email]> > > > > **NOTA DE CONFIDENCIALIDAD** Este correo electrÿnico, y en su caso > los ficheros adjuntos, pueden contener informaciÿn protegida para el > uso exclusivo de su destinatario. Se prohÿbe la distribuciÿn, > reproducciÿn o cualquier otro tipo de transmisiÿn por parte de otra > persona que no sea el destinatario. Si usted recibe por error este > correo, se ruega comunicarlo al remitente y borrar el mensaje > recibido. **CONFIDENTIALITY NOTICE** This email communication and any > attachments may contain confidential and privileged information for > the sole use of the designated recipient named above. Distribution, > reproduction or any other use of this transmission by any party other > than the intended recipient is prohibited. If you are not the > intended recipient please contact the sender and delete all copies. > > > > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Soriano.Joaquim
Hi Joaquim;
Looks quite impossible to have nothing within an image. Finally the image is a set of values in the memory that some software shows as a image ruled by some parameters (width, height,bitdepth,etc.) If you need to add nothing create an image fill with zeros, if you need to average two images and keep the same image at the end use two identical images. Whatever maybe someone knows some entelechy so good luck.
Research engineer
HGGM. Madrid. |
In reply to this post by Soriano.Joaquim
That is a quite interesting wish. It reminds me to the book "The Neverending Story" from late Michael Ende. In this book the/a "nothing" spread out and still I had the problem what that could mean.
If you are able to deliver one pixel of "nothing" or even less most of us could let it spread out and fill your image (and I think uncountable numbers of problems could be solved)! Karsten Am 12.11.2014 um 12:57 schrieb Soriano.Joaquim <[hidden email]>: > Does anyone know how to create a blank image? > I.e. an image whose pixel values equal nothing: not zero, but not > hing at all! -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Soriano.Joaquim
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 |
In reply to this post by Soriano.Joaquim
Sure, you could create a float image and fill it with NaN. Of course you must know yourself what to do with it...
Here is a sample plugin: //-------------------------------------------------------------- import ij.ImagePlus; import ij.plugin.PlugIn; import ij.process.FloatProcessor; public class Make_NaN_Image implements PlugIn { public void run(String arg0) { FloatProcessor fp = new FloatProcessor(100,100); fp.setValue(Float.NaN); fp.fill(); (new ImagePlus("NaN-Image", fp)).show(); } } //-------------------------------------------------------------- --Wilhelm > -----Original Message----- > From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of > Soriano.Joaquim > Sent: Wednesday, November 12, 2014 12:57 PM > To: [hidden email] > Subject: creating a real blank image > > Hello everyone!!! > Does anyone know how to create a blank image? > I.e. an image whose pixel values equal nothing: not zero, but nothing at all! > I want to create an image that I can add or average to any existing image > without modifying it at all. > Anyone knows if this can be done? > Thanks a lot in advance. > > > Joaquim Soriano Felipe. > Confocal Microscopy Unit > Spanish National Cancer Research Centre (CNIO) > Melchor Fernández Almagro,3, E-28029 Madrid, Spain > Phone + 34 917 328 000, exts.: 3161, 3162. > [hidden email]<mailto:[hidden email]> > > > > **NOTA DE CONFIDENCIALIDAD** Este correo electrÿnico, y en su caso los > ficheros adjuntos, pueden contener informaciÿn protegida para el uso > exclusivo de su destinatario. Se prohÿbe la distribuciÿn, reproducciÿn o > cualquier otro tipo de transmisiÿn por parte de otra persona que no sea el > destinatario. Si usted recibe por error este correo, se ruega comunicarlo al > remitente y borrar el mensaje recibido. > **CONFIDENTIALITY NOTICE** This email communication and any > attachments may contain confidential and privileged information for the sole > use of the designated recipient named above. Distribution, reproduction or > any other use of this transmission by any party other than the intended > recipient is prohibited. If you are not the intended recipient please contact > the sender and delete all copies. > > > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Soriano.Joaquim
newImage("Untitled", "32-bit black", 512, 512, 1);
imageCalculator("Divide", "Untitled","Untitled"); =========================================================================== Michael Cammer, Microscopy Core & Skirball Institute, NYU Langone Medical Center Cell: 914-309-3270 note that we do not receive messages left at 212-263-3208 http://ocs.med.nyu.edu/microscopy & http://microscopynotes.com/ -----Original Message----- From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Karsten Sent: Wednesday, November 12, 2014 8:17 AM To: [hidden email] Subject: Re: creating a real blank image That is a quite interesting wish. It reminds me to the book "The Neverending Story" from late Michael Ende. In this book the/a "nothing" spread out and still I had the problem what that could mean. If you are able to deliver one pixel of "nothing" or even less most of us could let it spread out and fill your image (and I think uncountable numbers of problems could be solved)! Karsten Am 12.11.2014 um 12:57 schrieb Soriano.Joaquim <[hidden email]>: > Does anyone know how to create a blank image? > I.e. an image whose pixel values equal nothing: not zero, but not hing > at all! -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Feras
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 |
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 |
In reply to this post by karo03
Dear list,
I would like to write a plugin that does an operation at each pixel and takes into account only certain other pixels in the neighborhood of the pixel. Assume for example, I want to take the mean brightness of the pixel itself and 5 neighbors in a straight diagonal to its upper left and 5 neighbors in a straight diagonal to its lower right. (So a rectangular mask for the convolve() method will not do.) Could you point me to the ImageJ API functions to accomplish this as efficiently (as in calculation time, not developer time) as possible? If you know a plugin that does something similar I would also be glad for a pointer. Best Regards, Benjamin -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Benjamin,
looks like you could do it with convolution: 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 But this won't be the fastest option in terms of execution time, it does a lot of unnecessary multiplications by zero. To get it a bit faster, discard the left 4 colums of the matrix, and translate the result by 2 pixels. This will leave some edge pixels undefined, however. For a faster code, write a PlugInFilter. Typically you would specify the CONVERT_TO_FLOAT, DOES_ALL, SNAPSHOT, SUPPORTS_MASKING, PARALLELIZE_STACKS and (for large images) PARALLELIZE_IMAGES flags. You find a very simple PlugInFilter example at http://rsb.info.nih.gov/ij/plugins/apply-formula/Apply_Formula.java In your case, in the run(ip) method, take the snapshot pixels of the ImageProcessor (a float array with all pixels) as input and write to the pixels array (also float) as output. And you have to care about near-edge pixels, because some of the input pixels won't be inside the image for them. float[] pixels = (float[])ip.getPixels(); float[] snapshotPixels = (float[])ip.getSnapshotPixels(); int width = ip.getWidth(); Rectangle roi = ip.getRoi(); for (int y=roi.y; y<roi.y + roi.height; y++) { for (int x=roi.x; x<roi.x + roi.width; x++) { // p points to pixel (x,y) in the arrays // read input values as snapshot[x_input + y_input*width] // calculate whatever you want pixels[x + y*width] = result_of_calculation; } } Michael ________________________________________________________________ On Nov 13, 2014, at 14:17, Benjamin Eltzner wrote: > Dear list, > > I would like to write a plugin that does an operation at each pixel and > takes into account only certain other pixels in the neighborhood of the > pixel. > > Assume for example, I want to take the mean brightness of the pixel > itself and 5 neighbors in a straight diagonal to its upper left and 5 > neighbors in a straight diagonal to its lower right. (So a rectangular > mask for the convolve() method will not do.) > > Could you point me to the ImageJ API functions to accomplish this as > efficiently (as in calculation time, not developer time) as possible? If > you know a plugin that does something similar I would also be glad for a > pointer. > > > Best Regards, > > Benjamin > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Mark J. Chopping
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 |
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 |
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 |
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 |
Hi Michael,
I agree that the SRTM data can be viewed by imageJ java code without problems. But, the problem is after conversion to show hillshades. The only way to view the new generated tiff is through drag-drop to ArcGISAny Idea ? ThanksFeras On Thursday, November 13, 2014 12:08 PM, Michael Schmid <[hidden email]> wrote: 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 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Soriano.Joaquim
Dear Curtis and those who are in the know,
for good reasons I need to know whether plain ImageJ2 (not Fiji with its additional plugins) is open source in exactly the same legal sense as plain ImageJ1? With "plain ImageJ2" I mean the software that provides about the same functionality as ImageJ1. Best regards Herbie ::::::::::::::::::::::::::::::::::::::::: -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Herbie,
> I need to know whether plain ImageJ2 (not Fiji with its additional > plugins) is open source in exactly the same legal sense as plain > ImageJ1? Like most of the SciJava software projects [1], ImageJ2 uses the Simplified BSD License [2], one of the most popular permissive OSS licenses. It makes only one stipulation: that derivative works retain the copyright notice, for purposes of provenance tracking and citation. We have been very careful to track the origin of all source code in the projects, including dependencies, to ensure that all stated licenses are indeed valid. The following newly minted wiki page summarizes everything, including a discussion of ImageJ 1.x's copyright status: * http://imagej.net/Licensing These pages may be informative as well: * http://choosealicense.com/ * https://en.wikipedia.org/wiki/Copyright_status_of_work_by_the_U.S._government Regards, Curtis [1] http://imagej.net/SciJava [2] http://imagej.net/BSD On Fri, Nov 14, 2014 at 1:11 PM, Herbie <[hidden email]> wrote: > Dear Curtis and those who are in the know, > > for good reasons I need to know whether plain ImageJ2 (not Fiji with its > additional plugins) is open source in exactly the same legal sense as plain > ImageJ1? > > With "plain ImageJ2" I mean the software that provides about the same > functionality as ImageJ1. > > Best regards > > Herbie > ::::::::::::::::::::::::::::::::::::::::: > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Many thanks Curtis!
The <http://imagej.net/Licensing> overview is very helpful to get an impression. However, the footnote regarding ImagJ1 is less clear but it explains why... In any case, the license of ImagJ1 and that of ImagJ2 are fundamentally different. Thanks again and best regards Herbie ::::::::::::::::::::::::::::::::::::::: On 15.11.14 00:02, Curtis Rueden wrote: > Hi Herbie, > >> I need to know whether plain ImageJ2 (not Fiji with its additional >> plugins) is open source in exactly the same legal sense as plain >> ImageJ1? > > Like most of the SciJava software projects [1], ImageJ2 uses the Simplified > BSD License [2], one of the most popular permissive OSS licenses. It makes > only one stipulation: that derivative works retain the copyright notice, > for purposes of provenance tracking and citation. > > We have been very careful to track the origin of all source code in the > projects, including dependencies, to ensure that all stated licenses are > indeed valid. > > The following newly minted wiki page summarizes everything, including a > discussion of ImageJ 1.x's copyright status: > > * http://imagej.net/Licensing > > These pages may be informative as well: > > * http://choosealicense.com/ > * > https://en.wikipedia.org/wiki/Copyright_status_of_work_by_the_U.S._government > > Regards, > Curtis > > [1] http://imagej.net/SciJava > [2] http://imagej.net/BSD > > > On Fri, Nov 14, 2014 at 1:11 PM, Herbie <[hidden email]> wrote: > >> Dear Curtis and those who are in the know, >> >> for good reasons I need to know whether plain ImageJ2 (not Fiji with its >> additional plugins) is open source in exactly the same legal sense as plain >> ImageJ1? >> >> With "plain ImageJ2" I mean the software that provides about the same >> functionality as ImageJ1. >> >> Best regards >> >> Herbie >> ::::::::::::::::::::::::::::::::::::::::: >> >> -- >> 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 |
Hi Herbie,
`fundamentally different' is a very vague and bold statement and as such prone to misinterpretation by those less familiar with the topic. I therefore feel urged to clarify: The only difference between the licenses of ImageJ1 and ImageJ2 is that you cannot claim that you wrote ImageJ2, but you can claim that you wrote ImageJ1. With both licenses you can use, modify, give away, sell, wrap the licensed code, parts of it, or binary distributions of it, in open source as well as closed source commercial projects. No constraints. The exact difference between the two licenses is that ImageJ2 requires you to retain that copyright notice and make this information accessible for those consuming your derived work, i.e. give minimal virtual kudos to those who developed ImageJ2. I, personally, would spare `fundamental' for something more `fundamental'. Best, Stephan On Sat, 2014-11-15 at 10:51 +0100, Herbie wrote: > Many thanks Curtis! > > The <http://imagej.net/Licensing> overview is very helpful to get an > impression. However, the footnote regarding ImagJ1 is less clear but it > explains why... > > In any case, the license of ImagJ1 and that of ImagJ2 are fundamentally > different. > > Thanks again and best regards > > Herbie > > ::::::::::::::::::::::::::::::::::::::: > On 15.11.14 00:02, Curtis Rueden wrote: > > Hi Herbie, > > > >> I need to know whether plain ImageJ2 (not Fiji with its additional > >> plugins) is open source in exactly the same legal sense as plain > >> ImageJ1? > > > > Like most of the SciJava software projects [1], ImageJ2 uses the Simplified > > BSD License [2], one of the most popular permissive OSS licenses. It makes > > only one stipulation: that derivative works retain the copyright notice, > > for purposes of provenance tracking and citation. > > > > We have been very careful to track the origin of all source code in the > > projects, including dependencies, to ensure that all stated licenses are > > indeed valid. > > > > The following newly minted wiki page summarizes everything, including a > > discussion of ImageJ 1.x's copyright status: > > > > * http://imagej.net/Licensing > > > > These pages may be informative as well: > > > > * http://choosealicense.com/ > > * > > https://en.wikipedia.org/wiki/Copyright_status_of_work_by_the_U.S._government > > > > Regards, > > Curtis > > > > [1] http://imagej.net/SciJava > > [2] http://imagej.net/BSD > > > > > > On Fri, Nov 14, 2014 at 1:11 PM, Herbie <[hidden email]> wrote: > > > >> Dear Curtis and those who are in the know, > >> > >> for good reasons I need to know whether plain ImageJ2 (not Fiji with its > >> additional plugins) is open source in exactly the same legal sense as plain > >> ImageJ1? > >> > >> With "plain ImageJ2" I mean the software that provides about the same > >> functionality as ImageJ1. > >> > >> Best regards > >> > >> Herbie > >> ::::::::::::::::::::::::::::::::::::::::: > >> > >> -- > >> 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 |
Free forum by Nabble | Edit this page |