Reconstructing an Image from Pixel Density Using Matlab

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 6K views
krazylion
Messages
2
Reaction score
0
Okay, so my professor is give us two matrices, and wants us to get back the image from which he got these to matrices.
Regardless of the process (which i double checked) I have one remaining matrix that is 1 x 480

This matrix tells me the the intensity (in black and white i think) of each pixel. I know the image is supposed to be 24X20 pixels.

So how do i get back the image. I think I am just looking for a specific function that will allow me to show the pixel density and each pixel, but i don't know how to do that
 
Physics news on Phys.org
NVM --- i got it --- i had to use the function imagesc(...) along with reshape(...,...,...)