Skip to content

[FEATURE]: Adaptive samples count #65

Open
@roshameow

Description

@roshameow

Description

I noticed that in segmentation.py/detect_colour_checkers_segmentation the samples is a passed in parameter. Would it be more natural if we instead pass in the ratio of samples/colorchecker to adapt different checkerboard size?

This line can be modified as following:
https://github.com/colour-science/colour-checker-detection/blob/develop/colour_checker_detection/detection/segmentation.py#L1097

samples_ratio=4
samples = int(np.sqrt(height*width/(swatches_h*swatches_v))/samples_ratio)
masks = swatch_masks(width, height, swatches_h, swatches_v, samples)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions