- xy — Default direction. For axes in a 2-D view, the y-axis is vertical with values increasing from bottom to top.
- ij — Reverse direction. For axes in a 2-D view, the y-axis is vertical with values increasing from top to bottom.
Changing pixel figure coordinates when using imshow
2 ビュー (過去 30 日間)
古いコメントを表示
When I use imshow to plot the pixels represented by a matrix, each pixel is centered in the figure at its matrix coordinates (e.g. the pixel on row 1, column 1 is centered at figure coordinates (1,1)).
Is it possible to change this so that a specific corner of each pixel is positioned at its matrix coordinates? For example, can the pixel on row 1, column 1 be plotted with its lower right corner at figure coordinates (1,1), and so on for all the remaining pixels?
0 件のコメント
回答 (1 件)
Image Analyst
2020 年 7 月 31 日
After you call it, try this:
axis xy
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!