Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How can i make Compression Ration In this Case

1 Ansicht (letzte 30 Tage)
Nour George
Nour George am 12 Jul. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have this three Questions :
1)Read the Image ('flag.png')
2) convert it into ondex type and display it
3)Compression Ration ((Assignement))
Assignement:
HSI color space
HSV color space
YCbCr color space
I solve the first and second Question but How can i solve the third Question ?
figure
image_mat = imread('picture1.png');
imshow(image_mat)
[image_mat, cmap] = imread('picture1.png');
if isempty(cmap)
if ndims(image_mat) > 2
image_rgb = image_mat;
else
image_rgb = repmat(image_mat, [1 1 3]);
end
else
image_rgb = ind2rgb(image_mat, cmap);
end
imshow(image_rgb)

Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by