image-processing

Best Padding for Images [closed]

为君一笑 提交于 2020-12-08 04:48:19
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 11 days ago . Improve this question %Padding Part% Padding_Bottom_And_Top = zeros(round(Image_Height/2),Image_Width,3); Side_Padding = zeros(Image_Height+2*size(Padding_Bottom_And_Top,1),Image_Width/2,3); Padded_Image = [Padding_Bottom_And_Top; Original_Image]; Padded_Image = [Padded_Image; Padding_Bottom_And

Best Padding for Images [closed]

流过昼夜 提交于 2020-12-08 04:47:44
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 11 days ago . Improve this question %Padding Part% Padding_Bottom_And_Top = zeros(round(Image_Height/2),Image_Width,3); Side_Padding = zeros(Image_Height+2*size(Padding_Bottom_And_Top,1),Image_Width/2,3); Padded_Image = [Padding_Bottom_And_Top; Original_Image]; Padded_Image = [Padded_Image; Padding_Bottom_And

Improve contrast and quality of barely visible old text written with diluted ink using OpenCV

怎甘沉沦 提交于 2020-12-06 04:26:56
问题 Following is an image of page from old parish records. As you can see, the text is barely visible, this is due to use of ink diluted with little too much water... Still, if you try hard enough, you can actually see the letters. I would like to figure out a way to automatically fix such pages to make the text better visible/readable. Now I have tried manually in IrfanView some basic effects, the best I got was using edge detection, but still it was from from readable. Now I am trying opencv in

Improve contrast and quality of barely visible old text written with diluted ink using OpenCV

馋奶兔 提交于 2020-12-06 04:25:08
问题 Following is an image of page from old parish records. As you can see, the text is barely visible, this is due to use of ink diluted with little too much water... Still, if you try hard enough, you can actually see the letters. I would like to figure out a way to automatically fix such pages to make the text better visible/readable. Now I have tried manually in IrfanView some basic effects, the best I got was using edge detection, but still it was from from readable. Now I am trying opencv in

How I can identify if an image is a photograph or an illustration, logo etc? [closed]

ⅰ亾dé卋堺 提交于 2020-12-05 12:04:36
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 days ago . Improve this question I'm looking for a way to programatically identify if an image is likely to be a photograph vs an illustration/logo/diagram. The images are always JPEG's so I can't use the format metadata on it's own to differentiate (I've also looked at using the dimensions too

How to do alpha matting in python

别来无恙 提交于 2020-12-01 12:19:49
问题 How to do alpha matting in python? More specifically, how to extract the alpha channel of an image, given a trimap which marks pixels as either 100% foreground (white) 100% background (black) or unknown (gray) Input image Input trimap 回答1: Using a library for alpha matting Here are two options, both based on the paper "A Closed Form Solution to Natural Image Matting" by Levin and Lischinski. https://github.com/MarcoForte/closed-form-matting https://github.com/99991/matting The math behind it

How to do alpha matting in python

雨燕双飞 提交于 2020-12-01 12:16:29
问题 How to do alpha matting in python? More specifically, how to extract the alpha channel of an image, given a trimap which marks pixels as either 100% foreground (white) 100% background (black) or unknown (gray) Input image Input trimap 回答1: Using a library for alpha matting Here are two options, both based on the paper "A Closed Form Solution to Natural Image Matting" by Levin and Lischinski. https://github.com/MarcoForte/closed-form-matting https://github.com/99991/matting The math behind it

Fit Quadrilateral (Tetragon) to a blob

怎甘沉沦 提交于 2020-12-01 11:49:29
问题 After applying different filtering and segmentation techniques, I end up with an image like this: I have access to some contours detection functions that return a list of points on the edge of that object, or returns a fitted polygon (with many edges though, much more than 4). I want a way to fit a quadrilateral to that shape as I know it is a front face of a shoebox that is supposed to be a quadrilateral. Due to the perspective view, the parallelity is not conserved so I have no constraints

Fit Quadrilateral (Tetragon) to a blob

让人想犯罪 __ 提交于 2020-12-01 11:49:05
问题 After applying different filtering and segmentation techniques, I end up with an image like this: I have access to some contours detection functions that return a list of points on the edge of that object, or returns a fitted polygon (with many edges though, much more than 4). I want a way to fit a quadrilateral to that shape as I know it is a front face of a shoebox that is supposed to be a quadrilateral. Due to the perspective view, the parallelity is not conserved so I have no constraints

Fit Quadrilateral (Tetragon) to a blob

笑着哭i 提交于 2020-12-01 11:48:58
问题 After applying different filtering and segmentation techniques, I end up with an image like this: I have access to some contours detection functions that return a list of points on the edge of that object, or returns a fitted polygon (with many edges though, much more than 4). I want a way to fit a quadrilateral to that shape as I know it is a front face of a shoebox that is supposed to be a quadrilateral. Due to the perspective view, the parallelity is not conserved so I have no constraints