08-10-2017 07:13 AM
Hi !
I have to do a project on how from 2D image to 3d on LabView!
Thank you for your time in advance.
08-10-2017 08:59 AM
I did things like that and it was fun.
This thread where we talked about the LV software I wrote for a N-Scale model train layout...
may be helpful.
I had this image that was taken while part of the layout was hanging from the rafters in my garage and I was doing the wiring.
I used the pixel colors to define the point colors and added a manual control that I could use to define the elevation.
The edges were a bit wavy but since then LV has added a Cubic Hermite spline that would have worked better and helped with the edges.
Now if you want the color to define the Z-values of your triplets, you will have to come up with a method to convert the color to a magnitude. I favor splitting the color into three vectors, one for each of the RGB planes and then find the magnitude of the vector. Map that to the Z-Value for each point.
I hope you have as much fun as I did when I was doing that project!
Ben
08-18-2017 03:46 AM
Hi niks_radev,
did Ben's great project satisfy your needs? What exactly are you trying to do?
Some other posts which you might find helpful:
Applying Different Textures to Faces of a Cube
Have fun with your project!
09-11-2017 01:05 PM
Hi, Martiko
Thats exactly what i need. The problem is that i can not understand why the Highmap image is mirrored. If you could explain that to me that would be great!