09-22-2022 02:23 AM
Hello:
I am new to LabView and Boss ask me to turn a gray color image file into 3d graph
Do LabView have tools to do so?
I have attach sample photo image I get from internet and how the x,y,z graph will look like.
Solved! Go to Solution.
09-22-2022 05:48 AM
Not fully understand what " gray color image " means, but it seems to be that you can convert Color image to Gray using IMAQ ExtractSingleColor Plane (using Intensity or Luminancy of your choice), then convert Image to Array using IMAQ ImageToArrray and finally show in 3D using 3D Survace.vi. That is all. You will not get exactly the same appearance as shown on your screenshot , but very close to.
09-22-2022 08:31 AM
@Andrey_Dmitriev wrote:
Not fully understand what " gray color image " means, but it seems to be that you can convert Color image to Gray using IMAQ ExtractSingleColor Plane (using Intensity or Luminancy of your choice), then convert Image to Array using IMAQ ImageToArrray and finally show in 3D using 3D Survace.vi. That is all. You will not get exactly the same appearance as shown on your screenshot , but very close to.
like this but without imaq blocks:
it is worth mentioning, the 3d Surface plot does allow user-defined color ramps, which can be retrieved from the original 2d image:
preview: