Reconstructing an Image from Pixel Density Using Matlab

Click For Summary
SUMMARY

The discussion centers on reconstructing an image from pixel density data using MATLAB. The user received two matrices from their professor, with one matrix representing pixel intensity in a 1 x 480 format, corresponding to a 24 x 20 pixel image. The solution involves using the MATLAB functions imagesc(...) to display the image and reshape(...,...,...) to convert the intensity matrix into the appropriate dimensions for visualization.

PREREQUISITES
  • Understanding of MATLAB programming
  • Familiarity with matrix manipulation in MATLAB
  • Knowledge of image representation in pixel formats
  • Basic concepts of image processing
NEXT STEPS
  • Explore MATLAB's imagesc function for visualizing data
  • Learn about the reshape function in MATLAB for matrix transformations
  • Investigate image processing techniques in MATLAB
  • Study pixel intensity mapping and its applications in image reconstruction
USEFUL FOR

Students in image processing courses, MATLAB users interested in visualizing data, and anyone looking to understand image reconstruction techniques from pixel intensity matrices.

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 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
31
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K