LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

inconsistent results in Extract Curve

Hello.

 

I am trying to write a program that extracts all curves then calculates the radius of selected curve.

The problem is that I get different results when changing the Area Of Interest AOI.

 

Is there anyway I can overcome this problem?

 

Thanks in advance.

Modhi

0 Kudos
Message 1 of 8
(3,878 Views)
Can't tell without some code to consider.

Mike..

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 8
(3,851 Views)

In addition to posting your code, you should also provide an example (here a well-drawn picture might suffice) to explain what you mean by the following:

  • "extracts all curves" -- what curves?  Represented by formulas or a connected series of lines?  Data points?  Boundaries of images?  Open or closed curves?
  • "radius" -- how is this defined?  Is it the radius of the smallest circle that encompasses the "curve" (see previous point)?
  • "Area of Interest" -- what is this?

If we don't understand what you want to do, and can't see what you've already tried, it makes it difficult for us to "guess" how to provide help.

 

Bob Schor

0 Kudos
Message 3 of 8
(3,832 Views)

NI com.PNG

0 Kudos
Message 4 of 8
(3,804 Views)

NI com - 2.PNG

 

 

 

 

  • "extracts all curves" -- what curves?  Represented by formulas or a connected series of lines?  Data points?  Boundaries of images?  Open or closed curves?
    oprn curve.
  • "radius" -- how is this defined?  Is it the radius of the smallest circle that encompasses the "curve" (see previous point)?
  • "Area of Interest" -- what is this?
    the selection of specific area that the processing will be within.

Sorry for lack of information, I hope the provided would be enough.

 

 

Best regards,

Modhi

 

0 Kudos
Message 5 of 8
(3,802 Views)

Sigh -- I see that you are a very new user to the Forum.  Please, post code, not pictures of code.  We need to be able to closely examine, and even execute, your code, which is very hard to do from a picture!  [Note that a certain type of picture, called a Snippet, can be transformed into Code, but you didn't provide such a Snippet].

 

Please try again.  If you have a Project with multiple VIs, compress its folder into a .Zip file and attach that.  Otherwise, attach the VI file that you want us to examine.

 

Bob Schor

0 Kudos
Message 6 of 8
(3,767 Views)

Hi again..

 

The software is suppose to take two pictures of a circled mass where the second is rotated 180 degrees, then the software decects all curves, calcualte the radius, calculate the decenteration (represented by the X difference Position and Y difference Position).

 

The problem is whenever I select an area which contains the wanted curve, different results are generated!

I didn't write the software from scratch but I am supposed to fix it.

 

Here is an example of different selection:

I chose drawn cirlces where the difference in coordinates are (2, 0)

accuate.PNG

Here is what happend with slightly different selection:

not accurate.PNG

 

Attached the vi.

 

Thank you very much.

 

Best regards,

Modhi

 

0 Kudos
Message 7 of 8
(3,688 Views)

I hope my latest reply was clear enough.

Appreciate your time and efforts.

 

Modhi

 

0 Kudos
Message 8 of 8
(3,655 Views)