Skip to content

Split subtract in 2 methods ? #319

Open
@lpatiny

Description

@lpatiny

subtract allows an Image and a Mask but in the code there is practically nothing common depending the kind of images.

export function subtract(
image: Image | Mask,
otherImage: Image | Mask,
options: SubtractImageOptions = {},

Should we not just split this method ? One for Image and one for Mask.

This could be part of the refactor:

#304

Should we in the folder operators split the one for Mask and the one for Image and have helpers if the code is common ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions