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

ignore low_contrast warning #292

Merged
merged 2 commits into from
Oct 24, 2020
Merged

ignore low_contrast warning #292

merged 2 commits into from
Oct 24, 2020

Conversation

omerbt
Copy link
Contributor

@omerbt omerbt commented Oct 23, 2020

What is the purpose of this PR?

To avoid the repeating warning: 'X.tif is a low contrast image'. closes #260
This warning is raised when saving the preprocessed .tif images to the deepcell_input dir.

How did you implement your changes

Setting the optional parameter check_contrast of skimage.io.imsave to false.

Copy link
Member

@ngreenwald ngreenwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Not sure if you did this already, but can you do a search through the repository to see if there are any other spots where we save images that this same warning might come up?

@omerbt
Copy link
Contributor Author

omerbt commented Oct 24, 2020

We save images also in plot_overlay. The images that are saved in this function are not supposed to be with low contrast. I'm not sure if we should turn off this flag there, because in case we do get this warning when saving images in this function, it might be because of a real unexpected problem.

Copy link
Member

@ngreenwald ngreenwald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay great, thanks

@omerbt omerbt merged commit 68c5589 into master Oct 24, 2020
@omerbt omerbt deleted the low_contrast_warning branch October 24, 2020 17:47
alex-l-kong pushed a commit that referenced this pull request Jan 14, 2021
y2kbugger pushed a commit that referenced this pull request Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

low contrast image warning
2 participants