Bounding Box

조회 수: 7 (최근 30일)
Marium Malik
Marium Malik 2012년 4월 5일
I have the coordinates obtained from the bounding box .As it gives the upper left corners and x_width and y_width. What are the x and y axis of an image? Horizontal axis is x or vertical is x?

채택된 답변

Matt Kindig
Matt Kindig 2012년 4월 5일
An image is specified (like any other matrix) as MxNxP, where M is the number of rows, N is the number of columns, and P=1 or 3 if the image is indexed (P=1) or RGB (P=3). The horizontal coordinate (analgous to the X coordinate with data) would thus correspond to the number of columns. That is, X is the vertical position coordinate of the position, and Y is the horizontal position.
You should also take note of in which directions X and Y are increasing. Note that the upper left corner of the image is at (1,1), while the lower right corner is (M,N). For more information, see "axis ij" in the Help for "axis", i.e.
doc axis

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by