Path: news.mathworks.com!not-for-mail From: <HIDDEN> Newsgroups: comp.soft-sys.matlab Subject: Re: curvature and radius of curvature of a plane curve Date: Mon, 10 Aug 2009 17:41:02 +0000 (UTC) Organization: The MathWorks, Inc. Lines: 25 Message-ID: <h5pm3e$h6v$1@fred.mathworks.com> References: <ef5d840.-1@webcrossing.raydaftYaTP> <ellieandrogerxyzzy-1507070827520001@dialup-4.232.57.106.dial1.losangeles1.level3.net> <ellieandrogerxyzzy-1607070133420001@dialup-4.232.60.142.dial1.losangeles1.level3.net> <h418sh$p59$1@fred.mathworks.com> <h554pn$dmf$1@fred.mathworks.com> <h5hun6$cb$1@fred.mathworks.com> <h5ilrq$mo3$1@fred.mathworks.com> <h5pcvf$903$1@fred.mathworks.com> Reply-To: <HIDDEN> NNTP-Posting-Host: webapp-02-blr.mathworks.com Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Trace: fred.mathworks.com 1249926062 17631 172.30.248.37 (10 Aug 2009 17:41:02 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Mon, 10 Aug 2009 17:41:02 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 1187260 Xref: news.mathworks.com comp.soft-sys.matlab:562198 "Michael Snyder" <sirzerp@mathworks.com> wrote in message <h5pcvf$903$1@fred.mathworks.com>... > Hi Roger, > > Good points. I have worked with the images for so long that I had forgotten that there was an implicit reference point for cw and ccw. I feel silly; an arc segment would have to have beginning point for it to have a cw or ccw direction. > > Assume there is a reference point directly in the center of the matrix and I want to evaluate each arc’s cw or ccw direction in regards to that center reference. In other words, the closest endpoint of an arc segment to the center, is defined as the beginning point for a segment. > > Think of the physics cloud chamber photographs of electron and positron paths. It is easy just to look at the decaying spiral paths and know if it was an electron or positron. I had completely forgotten that an EM field was the implicit reference frame for such detectors. > > I am not dealing with complete spirals, but with just some spiral arcs (less than 2pi of curvature) decaying into a center point. My problem being that have both possible types, cw and ccw arcs crossing each other in the same image and I want write a program to separate them into two images. > > So I have to find the lines, and find out which end point of the line is closest to the center, and then characterize each line as cw or ccw, and then separate a complex image into two simpler ones. No Problem. <smile> > > I think I can do most of that with a radial search, but not sure about the characterizing the cw or ccw directions. On a side note, wonder if there is already code out there from particle physics, evaluating overlaying particle spirals would be a much harder task. > > Thanks, > Michael Hello again Michael, Your criterion, "the closest endpoint of an arc segment to the center, is defined as the beginning point for a segment", would do the job all right, but it seems very unnatural to me. How is such a "reference" center related to "spiral arcs ... decaying into a center point"? A spiral arc decaying toward a central point, as opposed to a strictly circular arc, does indeed have an inherent clockwise versus counterclockwise orientation, assuming the decay process is sufficiently evident in the arc's varying curvature. Why not use this direction of "decay" as your criterion rather than some artificial reference point in the "center of the matrix"? Of course all this begs the most fundamental question. Such determinations of clockwise versus counterclockwise orientation are vastly simpler than the truly formidable task of detecting intersecting arcs in the first place and then separating them from one another. Roger Stafford