Login  Register

Re: Clearing 32 bit float images

Posted by Burger Wilhelm on Jun 02, 2015; 9:24am
URL: http://imagej.273.s1.nabble.com/Clearing-32-bit-float-images-tp5013008p5013010.html

Hello Gabriel,

yes, this works, thanks!

It seems odd though - at least for scalar-valued images - that the 'clear' value must be specified as an RGB tuple. And is there any way to set the background to a negative value?

The meaning of "Invert" on float images seems to be a similar issue ...

--Wilhelm


> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Gabriel Landini
> Sent: Tuesday, June 02, 2015 10:54 AM
> To: [hidden email]
> Subject: Re: Clearing 32 bit float images
>
> On Tuesday 02 Jun 2015 10:09:55 Burger Wilhelm wrote:
> > when applying 'Edit -> Clear' on a 32 bit float image (FloatProcessor) I
> > would assume that the affected pixel values are set to zero. However, the
> > command inserts some other (display-related?) value. E.g., on the "bridge"
> > sample image, the new value is 85.0.
> >
> > Is this intended behaviour? If yes, how is the clear value determined?
>
> Hi Wilhelm,
> It uses the values in the colour picker.
> If you set the background colour to 0 it clears with that value.
>
> Cheers
>
> Gabriel
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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