Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
バイナリ イメージから (行列 MN を使用して) プロットを作成する必要があります。行の平均を見つけるために水平積分射影を使用します。その後、最小平均座標が水平線になるようにします。
水平線の作り方は?
何を求めているのかわかりにくいですが、役立つかもしれないコードを以下に示します。画像の行を合計し、最小合計を見つけてから、最小合計の行に画像と水平線をプロットします。
x = rand(50); [~,i] = min(sum(x,2)); figure imagesc(x) hold on plot(xlim, [i i], 'w')