How to declare [X,Y] for image?

1 次查看(过去 30 天)
Hi, i would like to know how to declare a coordinate for an image?

采纳的回答

KSSV
KSSV 2017-4-3
Let image be of size mxnx3 or mxn depending on binary on rgb. You can define X,Y as follows.
[X,Y]=meshgrid (1:m,1:n)
The above is w.r.t the indices. If you have x axis and y axis values/ positions you can use meshgrid.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by