Find all angles and nodes in an image using a program

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

Find all angles and nodes in an image using a program

Sudheshna M
Hello everyone.

How to find the nodes and the angles of intersection in a given image?
It is possible to find the angles manually for each and every node, but is
there a way to do this in a program so that it gives me the list of nodes
and the angles formed at each and every node?
Pls let me know.

Thank you,
Sudheshna




On Thu, May 16, 2013 at 9:30 AM, IMAGEJ automatic digest system <
[hidden email]> wrote:

> There are 10 messages totaling 554 lines in this issue.
>
> Topics of the day:
>
>   1. Announcment: personal update sites (4)
>   2. macro to plot multi color profiles
>   3. Improper behavior of the roi.contains function? (2)
>   4. How to handle dependencies
>   5. Fwd: fractal dimension from stl files
>   6. fractal dimension from stl files
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> ----------------------------------------------------------------------
>
> Date:    Wed, 15 May 2013 12:32:40 +0200
> From:    Adrian Daerr <[hidden email]>
> Subject: Re: Announcment: personal update sites
>
> Hello Johannes,
>
> > So after some brainstorming with the good LOCI people, in particular
> Kevin
> > Eliceiri and Curtis Rueden, we decided that we can do much better than
> > to rely on Dropbox: we now offer personal update sites for everyone.
>
> That is great news, thanks!
>
> I followed all the indications, changed my upload password, updated
> Fiji, added the update site to the advanced update manager as indicated
> on the web page returned by Special:ChangeUploadPassword, changed the
> status of some local-only plugin.jar to 'upload' and then attempted to
> "upload to server". After I enter the upload password however, a second
> dialog pops up that asks for proxy credentials ("Proxy Authentication",
> with zero-width text fields to the right of both User: and Password:).
> If I click "Cancel" the updater pops up an error
> "http://sites.imagej.net/Daerr/ does not exist yet". If I restart the
> Updater (with or without restarting Fiji itself), the status of
> plugin.jar is reset to "Local-Only".
>
> I have a direct internet connection. Normal updating of fiji works just
> fine. No proxy is set in "Edit->Options->Proxy settings..." (neither is
> there anything in the (Debian-linux) system settings, but telling imagej
> to "use system proxy settings" doesn't work any better in the case above).
>
> Any idea?
>
> greetings from Paris,
> Adrian
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> ------------------------------
>
> Date:    Wed, 15 May 2013 14:14:50 +0200
> From:    Michael Epping <[hidden email]>
> Subject: Re: macro to plot multi color profiles
>
> Dear Kees,
>
> I have the clue to solve the problem with only two more lines of code.
>
>  > getLine(x1, y1, x2, y2, lineWidth);
>  > dx = (x2-x1)*vw; dy = (y2-y1)*vh;
>  > Plot.setLimits(0,sqrt(dx*dx+dy*dy),intensityBottom,intensityTop);
>
> This will even work for images with vw!=vh.
>
> Best regards
>
> Michael
>
>
> Am 14.05.2013 10:50, schrieb Straatman, Kees R. (Dr.):
> > Dear Michael,
> >
> > Thanks for letting me know. I thought that getProfile handled scaled
> images like run("Plot Profile") but does not seem to be the case. I think I
> have found an easy way around this. The new macro can be found at:
> http://www.le.ac.uk/biochem/microscopy/macros/plot_multicolour4-1.ijm.
> Let me know if there are other (or new) problems with the macro.
> >
> > Best wishes
> >
> > Kees
> >
> > -----Original Message-----
> > From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Michael Epping
> > Sent: 13 May 2013 08:30
> > To: [hidden email]
> > Subject: Re: macro to plot multi color profiles
> >
> > Hello Kees,
> >
> > thanks for sharing your macro with us. I would suggest to change it a
> bit. The line
> >
> >   > Plot.create("multi Channel Plot", "Distance("+unit+")", "Intensity");
> >
> > could be misleading. It adds the unit to the x-axis label, but you still
> plot intensity against pixels. The best way is to scale the x-coordinates
> by using the VoxelSize. But this will make the macro much more complex.
> >
> > Best regards
> >
> > Michael
> >
> > Am 09.05.2013 10:31, schrieb Straatman, Kees R. (Dr.):
> >> Dear list,
> >>
> >> There have been several questions about plotting colour profiles in the
> past and I have written a macro that can profile up to 7 colours (red,
> green, blue, cyan, magenta, yellow and grey) and will handle different
> types of images. It also allows you to choose the channels you want to plot
> (by channel number).
> >>
> >> You can download it from:
> >> http://www.le.ac.uk/biochem/microscopy/macros/plot_multicolour4.ijm
> >>
> >> Best wishes
> >>
> >> Kees
> >>
> >> --
> >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> ------------------------------
>
> Date:    Wed, 15 May 2013 11:07:30 -0400
> From:    "Street, Jonathan (NIH/NIDDK) [F]" <[hidden email]>
> Subject: Improper behavior of the roi.contains function?
>
> Hello everyone,
>
> I'm running into some issues iterating over the pixels in a roi and I'm
> hoping someone here can help me out. What I think is happening is
> roi.contains is returning true if the pixel is inside the bounding box for
> the roi.
>
> I'm using Fiji and working on a script in Python. My versions are ImageJ
> 1.47n; Java 1.6.0_45 [64-bit].
>
> I am running http://pastebin.com/yc0Xd9e4 on
> http://i.imgur.com/CCDnBPm.png with http://pastebin.com/kn4guT30 as the
> roi.
>
> The roi is a right-sided triangle with a side length of 80 so the area
> should be 3200. Using pixelCount from the getStatistics function gives 3160
> which is reasonable. When I iterate over all the pixels in the image and
> count those for which roi.contains returns true the value I get is 6400
> which is the area for a square with a side length of 80.
>
> I don't know if I'm just going about this wrong or whether this is a
> genuine bug but any thoughts on this would be appreciated.
>
> Cheers
>
> Jonathan Street
> [hidden email]<mailto:[hidden email]>
>
>
> p.s. I am aware that using roi.contains to achieve what this script
> currently does is not the right way. If I can overcome this issue with the
> roi I hope to develop it further in a direction that I don't think is going
> to be supported by getStatistics.
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> ------------------------------
>
> Date:    Wed, 15 May 2013 10:14:29 -0500
> From:    Curtis Rueden <[hidden email]>
> Subject: Re: Announcment: personal update sites
>
> Hi Adrian,
>
> > After I enter the upload password however, a second dialog pops up
> > that asks for proxy credentials ("Proxy Authentication", with
> > zero-width text fields to the right of both User: and Password:).
>
> I noticed that bug yesterday, which happens if you type an incorrect
> password. (I'm not saying you necessarily did, only that if you *do* make a
> typo in the password, you will get that strange dialog box.) So I think the
> "proxy" direction is a red herring... probably the issue is unrelated to
> proxies.
>
> I will talk to Dscho about it today and we'll reply back with further
> information and/or bugfixes.
>
> Thanks for your patience,
> Curtis
>
>
> On Wed, May 15, 2013 at 5:32 AM, Adrian Daerr <
> [hidden email]> wrote:
>
> > Hello Johannes,
> >
> >
> >  So after some brainstorming with the good LOCI people, in particular
> Kevin
> >> Eliceiri and Curtis Rueden, we decided that we can do much better than
> >> to rely on Dropbox: we now offer personal update sites for everyone.
> >>
> >
> > That is great news, thanks!
> >
> > I followed all the indications, changed my upload password, updated Fiji,
> > added the update site to the advanced update manager as indicated on the
> > web page returned by Special:ChangeUploadPassword, changed the status of
> > some local-only plugin.jar to 'upload' and then attempted to "upload to
> > server". After I enter the upload password however, a second dialog pops
> up
> > that asks for proxy credentials ("Proxy Authentication", with zero-width
> > text fields to the right of both User: and Password:). If I click
> "Cancel"
> > the updater pops up an error "http://sites.imagej.net/**Daerr/<
> http://sites.imagej.net/Daerr/>does not exist yet". If I restart the
> Updater (with or without restarting
> > Fiji itself), the status of plugin.jar is reset to "Local-Only".
> >
> > I have a direct internet connection. Normal updating of fiji works just
> > fine. No proxy is set in "Edit->Options->Proxy settings..." (neither is
> > there anything in the (Debian-linux) system settings, but telling imagej
> to
> > "use system proxy settings" doesn't work any better in the case above).
> >
> > Any idea?
> >
> > greetings from Paris,
> > Adrian
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.**html<
> http://imagej.nih.gov/ij/list.html>
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> ------------------------------
>
> Date:    Wed, 15 May 2013 11:34:30 -0500
> From:    Johannes Schindelin <[hidden email]>
> Subject: Re: Announcment: personal update sites
>
> Hi Adrian,
>
> On Wed, 15 May 2013, Adrian Daerr wrote:
>
> > I followed all the indications, changed my upload password, updated
> > Fiji, added the update site to the advanced update manager as indicated
> > on the web page returned by Special:ChangeUploadPassword, changed the
> > status of some local-only plugin.jar to 'upload' and then attempted to
> > "upload to server".  After I enter the upload password however, a second
> > dialog pops up that asks for proxy credentials ("Proxy Authentication",
> > with zero-width text fields to the right of both User: and Password:).
> > If I click "Cancel" the updater pops up an error
> > "http://sites.imagej.net/Daerr/ does not exist yet". If I restart the
> > Updater (with or without restarting Fiji itself), the status of
> > plugin.jar is reset to "Local-Only".
>
> The proxy dialog is shown by mistake when an incorrect password was
> entered. I will work on fixing both the showing of said dialog and the
> proxy dialog's 0-width text fields.
>
> From the logs, it seems that an incorrect password was entered. (Oh, and
> you really want to keep using that Internet Explorer 8 rather than
> Internet Explorer 6...).
>
> Ciao,
> Johannes
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> ------------------------------
>
> Date:    Wed, 15 May 2013 12:41:47 -0500
> From:    Curtis Rueden <[hidden email]>
> Subject: Re: How to handle dependencies
>
> Hi Heinrich,
>
> > In general, how should I best manage dependencies?
>
> One thing Johannes didn't mention: Fiji uses Maven for dependency
> management. See this page for details:
>     http://fiji.sc/Maven
>
> If you set up your project with Maven, you can be sure your dependency
> release versions match those of Fiji. (For "SNAPSHOT" versions it is a bit
> more tricky and complicated; feel free to follow up with more questions if
> needed.)
>
> Regards,
> Curtis
>
>
> On Tue, May 14, 2013 at 5:55 AM, Heinrich Grabmayr
> <[hidden email]>wrote:
>
> > Hi everyone,
> >
> >
> >
> > some time ago, I wrote a plugin that uses the apache commons-math 2.2. I
> am
> > now trying to update to 3 as I think that is what Fiji incorporates in
> the
> > jars folder. However, when I copy the commons-math.jar from the jars
> folder
> > into where I compile my code, it does not work. So I downloaded the
> > commons-math 3.2 from apache and used that. Now I do not know whether I
> > should copy the downloaded jars to the fiji jars folder - I feel it is
> not
> > the best approach.
> >
> > Also, is there a way to determine what exactly is the version Fiji
> updates
> > to? In general, how should I best manage dependencies?
> >
> >
> >
> > Thanks
> >
> >    Heinrich
> >
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> ------------------------------
>
> Date:    Wed, 15 May 2013 23:31:44 +0530
> From:    sumanta mukherjee <[hidden email]>
> Subject: Fwd: fractal dimension from stl files
>
> hi!
> i am totally new to the image processing world. the requirement is to find
> out the fractal dimension of some 3d models, of which i have the stl files.
> can anybody suggest some way?
> thanks in advance!
>
>
>
> --
> -ইতি,
> تعلق ہے ،
> regards,
>
> সুমন্ত (sumanta)
> Room no. c-242, JCB Hall of Residence, IIT Kharagpur, West Bengal 721302,
> India
> mobile- 9433017077
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> ------------------------------
>
> Date:    Wed, 15 May 2013 13:31:31 -0400
> From:    "Rasband, Wayne (NIH/NIMH) [E]" <[hidden email]>
> Subject: Re: Improper behavior of the roi.contains function?
>
> On May 15, 2013, at 11:07 AM, Street, Jonathan (NIH/NIDDK) [F] wrote:
>
> > Hello everyone,
> >
> > I'm running into some issues iterating over the pixels in a roi and I'm
> hoping someone here can help me out. What I think is happening is
> roi.contains is returning true if the pixel is inside the bounding box for
> the roi.
> >
> > I'm using Fiji and working on a script in Python. My versions are ImageJ
> 1.47n; Java 1.6.0_45 [64-bit].
> >
> > I am running http://pastebin.com/yc0Xd9e4 on
> http://i.imgur.com/CCDnBPm.png with http://pastebin.com/kn4guT30 as the
> roi.
> >
> > The roi is a right-sided triangle with a side length of 80 so the area
> should be 3200. Using pixelCount from the getStatistics function gives 3160
> which is reasonable. When I iterate over all the pixels in the image and
> count those for which roi.contains returns true the value I get is 6400
> which is the area for a square with a side length of 80.
> >
> > I don't know if I'm just going about this wrong or whether this is a
> genuine bug but any thoughts on this would be appreciated.
>
> Change
>
>     roi = imp.getProcessor().getRoi()
>
> to
>
>     roi = imp.getRoi()
>
> and the script will work as expected. It's not what you would expect, but
> ImageProcessor.getRoi() returns a Rectangle, not an Roi. Change the script
> to use a mask instead of roi.contains() and it will run ~6 times faster.
> Here is an example Python script that uses a mask to calculate the pixel
> count and mean pixel value of a non-rectangular selection.
>
> imp = IJ.getImage()
> roi = imp.getRoi()
> mask = roi.getMask()
> ip = imp.getProcessor()
> r = roi.getBounds()
> total = sum = 0
> for y in range(r.height):
>    for x in range(r.width):
>       if mask.get(x,y)!=0:
>          total += 1
>          sum += ip.getf(r.x+x,r.y+y);
> print "count=", total
> print "mean=", sum/total
>
> -wayne
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> ------------------------------
>
> Date:    Wed, 15 May 2013 16:37:33 -0400
> From:    marco jimenez <[hidden email]>
> Subject: Re: fractal dimension from stl files
>
> hello sumanta
> I also am working with fractals and I am occupying two pluggins that are
> Fraclac and bonej for 3D, if you can tell me I appreciate your research we
> may share information.
>
>
> 2013/5/15 sumanta mukherjee <[hidden email]>
>
> > hi!
> > i am totally new to the image processing world. the requirement is to
> find
> > out the fractal dimension of some 3d models, of which i have the stl
> files.
> > can anybody suggest some way?
> > thanks in advance!
> >
> >
> >
> > --
> > -ইতি,
> > تعلق ہے ،
> > regards,
> >
> > সুমন্ত (sumanta)
> > Room no. c-242, JCB Hall of Residence, IIT Kharagpur, West Bengal 721302,
> > India
> > mobile- 9433017077
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
>
>
> --
> *Marco Jiménez H.*
> *Tecnólogo Médico*
> *Clínica Alemana*
> *Fono: 9-54181317*
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> ------------------------------
>
> Date:    Wed, 15 May 2013 21:19:17 +0200
> From:    Adrian Daerr <[hidden email]>
> Subject: Re: Announcment: personal update sites
>
> Dear Johannes, dear Curtis,
>
> Thanks a lot for taking a look at this. Curtis was right, the Proxy
> dialog was a red herring. The thing was, there was an accented letter
> (specifically: "ü") in my password, typed on a keyboard with dead
> combining accents (i.e. keys <">+<u>). I did type the password several
> times, and very carefully, so I was reasonably sure there was no typo.
>
> Switching to an ASCII-only password works very well now!
>
> I temporarily switched back to a password with an accented letter, and I
> confirm that this reproducibly breaks the possiblity to upload.
>
> I believe I have no way of knowing where things went wrong, in the
> browser* when changing the upload password, or in Fiji's dialog when
> entering said password (in both cases exactly one single dot is shown
> after the two keys <">+<u> have been pressed, so they seem to have been
> combined; also I can enter the letter ü just fine into normal
> textfields, both in Firefox and in Fiji), but somehow the passwords do
> not match in the end. Different encodings ? If you want me do to
> anything to investigate this let me know. Otherwise I'm just fine with
> remembering that accented letters are to be avoided.
>
> Thanks again for this great new feature,
> Adrian
>
>
>
> *Johannes wrote:
>  > Oh, and you really want to keep using that Internet Explorer 8
>  > rather than Internet Explorer 6...
>
> but my Iceweasel 20.0 AFAIK identifies as useragent:
>
> "Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0
> Iceweasel/20.0"
>
> Did I miss a joke somewhere ?
>
>
> On 15.05.2013 18:34, Johannes Schindelin wrote:
> > Hi Adrian,
> >
> > On Wed, 15 May 2013, Adrian Daerr wrote:
> >
> >> I followed all the indications, changed my upload password, updated
> >> Fiji, added the update site to the advanced update manager as indicated
> >> on the web page returned by Special:ChangeUploadPassword, changed the
> >> status of some local-only plugin.jar to 'upload' and then attempted to
> >> "upload to server".  After I enter the upload password however, a second
> >> dialog pops up that asks for proxy credentials ("Proxy Authentication",
> >> with zero-width text fields to the right of both User: and Password:).
> >> If I click "Cancel" the updater pops up an error
> >> "http://sites.imagej.net/Daerr/ does not exist yet". If I restart the
> >> Updater (with or without restarting Fiji itself), the status of
> >> plugin.jar is reset to "Local-Only".
> >
> > The proxy dialog is shown by mistake when an incorrect password was
> > entered. I will work on fixing both the showing of said dialog and the
> > proxy dialog's 0-width text fields.
> >
> >> From the logs, it seems that an incorrect password was entered. (Oh, and
> > you really want to keep using that Internet Explorer 8 rather than
> > Internet Explorer 6...).
> >
> > Ciao,
> > Johannes
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> ------------------------------
>
> End of IMAGEJ Digest - 14 May 2013 to 15 May 2013 (#2013-142)
> *************************************************************
>

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