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.
我有一个程序可以从硬盘加载图像。该程序是使用 emgu cv 编写的,图像是 Bgr 图像。我想让用户增加/减少图像的亮度/对比度。我怎样才能做到这一点?一些示例代码将不胜感激(因为我仍然是新手)。谢谢。
这取决于您的图像调整要求。
您可以开始使用一些已经包含在 emguCV 中的基本技术,例如直方图均衡和伽马校正。您还可以将它们结合起来以获得更好的结果。
Image<Bgr, byte> inputImage; inputImage._EqualizeHist(); inputImage._GammaCorrect(1.8d);