Reconstructing an Image from Pixel Density Using Matlab

In summary, the conversation discusses using two matrices provided by a professor to recreate an image. One remaining matrix with dimensions of 1 x 480 contains the intensity of each pixel in black and white. The individual is unsure of how to use this matrix to recreate the image, but ultimately discovers the function imagesc(...) and reshape(...,...,...) for this purpose.
  • #1
krazylion
2
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
  • #2
NVM --- i got it --- i had to use the function imagesc(...) along with reshape(...,...,...)
 

Similar threads

Replies
4
Views
2K
Replies
1
Views
2K
Replies
2
Views
2K
Replies
32
Views
3K
Replies
2
Views
3K
Replies
7
Views
6K
Replies
2
Views
2K
Back
Top