Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add Support for Single Channel Images #11

Open
swtb3 opened this issue Jul 6, 2023 · 1 comment
Open

[Feature] Add Support for Single Channel Images #11

swtb3 opened this issue Jul 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@swtb3
Copy link

swtb3 commented Jul 6, 2023

Is your feature request related to a problem? Please describe.

Often when performing operations on images our solution will greyscale an image on importing it. In my own project I have a set of images I want to run several image metrics on. So i have already turned the images from multi-channel to single-channel. However now when I call score(image) I get an error saying the image cannot be grayscaled.

Describe the solution you'd like

The 'Score' method should check the channels of an image and grayscale it only if the channels > 1. else it should proceed without attempting to grayscale the already single channel image.

Describe alternatives you've considered

Adding fake channels to my grayscale so it appears to be multichannel

@swtb3 swtb3 added the enhancement New feature or request label Jul 6, 2023
@rehanguha
Copy link
Owner

Hi, This is a great idea but there will be flaw in terms of the scoring. The scoring is made on multi-channel images and not with single channel images. So, the best solution is to train a model with single channel images and generate new scores.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants