![]() | ![]() |
![]() |
Previous Message |
Next Message Previous in Topic | Next in Topic Previous by Same Author | Next by Same Author Previous Page (February 2001) | Back to Main IMAGEJ Page | | ![]()
Reply
| Post a New Message |
Join or Leave IMAGEJ, or Change Options
|
Search | ![]()
Chronologically |
Most Recent First |
Wrap Text (Proportional Font) |
Don't Wrap Text (Non-proportional Font) | ![]() |
References: <[log in to unmask]> Content-Type: text/plain; charset="us-ascii" ; format="flowed" Message-ID: <v04205504b6b88aa062f4@[192.168.0.1]> Date: Tue, 20 Feb 2001 17:08:23 -0500 Reply-To: ImageJ Interest Group <[log in to unmask]> Sender: ImageJ Interest Group <[log in to unmask]> From: Bill Christens-Barry <[log in to unmask]> Subject: further question on using invertLut() in plugin? In-Reply-To: <[log in to unmask]>> >Date: Sun, 18 Feb 2001 18:05:38 -0500 >From: Bill Christens-Barry <[log in to unmask]> >Subject: using invertLUT() in plugin? > ><snip> > >I've been trying to invert the LUT of 16-bit grayscale images in a >plugin without success. Can anyone give me a lead or example on how >to do this? > >In particular, I have the following plugin (a variant of the >'Batch_processor.java' plugin that is on the ImageJ site): > ><snip> > > ip.inverLUT(); > ><snip> > >Date: Sun, 18 Feb 2001 22:05:39 -0500 >From: Wayne Rasband <[log in to unmask]> >Subject: Re: using invertLUT() in plugin? > >At 06:05 PM 2/18/01 -0500, you wrote: > >I've been trying to invert the LUT of 16-bit grayscale images in a plugin > >without success. Can anyone give me a lead or example on how to do this? > > >I'd like to do the LUT inversion, using the invertLUT() method. I've tried > >using a command > > > > ip.inverLUT(); > >Java is case sensitive. You need to use: > > ip.invertLut(); > >-wayne Oops, thanks. I have this working correctly now (lowercase where needed). When I open the modified image in ImageJ now, I see that the LUT has been inverted as desired. Problem solved. But, if I import this image into NIH Image or Object-Image (a NIH variant), it appears that the LUT is just as it was before the plugin inverted the LUT?!. I've noticed an isInvertedLut() method in ImageJ. Is it possible that along with actually inverting the LUT using invertLut() and saving it as a 16-bit TIFF using my Image J plugin, isInvertedLut() has been performed with the result that a flag has been set and stored in the TIFF header of the output file, and that NIH Image sees this and tries to 'correct' the inversion? [I do not have the 'Invert LUT' option set in the NIH Image preferences.] If not, is there some other explanation? BTW, I'm using both ImageJ and Object-Image together in analyzing 16-bit TIFF images because, while ImageJ offers lots of extensibility through the plugins mechanism and allows me a lot of freedom in manipulating 16-bit images (which NIH Image and Object-Image do not), it lacks the macro language that is really, really helpful to me and allows me to easily draw on the many macros that I've previously written. I know that macros are listed as planned features and am eager to move fully to working with ImageJ - any sense of when a first level of macro support will appear? Thanks. Bill Christens-Barry ........................................................... .........*..................................*........... ......*......Bill Christens-Barry.....*...... .....*............................................*..... ......*[log in to unmask]*....... .........*..................................*........... ...........................................................
![]() |
![]() Center for Information Technology National Institutes of Health Bethesda, Maryland 20892 301 594 6248 (v) 301 496 8294 (TDD) Comments and Assistance Accessibility ![]() |