English 中文(简体)
我如何利用开放式的图像实现对比和亮度。
原标题:How do I equalize contrast & brightness of images using opencv?

我播下了我扫描的图像,但白皮书在屏幕上不是白色的。 是否有办法使合同/权利平等,使背景名白?

”/

<>Update>

我曾尝试过建议的图像。 荣誉:

string file = @"IMG_20120512_055533.jpg";
Image<Bgr, byte> originalColour = new Image<Bgr, byte>(file);

Image<Bgr, byte> improved = originalColour.Clone();
improved._EqualizeHist();

但结果更糟(在第一次电线缩小时):

”/</a

我没有其他参数?

最佳回答
问题回答

我建议使用A AdaptationThreshold。 它通过在图像中为每台纸浆铺设当地邻里门槛值(当有梯度背景时,这实际上是一种大事,比你的形象更强大。 <代码>blockSize参数为邻里面积,处理过的餐具价值必须大于平均邻里价值减去<代码>第1段<>。

“entergraph

这里是怎样做的(应该很容易转化为c):

import cv
im = cv.LoadImage("9jU1Um.jpg", cv.CV_LOAD_IMAGE_GRAYSCALE)
cv.AdaptiveThreshold(im, im, 255, cv.CV_ADAPTIVE_THRESH_MEAN_C, 
                                  cv.CV_THRESH_BINARY, blockSize=31, param1=15)
cv.ShowImage( image , im)
cv.WaitKey(0)

平等 页: 1 我不知道它的名字,但结果应该是你所需要的——更光明的背景和更黑暗的文本。

http://www.ohchr.org。

仅提取edge(与图像增强技术有很大不同)就可简单地应用Canny。 选择20和60这两个门槛值,以便开始,然后增加(或减少)在两门之间保持3:1的配对,直到你有良好的edge形象。

不管怎么说,你还可以检查每台鞋子。 将其确定价值定为0,如果超出定义价值,则确定为255。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签