WOLFRAM

What image coordinate systems does the Wolfram Language use?

There are two common coordinate systems used in the field of image processing and analysis: the matrix coordinate system and the graphics coordinate system. They differ in how the locations of pixels are expressed. 

Matrix or index coordinates

The matrix coordinate space reflects the data matrix stored in the image. The matrix is stored in rows of columns of pixel values. Therefore, pixel locations are the same as their corresponding row and column in the data matrix, where rows run from top to bottom and columns run from left to right.

Pixels are therefore identified by integer coordinates, row number first. Coordinates {5,6} identify the red pixel in the image below. The x direction is down, and the y direction is across.

pixel above eye has integer coordinates.

In the Wolfram Language, functions that operate on both images and data arrays adhere to the matrix coordinate system. Examples include GaussianFilter, ImageConvolve and ImageData.

Image or graphics coordinates

The origin of the image or graphics coordinate system is the bottom-left corner of an image. The x coordinate extends from left to right; the y coordinate extends upward.

Integers give the edges of pixels, like grid lines on graph paper.

An image object with dimensions of {width, height} is placed in the 2D space so that in a position {x,y} given in the standard image coordinate system, x runs continuously from 0 to width and y from 0 to height. The position {0,0} corresponds to the bottom-left corner. In the smiley image, the pixel that was at exactly {5,6} in matrix coordinates is now centered at {5.5,11.5} in image coordinates.

Image pixels are covered by intervals between successive integer coordinate values. Thus, noninteger coordinates are inside a single pixel. Integer coordinates are located on pixel boundaries, however, and take all immediate pixel neighbors into account, either by selecting all neighboring pixels or by taking their average color value.

Wolfram Language functions that focus on images adhere to image coordinates. Examples include ImageValue, ImageCrop and ImageDimensions.

この項目は役に立ちましたか?
はい
いいえ

ご意見・ご提案がおありでしたらお書きください.

フィードバックをありがとうございました.

送信

サポートへのお問合せ

お支払い,アクティベーションに関する質問から技術的な質問まで,お気軽にお問い合せください.

販売代理店 (ライセンスをお持ちの方は、ご購入された代理店にお問い合わせください)

Hulinks

電話:03-5642-8380
Fax:03-5642-8381

soft.sales@hulinks.co.jp
Webサイト

日本電子計算株式会社

電話:03-5210-0184
Fax:03-5210-0229

math_info@cm.jip.co.jp
Webサイト

亘香通商株式会社

電話:045-320-2711
Fax:045-320-9342

sales@senko-corp.co.jp
Webサイト

株式会社シーエムディーラボ

電話:03-3408-8406
Fax:03-3408-8406

info@cmdlab.co.jp
Webサイト