diff options
Diffstat (limited to 'gnu/packages/image-processing.scm')
-rw-r--r-- | gnu/packages/image-processing.scm | 109 |
1 files changed, 81 insertions, 28 deletions
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 272f400f67..1995f71cc2 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017 John Darrington <jmd@gnu.org> -;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@elephly.net> -;;; Copyright © 2014, 2021 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2017, 2019, 2022 Ricardo Wurmus <rekado@elephly.net> +;;; Copyright © 2014, 2021-2022 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org> ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr> @@ -38,6 +38,7 @@ (define-module (gnu packages image-processing) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) + #:use-module (guix gexp) #:use-module (guix utils) #:use-module (guix download) #:use-module (guix git-download) @@ -69,6 +70,7 @@ #:use-module (gnu packages icu4c) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) + #:use-module (gnu packages linux) #:use-module (gnu packages maths) #:use-module (gnu packages pdf) #:use-module (gnu packages perl) @@ -91,6 +93,55 @@ #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +;; TODO: this is not reproducible. +(define-public bart + (package + (name "bart") + (version "0.7.00") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mrirecon/bart") + (commit "d1b0e576c3f759089915565d5bf57832acf7b03e"))) + (file-name (git-file-name name version)) + (sha256 + (base32 "159rj3agr9pb9lg38b56rnw3d8wcbkmb2n718z26zpy4c6a6d9rn")))) + (build-system gnu-build-system) + (arguments + (list + #:test-target "utest" + #:make-flags #~(list + (string-append "PREFIX=" #$output) + "OPENBLAS=1" + "SCALAPACK=1" + (string-append "BLAS_BASE=" #$(this-package-input "openblas")) + (string-append "FFTW_BASE=" #$(this-package-input "fftw"))) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'patch-/bin/bash + (lambda _ + (substitute* "tests/pics.mk" + (("/bin/bash") (which "bash")))))))) + (inputs + (list fftw + fftwf + libpng + openblas + python + scalapack)) + (native-inputs + (list doxygen + util-linux)) ;for flock + (home-page "https://mrirecon.github.io/bart/") + (synopsis "Toolbox for computational magnetic resonance imaging") + (description "The Berkeley Advanced Reconstruction Toolbox (BART) is an +image-reconstruction framework for Computational Magnetic Resonance Imaging. +The tools in this software implement various reconstruction algorithms for +Magnetic Resonance Imaging.") + (license license:bsd-3))) + (define-public dcmtk (package (name "dcmtk") @@ -314,31 +365,31 @@ many popular formats.") (("fenv.h") "cfenv"))))) #:tests? #f)) ;XXX: test data not included (inputs - `(("double-conversion" ,double-conversion) - ("eigen" ,eigen) - ("expat" ,expat) - ("freetype" ,freetype) - ("gl2ps" ,gl2ps) - ("glew" ,glew) - ("glu" ,glu) - ("hdf5" ,hdf5) - ("jpeg" ,libjpeg-turbo) - ("jsoncpp" ,jsoncpp) - ("libtheora" ,libtheora) - ("libX11" ,libx11) - ("libxml2" ,libxml2) - ("libXt" ,libxt) - ("lz4" ,lz4) - ("mesa" ,mesa) - ("netcdf" ,netcdf) - ("png" ,libpng) - ("proj" ,proj) - ("python", python) - ;("pugixml" ,pugixml) - ("sqlite" ,sqlite) - ("tiff" ,libtiff) - ("xorgproto" ,xorgproto) - ("zlib" ,zlib))) + (list double-conversion + eigen + expat + freetype + gl2ps + glew + glu + hdf5 + libjpeg-turbo + jsoncpp + libtheora + libx11 + libxml2 + libxt + lz4 + mesa + netcdf + libpng + proj + python + ;("pugixml" ,pugixml) + sqlite + libtiff + xorgproto + zlib)) (propagated-inputs ;; VTK's 'VTK-vtk-module-find-packages.cmake' calls ;; 'find_package(THEORA)', which in turns looks for libogg. @@ -370,7 +421,8 @@ integrates with various databases on GUI toolkits such as Qt and Tk.") "0pla1r5mvkgl4sl213gfdhzrypdgai0h3z5mfgm6p9jz9hsr794j")))) (inputs (modify-inputs (package-inputs vtk) - (replace "jsoncpp" jsoncpp-for-tensorflow))))) + (replace "jsoncpp" jsoncpp-for-tensorflow) + (replace "python" python-2))))) ;fails to build with Python 3.9 (define-public opencv (package @@ -428,6 +480,7 @@ integrates with various databases on GUI toolkits such as Qt and Tk.") "-DWITH_ITT=OFF" "-DWITH_CAROTENE=OFF" ; only visible on arm/aarch64 "-DENABLE_PRECOMPILED_HEADERS=OFF" + "-DOPENCV_GENERATE_PKGCONFIG=ON" ;; CPU-Features: ;; See cmake/OpenCVCompilerOptimizations.cmake |