It is currently 30 May 2020, 09:38

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  🡆 Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Ink-Pen Drawing Effect - (Tutorial updated on post 59)

GIMP Tutorials
Forum rules
Tutorials must be created by you and your own idea.
If you got idea from elsewhere and revised your own version of tutorial, please include reference and credit original authors.
For example if you found a Photoshop tutorial and wanted to write a GIMP version, you must credit the original Photoshop tutorial.
Issabella
Script Tester

Re: Ink-Pen Drawing Effect - Tutorial

Post#51 by Issabella » 15 Mar 2019, 08:15


Sorry for not answering before. I've just seen your problem. My technique to get the right values in my tries is this;
I get the Mean Value from the image. I take note of this value, for instance, it is: 0,455
I take this value and multiply it for 256 and I get other value: 116,48. I take note of 116. This value is my
T0 = 116 (From this value I'll get the right value to get T2 to apply to B layer and T1 to apply to D layer).
To get T2; T0*170/128
To get T1; T0*85/128
So from my sample, it will be:
T2 = 116*30/128 = 154 (to apply on the left side in threshold) on B layer
T1 = 116*85/128 = 77 (to apply on the left side in threshold) on D layer
I hope it is clearer.
:)
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.
0

oldmangrumpy
Tutorial Creator

Post#52 by oldmangrumpy » 15 Mar 2019, 10:07


Still working on the calculation technique but here is a quickie to say thank you ...
Attachments
autumn-bridge_inkpen.png
autumn-bridge_inkpen.png (1.16 MiB) Viewed 1154 times
Senior's moments are just part of a lifelong learning experience - never stop learning
OMG's: Downunder Art Thread | Gold Ring Addiction
0

dinasset_1
Script Coder

Post#53 by dinasset_1 » 15 Mar 2019, 10:11


Issabella wrote:
15 Mar 2019, 08:15
Sorry for not answering before. I've just seen your problem. My technique to get the right values in my tries is this;
I get the Mean Value from the image. I take note of this value, for instance, it is: 0,455
I take this value and multiply it for 256 and I get other value: 116,48. I take note of 116. This value is my
T0 = 116 (From this value I'll get the right value to get T2 to apply to B layer and T1 to apply to D layer).
To get T2; T0*170/128
To get T1; T0*85/128
So from my sample, it will be:
T2 = 116*30/128 = 154 (to apply on the left side in threshold) on B layer
T1 = 116*85/128 = 77 (to apply on the left side in threshold) on D layer
I hope it is clearer.
:)
Issabella, the "quick and dirty" formula is not applicable with mean values very distant from 127.5 (2.8) or 0.5 (2.10). Sorry for having suggested this quick but...too dirty formula.
So I suggest you now to update the tutorial.
One way is to add a sentence similar to the one I posted in my reply, letting the user to estimate approx reasonable values.
Another way could be this new "quick and (less) dirty" formula:
let's speak only in absolute values as in 2.8 to simplify
considering that the theoretical values 85 and 170 were intended for a mean of 127.5 , we could clarify:
- 170 represents an increase of 1/3 (0.333) towards the right extreme (255)
- 85 represents a decrease of 1/3 (0.333) towards the left extreme (0)
Hence:
given a detected mean value of M, calculate:
- T2 as M + ((255-M)*0.333)
- T1 as M - ((M-0)*0.333)
Take a big value for M: 200 (very rare, but possible in very light images).
- T2 should be = 200 + ((255-200)*0.333) = 218 (rounded)
- T1 should be = 200 - (255*0.333) = 115 (rounded)
0

Krikor
Forum Member

Post#54 by Krikor » 15 Mar 2019, 20:14


Issabella wrote:
15 Mar 2019, 08:15
Sorry for not answering before. I've just seen your problem. My technique to get the right values in my tries is this;
I get the Mean Value from the image. I take note of this value, for instance, it is: 0,455
I take this value and multiply it for 256 and I get other value: 116,48. I take note of 116. This value is my
T0 = 116 (From this value I'll get the right value to get T2 to apply to B layer and T1 to apply to D layer).
To get T2; T0*170/128
To get T1; T0*85/128
So from my sample, it will be:
T2 = 116*30/128 = 154 (to apply on the left side in threshold) on B layer
T1 = 116*85/128 = 77 (to apply on the left side in threshold) on D layer
I hope it is clearer.
:)
Issabella, no doubt about the technique itself, your tutorial was excellently enlightening.

We are saying that it is not in all images that one can follow this formula to the letter. See the example I gave for an image where the Mean value is 0.840. #48

As for the calculations you use, I suggest simplifying them, just enough:
T2 = M * 340
T1 = M * 170

See using the example you gave with M being 0.455:
T2 = 0.455 * 340 = 154.7
T1 = 0.455 * 170 = 77.35
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston
0

Krikor
Forum Member

Post#55 by Krikor » 15 Mar 2019, 20:30


oldmangrumpy wrote:
15 Mar 2019, 01:07
Issabella and Diego - I think Krikor has pinpointed/resolved my particular problem with Mean values in the Histogram window. It seems from what Krikor has posted (0.840), in 2.10 they are expressed in a different manner from 2.8 which I am still using.

I will probably need to divide my Mean values by a hundred first and then apply Issa's tutorial calculations.
OMG, you can do a simple conversion using a direct relation:
127.5 = 0.5
Your Mean Valur = X


Then
(Your Mean Value * 0.5) / 127.5 = X
Example, your Mean value is 85, then
(85 * 0.50) / 127.5 = 0.3333

Now just find T2 and T1:
M=0,3333
T2 = 0.3333 * 340 = 113.322
T1 = 0.3333 * 170 = 56.7
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston
0

dinasset_1
Script Coder

Post#56 by dinasset_1 » 16 Mar 2019, 05:52


I prepared these steps for OMG, working on 2.8:
original image:
original.jpg
original.jpg (83.32 KiB) Viewed 1131 times
Threshold T2:
threshold-T2.jpg
threshold-T2.jpg (119.08 KiB) Viewed 1131 times
Strokes T2:
StrokesT2.jpg
StrokesT2.jpg (158.22 KiB) Viewed 1131 times
Threshold T1:
threshold-T1.jpg
threshold-T1.jpg (38.86 KiB) Viewed 1131 times
Strokes T1:
StrokesT1.jpg
StrokesT1.jpg (28.21 KiB) Viewed 1131 times
Photocopy:
photocopy.jpg
photocopy.jpg (77.31 KiB) Viewed 1131 times
Outcome in B&W (combining the above 3 components in Multiply mode):
outcomeBW.jpg
outcomeBW.jpg (168.91 KiB) Viewed 1131 times
setting the B&W outcome over the original in Overlay mode:
OutcomeInkpenOverlayOverOriginal.jpg
OutcomeInkpenOverlayOverOriginal.jpg (130.4 KiB) Viewed 1131 times
0

oldmangrumpy
Tutorial Creator

Post#57 by oldmangrumpy » 16 Mar 2019, 09:35


Just popped on before retiring for the night ... and WOW ... Diego thank you very much for both the calculation instructions clarification and the 2.8 steps. :thank_you:

Krikor- thank you for your maths lesson too :)

A very rainy day forecast for tomorrow so plenty of time for me to play with Issa's tut.
Senior's moments are just part of a lifelong learning experience - never stop learning
OMG's: Downunder Art Thread | Gold Ring Addiction
0

Ella
Tutorial Creator

Post#58 by Ella » 16 Mar 2019, 20:51


Thank you, Krikor. That way it was easier to calculate :)


A kiss from this little girl and I got a serenade ... :)
LittleGirl.png
LittleGirl.png (1.13 MiB) Viewed 1106 times
Last edited by Ella on 16 Mar 2019, 21:59, edited 1 time in total.
Ella's gallery My Blender work - Ella
My Blog - Le temps perdu


There is a crack in everything. That's how the light gets in.
(Leonard Cohen)
1

Issabella
Script Tester

Post#59 by Issabella » 16 Mar 2019, 20:52


Thanks you Krikor and OMG. Just Dinasset has recalculated the formula so that the results are alright even on very dark or very clear photos.
I hope this updated tutorial is a bit better.
Dinasset, thanks for your effort and patience.
Attachments
20.jpg
20.jpg (215.56 KiB) Viewed 1106 times
23_ Value.jpg
23_ Value.jpg (86.77 KiB) Viewed 1106 times
Updated Ink-Pen Drawing Effect_Tutorial.pdf
(2.67 MiB) Downloaded 46 times
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.
0

Pat625
Tutorial Creator

Post#60 by Pat625 » 17 Mar 2019, 00:28


Really nice images Ella and Issabella. Dinasset, very nice explanations and progress images for each step.
0


GIMP/GL:  🡆 Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 8 guests