How to convert precision in Image type from Double to Word8 using HIP?
问题 I have an image in the type Image VS Y Double (after using function readImageY from HIP library) and I want to convert it to Image VS Y Word8 . How should I go about doing this? I need to have it in this precision for the next function I am applying this to. Here's a snippet of the relevant code: import Codec.Picture import Codec.Picture.Types import Control.Arrow import Data.Ratio import Data.Monoid import Graphics.Image.Processing import qualified Graphics.Image as I import Graphics.Image