LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Show Images in Grayscale matrix U16 - Kinect

Hello everyone, this is my first post. I'm using google translator to translate from Portuguese to English. I always programmed in LabVIEW to perform calculations, and other serial communication, but I'm starting my PCC and will use the Kinect with a robot, I've done some programming to capture RGB U32 and it worked, but with
Grayscale images did not work. I'll post more detail.
 
Well, this picture is a program I made to capture and display in RGB U32:

medium.png

 

 

And this is her programming:

large.png

 

This programming worked perfectly, and based upon
I started programming for the image in Grayscale U16. but
did not work the first time, on the screen where the image appears
got 2 identical image and dividing the screen.

 

This is the result:

medium (1).png

 

 

And this is her programming:

large (1).png

 

To improve the image was divided into 2, I made an adjustment of a matrix,
this matrix was leaving the format and converted U32 to U16. It worked well, but
the image has vertical lines are totally black and very disruptive visualization.
The image:

medium (2).png

 

Zoom in the image:

medium (3).png

 

That was the programming used in the image above:

 

large (2).png

 

Viewing the image above we can see that I start with IMAQ U16 grayscale (grayscale Usigned 16-bit), but the square
vermelo I use a function "1d array to color" and I think that's what this going wrong, I searched and did not find any function that would "1d array to gray" (not sure if there is). Soon it comes out of a wire array and converted U32 to U16. But that did not work, it worked, but the picture was bad as mosta the figure above.
 
 
If anyone knows how to solve this problem, please help me because now I spent much time studying and trying to solve it.
It may be something very easy but never worked using images in LabVIEW.
Thank you all!

 

 

0 Kudos
Message 1 of 3
(2,253 Views)

Good morning, Camilo.

 

If you feel that it would be better explain your doubt in Portuguese, feel free to post it in our Portuguese community. Otherwise, please post your code here, that will be much better for us to understand what is the problem and how to fix it.

http://forums.ni.com/t5/Comunidade-em-Portugu%C3%AAs-BR/ct-p/9170

 

Regards,

 

 

Se você preferir explicar a sua dúvida em Português, sinta-se à vontade em postá-la na nossa comunicade em Português. Caso contrário, por favor, poste o seu código aqui, pois será muito melhor para entendermos o problema e resolvê-lo

http://forums.ni.com/t5/Comunidade-em-Portugu%C3%AAs-BR/ct-p/9170

 

Cordialmente,

 

Plínio Costa
Senior Techinical Support Engineer
National Instruments Brazil



0 Kudos
Message 2 of 3
(2,226 Views)

Morning Pliny
 
I posted the same doubt in the Brazilian forum but had no response and thought I'd post here.
Follow the link:http://forums.ni.com/t5/Discuss%C3%A3o-sobre-Produtos-NI/Programar-para-exibir-Imagens-em-U16-Escala...
 
If you can help me thank you!
 
Att Camilo Jr.

 

-----------------------------------------------------------------------

 

Bom dia Plínio,

 

já postei a mesma duvida no forum brasileiro, mas não tive nenhuma resposta e achei melhor postar aqui.

Segue o link: http://forums.ni.com/t5/Discuss%C3%A3o-sobre-Produtos-NI/Programar-para-exibir-Imagens-em-U16-Escala...

 

Se você puder me ajudar agradeço!

 

Att. Camilo Jr.

0 Kudos
Message 3 of 3
(2,220 Views)