Search found 308 matches

by VanGog
2014-06-04T12:20:02-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

If I would like to continue with the paranthesis, not to save the mask to file but put it to parenthesis ... how should look the last line?

Should it be like this?

Code: Select all

+swap ( -clut -separate -evaluate-sequence multiply )
or like this:

Code: Select all

(+swap -clut -separate -evaluate-sequence multiply)  
by VanGog
2014-06-04T12:12:47-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

Thanks. Now it works. I need clarification to use of +swap Does this command mean that it is like to take the result - the lut image which is the last image - and to place it in the place of +swap? As I understand IM now - first we must define the file or image to work ... so here the +swap takes th...
by VanGog
2014-06-04T11:29:43-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

I already used to the differences between Unix and Windows syntax. Note: It would be good idea to take the IM v6 html document and create Windows version by replacing all the Unix syntax differences for Windows syntax, so Windows users woundn't be confused (beginners). Is it correct to ( -clone 0-2 ...
by VanGog
2014-06-04T10:54:08-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

Great. I will learn something new now. When I see you how you work with parenthesis like there are separate images within them it seems quite easy to reach it in one command. This is what I exactly wanted. But I did not test the code, yet, I am also reading about meaning of the commands. I will upda...
by VanGog
2014-06-04T09:25:10-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

I tested the converted values in HSL to uses with the previous codes using HSL which we were using earlier and no one of them works. This code from earlier: REM HSB values: SET Hmin=104 SET Hmax=216 SET Smin=8 SET Smax=33 SET Lmin=31 SET Lmax=46 convert -size 1x360 gradient: -fx "(u.r>=%Hmin%/3...
by VanGog
2014-06-04T02:25:49-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

There is no point in converting from HSB (or RGB) to HSL and then changing the script to use HSL in place of HSB. I dont agree with you. There is big difference between the two codes (HSB/HSL) because the HSL is at least 3x faster and performs less executions. Performance is high priority for me. I...
by VanGog
2014-06-03T15:34:12-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

It was typo. I wanted to type to HSL.
by VanGog
2014-06-03T14:42:39-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

I undestand you. So it will be better to convert my HSB colors to HS L values and apply your HSL code: convert -size 1x360 gradient: -fx "( (u>%minH1%/360 && u<%maxH1%/360)||(u>%minH2%/360 && u<%maxH2%/360) )?white:black" red_hue_lut.png convert -size 1x360 gradient: -fx &q...
by VanGog
2014-06-03T14:03:58-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

I added one more group of colors and repaired the colors in group 1 and 2, The third group should cover light gray colors of route shadows. However now I am stuck. It looks I have a bug there because it selects green grass/trees non shadows too. For example exact colors of grass in raw HSB: 89, 34, ...
by VanGog
2014-06-03T12:44:58-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

Thanks. Works now. I will improve the colors to cover the shadows.
by VanGog
2014-06-03T11:42:01-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

I have this: REM Use Raw RGB values from Adobe Photoshop Color Picker: SET minH1=197 SET minS1=222 SET minB1=21 SET maxH1=40 SET maxS1=29 SET maxB1=33 SET minH2=104 SET minS2=8 SET minB2=31 SET maxH2=216 SET maxS2=33 SET maxB2=46 convert -size 360x1 xc: -fx "(i>=%minH1% && i<=%maxH1%)?w...
by VanGog
2014-06-03T10:59:51-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

Files: test2_hsb_ d- 0.png test2_hsb_ d- 1.png test2_hsb_ d- 2.png Are these names named as intended? test2_hsb_mask2_0.png empty test2_hsb_mask2_1.png empty test2_hsb_mask2_2.png fine test2_hsb_mask2.png empty REM Use Raw RGB values from Adobe Photoshop Color Picker: SET minH1=197 SET minS1=222 SET...
by VanGog
2014-06-03T07:29:26-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

Where did you take your colors? Mine are different. Your mask is very close but I want to use the values from Photoshop, but you uses different ones. Did you converted them to HSV? Probably no, otherwise you wouldn't change the code. This brings me to idea why not to create cluvs in HSB and then cov...
by VanGog
2014-06-03T05:09:26-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

RE post #1 2) divide by 360 is the same as multiply by 1/360 Ok, but why are we doing it twice? Once in the calculation in the table, and then in your -fx channel expression? But I must ask you if these H,S,L channel conditionals is really what you were doing in PS. If you have some other method of ...
by VanGog
2014-06-02T13:33:22-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 128665

Re: Sophisticated fuzz with HSL definition?

My codes SET Hmin=104 SET Hmax=216 SET Smin=8 SET Smax=33 SET Lmin=31 SET Lmax=46 convert -size 1x360 gradient: -fx "(u>%Hmin%/360 && u<%Hmax%/100)?white:black" h_lut.png convert -size 1x360 gradient: -fx "(u>%Smin%/100 && u<%Smax%/100)?white:black" s_lut.png conv...