Skip to content

Difference between output of "colour.read_image" definition and Matlab "imread". #738

Answered by KelSolaar
hminle asked this question in Q&A
Discussion options

You must be logged in to vote

By the way, when reading into float32, does Colour normalize the output?

Yes it does! The relevant conversion code is here:

def convert_bit_depth(a, bit_depth='float32'):

Here is a quick Colab notebook showing some back and forth: https://colab.research.google.com/drive/1D4uB_K2MknkdB6aJ65sejcza8Ex0mKkr

It should be useful! Let me know if you have any questions!

Replies: 12 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by KelSolaar
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #565 on January 16, 2021 22:57.