Login  Register

Pixels as variables

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

Pixels as variables

kirill8910
Hello!

Could someone tell me please...If I want to implement a certain function for image like:

"If 3 pixels ahead value > value here Then value = 0"

I just wonder how to deal with pixels as variables. Or maybe me lazy butt should go and google this stuff.

But if someone could give a link or code example would be amazing!

Thanks in advance!

Kirill
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Pixels as variables

Herbie-2
Kirill,

if you think of realizing what you call a "certain function" as an
IJ-macro, then it would be a good idea to first study the available
macro routines at:

        <http://rsb.info.nih.gov/ij/developer/macro/functions.html>

and especially the routine

        getPixel(x, y)

On 24.08.12 17:30, kirill8910 wrote:

> Hello!
>
> Could someone tell me please...If I want to implement a certain function for
> image like:
>
> "If 3 pixels ahead value>  value here Then value = 0"
>
> I just wonder how to deal with pixels as variables. Or maybe me lazy butt
> should go and google this stuff.
>
> But if someone could give a link or code example would be amazing!
>
> Thanks in advance!
>
> Kirill

HTH

Herbie

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