gain: this is the value for adjusting the contrast (difference in brightness)
increasing this value will make the part image darker than the nozzle.
offset:this is the value for adjusting the brightness of the entire image.
increaing this value increase the brightness of the image