How to use Applets to implement the function of halcon function (scale_image_max)
The specific implementation method of the function:
#Stretch target range
targetMin = 0; # Target minimum
targetMax = 255; # Target maximum
CurrentMin; # The minimum gray value of the current image
CurrentMax ; # Maximum grayscale of the current image
#Calculation publicity:
targetMin+((image_matrix(i,j)-currentMin)*(targetMax-targetMin))/(currentMax-currentMin);