04-27-2022 03:58 AM - edited 04-27-2022 04:45 AM
yeah this one is good, do you know why my code doesn't work? can you check it if you have time? I want to know where is my mistake. thanks
04-27-2022 09:36 AM - edited 04-27-2022 09:37 AM
Sorry, I don't have IMAQ installed, so all I see is broken code and unknown events.
Just comparing with my code, The logic does not seem right.
In the "mouse up/down event", shouldn't the new time after the select go to the selector of the case structure?
In the "mouse move" event", shouldn't you ignore the type and just read from the shift register?
Similar to the following?
04-27-2022 10:41 AM - edited 04-27-2022 10:43 AM
Ok then , I will learn more about this , thanks so much for the help !
by the way, do you happen to know how to get the coordinates of a contour ?
- What it should look like :
- What I did (It's too much, it counts every x pixel):
- Is it possible to get the yellow boxes' coordinate? (I'm using Clamp(Rake) function.
04-27-2022 10:55 AM
As I said, I don't have IMAQ here, but I would just make my own algorithm using plain LabVIEW.
For example if all contour points have unique x values, I would just go over all image columns and look for the step transition, then fit them to a suitable polynomial or other function. How much do you know about the shape?
Do you have a raw image? (i.e. without the red markers?)
04-27-2022 12:09 PM
See if this rough draft can give you some ideas. (most likely you need to tune and polish it. adapt to your specific image type, adjust threshold, reject outliers, smooth using polynomial, etc.)
04-27-2022 11:59 PM
Got it !
thanks so much