Let's suppose that Region to be a mask of a gray-level image after the threshold process.
Here is an example of how to get all the rows and columns of the Region in Halcon.
get_region_points (Region, Rows, Columns)
tuple_sort_index (Columns, Indices)
NewCol:=Columns[Indices]
NewRow:=Rows[Indices]
請先 登入 以發表留言。