Ouchface
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Misc. > Everything Else > Is there imaging software that can do this?
 
Author
All times are GMT. The time now is 06:53. Post New Thread    Post A Reply
invictius
Member


Posts: 546
Registered: 03-06


Looking for something/a method that could take this:

http://i.imgur.com/LvKYaJB.png

and remove most of the black in the line, leaving only a very thin outline. Preferably a batch of them.

Old Post 12-10-13 21:44 #
invictius is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Magnetick
Mini-Member


Posts: 75
Registered: 09-13


I'm sure it can be done with Gimp. I doubt we can help you find a program specifically for that, though.

Old Post 12-10-13 22:24 #
Magnetick is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
darknation
Forum Staple


Posts: 3082
Registered: 03-02


PSP 5

copy road
paste road new layer. Erode.
paste road new layer (screen). Negative image.
combine layers.

-

Alternatively, Tippex pen and photocopier. Sometimes the old ways are the best.

Old Post 12-10-13 23:44 #
darknation is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 10686
Registered: 07-07


Magic wand, select black zone. Reduce selection by a couple pixels. Fill selection with white.

Old Post 12-10-13 23:47 #
Gez is online now Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Maes
I like big butts!


Posts: 11784
Registered: 07-06


There are several line and shape thinning (or "skeletonizing") algorithms, though implementing one in particular is often done part of a uni/college DIP course. Yours sounds like a textbook case (e.g. "detect all vertical lines in an image..." but it's still too specific to find a general purpose tool that can do it.

For example, it will be very hard to constrain the thinning to ONE particular feature/line of an image without complicating the detection procedure, unless you can always guarantee e.g. that the thick black line will always be at the left of the picture and/or will always be nearly-vertical, and that you will only process B&W pics.

In case you have some nerd friend that likes coding for free, I can outline how *I* would proceed:


  1. Peform image thresholding (transform binary B&W)
  2. Perform Hough transform for line detection
  3. Detect strong vertical lines (implying large thickness)
  4. Perform thinning algo only on region(s) corresponding to said lines.

Old Post 12-10-13 23:48 #
Maes is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
darknation
Forum Staple


Posts: 3082
Registered: 03-02


or use freehand/flash to draw a 4pt white vector line up the middle of the fucker.

http://s21.postimg.org/u2ui24gdz/road3.gif

took about ten seconds total.

Last edited by darknation on 12-11-13 at 00:42

Old Post 12-11-13 00:25 #
darknation is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
invictius
Member


Posts: 546
Registered: 03-06


Hmm, seems like whenever I copy the original (pdf) to a jpeg, it's as pixelly as hell when zoomed in to the size I need. Is there any way to quickly turn that road into a single, very, very thin line?

Old Post 12-11-13 00:57 #
invictius is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Snakes
Forum Staple


Posts: 2298
Registered: 09-09



invictius said:
Is there any way to quickly turn that rod into a single, very, very thin line?

FTFY

... I'm so sorry.

Old Post 12-11-13 01:57 #
Snakes is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
invictius
Member


Posts: 546
Registered: 03-06



Snakes said:

FTFY

... I'm so sorry.



Not to worry, I guess my canvas size is too small or something.

Old Post 12-11-13 02:11 #
invictius is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
gggmork
If you can make any sense of this post, congratulations


Posts: 2652
Registered: 06-07


How many do you have to do (hundreds?)
Is the line always pretty much verticle? Always on left?
Do you have to keep those "X" markings?
Also what the hell is it and why does it need to be thin?

Old Post 12-11-13 02:34 #
gggmork is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
invictius
Member


Posts: 546
Registered: 03-06



gggmork said:
How many do you have to do (hundreds?)
Is the line always pretty much verticle? Always on left?
Do you have to keep those "X" markings?
Also what the hell is it and why does it need to be thin?



1) A few dozen.

2) Being a road diagram, things can become quite squiggly.

3) Nope.

4) See above, and I thought instead of whiting out the majority of it, if the whole thing was really thin, I could copy it and drag it to the right, essentially doing the same thing, only easier perhaps.

Old Post 12-11-13 02:55 #
invictius is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
gggmork
If you can make any sense of this post, congratulations


Posts: 2652
Registered: 06-07


Is your ultimate goal to make it less pixely? Like you want a thin line so you can "copy and drag it to the right" thus making a thick line again, only where the line is completely black with white edges when zoomed in (instead of having little dots of anti aliased pixels)?

Old Post 12-11-13 03:31 #
gggmork is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
GreyGhost
Why don't I have a custom title by now?!


Posts: 8138
Registered: 01-08



invictius said:
1) A few dozen.
Are you organising an illegal motor race on the Midland Highway?

Old Post 12-11-13 04:17 #
GreyGhost is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Maes
I like big butts!


Posts: 11784
Registered: 07-06



invictius said:
Hmm, seems like whenever I copy the original (pdf) to a jpeg, it's as pixelly as hell when zoomed in to the size I need. Is there any way to quickly turn that road into a single, very, very thin line?


That looks like a bitmap (non-vector) scan of a map, so it must have a finite resolution. When exporting it, you risk either chopping it up even further, or zooming/enlarging so much that automatic interpolation is produced, and if this is to be automatically processed, you don't want either.

Your best bet, IMO, is findind a different source for that portion of the map (preferably in a vector format like SVG) and edit that to suit your needs.

Old Post 12-11-13 08:29 #
Maes is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
invictius
Member


Posts: 546
Registered: 03-06



Maes said:


That looks like a bitmap (non-vector) scan of a map, so it must have a finite resolution. When exporting it, you risk either chopping it up even further, or zooming/enlarging so much that automatic interpolation is produced, and if this is to be automatically processed, you don't want either.

Your best bet, IMO, is findind a different source for that portion of the map (preferably in a vector format like SVG) and edit that to suit your needs.



No vector unfortunately, it's a scan from paper, however that was from the PDF, I also did them as jpg, this isn't too pixelly and comes to about 8cm wide on my screen:

http://i.imgur.com/7msV6RT.png


gggmork said:
Is your ultimate goal to make it less pixely? Like you want a thin line so you can "copy and drag it to the right" thus making a thick line again, only where the line is completely black with white edges when zoomed in (instead of having little dots of anti aliased pixels)?


Black edges with white in the middle, so it doesn't use a crapton of ink/toner to print out.

Old Post 12-11-13 20:45 #
invictius is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 06:53. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Misc. > Everything Else > Is there imaging software that can do this?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Message Board Statistics