display image with individual pixel size dimensions
2 ビュー (過去 30 日間)
古いコメントを表示
I currently have a 30x30 array with intensity values. I can plot this with colour intensity on a 30x30 grid using imagesc.
I also have a 30x30 cell array where each cell contains the x and y dimensions of the corresponding intensity value.
I want to create a colour intensity plot but to define the size of each 'square' using the cell array.
Is this possible?
0 件のコメント
採用された回答
Image Analyst
2015 年 4 月 17 日
You'd have to loop over all cells and stitch them on one at a time, possibly enlarging the existing matrix before stitching. Of course if adjacent blocks have different sizes, then some "background" must show "underneath" the smaller one.
2 件のコメント
Image Analyst
2015 年 4 月 21 日
Just loop and stitch. Here's how to stitch
tallImage = [image1; image2];
wideImage = [image1, image2];
Just build it up horizontal bands first, then loop and stitch all the horizontal bands together.
You can use imshow() to "display" it, not "plot" it.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Modify Image Colors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!