How to show a quarter portion of image on a whole image area?

5 次查看(过去 30 天)
I am using DWT in my code. After, applying DWT on an image, i get the resultant image as shown in attached figure (DWT output).
Now i want the LL part to be displayed alone in the full image area as shown in figure attached (required output), means black portion (as shown in the DWT OUTOUT IMAGE) should not be visible, instead the LL part should cover that portion.

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2015-6-22
A = imread('yourfile.jpg');
[n,m,~]=size(A);
B=A(1:fix(n/2),1:fix(m/2),:);
imshow(B)

类别

Help CenterFile Exchange 中查找有关 Wavelet Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by