TiledLayout or Montage for combining my images?

7 ビュー (過去 30 日間)
Martin Vrátný
Martin Vrátný 2023 年 7 月 21 日
コメント済み: Martin Vrátný 2023 年 7 月 22 日
Hello,
I've been trying to make use of a montage command in matlab, but if i use it like so
montage(my_imageDatastore,"Size", [14 4]);
then it fills the montage row by row and that is a problem for me. I know that i can swtich the size dimensions, but then the imgs are really small and not suitable for .png export.
This next code snippet does what i need. I need to preserve the columns so that i can compare images in rows.
tiledlayout(1,4,"TileSpacing","none","Padding","tight")
ax1 = nexttile;
imshow(imtile(TEMPLATES,'GridSize',[14 1]),'Border','tight');
ax2 = nexttile;
imshow(imtile(D1_randn,'GridSize',[14 1]),'Border','tight');
ax3 = nexttile;
imshow(imtile(D1_wini_randn,'GridSize',[14 1]),'Border','tight');
ax4 = nexttile;
imshow(imtile(D1_wini,'GridSize',[14 1]),'Border','tight');
this code have a different problem, which is that it has a lot of space between the columns
This img is exported from 'montage' command .
This img is exported from 'tiledlayout' code snippet.
I would live to combine these two approaches, preserve the columns and have no white space between the columns.
Am i doing this with right tools? Did i miss some parameters that easily fix my issue?
Thanks in advance for any tips.

採用された回答

Image Analyst
Image Analyst 2023 年 7 月 21 日
Doesn't imtile return an image? Just stitch those together, like
bigImage = [tile1, tile2, tile3, tile4];
imshow(bigImage);
  1 件のコメント
Martin Vrátný
Martin Vrátný 2023 年 7 月 22 日
You are right, thank you.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by