Java code for Process-> Find Edge

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

Java code for Process-> Find Edge

donny008
Hello

I am excited about using the command  Process-> Find Edge for analysing my
images. However I believe I would like to add on to certain aspects on this
particular feature. I tried to figure out the code from the imagej website
but i was  not able to. Could someone please guide where i could find the
java source code for this feature.

Please help

regards

--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: Java code for Process-> Find Edge

al.soto

i think its in: ij.process.ByteProcessor

Its in in the "filter()" method


You do have the source code right?


Reply | Threaded
Open this post in threaded view
|

Re: Java code for Process-> Find Edge

dscho
In reply to this post by donny008
Hi,

On Fri, 16 Jul 2010, Donny George wrote:

> I am excited about using the command Process-> Find Edge for analysing
> my images. However I believe I would like to add on to certain aspects
> on this particular feature. I tried to figure out the code from the
> imagej website but i was not able to. Could someone please guide where i
> could find the java source code for this feature.

You can find it here:

http://pacific.mpi-cbg.de/cgi-bin/gitweb.cgi?p=ImageJA.git;a=blob;f=ij/process/ImageProcessor.java;hb=refs/heads/master#l1283

(The filter() method is abstract in the ImageProcessor class, and is
implemented in each subclass exlicitely.)

For what it's worth, I found it by starting Fiji's Script Editor (in a
Fiji built from source including ImageJ), calling Tools>Open .java file
for menu item..., and following a few calls through Tools>Open .java file
for class...

Hth,
Johannes
Reply | Threaded
Open this post in threaded view
|

Re: Java code for Process-> Find Edge

donny008
In reply to this post by al.soto
Thankyou so much

indeed i have the code for the sobel operator now. What was more interesting
to me is how the results of the sobel image are displayed onto the original
image but i am not able to find that part. I guess it should something like
draw() or show(). Is that right. Does such a code exist ?

thanks for the help in advance


donny


On Fri, Jul 16, 2010 at 10:14 PM, al.soto <[hidden email]> wrote:

> i think its in: ij.process.ByteProcessor
>
> Its in in the "filter()" method
>
>
> You do have the source code right?
>
>
>
> --
> View this message in context:
> http://imagej.588099.n2.nabble.com/Java-code-for-Process-Find-Edge-tp5303356p5303607.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>



--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: Java code for Process-> Find Edge

dscho
Hi,

On Sat, 17 Jul 2010, Donny George wrote:

> What was more interesting to me is how the results of the sobel image
> are displayed onto the original image but i am not able to find that
> part.

The filter() method replaces the pixels; it does not do an overlay. If you
want to do that, you might want to play with the setOverlay() method of
ImagePlus.

Hth,
Johannes