GIMP Chat http://gimpchat.com/ |
|
New G'MIC filter "Tangential Circles" http://gimpchat.com/viewtopic.php?f=28&t=20121 |
Page 1 of 2 |
Author: | cli345 [ Fri Sep 16, 2022 11:24 am ] |
Post subject: | New G'MIC filter "Tangential Circles" |
Hello! Inspired by this message, I intend to propose a new G'MIC filter "Tangential Circles". With default parameters, it would give: Attachment: tangentialCircles_1b.jpg [ 9.42 KiB | Viewed 2307 times ] With default parameters except that "Number of Levels = 2, Effect = Blue-Cyan Halo", it would give: Attachment: tangentialCircles_2b.jpg [ 34.9 KiB | Viewed 2307 times ] With default parameters except that "Big Circle Radius = 150, Stroke Width = 2, Number of Levels = 2, Effect = Colored Tube", it would give: Attachment: tangentialCircles_3b.jpg [ 102.23 KiB | Viewed 2307 times ] Here is its code: Code: Select all cl_circ_prerelease : Installation:
Have fun! |
Author: | Rod [ Sat Sep 17, 2022 1:49 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
Nice addition to G'MIC! Thx. Code: Select all cl_tangentialCircle_prerelease 90.2,1.095,10,3,0,0,0,0,85,0,2 Attachment: GMIC-Circles_RD.png [ 32.6 KiB | Viewed 2258 times ] |
Author: | Rod [ Sat Sep 17, 2022 2:04 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
Code: Select all cl_tangentialCircle_prerelease 95.1,0.905,12,3,0,0,0,0,85,0,4 Attachment: GMIC-Circles-RB_RD.png [ 104.72 KiB | Viewed 2255 times ] How do i insure the created image is my layer size? The image seems to crop itself to a certain width and length. |
Author: | lylejk [ Sat Sep 17, 2022 2:06 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
Looks cool; you probably made the Mandela lovers very happy with this one. |
Author: | mahvin [ Sat Sep 17, 2022 12:53 pm ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
What am I missing on how this filter is used? The layer arrangement produced at default places the result under the background image. Weird. I'll check it this time. |
Author: | cli345 [ Sat Sep 17, 2022 2:24 pm ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
Thanks Rod, lylejk, mahvin for your valuable feedback! Mahvin, for now, I can't reproduce your bug. What happens when you delete the last line of the code "mv[-1] 0" ? |
Author: | mahvin [ Sun Sep 18, 2022 1:23 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
cli345 wrote: Thanks Rod, lylejk, mahvin for your valuable feedback! Mahvin, for now, I can't reproduce your bug. What happens when you delete the last line of the code "mv[-1] 0" ? Actually, I was missing the last line of code, and once added, it worked fine. However, like Rod asked, I'm curious how we can get the result to convert to the layer size we decide to use, since the display is rendering at 300px square. |
Author: | Rod [ Sun Sep 18, 2022 7:50 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
mahvin wrote: cli345 wrote: Thanks Rod, lylejk, mahvin for your valuable feedback! Mahvin, for now, I can't reproduce your bug. What happens when you delete the last line of the code "mv[-1] 0" ? Actually, I was missing the last line of code, and once added, it worked fine. However, like Rod asked, I'm curious how we can get the result to convert to the layer size we decide to use, since the display is rendering at 300px square. I wonder if that has to do with the Big Circle Radius setting? |
Author: | cli345 [ Sun Sep 18, 2022 8:01 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
Rod wrote: How do i insure the created image is my layer size? mahvin wrote: ...how we can get the result to convert to the layer size we decide to use... I've just added a "Dimensions" parameter: Choose "According to Layer".Here is the new code: Code: Select all cl_circ_prerelease : |
Author: | Rod [ Sun Sep 18, 2022 9:05 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
cli345 wrote: Rod wrote: How do i insure the created image is my layer size? mahvin wrote: ...how we can get the result to convert to the layer size we decide to use... I've just added a "Dimensions" parameter: Choose "According to Layer".Here is the new code: Code: Select all cl_circ_prerelease : Thank You! I was able to create a 375x375 circle by multiplying the # levels by Big Circle Radius. 3x125 I set my layer width and height to 375 and ran the filter with levels at 3 and Big Circle Radius at 125 and got an image very quickly. Exactly the width and height of my layer. This computation cannot be correct however because i ran the filter with 3 levels and 500 Big Circle Radius on a 1500x1500 radius and got an error. So i am not sure why it was not allowing those parameters. Thanks for the update! Quote: *** Error in ./cl_tangentialCircle_prerelease/ *** Command 'local': [instance(0,0,0,0,0000000000000000,non-shared)] gmic<float32>::assign(): Failed to allocate memory (15.3 Mio) for image (1000,1000,1,4). For these settings Code: Select all cl_tangentialCircle_prerelease 100,1,1,10,3,0,0,0,0,85,0,2 |
Author: | Rod [ Sun Sep 18, 2022 9:17 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
Odd though that running with preview on works in the filter, Attachment: T-Circles-Preview-1_RD-2022-09-18_100623.jpg [ 242.54 KiB | Viewed 1924 times ] but when i try to render the image (click Apply, Or OK). Attachment: T-Circles-Preview-2_RD-2022-09-18_100623.jpg [ 242.45 KiB | Viewed 1924 times ] I wonder if it's because i only have 500 MB of RAM on this Dell laptop. Can't be because of hard drive space as i have 42 GB of that. |
Author: | Rod [ Sun Sep 18, 2022 9:26 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
And when i try to run these settings using according to radius i get this error window with a 1500x1500 image size.. Code: Select all cl_tangentialCircle_prerelease 500,0,1,10,3,0,0,0,0,85,0,2 Attachment: T-Circles-Preview-3_RD-2022-09-18_100623.jpg [ 238.47 KiB | Viewed 1924 times ] |
Author: | Rod [ Sun Sep 18, 2022 9:38 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
Ok i think i may have figured it out. I reset the values of the filter. I selected according to layer--no problem I selected 10 for small circles I selected 1 for levels no problem I selected 2 for levels, no problem. As soon as i selected 3 for levels G'MIC crashed. Must be in the levels settings? |
Author: | Rod [ Sun Sep 18, 2022 9:50 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
Nope! 2 on levels with a 1500x1500 image i get this. Attachment: T-Circles-Preview-4_RD-2022-09-18_100623.jpg [ 127.74 KiB | Viewed 1921 times ] Setting levels to 1 however... Attachment: T-Circles-Preview-5_RD-2022-09-18_100623.jpg [ 34.06 KiB | Viewed 1921 times ] |
Author: | cli345 [ Sun Sep 18, 2022 1:54 pm ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
Just to illustrate the "Number of Levels" parameter: Attachment: tangentialCircles_level.jpg [ 48.33 KiB | Viewed 1908 times ] With the "Dimensions" parameter set to "According to Radius", the width and height of the result are three times the radius. For now, this "three" factor is fixed (enough to let the effects go beyond the big circle): Attachment: tangentialCircles_dimensions.jpg [ 13.83 KiB | Viewed 1908 times ] @Rod Yes, for now, my filter is not optimized and it consumes a lot of CPU and RAM. I think I'll probably have to trace all the circles with a single 'fill' instruction. |
Author: | Rod [ Tue Sep 20, 2022 12:53 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
cli345 wrote: Just to illustrate the "Number of Levels" parameter: Attachment: tangentialCircles_level.jpg With the "Dimensions" parameter set to "According to Radius", the width and height of the result are three times the radius. For now, this "three" factor is fixed (enough to let the effects go beyond the big circle): Attachment: tangentialCircles_dimensions.jpg @Rod Yes, for now, my filter is not optimized and it consumes a lot of CPU and RAM. I think I'll probably have to trace all the circles with a single 'fill' instruction. I still don't understand using just 1 level of circles it works but is very small compared to the layer size. |
Author: | cli345 [ Tue Sep 20, 2022 5:27 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
I think I get it now. I've just added an option to the "Dimensions" parameter: "According to Layer (Proportionate)". If you choose "Proportionate", the big circle radius is a percentage of 1/3 of the smaller dimension of the layer. Otherwise, it's a number of pixels. Here is the new code: Code: Select all cl_circ_prerelease : |
Author: | Rod [ Tue Sep 20, 2022 10:43 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
cli345 wrote: I think I get it now. I've just added an option to the "Dimensions" parameter: "According to Layer (Proportionate)". If you choose "Proportionate", the big circle radius is a percentage of 1/3 of the smaller dimension of the layer. Otherwise, it's a number of pixels. Here is the new code: Code: Select all cl_circ_prerelease : Sorry. With these settings i still get an error. Code: Select all cl_tangentialCircle_prerelease 100,2,1,10,3,255,255,255,0,0,0,0 Attachment: 2022-09-20_113707.jpg [ 233.42 KiB | Viewed 1865 times ] Has to be my RAM output. |
Author: | Rod [ Tue Sep 20, 2022 10:50 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
As long as i use 1 level it works. But now i have no nifty design. Code: Select all cl_tangentialCircle_prerelease 100,2,1,10,1,0,0,0,0,85,0,2 |
Author: | Rod [ Tue Sep 20, 2022 10:55 am ] |
Post subject: | Re: New G'MIC filter "Tangential Circles" |
Attachment: TEST_RD-TCircles.png [ 186.39 KiB | Viewed 1865 times ] |
Page 1 of 2 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |