0

I have been trying to convert a matrix to an image in Halcon. So far I have only managed to do with set_grayval in a for loop through all pixels. Can someone suggest a better way to do it? Thank you!

ucablcu
  • 3
  • 1

1 Answers1

0

This should do it:

get_domain (Image, Domain)
get_region_points (Domain, Rows, Columns)
set_grayval (Image, Rows, Columns, GrayvalValues)
Vladimir Perković
  • 1,351
  • 3
  • 12
  • 30