ラベル付きおよびセグメント化された画像: http://postimg.org/image/l9ckw4g61/
上の画像のラベル数 (「max」コマンドを使用): 27。
画像に一度に 1 つのラベル (または接続されたコンポーネント) を表示したい:
以下の「for」のようなもの
for(eachlabel in 1:max(labeled_segmented)){
# Show me one label out of 27 each time
}
Rプログラミングでこれをどのように達成できますか?