how to put argument in adjust contrast/brightness macro

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

how to put argument in adjust contrast/brightness macro

Chris Clarin
Good day,

just another question, I have a macro using run("Brightness/Contrast...");
such that it shows the B&C window and then I have run("Apply LUT..."); but
before I can do this, I am having an error such that according to the
prompt, i have to adjust my B&C table first before I can apply LUT which I
understand perfectly. My question is, how can I put in my macro (as an
argument) the value that I want to adjust my contrast/brightness with? such
that it won't be a user input anymore. for example, I want to increase it to
30% more or to 255, etc...how can i do that?

thank you very much!!!

chris
-------------------------------------------------------------------
Christine T. Clarin
UP Department of Computer Science
Work/Fax: (02) 434-3877
Mobile: (+63917) 482-3606
Email: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: how to put argument in adjust contrast/brightness macro

Michael Schmid
Hi Chris,

To check what macro commands you can use, have a look at
documentation
   http://rsb.info.nih.gov/ij/developer/macro/functions.html
or use the Macro Recorder, Plugins>Macros>Record
If you set the display range by "Set" in the B&C panel to 50-200,
it will record
   setMinAndMax(50, 200);

Michael
________________________________________________________________

On 15 Feb 2008, at 10:25, Chris Clarin wrote:

> Good day,
>
> just another question, I have a macro using run("Brightness/
> Contrast...");
> such that it shows the B&C window and then I have run("Apply  
> LUT..."); but
> before I can do this, I am having an error such that according to the
> prompt, i have to adjust my B&C table first before I can apply LUT  
> which I
> understand perfectly. My question is, how can I put in my macro (as an
> argument) the value that I want to adjust my contrast/brightness  
> with? such
> that it won't be a user input anymore. for example, I want to  
> increase it to
> 30% more or to 255, etc...how can i do that?
>
> thank you very much!!!
>
> chris
> -------------------------------------------------------------------
> Christine T. Clarin
> UP Department of Computer Science
> Work/Fax: (02) 434-3877
> Mobile: (+63917) 482-3606
> Email: [hidden email]