Skip to content

Add support for images with 4 channels #12

@YavorGIvanov

Description

@YavorGIvanov

Currently the code in load_image_from_file(..) function is naively written to only support 3 channels and return error if this is not the case. This is very limiting as a lot of images have additional alpha channel in them and we are not able to test SAM with them due to that.

static bool load_image_from_file(const std::string & fname, sam_image_u8 & img) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions