MATLAB Reconstructing an Image from Pixel Density Using Matlab

AI Thread Summary
To reconstruct an image from two given matrices, the key step involves using a 1 x 480 matrix that represents pixel intensity values. The intended image size is 24 x 20 pixels. The solution requires utilizing specific functions in programming, particularly imagesc(...) for displaying the image and reshape(..., ..., ...) to format the pixel data correctly. This approach effectively translates the intensity values back into a visual representation of the image.
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(...,...,...)
 

Similar threads

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