05-01-2013 02:50 PM - edited 05-01-2013 02:51 PM
Quick Q for the guys who may know something about this more than I do.
My Boss wants me to try to find a way to quickly extract some measured edge detection, given a set of jpg images.
The idea is to measure the minimum distance across the black boundary as shown in the attached image. (Just one measurement of distance across the boundary)
I know of imageJ and heard of the imageJ VI but have had little time to spend learning basic imaging techniques and have been rather reluctant to take this on without some help getting started.
Questions I have are
Can labVIEW do this at all?
If I have the images I need as jpegs how would I begin to solve this problem?
Thanks to all who have time to respond.
edit: please ignore the text in the supplied image as it is not very clear.
05-02-2013 01:28 AM
Hi,
A possible way of doing this, is using the edge detection. Don't use it from outside to inside, but from inside to outside.
It will detect the left point of your arrow (d) and the right point of your arrow (d).
When substracting the x-positions => width.
If you need it, I can set you up an example, but you can use the vision builder feature as well, which is a really easy and convenient way of testing things without having to program.
Afterwards you can create a VI from what you built in there
05-02-2013 11:27 AM
Thank You ABCPrograms
Unfortunately, I have never looked at a binary representation of a jpg file before and I do not have the image builder..
Are you saying I can import the file directly into an array and then work on it?
If you can think of an example that would be a great time saver for me to work with!
Thank You
05-02-2013 12:43 PM
05-03-2013 02:06 PM - edited 05-03-2013 02:08 PM
I don't have vision builder right now. I guess I should try to get it since I am not sure how to load an image directly into LabVIEW.
(you can see I have zero experience with this)
What I do know is that
each video is broken down into jpg files where each file represent a frame of the video. 30 fps =30 files /sec
We are using edit: (proprietary software) for this part of it.
I guess I would need to define a region of interest in all the jpg's.
Then from there I would have to have the data inside region of interest converted to Binary Black/white contrast to make edge detection simpler.
Then from there do some kind of scanning from left to right or vice versa to first find and then define the edge of the shape.
(I do not think the center outwards would not work for me because the shape is always changing and thus there is no static center. Our camera is not stabilized so there
may be some horizontal jitter in the image from the physical shaking that may be occuring during video acquisition.
Again I have no idea if my thinking is right or completely off at this point.
05-06-2013 09:42 AM
If you wanted to do this in LabVIEW you would need to get the Vision Development Module. This includes many image processing VIs that you would need. If you know where on the image you want to me measuring (y position) you could do a single horizontal line edge detector to find both edges and then use the positions to find the width. You could do a similar process in Vision Builder AI if you did not want to develop code in LabVIEW, but those would be the two easiest options.
05-06-2013 12:11 PM
@AKA_TG wrote:
Quick Q for the guys who may know something about this more than I do.
My Boss wants me to try to find a way to quickly extract some measured edge detection, given a set of jpg images.
The idea is to measure the minimum distance across the black boundary as shown in the attached image. (Just one measurement of distance across the boundary)
I know of imageJ and heard of the imageJ VI but have had little time to spend learning basic imaging techniques and have been rather reluctant to take this on without some help getting started.
Questions I have are
Can labVIEW do this at all?
If I have the images I need as jpegs how would I begin to solve this problem?
Thanks to all who have time to respond.
edit: please ignore the text in the supplied image as it is not very clear.
Hi AKA_TG!
Are you looking forward to calculate the outline of an (binary) image?
Then you maybe interested in this article:
e.g. : http://devblog.phillipspiess.com/2010/02/23/better-know-an-algorithm-1-marching-squares/
05-06-2013 01:55 PM
Oh and I forgot, there's an demo called "Edge Detection with 2D Convolution" in examples\analysis\dspxmpl.llb
05-07-2013 12:59 PM - edited 05-07-2013 01:01 PM
Thank you Alexderjuengere
and CameronT for your feedback.
I think my first step is to get the vision builder. edit: Opps... Vision Development module.
05-09-2013 12:02 PM
Hi AKA_TG!
Are you looking forward to calculate the outline of an (binary) image?
Then you maybe interested in this article:
e.g. : http://devblog.phillipspiess.com/2010/02/23/better-know-an-algorithm-1-marching-squares/
I am sorry I cannot view those links from work. Smart filter says they are games. 😞
I will try to view them at home when I have free time.
Thanks for sharing.