Rastr qrafik təsvirin həcminin hesablanması

InformaticsRaster Graphics RepresentationMedium

Published:

66. Anar 64 Mbayt həcmə malik rastr formatlı qrafik təsvirdə yalnız aşağıdakı dəyişiklikləri etmişdir:

| | |

|---|---|

| 1 | təsvirdə istifadə olunan palitranı rəng çalarının sayı 2 dəfə az olan palitra ilə əvəz edib |

| 2 | en boyu piksel sayını 4 dəfə azaldıb |

| 3 | uzunluq boyu piksel sayını 2 dəfə artırıb |

Bu dəyişikliklərdən sonra təsvirin həcmi 30 Mbayt olmuşsa, bu təsvirin ilkin vəziyyətində istifadə olunan palitradakı rəng çalarının maksimal sayını müəyyən edin.

This question includes visual content: A table containing three numbered rows indicating modifications to a raster image: (1) Replacing the palette with one containing half the number of colors, (2) Reducing the number of pixels along the width by 4 times, (3) Increasing the number of pixels along the length by 2 times.

Animated Video Solution

The first half plays free, the full solution is in the app.

Step by Step Written Solution

1
Step 1

Salam, gəl bu maraqlı rəqəmsal təsvir məsələsini addım-addım birlikdə həll edək.

Məsələnin Həlli

2
Step 2

Əvvəlcə verilənləri yazaq. İlkin təsvirin həcmi 64 meqabaytdır. Təsvirin ölçülərini eni üçün W və uzunluğu üçün H, rəng dərinliyini isə i ilə işarə edək.

Verilənlər

$$V_1 = W \cdot H \cdot i = 64$$

Dəyişikliklər

$$W_2 = W / 4$$
$$H_2 = 2 \cdot H$$
3
Step 3

Rəng çalarlarının sayı 2 dəfə azaldıqda, hər bir pikselin bit dərinliyi 1 vahid azalır. Yəni yeni rəng dərinliyi i çıxılsın 1 olar.

$$i_2 = i - 1$$
4
Step 4

İndi yeni həcmi, yəni 30 meqabaytı bu dəyişikliklərlə ifadə edək.

$$V_2 = W_2 \cdot H_2 \cdot i_2 = 30$$
5
Step 5

Gəl bu düsturda dəyişiklikləri yerinə qoyaq.

$$30 = (W / 4) \cdot (2 \cdot H) \cdot (i - 1)$$
6
Step 6

İfadəni sadələşdirək. W vur H vur i çıxılsın 1, bölünsün 2 bərabərdir 30-a.

$$W \cdot H \cdot (i - 1) / 2 = 30$$
$$W \cdot H \cdot (i - 1) = 60$$

The rest of this solution is on Solvi

6 more steps are locked. Watch the full animated, narrated solution for free.

Snap a photo, solve any question like this.

Download on the App Store Get it on Google Play

Free to download · First solutions are on us

100K+Questions solved daily
50K+Students learning
4.8 ★App Store rating

About This Question

Subject
Informatics
Topic
Raster Graphics Representation
Difficulty
Medium
Question Type
Open Ended

Solve any question in seconds

Snap a photo and AI explains it step by step with voice and animation.

Download on the App Store Get it on Google Play
Solvi
The full solution is in the appFree to download · First solutions are on us
Get