07-08-2014 10:23 AM
Hi everybody!
So I'm working with a 3D carving machine (Roland MDX-15) and I'm supposed to design a program that can load images and carve them into a piece of wood using Roland MDX-15.
What I have already done is create a program where you can draw an image using the sketch tools from Labview, and the machine will carve it.
The machine is able to carve the picture using vectors (it's following the lines point per point).
Now, I have to do the same, but from a picture that I load into Labview. Therefore, I need to vectorize the picture so that the machine gets a set of lines to draw. A program that already does that is Dr.Engrave (see youtube if you need to understand what I need).
So, does anybody know a "simple" way to transform a picture into a set of vectors?
Thanks in advance!
Valentine
Solved! Go to Solution.
07-08-2014 04:10 PM
It seems ImageMagick can turn images into vetors from the comman line.
http://www.imagemagick.org/script/magick-vector-graphics.php
There are probably other tools that can do this in a similar way.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-08-2014 04:22 PM
Thanks, but maybe I haven't been clear enough. I'd like to load the images in labview (for example in a bmp format) and then, thanks to labview, change them into vectors so that they are made of lines that the machine can easily carve into wood.
Any proposition for labview?
07-09-2014 03:33 AM
Hello VGans,
I have assumed that when you are talking about vectorization any edge detection method would be ok to get you started.
If this is a wrong assumption, then just let me know.
Keeping this in mind:
Have you already taken a look at the "IMAQ CannyEdgeDetection" VI?
This could be a good starting point for vectorization purposes.
Can you let me know if this is what you were looking for?
07-09-2014 08:41 AM - edited 07-09-2014 08:55 AM
Hi Thierry!
It looks like it could be what I'm looking for. Unfortunately, I can't seem to find it. Do you know where I could download it?
Unfortunately, I can't seem to find it. Any idea where I could download it?
And I forgot to mention something quite important: I'm required to work on MAC OSX, and if I'm not mistaking, IMAQ is only supported by Windows.
So if I can't find a way to make it work with IMAQ, I'll try to create my own CannyEdgeDetection.
Thanks a lot!
Valentine
07-09-2014 09:14 AM
Hello Valentine,
To use this VI you would also require the NI Vision Development Module, which is not supported on Mac OS.
The latest NI-IMAQ drivers also do not support Mac OS:
http://digital.ni.com/public.nsf/allkb/4A127014CA6E006B8625787A0066D329?OpenDocument
Are you already able to get your images into LabVIEW?
Are you familiar with edge detection algorithms?
07-09-2014 09:52 AM
Hi,
Yes I'm able to import my images into Labview in BMP or JPEG formats. I've worked on a small "photoshop-like" project before.
However, I'm not familiar with edge detection algorithms, but I've been looking for some information on it. I found some tutorials on the Canny algortihm and Gaussian filter. Normally, I should be able to implement them in Labview.
Thanks for your help!
Valentine
07-09-2014 10:09 AM
Hello Valentine,
If you run into issues, then don't hesitate to post a question on the forum.
07-09-2014 10:15 AM
Vectorizing a bitmap image is particularly difficult.
However, a colleague of mine once created a demo unit that took an image and recreated it on an Etchsketch using a couple of motors connected to the axis controls. This was a few years ago, and the developers behind the image conversion code were from NI UK.
I'll reach out to him and see if he has anything he's able to share with you...
07-09-2014 10:24 AM - edited 07-09-2014 10:24 AM
Wow! Thanks a lot! 🙂
I'm already trying a bunch of things with my teammate, and I'll give my results (good or bad) in this post anyway!
Thanks a lot for all your help! 🙂
BTW: what we're supposed to vectorize are scanned drawings made by children 😉