It is currently Sun Nov 29, 2026 9:18 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Mon Jun 03, 2013 10:59 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
@comment #3
sorry, I disagree: a reference manual should be for understanding/using the language
somebody who likes experimenting the language should be able to find full explanations,
not only the scientists...

_________________
"Where am I ?"


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Mon Jun 03, 2013 11:12 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
dinasset wrote:
OK.
image definition
when defining a new image (let's say: 300,300,1,3 or 300,300,1,4)
is it possible to have it initialized with a colour?
I didn't find a way
so, any new image seems to be black
is it so?
doc should say it explicitly


You cannot do that when initializing an image. Assuming that an image contains 'color' pixels is already wrong :
We are more generic than that :) Command '-fill_color' (eq. to '-fc') can be used to fill a color image with prescribed values along the c-axis.


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Mon Jun 03, 2013 11:22 am  (#13) 
Offline
GimpChat Member

Joined: Sep 24, 2012
Posts: 275
Location: Scotland
I agree with the image values thing - I wasn't sure about it myself for ages. All adding a list of values does is literally put those values in one by one repeatedly into the buffer. So for instance if you do 3,1,1,3,255,0 you will get a 3 pixel image with one magenta pixel, one green then another magenta. This is because it first adds 255,0,255 onto the red plane, then 0,255,0 onto green then 255,0,255 on blue (it's just repeating the 255,0 each time wrapping onto the next channel). And yes, as David says you can't really assume it's an image at all - you are creating an array of values which could represent anything you want.

When you say about full explanations, I assume you mean describing them in a way non-scientists can understand? Obviously giving full math explanations would be a HUGE undertaking! It's actually quite difficult to explain a lot of them in plain terms, perhaps this forum thread can be used as a start to doing just that... then maybe we can at least put some on the wiki. So keep the questions coming :yup


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Mon Jun 03, 2013 12:47 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
@comment #1
so, IMO, it would be enough to enter in the doc at page 8, after 'spectrum' definizion,
"- assuming that the new image contains 'color' pixels is wrong, thus after having created a new image make use of command -fill_color to fill a color image with prescribed values along the c-axis." (I used David's words)
not a big addition but a very useful indication for the reader

@comment #3: so far, I just found the terms mentioned in my previous post as totally unclear for a non-scientist (well, I didn't read the whole manual of course!) and also in this case it would be a small note like "dirichlet=fill emptied pixels with black; neumann=replicate the boundary pixels into the emptied pixels" (very likely my words are incorrect, but was just to say that for a non-scientist is enough a small note, entered just once in the manual); I will continue mentioning what a non-scientist novice reader does not understand; if at the end it's just a matter of 10-20 terms it is enough a very very small dictionary at the end of the manual.

_________________
"Where am I ?"


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Mon Jun 03, 2013 2:50 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
IMHO, there should be a separation between the 'Reference manual' and a 'User's guide'.
The reference manual should describe all the 'technical' aspects of the software, and should target experimented users (so, mainly image processing scientists probably that are not afraid of script languages, yes, there are probably only few people concerned on earth :) ).
This is what we already have, and it has already more than 350 pages ! It's a kind of forbidding document that you don't want to read in a single shot. Note that most of the current document is generated automatically from the command definitions, so we don't have many flexibility to add lot of examples and good-looking paragraphs to make it easier to read.

I don't think this kind of document should teach users what basic image processing is (it would require another set of 350 pages probably to make it clear enough for everyone, who'd like to read such a monster ? :) ).
On the other way, it appears clearly to me that having a 'User's guide' available would be necessary, mainly with 'tutorials', or explanations of basic terms we can meet in the reference manual.
Maybe this should be a compilation of the 'wiki pages' (if there were more of them).

There is clearly a lack of available documentation. But it is not really surprising as G'MIC has not (yet) gathered a lot of G'MIC script writers !

So, any contributions are welcome :)


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Mon Jun 03, 2013 5:37 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Nov 16, 2011
Posts: 5127
Location: Metro Vancouver, BC
These G'MIC Tutorials will be helpful for command line users.

I found a few more G'MIC tutorials.
Official G'MIC Tutorial
Flickr G'MIC (tutorial list)
18 most useful G'mic scripts for beginners.
A Tutorial only using G'MIC, Somewhat Painless Seamless Plaid Tutorial Using G'MIC

A G'MIC search of YouTube will find many more.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 4:11 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
@David
I really don't understand your last post: not WHAT you say but WHY you say that.
In my last post I was just suggesting the addition of one-two lines to the image definition command and one-two lines to the first reference to "dirichlet, neumann, ...)
These kind of additions DO NOT double the manual and are related to the "technical" info.
I thought they were in the direction of your INITIAL reply-post:
"Yes, please tell us and do not hesitate to propose some words that could be added to the reference documentation. That's very interesting!".
This was my goal, I don't like to enter into the tutorials game, I like to stay on technical aspects (look for instance to my second comment: why 0% does not behave as 0? is it REALLY clear to a scientist?)
The real problem, I guess, which comes out from your last post is: the RM is produced MAINLY automatically from the command definitions.
In this case is more or less useless to ask for additions...
Thus I stop commenting on the RM.
Should I in the future be willing to contribute to tutorials (os User Manual), I will open a new topic.

_________________
"Where am I ?"


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 4:34 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
I agree partially with you dinasset. Adding the lines you suggested will not double the size of the reference documentation.
But I'm definitely not sure we should mention what Dirichlet and Neumann boundary conditions are, in the reference doc, that's all. These terms are very common to define boundary conditions in the image processing field...
So, if we describe that, maybe someone will ask us to also define what a convolution is, what a PDE is, what a Fourier transform is, etc... and I'm afraid we will end up with a complete book on image processing at the end !
Those terms are nothing to do with G'MIC programming, which was the primary objective of the reference manual.

Concerning your shift problem : 0% behave as 0, this is not the problem. The problem is that if you shift an image with 50% along the y-axis, it will shift the image forward, so to the bottom. If you want to shift it to the top, you should call '-shift 0,-50%'. I guess this is one possible explanation of what you get.


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 4:50 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
David, what happened to me (maybe I can reproduce it again as soon as I have a little time) is that:
-using shift 0, 50%, 0, 0 I get what I want (top half moved to bottom)
-using shift 0%,50%,0,0 I get a totally black image
between the 2 trials nothing else was changed: I had 0% as first parameter in the command, I saw the black result, just changed 0% to 0 and I got what I wanted.
To re-check I re-changed back from 0 to 0% and I got again a black image, so I definitely fixed the first parameter to 0.
Maybe it only happens in my environment, don't know...

_________________
"Where am I ?"


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 5:00 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Ha that's an interesting point. Looks like a bug to me, as on my machine (Ubuntu Linux 32bits), it doesn't behave like that. I will try to reproduce this behavior on other machines.


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 5:04 am  (#21) 
Offline
GimpChat Member

Joined: Sep 24, 2012
Posts: 275
Location: Scotland
Are you using DOS command line by any chance? I'm wondering if an unexpected substitution is happening, since DOS uses "%" for some things.


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 5:07 am  (#22) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
no, the command was experimented inside gimp, using gimp-gmic

_________________
"Where am I ?"


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 5:09 am  (#23) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
ps
my environment is win 7 32 bits

edit: and was done using gmic 1.5.6 beta, I will try to reproduce it on the stable version downloaded yesterday

_________________
"Where am I ?"


Last edited by dinasset on Tue Jun 04, 2013 5:16 am, edited 1 time in total.

Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 5:10 am  (#24) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Like this ?

Attachment:
gmic_shift_plugin.png
gmic_shift_plugin.png [ 199.36 KiB | Viewed 2861 times ]


(Tested on Ubuntu / Linux 32bits).


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 5:16 am  (#25) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Just tested on my Virtualized XP, and it works as expected too.

Attachment:
gmic_shift_plugin2.png
gmic_shift_plugin2.png [ 105 KiB | Viewed 2860 times ]


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 5:18 am  (#26) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
ok, I'll check on the stable version (obviously I don't have any more the beta version...)

_________________
"Where am I ?"


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 5:40 am  (#27) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
checked, now it's OK also in my env with stable 1.5.6.0
don't know whether the beta I had previously was somehow involved, what I can tell you is that I tried many times, and with many different percentages, which ALL worked EXCEPT 0%

so, now good news also for myself!

_________________
"Where am I ?"


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 04, 2013 6:26 am  (#28) 
Offline
GimpChat Member

Joined: Sep 24, 2012
Posts: 275
Location: Scotland
Glad you got it working :bigthup


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 18, 2013 6:52 am  (#29) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
I waited to get the updated version of the handbook before writing this post.
IMO the example 121 on page 84 about command 'cut' is incorrect:
the command --cut 25%,75% produces a duplicated image with LESS LIGHTS and LESS SHADOWS (25% less in both directions?) as I expected, but the example shows an image with MORE LIGHTS and MORE SHADOWS.
Am I wrong?

_________________
"Where am I ?"


Top
 Post subject: Re: G'mic documentation (Reference Manual)
PostPosted: Tue Jun 18, 2013 6:59 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Probably because of the image normalization process that has been used for the visualization of the image ?


Top
Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group