It is currently Sat Dec 20, 2014 12:15 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 72 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8  Next
Author Message
 Post subject: Re: The Traveling Salesman problem.
PostPosted: Sat Feb 12, 2011 6:46 pm  (#51) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 6838
By the way, I was able to (not the version that I showed earlier; used Irfanview as the serrogate then) paste the plot directly into Inkscape, ungroup, delete the background stuff and then save. Very cool indeed. Excel smoothing scatter plot option is definitely the bomb. Just did this baby doing just this (third version down; had to scale down since the original had the equivalent of 4000px wide; lol). :)

_________________
Lyle

Psalm 109:8

Image


Top
 Profile  
 
 Post subject: Re: The Traveling Salesman problem.
PostPosted: Sat Feb 12, 2011 6:52 pm  (#52) 
Offline
GimpChat Member

Joined: Oct 06, 2010
Posts: 2666
Oh wow, that turned out really good. Can you give a step by step that process in a quick list? I don't have Ifranview, but was wondering how that would work out in XnView. I'll grab Irfanview if it comes right down to it.

_________________
You cannot do a kindness too soon because you never know how soon it will be too late.

~Ralph Waldo Emerson


Top
 Profile  
 
 Post subject: Re: The Traveling Salesman problem.
PostPosted: Sat Feb 12, 2011 6:52 pm  (#53) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 12645
your baby is very cute Lyle, same hair do too........ :mrgreen:

_________________
Image


Top
 Profile  
 
 Post subject: Re: The Traveling Salesman problem.
PostPosted: Sat Feb 12, 2011 6:58 pm  (#54) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 6838
mahvin wrote:
Oh wow, that turned out really good. Can you give a step by step that process in a quick list? I don't have Ifranview, but was wondering how that would work out in XnView. I'll grab Irfanview if it comes right down to it.


Irfanview can automatically turn vector content to bitmap with copy/paste. I just copy the graph, paste it into Irfanview, then copy it from Irfanview and Paste it into GIMP and do the cleanup in GIMP. I still prefer the vector route (using Inkscape). Copy and paste into Inkscape, set the pagesize to equal the image (Image size will be much bigger; trust me), ungroup and removed the junk (I do most of this in Excel but still the background and border has to be removed) and then save the SVG file and open it up in GIMP. Either way will work though. I'm now almost a Geek. lol

Yeah Molly; my hairs going fast (especially trying to figure all this stuff out the last few days; lol). Glad you liked the result too. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Profile  
 
 Post subject: Re: The Traveling Salesman problem.
PostPosted: Sat Feb 12, 2011 8:46 pm  (#55) 
Offline
GimpChat Member

Joined: Oct 06, 2010
Posts: 2666
Wow, 14k+ dots, and Open Office Calc is like all wonky (acting like it wants to crash). Guess I better lose some dots.

_________________
You cannot do a kindness too soon because you never know how soon it will be too late.

~Ralph Waldo Emerson


Top
 Profile  
 
 Post subject: Re: The Traveling Salesman problem.
PostPosted: Sat Feb 12, 2011 8:59 pm  (#56) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 6838
Sometimes you can go just too dotty Mahvin. So loose the dots already. lol

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Profile  
 
 Post subject: Re: The Traveling Salesman problem.
PostPosted: Mon Feb 21, 2011 12:17 am  (#57) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 6838
The error in the Python script (tspart.py) was looking me in the eye and I just now figured this one out. If you are a Windows user, this will fix the script (and now the SVG file will be created; yea). Just go to this part of the code and change the path with the double slash (why python needs this is anyone's guess, but seen this with GIMP python scripts already and should have known; lol). Now you need to point the path to your Cygwin>Linkern file correctly; mine is as shown in the code example. Again, the trick is with the double slash (for Windows users of course). To be honest, I sort of like the Excel technique result better so I sort of am glad that the original script had the error. I remmed out the tps and tour deletion so now I have it all without having to run the Windows TPS program to create the tour so now I can also just use the TPS and Tour files and create the graphic in Excel. Man, pretty soon I will be a geek. lol

:)

# Path to the linkern executable
if sys.platform.lower() == 'win32':
   LINKERN = 'C:\\cygwin\\bin\\linkern.exe'

_________________
Lyle

Psalm 109:8

Image


Top
 Profile  
 
 Post subject: Re: The Traveling Salesman problem.
PostPosted: Mon Feb 21, 2011 12:29 am  (#58) 
Offline
GimpChat Member

Joined: Oct 06, 2010
Posts: 2666
If I had a Gold Star sticker I would place it on your post for "Job Well Done". I've fixed Windows python files for Linux and vice-versa, many times in the past, but since I sort of left Windows for good, I don't bother to think of the different needs of each system, anymore.

Open Office Calc and Excel don't behave the same when graphing out the TSP. You can get very good results with smaller images, but larger ones tend to make OO Calc hang to the point of crashing.

_________________
You cannot do a kindness too soon because you never know how soon it will be too late.

~Ralph Waldo Emerson


Top
 Profile  
 
 Post subject: Re: The Traveling Salesman problem.
PostPosted: Mon Feb 21, 2011 1:37 pm  (#59) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 6838
How much memory do you have Mahvin? My system has 6GBytes (64-bit Win7 OS). I've yet to have an issue using it, but the biggest file I've done was 15000 points (and the result wasn't worth it; lol). I definitely use the Voronoi Stippler/Inkscape technique outlined earlier for maximum quality with smaller point samples. I noticed that Open Office recently (like a few days ago) released 3.1. I've not re-installed OO since I upgraded my PC over a year ago. Heard of some good things about Libre Open Office, but haven't really thought about installing either since I do have Office 2003 (to me the last good Microsoft Office product; 2007 really does have issues imo and I'm not really a fan of ribbons. I've used a few programs like Wordpad that uses the ribbon interface idea; can't stand it. Anyway, sorry for deviating (tend to do that don't I. lol). I still wish I could get the gpu think to work with the stippler program (better to get Secord's ImagemagicK program to work, but he said he has no plans to update it and I'm no programmer). I'm not sure if I really will buy a video card come my b'day (feel better off just to hoard the cash right now) but hopefully, if I do get the card, that I will be able to use the GPU more. I know there was a SOC for GIMP that involved GPU acceleration, but it went no where. The GPU acceleration (Pixel Bender) for PS is buggy with my PC; stand-alone Pixel Bender (free by the way; was using it since CS2 didn't support Pixel Bender; anyone can use the stand-a-lone too which is cool) is buggy too. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Profile  
 
 Post subject: Re: The Traveling Salesman problem.
PostPosted: Sat Sep 24, 2011 12:29 am  (#60) 
Offline
GimpChat Member

Joined: Oct 06, 2010
Posts: 2666
4 gig in Office computer. Getting upgraded to 8 gig this week. Sorry I didn't reply to this 7 months ago! My laptop is maxed at 2 gig, so no changes there, unless I buy a new one. The GPU would be so much better, I agree. I went from OO to Libre, (still the same, btw). I'm looking forward to trying your new approach on the TSP.

The other two computers are both at 2 gig, but I only use them for testing new releases of Ubuntu. I'm getting an itch to try other distros, though.

_________________
You cannot do a kindness too soon because you never know how soon it will be too late.

~Ralph Waldo Emerson


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 72 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

* Login  

* Subscribe to Gimp Chat's RSS Feed    * Subscribe to Gimp Chat's Tutorial Feed    * Subscribe to Gimp Chat's G'MIC Feed


Powered by phpBB3 © phpBB Group