Search found 308 matches

by VanGog
2014-06-02T13:16:24-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

My ColorPicker: http://oi60.tinypic.com/34o3tk2.jpg Notice the key area is selected. Did you follow mine latest code exactly. Yes but converted to Windows syntax. Note the -evaluate sequence in the earlier code that combines each lut to make the logical && so that you get a black/white resul...
by VanGog
2014-06-02T12:46:18-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

Tested. But why you have your masks B/W and me colored?
Also I the colors selected do not correspond with shadows. In fact, the shadows are not selected at all.
by VanGog
2014-06-02T12:00:16-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

I will reply later. if you have version CS2 click on foreground color to display ColorPicker.
by VanGog
2014-06-02T10:50:40-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

Notice that I don't understand why you do division here: u>%minH1%/360 u>%minS1%/255 u>%minL1%/255 If this is conversion from PS to IM, then notice that I did division: min IM=(1/360)* G$3 *100 for hue which is min IM=(1/360)* 197 *100 for hue Saturation and Lightness/Brightness is untouched
by VanGog
2014-06-02T10:45:10-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

Does your program really work to generate B/W mask? My mask is in RGB having colored pixels there. I used Eyedropper tool to manually select color and view it with ColorPicker in Photoshop. There are these values displayed: H [°],S [%],B [%] B is Brightness which is the same as Lightness. I have bei...
by VanGog
2014-06-02T10:10:09-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

Here I uploaded testing image and xls table containing two sets of shadow values which I used in the last code.
http://www.fileconvoy.com/dfl.php?id=g6 ... eddbbf7d7c
by VanGog
2014-06-02T09:12:00-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

Sorry for my slow responses today because I am sick & out of energy. That is also why my thinking is slowed :-/. I noted that the mask does not contain all the shadows that should be there. It should contain all shadows which are on routes and walls of buildings. The shadows on grass are not inc...
by VanGog
2014-06-02T07:09:02-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

test.jpg or test.png Code 1 REM Calculate colors from HSL to RGB .. and create mask REM avgH=0.581944444 REM avgS=0.305 REM avgL=0.31 REM IM uses range of 0-100% for rgb() so I have to multiply by 100 SET minH1=54.72222222 SET minS1=21 SET minL1=29 SET maxH1=61.66666667 SET maxS1=40 SET maxL1=33 SET...
by VanGog
2014-06-02T06:43:58-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

No, that is not the error. convert -size 1x360 gradient: -fx "(u>54.72222222/360 && u<61.66666667/360)?white:black" red_hue_lut.png convert -size 1x360 gradient: -fx "(u>21/255 && u<40/255)?white:black" green_sat_lut.png convert -size 1x360 gradient: -fx "(u>...
by VanGog
2014-06-02T04:16:01-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

I read your reference but I have no idea how you do your calculations or what they mean in the examples. I can understand the first part of CLUV article, where it is about gradients. But the part starting "Function to Color LUT Conversion" : replace the 'u' in the function with the value '...
by VanGog
2014-06-01T16:55:34-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

I will explain what I need to process later. Now, its not clear why you use r, g, b on the left side of expression. Why dont you use hue, saturation and lightness? I still dont understand how to use it. Why should I use r g b when working with HSL? Not clear how to calculate the r g b and why. Why n...
by VanGog
2014-06-01T15:28:41-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

The solution is easy. Just use -fx to create a 1D binary lookup table from your ranges of allowed H,S,L. Then apply the lut using -clut to the HSL version of the image to make a binary mask. Then apply the mask using -mask with your image (HSL or RGB) to do what further processing you want to do. I...
by VanGog
2014-06-01T15:08:27-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

I had written wrong numbers (corrected) and I had error in the second formula (corrected). So now the 2nd fuzz is 21,31 which seems more realistic. Before I reject solution I have to try it and been convinced by own experience. Also I have strict order in which I try to solve the tasks, Also if I ha...
by VanGog
2014-06-01T14:27:40-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

But the diff must be in range of 0-100% ... min: 197 21 29 max: 222 40 33 avg: 209,5 30,5 31 diff=3,472222222 // ° diff=(1/360)*100*diff // % diff=10.3% For the second group of colors I have somewhat high number - that looks weird. avg: 160 20,5 38,5 diff=15,55555556 // ° diff=(1/360)*100*diff // % ...
by VanGog
2014-06-01T13:52:57-07:00
Forum: Users
Topic: Sophisticated fuzz with HSL definition?
Replies: 128
Views: 130928

Re: Sophisticated fuzz with HSL definition?

fmw42 wrote:fuzz=sqrt((diffR^2+diffG^+diffB^2)/3)
Then how should I calculate diffR , diffG , diffB when I have colors in HSL?