It is currently Wed Aug 12, 2026 9:52 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 68 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: little questions to Garry (or David)
PostPosted: Fri Oct 24, 2014 4:36 am  (#61) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14831
Location: roma, italy
thanks, David
conference or vacation?
applied your statement

the result is an image with bands of pure (255) colors:

Attachment:
David_MaxRGB.png
David_MaxRGB.png [ 1.32 KiB | Viewed 1753 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: little questions to Garry (or David)
PostPosted: Fri Oct 24, 2014 8:41 am  (#62) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14831
Location: roma, italy
new infos for you (for me it's like Arabic...)
1-it seems that the execution part of the command only gets from the max fn a value 0,0,1 or 0,1,0 or 1,0,0 for the channels, so that the multiplier 255 transforms them into 0,0,255 or 0,255,0 or 255,0,0

Attachment:
David_MaxRGB.png
David_MaxRGB.png [ 1.32 KiB | Viewed 1750 times ]


2-if I replace 255*(i==max(R,G,B)) with (i=max(R,G,B)) it seems I get the correct max values but in greyscale

Attachment:
David_MaxRGB-greyscale.png
David_MaxRGB-greyscale.png [ 18.72 KiB | Viewed 1750 times ]


(strarting from this original)

Attachment:
original for maxrgb.png
original for maxrgb.png [ 46.35 KiB | Viewed 1750 times ]



hope this infos can help you...

_________________
"Where am I ?"


Top
 Post subject: Re: little questions to Garry (or David)
PostPosted: Fri Oct 24, 2014 10:54 am  (#63) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
R=i(x,y,z,0);G=i(x,y,z,1);B=i(x,y,z,2);M=max(R,G,B);M*(i==M)


Should work then.


Top
 Post subject: Re: little questions to Garry (or David)
PostPosted: Fri Oct 24, 2014 11:16 am  (#64) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14831
Location: roma, italy
yes, thanks!

David the magician of G'MIC...
You did in just one line what I did with tenths of lines, wonderful!
Excellent...

_________________
"Where am I ?"


Top
 Post subject: Re: little questions to Garry (or David)
PostPosted: Wed Oct 29, 2014 11:46 am  (#65) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14831
Location: roma, italy
a new question to my friends

is there in G'MIC an equivalent of gimp "fuzzy borders"?
here an example:

Attachment:
fuzzy-borders.png
fuzzy-borders.png [ 2.91 MiB | Viewed 1681 times ]


but with some improvements:
1-the possibility to have just one fuzzy border, not all four
2-the possibility to have not a colour (white in the example) but transparency replacing the eroded part

Thanks

_________________
"Where am I ?"


Top
 Post subject: Re: little questions to Garry (or David)
PostPosted: Sat Nov 08, 2014 10:22 am  (#66) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14831
Location: roma, italy
another (more general) question:
- is it possible from a G'MIC filter to call a "preview" of another G'MIC filter?
it's common to call from one filter another filter, but afaik one has to call it as an "execution" filter passing the required parameters;
my request is concerning the possibility to call the "preview" of the called filter, in order to have the parameters of the called filter prompted so that the user can choose among the parameters' options.
A sort of a "drill down" technique based on:
- a main filter where the user can select a "class" of options
- based on this selected class the main filter calls a "preview" of another filter, which is prompted to the user for the selection of a "specific" option inside the selected class
This possibility could allow to avoid writing filters with a looong list of parameters.
Thanks

_________________
"Where am I ?"


Top
 Post subject: Re: little questions to Garry (or David)
PostPosted: Mon Nov 10, 2014 5:46 am  (#67) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Hello dinasset,
Sorry for not responding to your previous question, I didn't see it.
Concerning the previews : no, it is not possible for a G'MIC filter to make the user choose the parameter for a filter, then go back to another filter, and so on..
I really doubt this would be a desirable feature tough.
If one filter requires more than 10 parameters, it is already quite hard to use. So I don't imagine people want to use filters with more and more parameters.

For the framing effect, it looks that the command '-frame_fuzzy' may help in your case :
$ gmic -h frame_fuzzy

gmic: GREYC's Magic for Image Computing.

        Version 1.6.0.2 (beta), Copyright (c) 2008-2014, David Tschumperle.
        (http://gmic.sourceforge.net)

    -frame_fuzzy:
                        size_x>=0,_size_y>=0,_fuzzyness>=0,_smoothness>=0,_R,_G,_B,_A

        Draw RGBA-colored fuzzy frame in selected images.
       
        Default values: 'size_y=size_x', 'fuzzyness=5', 'smoothness=1' and 'R=G=B=A=255'.
       
        Example: image.jpg -frame_fuzzy 20


Top
 Post subject: Re: little questions to Garry (or David)
PostPosted: Mon Nov 10, 2014 10:22 am  (#68) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14831
Location: roma, italy
Thanks, David.
About the fuzzy frame I tried: it's excellent and flexible!.
About the other question I like to explain you better the need for such a "drill-down" selection:
- I'm trying to implement a filter which will have a parameter "colour"
- I like to give the user the possibility to choose the colour based on an "official" (standardized) colour name
- because the colours are a lot I was thinking about the possibility to have the main filter asking to choose only the colour category, for instance: "red colours"
- based on this choice I was hoping to have the possibility to "call" one among many slave filters, in this case the slave "red colours selection", where the list of the options will be of a reasonable size
Theoretically there are other possible solutions:
- one could be the possibility to have the list of the options "expandable", like the list of the filters in G'MIC itself, so that initially the user sees only the category then he/she may click on the category and expand the submenu
- another solution is to have two parameters the second of which is only "clickable" once the user has selected the first one and it is "linked" to that selection in order to "explode" itself accordingly
....
Probably in my previous post I did not explain properly the problem; I hate filters with many parameters, I consider them more or less totally "disturbing"; in my case the number of parameters is small, but the options list for one parameter is huge if there is no solution for a "drill-down" selection

Any hope?

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 68 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group