Skip to content

HSV Threshold Mask output is labeled as IMAGE but it's MASK #19

@scruffynerf

Description

@scruffynerf
class HSVThresholdMask:
    ...
    RETURN_TYPES = ("IMAGE",)
    ...

    def hsv_threshold(self, image: torch.Tensor, low_threshold: float, high_threshold: float, hsv_channel: str):
     ...
            mask = cv2.inRange(hsv_image[:, :, channel], low_threshold, high_threshold)
            tensor = torch.from_numpy(mask).float() / 255.
            result[b] = tensor
        return (result,)

is this supposed to return a Mask or an Image? it's not a proper Image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions