Thanks. This helps a lot.
Thanks. I've tried this, and it usually works for smaller images but it's not so good for for larger ones. A grid larger than 3x3 may be needed for some of the larger patterns. But making a 2x2 or 3x3 is a good way of checking that the method above has worked or not.
(08-28-2023, 04:55 PM)PixLab Wrote:After setting the preferences as you described, I used this approach to colour an image. It's essentially the same as the method I'd previously been using that shifts the image by +1/-1 pixel in both X and y. The main difference is that the ends of the lines are to be found along the vertical or horizontal mid point, instead of at the edges of the image. Both Offset and G'MIC Cartesian transform can be set in terms of absolute pixel dimensions or relative to image dimensions, so they do the same job, but this tool is quicker than going through the G'MIC filter menu.(08-28-2023, 04:13 PM)notl Wrote: using the paint bucket to fill an area, identifying where it reaches an edge, then identifying where it connects on the opposite side, then flood filling that new area, and so on until it returns to the bit that was first filled.
I'm not going to help you code something, it's way above my head, on the other hand I'll show you how to do it in GIMP without you having the need to search to identify where is where.
There is a tool that does not show up in the tool box by default, it's called Offset
Go to Edit > Preferences a window opens, go to Interface > Toolbox on the left side scroll-down and tick the eye of the Offset tool, now it appears in the toolbox
Colore your things, once you have reached the edges, select the Offset tool then click on your image, a window open click on that biggest button w/2 - h/2 >OK
Continue to color, once reached the edges, reselect the Offset tool, do it again...
once you cannot reach any edge, you're done, no labyrinth to follow, no calculation needed
If the black pattern does not look like the original at the end, just put it back to the original pattern with .. -> yes again -> the Offset tool one more time
Yes I did colored it with the bucket tool -> line art detection "on", and the offset tool
(08-28-2023, 07:49 PM)Blighty Wrote: Another possibility:
Use Filters > Map > Tile
Change the W and H to 272*3. Image is now 816x816
Set guides to show 3x3 matrix
Working on the centre portion, select and bucket fill.
When done, crop out the centre 272x272 portion.
Thanks. I've tried this, and it usually works for smaller images but it's not so good for for larger ones. A grid larger than 3x3 may be needed for some of the larger patterns. But making a 2x2 or 3x3 is a good way of checking that the method above has worked or not.