05-22-2013 09:19 AM
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:
And this is her programming:
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:
And this is her programming:
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:
Zoom in the image:
That was the programming used in the image above:
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!
05-24-2013 09:23 AM
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,
05-24-2013 09:50 AM - edited 05-24-2013 09:52 AM
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.