projective_trans_pixel T_projective_trans_pixel ProjectiveTransPixel ProjectiveTransPixel projective_trans_pixel (算子)
名称
projective_trans_pixel T_projective_trans_pixel ProjectiveTransPixel ProjectiveTransPixel projective_trans_pixel — 使用齐次投影变换矩阵投影像素坐标。
签名
void ProjectiveTransPixel (const HTuple& HomMat2D , const HTuple& Row , const HTuple& Col , HTuple* RowTrans , HTuple* ColTrans )
void HHomMat2D ::ProjectiveTransPixel (const HTuple& Row , const HTuple& Col , HTuple* RowTrans , HTuple* ColTrans ) const
void HHomMat2D ::ProjectiveTransPixel (double Row , double Col , double* RowTrans , double* ColTrans ) const
static void HOperatorSet .ProjectiveTransPixel (HTuple homMat2D , HTuple row , HTuple col , out HTuple rowTrans , out HTuple colTrans )
void HHomMat2D .ProjectiveTransPixel (HTuple row , HTuple col , out HTuple rowTrans , out HTuple colTrans )
void HHomMat2D .ProjectiveTransPixel (double row , double col , out double rowTrans , out double colTrans )
def projective_trans_pixel (hom_mat_2d : Sequence[float], row : MaybeSequence[Union[float, int]], col : MaybeSequence[Union[float, int]]) -> Tuple[Sequence[float], Sequence[float]]
def projective_trans_pixel_s (hom_mat_2d : Sequence[float], row : MaybeSequence[Union[float, int]], col : MaybeSequence[Union[float, int]]) -> Tuple[float, float]
描述
projective_trans_pixel projective_trans_pixel ProjectiveTransPixel ProjectiveTransPixel ProjectiveTransPixel projective_trans_pixel applies the homogeneous projective
transformation matrix HomMat2D HomMat2D HomMat2D HomMat2D homMat2D hom_mat_2d to all input pixels
(Row Row Row Row row row ,Col Col Col Col col col ) and returns an array of output pixels
(RowTrans RowTrans RowTrans RowTrans rowTrans row_trans ,ColTrans ColTrans ColTrans ColTrans colTrans col_trans ). The transformation is
described by the homogeneous transformation matrix given in
HomMat2D HomMat2D HomMat2D HomMat2D homMat2D hom_mat_2d 。
The difference between projective_trans_pixel projective_trans_pixel ProjectiveTransPixel ProjectiveTransPixel ProjectiveTransPixel projective_trans_pixel and
projective_trans_point_2d projective_trans_point_2d ProjectiveTransPoint2d ProjectiveTransPoint2d ProjectiveTransPoint2d projective_trans_point_2d lies in the used coordinate
system: projective_trans_pixel projective_trans_pixel ProjectiveTransPixel ProjectiveTransPixel ProjectiveTransPixel projective_trans_pixel uses a coordinate system with
origin in the upper left corner of the image, while
projective_trans_point_2d projective_trans_point_2d ProjectiveTransPoint2d ProjectiveTransPoint2d ProjectiveTransPoint2d projective_trans_point_2d uses the standard image coordinate
system, whose origin lies in the middle of the upper left pixel and
which is also used by operators like area_center area_center AreaCenter AreaCenter AreaCenter area_center 。
projective_trans_pixel projective_trans_pixel ProjectiveTransPixel ProjectiveTransPixel ProjectiveTransPixel projective_trans_pixel corresponds to the following steps
(input and output points as homogeneous vectors):
If a point at infinity (WTrans = 0) is created by the
transformation, an error is returned.
更多信息
有关 HALCON 中使用的不同二维坐标系的说明,请参阅 变换 / 二维变换 一章的引言。
执行信息
多线程类型:可重入(与非独占算子并行运行)。
多线程作用域:全局(可从任何线程调用)。
在内部数据级别上自动并行化。
参数
HomMat2D HomMat2D HomMat2D HomMat2D homMat2D hom_mat_2d (输入控制) hom_mat2d → HHomMat2D , HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Homogeneous projective transformation matrix.
Row Row Row Row row row (输入控制) point.x(-array) → HTuple MaybeSequence[Union[float, int]] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
输入像素(行坐标)。
默认值:
64
建议值:
0, 16, 32, 64, 128, 256, 512, 1024
Col Col Col Col col col (输入控制) point.y(-array) → HTuple MaybeSequence[Union[float, int]] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
输入像素(列坐标)。
默认值:
64
建议值:
0, 16, 32, 64, 128, 256, 512, 1024
RowTrans RowTrans RowTrans RowTrans rowTrans row_trans (输出控制) point.x(-array) → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
输出像素(行坐标)。
ColTrans ColTrans ColTrans ColTrans colTrans col_trans (输出控制) point.y(-array) → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
输出像素(列坐标)。
可能的前趋
vector_to_proj_hom_mat2d vector_to_proj_hom_mat2d VectorToProjHomMat2d VectorToProjHomMat2d VectorToProjHomMat2d vector_to_proj_hom_mat2d ,
hom_vector_to_proj_hom_mat2d hom_vector_to_proj_hom_mat2d HomVectorToProjHomMat2d HomVectorToProjHomMat2d HomVectorToProjHomMat2d hom_vector_to_proj_hom_mat2d ,
proj_match_points_ransac proj_match_points_ransac ProjMatchPointsRansac ProjMatchPointsRansac ProjMatchPointsRansac proj_match_points_ransac ,
proj_match_points_ransac_guided proj_match_points_ransac_guided ProjMatchPointsRansacGuided ProjMatchPointsRansacGuided ProjMatchPointsRansacGuided proj_match_points_ransac_guided ,
hom_mat3d_project hom_mat3d_project HomMat3dProject HomMat3dProject HomMat3dProject hom_mat3d_project
另见
projective_trans_image projective_trans_image ProjectiveTransImage ProjectiveTransImage ProjectiveTransImage projective_trans_image ,
projective_trans_image_size projective_trans_image_size ProjectiveTransImageSize ProjectiveTransImageSize ProjectiveTransImageSize projective_trans_image_size ,
projective_trans_region projective_trans_region ProjectiveTransRegion ProjectiveTransRegion ProjectiveTransRegion projective_trans_region ,
projective_trans_contour_xld projective_trans_contour_xld ProjectiveTransContourXld ProjectiveTransContourXld ProjectiveTransContourXld projective_trans_contour_xld ,
projective_trans_point_2d projective_trans_point_2d ProjectiveTransPoint2d ProjectiveTransPoint2d ProjectiveTransPoint2d projective_trans_point_2d
模块
基础