how to create a white image?

Technical Source
1 min readJan 31, 2024

--

I would like to create a NxM white image. But how to put color vectors [256 256 256] into a 2D array?

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Try this to create a grayscale image:

whiteImage = 255 * ones(N, M, 'uint8');
imshow(whiteImage);

To create an RGB image, try this:

whiteImage = 255 * ones(480, 640, 3, 'uint8');
imshow(whiteImage);

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet