It seems that you image contains values that cannot be represented in short
type. To resolve this, you can rescale the image intensity before casting to a different scalar type.
It seems that you image contains values that cannot be represented in short
type. To resolve this, you can rescale the image intensity before casting to a different scalar type.