ni.com is currently experiencing issues.
Support teams are actively working on the resolution.
ni.com is currently experiencing issues.
Support teams are actively working on the resolution.
05-08-2017 03:10 AM
Hello to all.
First of all thanks a lot for reading this post and being able to help.
I would like the next:
1- I have an image, for example this:
2- User has to draw a ROI to check the logo:
My program has already done this.
But now I want the program to adjust the User ROI automatically to min/max black edges like this (red bounding rect):
So how can adjust the User ROI to min/max black adges detected?
Thanks a lot.
Solved! Go to Solution.
05-09-2017 12:13 AM
05-09-2017 02:32 AM
Hello, thanks for replying.
Sorry for bad explanation.
I detect User Roi with property node of the Image Indicator.
So I would liket to do the next:
1-User draws a ROI (I get this ROI with property node of the Image Indicator)
2-Inside that ROI program has to detect the min/max black edges(vertically and horizontally).
3-Then replace programatically the ROI that user drew (green ROI in post1) for a new ROI (red ROI in post 1).
So my problem is how to detect the min/max black edges that there is inside user ROI (green ROI) in image.
Do I explain??
Thanks a lot!
05-09-2017 03:45 AM
05-09-2017 03:52 AM
Thanks a lot.
It seems really interesting "partycle measurements" and its bounding box particle.
What is the name of the VI which get that bounding box particle (particle inside a ROI that user draws) ?
I check this as well: http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_find_edge/
Thanks again
05-09-2017 03:59 AM
05-11-2017 03:11 AM
Hello!
Finally I have used max hor/ver clamp.vi.
Those VI work really good for what I wanted to do. I have followed the next steps:
1-Select a ROI User.
2-Get max horizontal/vertical black points inside the ROI User
3-Create a rectangle with those points
Thanks a lot.