packages feed

patch-image-0.3.2: patch-image.cabal

Name:           patch-image
Version:        0.3.2
License:        BSD3
License-File:   LICENSE
Author:         Henning Thielemann <haskell@henning-thielemann.de>
Maintainer:     Henning Thielemann <haskell@henning-thielemann.de>
Homepage:       http://hub.darcs.net/thielema/patch-image/
Category:       Graphics
Synopsis:       Compose a big image from overlapping parts
Description:
  Compose a collage from overlapping image parts.
  In contrast to Hugin,
  this is not intended for creating panoramas from multiple photographies,
  but instead is specialised to creating highly accurate reconstructions
  of flat but big image sources, like record covers, posters or newspapers.
  It solves the problem that your scanner may be too small
  to capture a certain image as a whole.
  .
  There are two versions of the program:
  .
  * A version using LLVM via the @knead@ package:
    Enable it with the Cabal flag @-fllvm@.
  .
  * A version using CUDA via @accelerate-cuda@:
    Enable it with the Cabal flag @-fcuda@.
  .
  Both of them have their individual installation difficulties.
  .
  Restrictions:
  .
  * Only supports JPEG format.
  .
  * Images must be approximately correctly oriented.
  .
  * May have problems with unstructured areas in the image.
Tested-With:    GHC==7.8.3
Cabal-Version:  >=1.6
Build-Type:     Simple
Extra-Source-Files:
  Changes.md
  README.md

Source-Repository this
  Tag:         0.3.2
  Type:        darcs
  Location:    http://hub.darcs.net/thielema/patch-image/

Source-Repository head
  Type:        darcs
  Location:    http://hub.darcs.net/thielema/patch-image/

Flag llvm
  Description: Build program version base on knead
  Default:     True
  Manual:      True

Flag cuda
  Description: Build program version base on accelerate-cuda
  Manual:      True

Flag buildDraft
  Description: Build draft program
  Default:     False
  Manual:      True

Executable patch-image-llvm
  Main-Is: Knead.hs
  Other-Modules:
    MatchImageBorders
    Knead.CArray
    Knead.Shape
    Complex
    State
    LinearAlgebra
    Arithmetic
    Degree
    Option.Utility
    Option
  Hs-Source-Dirs: src

  GHC-Options: -Wall -threaded -fwarn-tabs -fwarn-incomplete-record-updates
  GHC-Prof-Options: -fprof-auto -rtsopts

  If flag(llvm)
    Build-Depends:
      knead >=0.3 && <0.4,
      llvm-extra >=0.8 && <0.9,
      llvm-tf >=3.1 && <3.2,
      tfp >=1.0 && <1.1,
      JuicyPixels >=2.0 && <3.3,
      dsp >=0.2.4 && <0.3,
      vector >=0.10 && <0.13,
      pqueue >=1.2 && <1.5,
      enumset >=0.0.4 && <0.1,
      containers >=0.4.2 && <0.7,
      semigroups >=0.1 && <1.0,
      fft >=0.1.7 && <0.2,
      storable-complex >=0.2.2 && <0.3,
      storable-tuple >=0.0.3 && <0.1,
      bool8 >=0.0 && <0.1,
      carray >=0.1.5 && <0.2,
      array >=0.4 && <0.6,
      cassava >=0.4.5 && <0.5.2,
      unordered-containers >=0.2.5 && <0.2.10,
      bytestring >=0.9.2 && <0.11,
      explicit-exception >=0.1.7 && <0.2,
      Cabal >=1.18 && <3,
      filepath >=1.3 && <1.5,
      non-empty >=0.2 && <0.4,
      utility-ht >=0.0.13 && <0.1,
      prelude-compat ==0.0.*,
      base >=4 && <5
  Else
    Buildable: False

Executable patch-image-cuda
  Main-Is: Accelerate.hs
  Other-Modules:
    State
    LinearAlgebra
    Arithmetic
    Complex
    Degree
    Option.Utility
    Option
  Hs-Source-Dirs: src

  GHC-Options: -Wall -threaded -fwarn-tabs -fwarn-incomplete-record-updates
  GHC-Prof-Options: -fprof-auto -rtsopts

  If flag(cuda)
    Build-Depends:
      accelerate-fourier >=1.0 && <1.1,
      accelerate-arithmetic >=1.0 && <1.1,
      accelerate-utility >=1.0 && <1.1,
      accelerate-cufft >=1.0 && <1.1,
      accelerate-llvm-ptx >=1.1 && <1.2,
      accelerate-io >=1.0 && <1.1,
      accelerate >=1.1 && <1.2,
      JuicyPixels >=2.0 && <3.3,
      cassava >=0.4.5 && <0.5.2,
      dsp >=0.2.4 && <0.3,
      gnuplot >=0.5 && <0.6,
      containers >=0.4.2 && <0.7,
      array >=0.4 && <0.6,
      vector >=0.10 && <0.13,
      unordered-containers >=0.2.5 && <0.2.10,
      bytestring >=0.9.2 && <0.11,
      enumset >=0.0.4 && <0.1,
      explicit-exception >=0.1.7 && <0.2,
      Cabal >=1.18 && <3,
      filepath >=1.3 && <1.5,
      non-empty >=0.2 && <0.4,
      utility-ht >=0.0.1 && <0.1,
      base >=4 && <5
  Else
    Buildable: False

Executable patch-image-draft
  Main-Is: Draft.hs
  Hs-Source-Dirs: src

  GHC-Options: -Wall -fwarn-tabs -fwarn-incomplete-record-updates

  If flag(buildDraft)
    Build-Depends:
      JuicyPixels >=2.0 && <3.3,
      GeomAlgLib >=0.2 && <0.3,
      utility-ht >=0.0.1 && <0.1,
      base >=4 && <5
  Else
    Buildable: False