Or say does 1 denotes white for an RGB image?
I have this question because of this answer:
How to convert a grayscale matrix to an RGB matrix in MATLAB?
Can someone clarify it?
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.
Image data in MATLAB can be stored as different data types. The type of image as well as the data type it is stored as will determine what constitutes the color “white”:
A grayscale image matrix (which has one data value per pixel) can be any one of the following data types:
uint8,uint16,int16,single, ordouble. From the documentation:An RGB image matrix (which has three data values per pixel: red, green, and blue) can be any one of the following data types:
uint8,uint16,single, ordouble. From the documentation: