フィルターのクリア

Draw lines around specific regions in imagesc plot

4 ビュー (過去 30 日間)
Benjy Barnett
Benjy Barnett 2021 年 3 月 11 日
回答済み: Image Analyst 2022 年 12 月 21 日
I have a NxN matrix T that I am plotting with imagesc. This matrix is a matrix of t values. I would like to mark the t values that are significant. Ideally, I would draw around them with a black line in the imagesc plot. I have another NxN matrix of p values P.
So essentially, I want to find every element in P that is less than 0.05, and draw a line around the corresponding point in the imagesc representation of T. Also, if there are multiple elements next to eachtoehr that are below 0.05 in P, the line should ideally encompass all these points in one, rather than each element being encircled on its own.
Like how the top image looks in the attached image.
Thanks
  1 件のコメント
Aleksandar Besevic
Aleksandar Besevic 2022 年 12 月 21 日
Hey, did you ever manage to solve this? Having a similar issue whereby I want to draw a box/rectangle around a defect in an imagesc plot . Contour plot just creates a squiggle inside the pixel which is pretty useless

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

回答 (1 件)

Image Analyst
Image Analyst 2022 年 12 月 21 日

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by