Accelerate - Lower the threshold for contrast stretching
问题 I am using Swift and Accelerate and am trying to color-correct an image using the vImageContrastStretch method available in Accelerate's vImage module. When I try to stretch the histograms I get a result which does do exactly what I want, but it is a bit too relaxed. The resulting image histograms still have unwanted space on the sides. As you can see in the image, the result of the vImageContrastStretch (middle) operation still has some room for snipping on both sides of the histogram