Search found 7 matches

by impoweruser
2013-12-05T14:14:43-07:00
Forum: Users
Topic: How to unwarp an image
Replies: 22
Views: 17530

Re: How to unwarp an image

Actually this is simpler, the colorize step is not needed: convert sample1.png \ \( -clone 0 -negate -scale 96x1! \) \ -fx "j<35*v?black:white" -flip result.png I think my post was deleted somehow ~ anyway, this seems to work ok, but on ocassion there are white specs within the black columns that ...
by impoweruser
2013-12-05T13:33:43-07:00
Forum: Users
Topic: How to unwarp an image
Replies: 22
Views: 17530

Re: How to unwarp an image

try the following. I negate the image, then get the height of the white on a column by column basis and use that height image to generate a new image that draws black from the top of a pure white image as much as the specified height, then flips the image over so that the flat is at the bottom. The ...
by impoweruser
2013-12-05T12:00:51-07:00
Forum: Users
Topic: How to unwarp an image
Replies: 22
Views: 17530

Re: How to unwarp an image

If you shift the bottom down to be flat, what do you expect the top to look like? Should it be curved to preserve the height of the black? Do you just want a rectangle of the same width but average height of the black? It should preserve the height of the black. After second thought, a rectangle ...
by impoweruser
2013-12-05T11:28:22-07:00
Forum: Users
Topic: How to unwarp an image
Replies: 22
Views: 17530

Re: How to unwarp an image

what do you mean by flatten? Do you want it to end up one curve or one straight line or a rectangle? Please clarify I want the bottom of the image to be straight (flat/horizontally), regardless of the curves on the top of the image. So I guess straight line or perhaps even a rectangle would be the ...
by impoweruser
2013-12-05T10:39:33-07:00
Forum: Users
Topic: How to unwarp an image
Replies: 22
Views: 17530

Re: How to unwarp an image

Nice!, guys thanks so much for the replies and effort. My initial post indicated a 1 pixel line and this was because i was simply following the bottom edge of the image im trying to unwarp and I thought this might be the best approach. Ive attached two actual samples. Ill try what snibgo as ...
by impoweruser
2013-12-04T19:21:01-07:00
Forum: Users
Topic: How to unwarp an image
Replies: 22
Views: 17530

Re: How to unwarp an image

sorry if its not clear, i'll be working on a single squgly line that can have a random offset. In other words it can start high and end low or vice versa. It could also be high then low then high (like a warp). Ive tried warping in the opposite direction, but what I cant ewrap my head around is how ...
by impoweruser
2013-12-04T14:51:31-07:00
Forum: Users
Topic: How to unwarp an image
Replies: 22
Views: 17530

How to unwarp an image

Using a combination of pixel editing in my development enviornment + the use IM convert warp distortion, does anyone have any tips or ideas about how to unwarp a randomly warped image? here are 3 examples (hand drawn sorry, but you get the idea), I am looking to have the line straight on horizontal ...