[mmString] [Up] | Data Types |
The pixel coordinates data type is an int32 vector of up to three values depending on the image dimensionality: 1D: [column]; 2D: [row,column]; 3D: [depth,row,column]. The top-left pixel of a 2D image is at the coordinates [0,0]. The center pixel of a structuring element is at coordinates [0,0] increasing from left to right and top to down.
In the example below, a one pixel structuring element centered at the origin [0,0] is translated one row down and two columns to the left:
>>> b = mmsetrans(mmbinary([1]),[1,-2])
>>> print mmseshow(b)
[[0 0 0 0 0] [0 0 0 0 0] [1 0 0 0 0]]
[mmString] [Up] | ![]() |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |