Plotting Image arrays with Imagesc flips them vertically.
3 ビュー (過去 30 日間)
古いコメントを表示
I have an image contained in an array with (1,1) being in the top left corner. When using imagesc the image flips vertically and the y axis plots from 0-num starting from the bottom. Is there a way I can prevent the image from flipping and have the y-axis count from the top left down?
0 件のコメント
採用された回答
Image Analyst
2016 年 7 月 28 日
It should work correctly. If it doesn't then perhaps the direction got reversed. You can either put
cla reset;
before you call imagesc(), or reverse the direction afterwards
axis ij;
0 件のコメント
その他の回答 (1 件)
Walter Roberson
2016 年 7 月 28 日
"axis ydirection controls the placement of the coordinate system origin and the direction of increasing y values. Set ydirection to ij to place the origin at the upper left corner of the axes. The y values increase from top to bottom. Set ydirection to xy to place the origin at the lower left corner. The y values increase from bottom to top. This is the default value."
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!