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).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151481/image.jpeg)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/151485/image.png)
1 件のコメント
Image Analyst
2015 年 6 月 22 日
What function did you call? Doesn't dwt2() give you all 4 as separate output arrays?
回答 (1 件)
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)
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!