How do i highlight certain region in an image?

11 ビュー (過去 30 日間)
revathi t
revathi t 2016 年 4 月 18 日
回答済み: Afiq Azaibi 2024 年 4 月 26 日
I have done classification for lung diseases. How do i verify that images has been classified correctly. For example, Train image with affected region & Test image with affected region. How do i highlight these affected region?

回答 (2 件)

Image Analyst
Image Analyst 2016 年 4 月 18 日
You can use an overlay
Or you can use bwboundaries() to get the outline of the region and then use plot() to put up a colored outline.

Afiq Azaibi
Afiq Azaibi 2024 年 4 月 26 日
Starting in R2024a, xline, yline, xregion, and yregion all support the ability to appear both behind and in front of objects in an axes using the Layer property:
plot(1:10, LineWidth=4);
x1 = xline(2,LineWidth=4,Alpha=1);
x2 = xline(3,LineWidth=4,Alpha=1,Layer='bottom');
x3 = xregion(4,5,FaceAlpha=1);
x4 = xregion(6,7,FaceALpha=1,Layer='top');
The default for ConstantRegion (the underlying object for xregion and yregion) is to appear in the 'bottom' layer and the default for ConstantLine (the underlying object for xline and yline) is to appear in the 'top' layer.

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by