How to declare [X,Y] for image?

1 回表示 (過去 30 日間)
Syakira Akmal
Syakira Akmal 2017 年 4 月 3 日
回答済み: KSSV 2017 年 4 月 3 日
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 Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by