Aardvark.Base


CoordTransforms

Various coordinate transformations.

Abbreviations: ll = lower left, lr = lower right, ul = upper left, ur = upper right

2D: Normalized Image Pos: Our coord-exchange format; Independent of reolution. (0,0)=ul edge of sensor = ul edge of ul pixel, (1,1) = lr edge of sensor = lr edge of lr pixel.

Pixel Center: (0,0)=center of ul pixel, (w-1, h-1)=center of lr pixel.

Pixel Edge: (0,0)=ul edge of ul pixel, (w-1, h-1)= lr edge of lr pixel.

Static members

Static memberDescription
NormalizedImagePosToPixelCenter(...)
Signature: (pos:V2d * imgSizeInPixel:V2i) -> V2d

Convert from normalized image position [0,1][0,1] to pixel-center position (The inverse of toNormalizedImgPos.)

NormalizedImagePosToPixelCenter(...)
Signature: (pos:V2d * imgSizeInPixel:V2l) -> V2d

Convert from normalized image position [0,1][0,1] to pixel-center position (The inverse of toNormalizedImgPos.)

NormalizedImagePosToPixelCenterMat(...)
Signature: imgSizeInPixel:V2d -> M33d

Returns a Matrix to convert from normalized image position [0,1][0,1] to pixel-center position (The inverse of toNormalizedImgPos.)

NormalizedImagePosToPixelCenterRound(...)
Signature: (pos:V2d * imgSizeInPixel:V2i) -> V2i

Convert from normalized image position [0,1][0,1] to already rounded pixel-center position.

NormalizedImagePosToPixelCenterRound(...)
Signature: (pos:V2d * imgSizeInPixel:V2l) -> V2l

Convert from normalized image position [0,1][0,1] to already rounded pixel-center position.

NormalizedImagePosToPixelEdge(...)
Signature: (pos:V2d * imgSizeInPixel:V2d) -> V2d
NormalizedImagePosToPixelEdgeMat(...)
Signature: imgSizeInPixel:V2d -> M33d
NormalizedImagePosToPixelEdgeRound(...)
Signature: (pos:V2d * imgSizeInPixel:V2d) -> V2i
PixelCenterToNormalizedImgMat(...)
Signature: imgSizeInPixel:V2d -> M33d

Returns a Matrix to convert from pixel-center position to normalized image position [0,1][0,1]. (The inverse of toPixelCenter.)

PixelCenterToNormalizedImgPos(...)
Signature: (pos:V2d * imgSizeInPixel:V2d) -> V2d

Convert from pixel-center position to normalized image position [0,1][0,1]. (The inverse of toPixelCenter.)

PixelCenterToNormalizedImgPos(...)
Signature: (pos:V2i * imgSizeInPixel:V2d) -> V2d
PixelCenterToNormalizedImgPos(...)
Signature: (x:int * y:int * imgSizeInPixel:V2d) -> V2d
PixelEdgeToNormalizedImgMat(...)
Signature: imgSizeInPixel:V2d -> M33d
PixelEdgeToNormalizedImgPos(...)
Signature: (pos:V2d * imgSizeInPixel:V2d) -> V2d
PixelEdgeToNormalizedImgPos(...)
Signature: (pos:V2i * imgSizeInPixel:V2d) -> V2d
Fork me on GitHub