Introduction - If you have any usage issues, please Google them yourself
Take out the grayValue of the picture, make the maximum and minimum order, convert it to the height of Z, so it is convenient to take out the picture corresponding to the Z value of ROI