フィルターのクリア

Open ROI file (table file) and reconstruct the image intro the boxes to save it.

1 回表示 (過去 30 日間)
Szillat
Szillat 2017 年 12 月 19 日
回答済み: Szillat 2017 年 12 月 19 日
Hi,
it's possible to open one ROI file, where I select some parts from multiple images and save the images, I mean, only what are intro de bolding boxes, into another folder?
Tranks everyone.

採用された回答

Image Analyst
Image Analyst 2017 年 12 月 19 日
You can get the coordinates from the bounding boxes:
row1 = boundingBox(2);
row2 = row1 + boundingBox(4);
col1 = boundingBox(1);
col2 = col1 + boundingBox(3);
subImage = yourImage(row1:row, col1:col2, :);
imwrite(subImage, filename);
or simply use imcrop():
subImage = imcrop(yourImage, boundingBox);
imwrite(subImage, filename);

その他の回答 (1 件)

Szillat
Szillat 2017 年 12 月 19 日
It works well. thanks.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by