# Numeric derivation from iminfo

2 Ansichten (letzte 30 Tage)
Life is Wonderful am 8 Feb. 2023
Hi there,
I'm trying to solve the following problem with the iminfo function using info structure for a jpg and png format
out_perf = pixel_rate_MHz * plane_source_bytes_per_pixel * memory_value_microseconds
where
pixel_rate_MHz = Horizontal_Active_Resolution * Vertical_Active_Resolution * Refresh_Rate * (1+ Blanking_Period/100); % need help
plane_source_bytes_per_pixel = ?? % Need help
memory_value_microseconds =?? % Need help
Thank you very much.
##### 0 Kommentare-1 ältere Kommentare anzeigen-1 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Akzeptierte Antwort

Walter Roberson am 8 Feb. 2023
unfortunately in practice the large majority of the time, doing this computation is useless. A lot of images do not have the resolution stored, and it is extremely common to find that the stored resolution is 100 if the image was created using Windows software, or 72 if created using Apple: that is, nominal values are filled in that have nothing to do with the actual resolution.
Calculating actual resolution using the content of the images is not possible unless the image contains items of known size.
I notice however that the equations talk about clock rates and similar. Those kinds of calculations are used for calculation of bandwidth requirements or transmission time requirements, and in such situations, the resolution of the images is irrelevant, with the calculation needing to know the size of the image, rows and columns and color panes, and bits per pixel.
Remember, resolution of a pixel is the real world distance between adjacent pixels. If you were to put in a 10:1 magnifying lens then the resolution would get 10 times higher (until you get down to distances comparable to the wavelength of the light) but the sensor still has the same number of pixels and would record 1/10 as large of a space, leading to the same number of pixels. Resolution is not the number of pixels. An electron force microscope might only produce 16 x 16 pixels but the resolution might be in the nanometer range.
##### 11 Kommentare10 ältere Kommentare anzeigen10 ältere Kommentare ausblenden
Life is Wonderful am 14 Feb. 2023
Sure.
Thanks a lot .

Melden Sie sich an, um zu kommentieren.

### Kategorien

Find more on Convert Image Type in Help Center and File Exchange

R2022a

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by