Skip to content
Commits on Source (3)
......@@ -64,6 +64,7 @@ echo "Log Directory............. $PROJECT_LOG_DIR" >> /tmp/report.txt
echo "Branch.................... $CI_COMMIT_REF_NAME" >> /tmp/report.txt
echo "CAMITK_CI_MODE............ $CAMITK_CI_MODE" >> /tmp/report.txt
echo "CAMITK_CI_STAGE........... $CAMITK_CI_STAGE" >> /tmp/report.txt
echo "CAMITK_PACKAGING.......... $CAMITK_PACKAGING" >> /tmp/report.txt
# cleanup log directory
if [ -d ${PROJECT_LOG_DIR} ] ; then
......
......@@ -74,7 +74,7 @@ stages:
- build
- test
- coverage
- package
# -------------------------------------
# trigger config
......@@ -93,16 +93,24 @@ stages:
- triggers
- schedules
.define_config: &skip_when_packaging
except:
variables:
# CAMITK_PACKAGING should be only set to TRUE in the pipeline schedule GUI
- $CAMITK_PACKAGING
# -------------------------------------
# before script and tag
# -------------------------------------
.define_config: &default_job_config
# uncomment next line if you want ci scripts to only be triggered by specific api call
# <<: *triggered_by_api_call_and_schedules
# default CI jobs (apart from packaging) should run all the time, but not when packaging
<<: *skip_when_packaging
before_script:
# use Linux before script
- .gitlab/before.sh
# uncomment next line if you want ci scripts to only be triggered by specific api call
# <<: *triggered_by_api_call_and_schedules
# -------------------------------------
# scripts
......@@ -373,3 +381,41 @@ win7_test:
<<: *default_job_config
<<: *test_artifacts
<<: *test_script
# -------------------------------------
# debian unstable jobs (for packaging)
# -------------------------------------
debian_unstable_packaging:
# Use the default image "debian:unstable" from docker.io
# And then build everything from scratch
image: debian:sid
variables:
# OS Id
OS: "debian-unstable"
# the name of the current machine
CDASH_SITE: "[Gitlab Runner] Debian unstable"
# compiler-arch-buildtype string
COMPILER_CONFIG: "GCC-64bits-Debug"
# path to the intended build directory
PROJECT_BUILD_DIR: "/opt/build/${OS}-${CI_COMMIT_REF_SLUG}"
# path to the intended log directory (cannot be an absolute path)
PROJECT_LOG_DIR: "${OS}-${CI_COMMIT_REF_SLUG}/log"
tags:
# packaging unstable image is on the debian:stable runner (debian stable host)
- debian:stable
stage: package
script:
# use the specific script
- .gitlab/package.sh
only:
variables:
# packaging only triggered by schedule, not commit/merge
# CAMITK_PACKAGING should be set to TRUE in the pipeline schedule GUI
- $CAMITK_PACKAGING == "TRUE"
artifacts:
paths:
- ${PROJECT_LOG_DIR}/check-environment.log
- ${PROJECT_LOG_DIR}/prepare-package-environment.log
- ${PROJECT_LOG_DIR}/build-package.log
when: always
expire_in: 31 days
#!/bin/bash
# Uncomment next line to debug
# set -x
# cleanup apt state
function cleanup-apt-pre() {
echo "## apt update" > >(tee --append ${PACKAGE_LOG}) 2>&1
apt-get -qq update > /dev/null
echo "## apt clean" > >(tee --append ${PACKAGE_LOG}) 2>&1
apt-get -qq clean > /dev/null
echo "## apt upgrade" > >(tee --append ${PACKAGE_LOG}) 2>&1
apt-get -qq --assume-yes upgrade > >(tee --append ${PACKAGE_LOG} | grep --line-buffered -e "^Get" -e "Setting up") 2>&1
echo "## apt update" > >(tee --append ${PACKAGE_LOG}) 2>&1
apt-get -qq update > >(tee --append ${PACKAGE_LOG} | grep --line-buffered -e "^Get" -e "Setting up") 2>&1
echo "## apt fix broken" > >(tee --append ${PACKAGE_LOG}) 2>&1
apt-get -qq --fix-broken install > /dev/null
}
function cleanup-apt-post() {
echo "## apt autoremove" > >(tee --append ${PACKAGE_LOG}) 2>&1
apt-get -qq --assume-yes autoremove > /dev/null
echo "## apt clean" > >(tee --append ${PACKAGE_LOG}) 2>&1
apt-get -qq clean > /dev/null
}
if [ "$OS" == "win7" ]; then
# there is no docker on windows
CONTAINER_ID=0
else
CONTAINER_ID=$(cat /proc/self/cgroup | head -n 1 | cut -d '/' -f3)
fi
# default stage is coverage
if [[ "$CAMITK_CI_STAGE" == "" ]]; then
CAMITK_CI_STAGE="$STAGE_PACKAGE";
fi
# default mode is Continuous for develop, Experimental for any other branches
if [[ "$CAMITK_CI_MODE" == "" ]]; then
if [[ "$CI_COMMIT_REF_NAME" == "develop" ]]; then
CAMITK_CI_MODE="Continuous";
else
CAMITK_CI_MODE="Experimental";
fi
fi
# cleanup log directory
if [ -d ${PROJECT_LOG_DIR} ] ; then
rm -rf ${PROJECT_LOG_DIR};
fi
mkdir -p ${PROJECT_LOG_DIR}
# define log filenames
CHECK_LOG=$(pwd)/${PROJECT_LOG_DIR}/check-environment.log
PACKAGE_LOG=$(pwd)/${PROJECT_LOG_DIR}/prepare-package-environment.log
BUILD_PACKAGE_LOG=$(pwd)/${PROJECT_LOG_DIR}/build-package.log
# output all information to report file
echo "Docker container id....... $CONTAINER_ID" > ${CHECK_LOG}
echo "Job....................... $CI_JOB_NAME" >> ${CHECK_LOG}
echo "Job id.................... $CI_JOB_ID" >> ${CHECK_LOG}
echo "Build Directory........... $PROJECT_BUILD_DIR" >> ${CHECK_LOG}
echo "Log Directory............. $PROJECT_LOG_DIR" >> ${CHECK_LOG}
echo "Branch.................... $CI_COMMIT_REF_NAME" >> ${CHECK_LOG}
echo "CAMITK_CI_MODE............ $CAMITK_CI_MODE" >> ${CHECK_LOG}
echo "CAMITK_CI_STAGE........... $CAMITK_CI_STAGE" >> ${CHECK_LOG}
# show report
cat ${CHECK_LOG}
echo "\n" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "#################################" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "# Prepare image #" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "#################################\n" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## id=$(id)" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## Working Directory=$(pwd)" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## Modifying /etc/apt/sources.list" > >(tee --append ${PACKAGE_LOG}) 2>&1
sed -i "s/deb.debian.org/debian.univ-lorraine.fr/" /etc/apt/sources.list
# DEBIAN_FRONTEND=noninteractive is to prevent question asked on interactive shell (e.g. "Please select the layout matching the keyboard for this machine"
export DEBIAN_FRONTEND=noninteractive
cleanup-apt-pre
# apt install -y build-essential devscripts equivs fakeroot quilt dh-make automake libdistro-info-perl less vim piuparts git xpra net-tools cme libconfig-model-dpkg-perl libconfig-model-itself-perl devscripts cdbs git-buildpackage autopkgtest schroot gdb clang-tidy iwyu python-yaml doxygen lcov gcovr ccache wget > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## apt install wget git-buildpackage lintian autopkgtest cme" > >(tee --append ${PACKAGE_LOG}) 2>&1
apt-get -qq --assume-yes install wget git-buildpackage lintian autopkgtest cme > >(tee --append ${PACKAGE_LOG} | grep --line-buffered -e "^Get" -e "^Setting up") 2>&1
cleanup-apt-post
echo "## Create ~/.gbp.conf" > >(tee --append ${PACKAGE_LOG}) 2>&1
cat > ~/.gbp.conf << 'EOF'
[DEFAULT]
# color everything
color = auto
pristine-tar-commit = True
pristine-tar = True
# Add a very verbose lintian after the build and normal lintian check
postbuild = ~/.gbp-postbuild.sh
# display information
prebuild = echo "=========================" && echo "GBP_GIT_DIR=$GBP_GIT_DIR" && echo "GBP_BUILD_DIR=$GBP_BUILD_DIR" && echo "========================="
EOF
# echo "## ~/.gbp.conf" > >(tee --append ${PACKAGE_LOG}) 2>&1
# cat ~/.gbp.conf > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## Create ~/.gbp-postbuild.sh" > >(tee --append ${PACKAGE_LOG}) 2>&1
cat > ~/.gbp-postbuild.sh << 'EOF'
!/bin/bash
# works when gbp exports for instance, the following variables
# GBP_BUILD_DIR=/root/packaging/tmp/camitk-debian-ci
# GBP_CHANGES_FILE=/root/packaging/tmp/camitk_4.2.201807251601-1_amd64.changes
set -e
# ---------------------- variables ----------------------
echo "========================="
NOW=$(date +%Y-%m-%d-%H:%M)
echo "GBP_BUILD_DIR=$GBP_BUILD_DIR"
echo "GBP_CHANGES_FILE=$GBP_CHANGES_FILE"
echo "Changes files:"
ls -la $GBP_CHANGES_FILE
echo "All files:"
ls -la
# ---------------------- lintian ----------------------
echo "========================="
lintianHost=$(lintian --version)
lintian -iIE --pedantic $GBP_CHANGES_FILE 2>&1 | tee ../lintian-$NOW-log.txt
# ---------------------- autopkgtest ----------------------
echo "========================="
# we need to write a bash script in order to run autopkgtest inside the sid-dev docker
autopkgtest -l ../autopkgtest-$NOW-log.txt $GBP_CHANGES_FILE -- null
EOF
# echo "## ~/.gbp-postbuild.sh" > >(tee --append ${PACKAGE_LOG}) 2>&1
# cat ~/.gbp-postbuild.sh > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## Make ~/.gbp-postbuild.sh executable" > >(tee --append ${PACKAGE_LOG}) 2>&1
chmod a+x ~/.gbp-postbuild.sh
ls -la ~ > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "\n" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "#################################" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "# Prepare source code #" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "#################################\n" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## Get current develop branch version" > >(tee --append ${PACKAGE_LOG}) 2>&1
wget --quiet https://gricad-gitlab.univ-grenoble-alpes.fr/CamiTK/CamiTK/raw/develop/CamiTKVersion.cmake --output-document=/tmp/CamiTKVersion.cmake
export VERSION_MAJOR=$(grep CAMITK_VERSION_MAJOR /tmp/CamiTKVersion.cmake | cut -f2 -d'"')
export VERSION_MINOR=$(grep CAMITK_VERSION_MINOR /tmp/CamiTKVersion.cmake | cut -f2 -d'"')
export VERSION_PATCH=$(grep CAMITK_VERSION_PATCH /tmp/CamiTKVersion.cmake | cut -f2 -d'"')
export NEW_VERSION="$VERSION_MAJOR.$VERSION_MINOR.$(date +"%Y%m%d%H%M")"
echo "→ Detected version: $NEW_VERSION" > >(tee --append ${PACKAGE_LOG}) 2>&1
# copy the clone to another workspace to work on
echo "## Clone debian git" > >(tee --append ${PACKAGE_LOG}) 2>&1
gbp clone https://salsa.debian.org/med-team/camitk.git camitk-debian-ci > >(tee --append ${PACKAGE_LOG}) 2>&1
# ls -la camitk-debian-ci > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## Create local upstream-ci branches" > >(tee --append ${PACKAGE_LOG}) 2>&1
cd camitk-debian-ci
git pull > >(tee --append ${PACKAGE_LOG}) 2>&1
git checkout --track origin/upstream > >(tee --append ${PACKAGE_LOG}) 2>&1
git checkout --track origin/upstream-ci/master > >(tee --append ${PACKAGE_LOG}) 2>&1
git checkout upstream > >(tee --append ${PACKAGE_LOG}) 2>&1
git checkout -b upstream-ci/upstream > >(tee --append ${PACKAGE_LOG}) 2>&1
git checkout master > >(tee --append ${PACKAGE_LOG}) 2>&1
git config --local user.email Emmanuel.Promayon@univ-grenoble-alpes.fr > >(tee --append ${PACKAGE_LOG}) 2>&1
git config --local user.name "Emmanuel Promayon" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## git status" > >(tee --append ${PACKAGE_LOG}) 2>&1
git status > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## Download the current develop version tarball" > >(tee --append ${PACKAGE_LOG}) 2>&1
rm -f ../*.tar.bz2
gbp import-orig \
--upstream-branch=upstream-ci/upstream \
--debian-branch=upstream-ci/master \
--no-pristine-tar \
--no-interactive \
--upstream-version=$NEW_VERSION \
https://gricad-gitlab.univ-grenoble-alpes.fr/CamiTK/CamiTK/-/archive/develop/CamiTK-develop.tar.bz2 > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## Add a snapshot in history" > >(tee --append ${PACKAGE_LOG}) 2>&1
git checkout upstream-ci/master > >(tee --append ${PACKAGE_LOG}) 2>&1
gbp dch --git-author --upstream-branch=upstream-ci/upstream --debian-branch=upstream-ci/master --new-version=$NEW_VERSION-1 > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## debian/changelog (last entry)" > >(tee --append ${PACKAGE_LOG}) 2>&1
sed -n '1,/^ --/ p' debian/changelog > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## Install deps" > >(tee --append ${PACKAGE_LOG}) 2>&1
cd ..
cleanup-apt-pre
#mk-build-deps -t "apt-get -qq --assume-yes --no-install-recommends -o Debug::pkgProblemResolver=yes" --install "camitk-debian-ci/debian/control" > >(tee --append ${PACKAGE_LOG} | grep --line-buffered -e "Get:" -e "Setting up") 2>&1
mk-build-deps -t "apt-get --assume-yes --no-install-recommends -o Debug::pkgProblemResolver=yes" --install "camitk-debian-ci/debian/control" > >(tee --append ${PACKAGE_LOG} | grep --line-buffered -e "^Get" -e "^Setting up") 2>&1
cleanup-apt-post
echo "\n" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "#################################" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "# Test package build #" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "#################################\n" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
cd camitk-debian-ci
echo "## Test building the package (directly on docker image, without pbuilder)" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
{ time gbp buildpackage --git-no-create-orig --git-ignore-new --git-upstream-branch=upstream-ci/upstream --git-debian-branch=upstream-ci/master ; } > >(tee --append ${BUILD_PACKAGE_LOG} | grep --line-buffered -e "^dpkg" -e "Built target" -e "Test \#" -e "^W:" -e "^P:" -e "^E:" -e "^I:" -e "^X:" -e "^=====" -e "^cepgenerator-test.sh" -e "^config-test.sh" -e "CMake.*Warning") 2>&1
echo "\n" > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "#################################" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "# Debian files check #" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "#################################\n" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "## Checking out upstream-ci/master" > >(tee --append ${PACKAGE_LOG}) 2>&1
git checkout upstream-ci/master
echo "## Check using cme" > >(tee --append ${PACKAGE_LOG}) 2>&1
DEBIAN_FRONTEND=noninteractive cme check dpkg > >(tee --append ${PACKAGE_LOG}) 2>&1
DEBIAN_FRONTEND=noninteractive cme check dpkg-control > >(tee --append ${PACKAGE_LOG}) 2>&1
DEBIAN_FRONTEND=noninteractive cme check dpkg-copyright > >(tee --append ${PACKAGE_LOG}) 2>&1
echo "## Check current version of debian-policy" > >(tee --append ${PACKAGE_LOG}) 2>&1
apt-get update
apt-cache policy debian-policy > >(tee --append ${PACKAGE_LOG}) 2>&1
DEB_POLICY_CURRENT=$(apt-cache policy debian-policy | grep "^ [0-9]" | sed -e "s/ [0-9]*$//g" | sed -e "s/\.[0.9]$//g" | xargs)
DEB_POLICY_IN_USE=$(grep "Standards-Version" debian/control | cut -f2 -d" " | xargs)
echo "Debian policy version: current=$DEB_POLICY_CURRENT used=$DEB_POLICY_IN_USE"
if [ "$DEB_POLICY_CURRENT" == "$DEB_POLICY_IN_USE" ]; then
echo "→ Debian standards version OK!"
else
echo "→ Please modify debian/control and update 'Standards-Version' field to $DEB_POLICY_CURRENT (instead of $DEB_POLICY_IN_USE)"
fi
echo "## Check current version of debhelper" > >(tee --append ${PACKAGE_LOG}) 2>&1
apt-get update
apt-cache policy debhelper > >(tee --append ${PACKAGE_LOG}) 2>&1
DEBHELPER_CURRENT=$(apt-cache policy debhelper | grep -e "^ [0-9]" | cut -f1 -d"." | sed -e "s/\.[0.9]$//g" | xargs)
DEBHELPER_CURRENT_FULL=$(apt-cache policy debhelper | grep -e "^ [0-9]" | sed -e "s/ [0-9]*$//g" | xargs)
DEBHELPER_IN_USE=$(cat debian/compat | xargs)
echo "Debian debhelper version: current=$DEBHELPER_CURRENT (full version is $DEBHELPER_CURRENT_FULL) used=$DEBHELPER_IN_USE"
if [ "$DEBHELPER_CURRENT" == "$DEBHELPER_IN_USE" ]; then
echo "→ Debian debhelper version OK!"
else
echo "→ Please modify debian/compat to $DEBHELPER_CURRENT (instead of $DEBHELPER_IN_USE)"
fi
# check package directory
echo "## ls current dir" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
ls -la . > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "## ls .." > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
ls -la .. > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
LOG_DIR=$(dirname ${BUILD_PACKAGE_LOG})
echo "## ls $LOG_DIR" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
ls -la $LOG_DIR > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "## ls /builds/CamiTK/CamiTK" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
ls -la /builds/CamiTK/CamiTK > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "## ls camitk-build" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
ls -la camitk-build > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
# echo "## check overrides" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
#cat debian/libcamitk4.lintian-overrides > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
# echo "## camitk-build/lib" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
# ls -la camitk-build/lib > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "## check overrides for libcamitkcore.so with with objdump" > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
LIB_FILENAME=$(ls camitk-build/lib/libcamitkcore.so.$VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH)
echo "checking $LIB_FILENAME"
objdump -p $LIB_FILENAME | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/' > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
echo "## check overrides for libmonitoring.so with with objdump " > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
LIB_FILENAME=$(ls camitk-build/lib/libmonitoring.so.$VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH)
echo "checking $LIB_FILENAME"
objdump -p $LIB_FILENAME | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/' > >(tee --append ${BUILD_PACKAGE_LOG}) 2>&1
# Check for failure of the packaging process
if [ -f /builds/CamiTK/CamiTK/camitk_$NEW_VERSION-1_amd64.changes ]; then
echo "Everything is OK, packages were build!"
else
echo "No changes file in /builds/CamiTK/CamiTK"
echo "The package was not generated, please check the artifacts and fix the problem:"
echo "- check environment : https://gricad-gitlab.univ-grenoble-alpes.fr/CamiTK/CamiTK/-/jobs/$CI_JOB_ID/artifacts/raw/debian-unstable-feature-continuous-packaging/log/check-environment.log"
echo "- prepare package environment : https://gricad-gitlab.univ-grenoble-alpes.fr/CamiTK/CamiTK/-/jobs/$CI_JOB_ID/artifacts/raw/debian-unstable-feature-continuous-packaging/log/prepare-package-environment.log"
echo "- build package : https://gricad-gitlab.univ-grenoble-alpes.fr/CamiTK/CamiTK/-/jobs/$CI_JOB_ID/artifacts/raw/debian-unstable-feature-continuous-packaging/log/build-package.log"
exit 1
fi
#Specific to SDK: control the version (major, minor, default patch and )
set(CAMITK_VERSION_MAJOR "4")
set(CAMITK_VERSION_MINOR "1")
set(CAMITK_VERSION_NICKNAME "burgundy") # Red Burgundy Amaranth Rose Auburn Cardinal Carmine Cerise Coquelicot Bordeaux
set(CAMITK_VERSION_PATCH "2") # patch version for packaging, change when appropriate
set(CAMITK_VERSION_MINOR "2")
set(CAMITK_VERSION_NICKNAME "Carmine") # Red Burgundy Carmine Amaranth Rose Auburn Cardinal Cerise Coquelicot Bordeaux
set(CAMITK_VERSION_PATCH "dev") # patch version for packaging, change when appropriate
......@@ -21,7 +21,7 @@ Build-Depends: debhelper (>= 11),
xauth,
doxygen,
graphviz
Standards-Version: 4.1.5
Standards-Version: 4.2.1
Vcs-Browser: https://salsa.debian.org/med-team/camitk
Vcs-Git: https://salsa.debian.org/med-team/camitk.git
Homepage: https://camitk.imag.fr/
......@@ -45,8 +45,10 @@ Architecture: any
Depends: libcamitk4 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends}
Replaces: libcamitk3, libcamitk4 (<< 4.1.2)
Breaks: libcamitk3, libcamitk4 (<< 4.1.2)
Breaks: libcamitk3,
libcamitk4 (<< 4.1.2)
Replaces: libcamitk3,
libcamitk4 (<< 4.1.2)
Description: Computer Assisted Medical Intervention Tool Kit - config
Helps researchers and clinicians to easily and rapidly collaborate in
order to prototype CAMI applications, that feature medical images,
......@@ -168,7 +170,7 @@ Package: libqtpropertybrowser-dev
Architecture: any
Section: libdevel
Depends: libqtpropertybrowser4 (= ${binary:Version}),
${misc:Depends},
${misc:Depends}
Breaks: libqtpropertybrowser3-dev
Replaces: libqtpropertybrowser3-dev
Description: Qt Property Browser Library - development
......
......@@ -149,7 +149,7 @@ vtkSmartPointer<vtkImageData> AnisotropicDiffusion::itkProcessGradientAnisotropi
vtkSmartPointer<vtkImageData> resultImage;
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......@@ -246,7 +246,7 @@ vtkSmartPointer<vtkImageData> AnisotropicDiffusion::itkProcessCurvatureAnisotrop
vtkSmartPointer<vtkImageData> resultImage;
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -113,7 +113,7 @@ vtkSmartPointer<vtkImageData> CannyEdgeDetection::itkProcess(vtkSmartPointer<vtk
vtkSmartPointer<vtkImageData> resultImage;
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -93,7 +93,7 @@ vtkSmartPointer<vtkImageData> ConnectedComponents::itkProcess(vtkSmartPointer<vt
vtkSmartPointer<vtkImageData> resultImage;
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -125,7 +125,7 @@ vtkSmartPointer<vtkImageData> Derivative::itkProcess(vtkSmartPointer<vtkImageDat
vtkSmartPointer<vtkImageData> resultImage;
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -137,7 +137,7 @@ template <class InputPixelType, class OutputPixelType, const int dim>
vtkSmartPointer<vtkImageData> GaussianFilter::itkProcessStandardGaussian(vtkSmartPointer<vtkImageData> img) {
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -81,7 +81,7 @@ vtkSmartPointer<vtkImageData> GradientMagnitude::itkProcess(vtkSmartPointer<vtkI
vtkSmartPointer<vtkImageData> result = vtkSmartPointer<vtkImageData>::New();
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -106,7 +106,7 @@ vtkSmartPointer<vtkImageData> GradientMagnitudeRecursiveGaussian::itkProcess(vtk
vtkSmartPointer<vtkImageData> result = vtkSmartPointer<vtkImageData>::New();
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -100,7 +100,7 @@ vtkSmartPointer<vtkImageData> Laplacian::itkProcess(vtkSmartPointer<vtkImageData
vtkSmartPointer<vtkImageData> resultImage;
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -106,7 +106,7 @@ vtkSmartPointer<vtkImageData> LaplacianRecursiveGaussian::itkProcess(vtkSmartPoi
vtkSmartPointer<vtkImageData> resultImage;
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -84,7 +84,7 @@ vtkSmartPointer<vtkImageData> LaplacianSharpening::itkProcess(vtkSmartPointer<vt
vtkSmartPointer<vtkImageData> result = vtkSmartPointer<vtkImageData>::New();
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -121,7 +121,7 @@ vtkSmartPointer<vtkImageData> MeanFilter::itkProcess(vtkSmartPointer<vtkImageDat
vtkSmartPointer<vtkImageData> result = vtkSmartPointer<vtkImageData>::New();
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -123,7 +123,7 @@ vtkSmartPointer<vtkImageData> MedianFilter::itkProcess(vtkSmartPointer<vtkImageD
vtkSmartPointer<vtkImageData> result = vtkSmartPointer<vtkImageData>::New();
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -181,7 +181,7 @@ vtkSmartPointer<vtkImageData> MorphologicalOperators::binaryErosionFilter(vtkSma
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......@@ -246,7 +246,7 @@ template <class InputPixelType, class OutputPixelType, const int dim>
vtkSmartPointer<vtkImageData> MorphologicalOperators::binaryDilationFilter(vtkSmartPointer<vtkImageData> img) {
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......@@ -311,7 +311,7 @@ template <class InputPixelType, class OutputPixelType, const int dim>
vtkSmartPointer<vtkImageData> MorphologicalOperators::binaryClosureFilter(vtkSmartPointer<vtkImageData> img) {
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......@@ -391,7 +391,7 @@ vtkSmartPointer<vtkImageData> MorphologicalOperators::binaryOpeningFilter(vtkSma
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......@@ -472,7 +472,7 @@ template <class InputPixelType, class OutputPixelType, const int dim>
vtkSmartPointer<vtkImageData> MorphologicalOperators::greyLevelErosionFilter(vtkSmartPointer<vtkImageData> img) {
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......@@ -538,7 +538,7 @@ template <class InputPixelType, class OutputPixelType, const int dim>
vtkSmartPointer<vtkImageData> MorphologicalOperators::greyLevelDilationFilter(vtkSmartPointer<vtkImageData> img) {
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......@@ -601,7 +601,7 @@ vtkSmartPointer<vtkImageData> MorphologicalOperators::greyLevelDilationFilter(vt
template <class InputPixelType, class OutputPixelType, const int dim>
vtkSmartPointer<vtkImageData> MorphologicalOperators::greyLevelClosureFilter(vtkSmartPointer<vtkImageData> img) {
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......@@ -679,7 +679,7 @@ template <class InputPixelType, class OutputPixelType, const int dim>
vtkSmartPointer<vtkImageData> MorphologicalOperators::greyLevelOpeningFilter(vtkSmartPointer<vtkImageData> img) {
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -90,7 +90,7 @@ vtkSmartPointer<vtkImageData> SobelEdgeDetection::itkProcess(vtkSmartPointer<vtk
vtkSmartPointer<vtkImageData> resultImage;
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......
......@@ -108,7 +108,7 @@ vtkSmartPointer<vtkImageData> ManualThreshold::itkProcess(vtkSmartPointer<vtkIma
vtkSmartPointer<vtkImageData> result = vtkSmartPointer<vtkImageData>::New();
// --------------------- Filters declaration and creation ----------------------
// Define ITK input and output image types with respect to the instanciation
// Define ITK input and output image types with respect to the instantiation
// types of the tamplate.
typedef itk::Image< InputPixelType, dim > InputImageType;
typedef itk::Image< OutputPixelType, dim > OutputImageType;
......