It is currently Wed Nov 11, 2026 3:59 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Transfer colors from one image to another (script)
PostPosted: Fri Dec 04, 2015 12:30 am  (#21) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
Tin, could you post the slow one?
I'd like to experiment it (obviously using very very small images....)

_________________
"Where am I ?"


Top
 Post subject: Re: Transfer colors from one image to another (script)
PostPosted: Fri Dec 04, 2015 2:19 am  (#22) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4561
Location: Canada
dinasset wrote:
Tin, could you post the slow one?
I'd like to experiment it (obviously using very very small images....)


you asked for it...super slow (You need to have python installed and easygui library installed)
Attachment:
colortransfer.zip [775 Bytes]
Downloaded 121 times

I only tested with pngs when i tried jpg i edited one pixel and near by pixel seemed to get affected so i stuck with pngs.. it'll output "out.png"

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: Transfer colors from one image to another (script)
PostPosted: Fri Dec 04, 2015 11:16 am  (#23) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
thanks Tin, downloaded: there is no "registration", how did you test it? interactively?

_________________
"Where am I ?"


Top
 Post subject: Re: Transfer colors from one image to another (script)
PostPosted: Fri Dec 04, 2015 4:13 pm  (#24) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4561
Location: Canada
not sure what you mean by interactively.
I just have python installed on my computer with easygui library installed as well, and i run
python colortransfer.py
in command window
and then select image file and select color image file and let it run

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: Transfer colors from one image to another (script)
PostPosted: Fri Dec 04, 2015 4:21 pm  (#25) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4561
Location: Canada
If only i knew of a way to map colors that's more advanced than luminance...since luminance can combine colors of different hues in order next to each other....

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: Transfer colors from one image to another (script)
PostPosted: Sat Dec 05, 2015 1:00 am  (#26) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
trandoductin wrote:
not sure what you mean by interactively.
I just have python installed on my computer with easygui library installed as well, and i run
python colortransfer.py
in command window
and then select image file and select color image file and let it run

I meant that it is not a registered gimp python plug-in.
I don't like command line.

_________________
"Where am I ?"


Top
 Post subject: Re: Transfer colors from one image to another (script)
PostPosted: Sat Dec 05, 2015 2:18 am  (#27) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
trandoductin wrote:
If only i knew of a way to map colors that's more advanced than luminance...since luminance can combine colors of different hues in order next to each other....

maybe you can try using also "color proximity" by hue...

_________________
"Where am I ?"


Top
 Post subject: Re: Transfer colors from one image to another (script)
PostPosted: Sat Dec 05, 2015 12:59 pm  (#28) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4561
Location: Canada
dinasset wrote:
trandoductin wrote:
If only i knew of a way to map colors that's more advanced than luminance...since luminance can combine colors of different hues in order next to each other....

maybe you can try using also "color proximity" by hue...


I tried converting it from RGB to HSV and ordered by value then by hue and by saturation and other orders too but nothing came out interesting.
Now i am trying something else...like starting with colors closest original to black in the LAB space and then finding closest source color to replace...
Interested in seeing what results look like but this process is magnitude slower... it might take like a day or longer to process your sample image.
I am just running it now...and it takes a little over a second to process one color and there are about 149,000 colors in the image.
All done using distance in LAB space.

_________________
Image
Visualize your and others dreams coming true.


Top
 Post subject: Re: Transfer colors from one image to another (script)
PostPosted: Sat Dec 05, 2015 1:34 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
good luck!....

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group