never executed always true always false
    1 module OpenCV.ImgProc.Types
    2     ( InterpolationMethod(..)
    3     , BorderMode(..)
    4     ) where
    5 
    6 import "this" OpenCV.Core.Types ( Scalar )
    7 
    8 --------------------------------------------------------------------------------
    9 
   10 data InterpolationMethod
   11    = InterNearest -- ^ Nearest neighbor interpolation.
   12    | InterLinear -- ^ Bilinear interpolation.
   13    | InterCubic -- ^ Bicubic interpolation.
   14    | InterArea
   15      -- ^ Resampling using pixel area relation. It may be a preferred method for
   16      -- image decimation, as it gives moire'-free results. But when the image is
   17      -- zoomed, it is similar to the 'InterNearest' method.
   18    | InterLanczos4 -- ^ Lanczos interpolation over 8x8 neighborhood
   19      deriving Show
   20 
   21 -- TODO (RvD): Show instance
   22 -- Needs a Show instance for Scalar
   23 data BorderMode
   24    = BorderConstant Scalar -- ^ 1D example: @iiiiii|abcdefgh|iiiiiii@  with some specified @i@
   25    | BorderReplicate   -- ^ 1D example: @aaaaaa|abcdefgh|hhhhhhh@
   26    | BorderReflect     -- ^ 1D example: @fedcba|abcdefgh|hgfedcb@
   27    | BorderWrap        -- ^ 1D example: @cdefgh|abcdefgh|abcdefg@
   28    | BorderReflect101  -- ^ 1D example: @gfedcb|abcdefgh|gfedcba@
   29    | BorderTransparent -- ^ 1D example: @uvwxyz|absdefgh|ijklmno@
   30    | BorderIsolated    -- ^ do not look outside of ROI