changeValues

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

changeValues

Stein Rørvik
Simple question:

We have the macro command changeValues(v1, v2, v3) in ImageJ.
Is there an equivalent to this in the menus / user interface?
I can't find any.

Stein

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: changeValues

Jan Eglinger
Hi Stein,

On 16.10.2015 12:04, Stein Rørvik wrote:
> We have the macro command changeValues(v1, v2, v3) in ImageJ.
> Is there an equivalent to this in the menus / user interface?

For grayscale images (8-,16- and 32-bit), you can do:

  - Image > Adjust > Threshold... and set the desired threshold range
  - Edit > Selection > Create Selection
  - Process > Math > Set... and enter the target value

Hope that helps,
Jan

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: changeValues

Michael Schmid
In reply to this post by Stein Rørvik
Hi Stein,

currently, changeValues is a pure macro function; the code is at
  https://github.com/imagej/imagej1/blob/master/ij/macro/Functions.java#l1016
You can easily have the same functionality with Process>Math>Macro, e.g.
  if (v>=10 && v<=20) v=99;
If you have extremely large images or stacks, this will be slightly slower than changeValues, however.

Michael
________________________________________________________________
On Oct 16, 2015, at 12:04, Stein Rørvik wrote:

> Simple question:
>
> We have the macro command changeValues(v1, v2, v3) in ImageJ.
> Is there an equivalent to this in the menus / user interface?
> I can't find any.
>
> Stein

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