Is it possible to convert depth (measured z-distance in BYTE) to color (8 bit Grayscale) in Qt? My input is only a BYTE. I need to convert it to color. Please help
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume
BYTEis a typedef as follows :As a
BYTEcan represent values from 0 to 255, you can use it directly to create a `QColor object, using the value stored in the byte as the intensity for the red, green and blue values :