Switch to full style
Ask all general Gimp related questions here
Post a reply

math tools like union and intersect?

Wed Jul 28, 2021 9:37 am

GIMP Version: Newest
Operating System: Windows
GIMP Experience: Basic Level



Does gimp have those math tools like union, and intersect? I have been searching and not finding anything. I thought i watched a video and he showed them, but cant find it now.

Re: math tools like union and intersect?

Wed Jul 28, 2021 9:54 am

The selection tools have some of those as modes. replace - add - subtract - intersect.

mode.jpg
mode.jpg (18.95 KiB) Viewed 3403 times


A 30 second demo https://i.imgur.com/w4s4AqE.mp4

Re: math tools like union and intersect?

Wed Jul 28, 2021 10:47 am

rich2005 wrote:The selection tools have some of those as modes. replace - add - subtract - intersect.

mode.jpg


A 30 second demo https://i.imgur.com/w4s4AqE.mp4

thank you, i was hoping for something more advanced like all the other graphic programs. Even the free one for my cutter has the tools, just set up the layers and click intersection, etc. hmm, lol wonder if i can port them to that program. lol.

Re: math tools like union and intersect?

Wed Jul 28, 2021 11:02 am

Sounds like "all the other graphic programs" are vector applications. Perhaps Gimp is not the tool to use.

Re: math tools like union and intersect?

Wed Jul 28, 2021 11:11 am

rich2005 wrote:Sounds like "all the other graphic programs" are vector applications. Perhaps Gimp is not the tool to use.


not true, but thanks. lol. The subroutines are there. Just not coded for easy manipulations.

Re: math tools like union and intersect?

Wed Jul 28, 2021 11:18 am

iti wrote:Even the free one for my cutter has the tools, ...

I suspect your cutter uses vectors.

Can your cutter use .svg files? If it can, use Inkscape. It has those tools.
(Inkscape is a vector editor, Gimp is a bitmap editor.)

Re: math tools like union and intersect?

Wed Jul 28, 2021 12:28 pm

iti wrote:
rich2005 wrote:Sounds like "all the other graphic programs" are vector applications. Perhaps Gimp is not the tool to use.


not true, but thanks. lol. The subroutines are there. Just not coded for easy manipulations.


They are there and can be used. If you have a channel/mask you can right click it and combine it with the selection using replace/add/subtract/intersect operations. There are also available in the script-fu/python-fu APIs.

However, "union/difference" assumes boolean while a channel value is a number, which is why the operations are add/subtract.

Re: math tools like union and intersect?

Wed Jul 28, 2021 3:20 pm

Blighty II wrote:
iti wrote:Even the free one for my cutter has the tools, ...

I suspect your cutter uses vectors.

Can your cutter use .svg files? If it can, use Inkscape. It has those tools.
(Inkscape is a vector editor, Gimp is a bitmap editor.)


it doesnt matter, the routines are there, but the code is not. simple as that, vector of bitmap does not matter.
Post a reply