Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在比较它们之前对图像进行预处理。因此,我在比较之前使它们的亮度和对比度相同,并对它们进行灰度缩放。为了计算亮度,我使用了公式
((Red value X 299) + (Green value X 587) + (Blue value X 114)) / 1000
是否有任何公式可以让您获得图像中的对比度值或对比度,以便我可以在比较之前将两个图像设置为相同的对比度?
匹配两个或多个图像的对比度级别的标准方法是直方图均衡和直方图匹配。