0s autopkgtest [16:07:06]: starting date and time: 2025-03-15 16:07:06+0000 0s autopkgtest [16:07:06]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [16:07:06]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.dr5tt0f7/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:glibc --apt-upgrade octave-image --timeout-short=300 --timeout-copy=20000 --timeout-test=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=glibc/2.41-1ubuntu2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-big-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-s390x-11.secgroup --name adt-plucky-s390x-octave-image-20250315-160705-juju-7f2275-prod-proposed-migration-environment-2-8a1e9c3a-2fe0-4228-b022-ecd330b69878 --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-s390x -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 134s autopkgtest [16:09:20]: testbed dpkg architecture: s390x 135s autopkgtest [16:09:21]: testbed apt version: 2.9.33 135s autopkgtest [16:09:21]: @@@@@@@@@@@@@@@@@@@@ test bed setup 135s autopkgtest [16:09:21]: testbed release detected to be: None 136s autopkgtest [16:09:22]: updating testbed package index (apt update) 136s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [126 kB] 137s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 137s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 137s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 137s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.8 kB] 137s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [379 kB] 137s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [99.7 kB] 138s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [113 kB] 138s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x c-n-f Metadata [1824 B] 138s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/restricted s390x c-n-f Metadata [116 B] 138s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [320 kB] 138s Get:12 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x c-n-f Metadata [13.4 kB] 138s Get:13 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [3776 B] 138s Get:14 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x c-n-f Metadata [240 B] 138s Fetched 1073 kB in 2s (528 kB/s) 139s Reading package lists... 139s Reading package lists... 140s Building dependency tree... 140s Reading state information... 140s Calculating upgrade... 140s Calculating upgrade... 140s The following packages were automatically installed and are no longer required: 140s libnsl2 libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 140s linux-headers-6.11.0-8 linux-headers-6.11.0-8-generic 140s linux-modules-6.11.0-8-generic linux-tools-6.11.0-8 140s linux-tools-6.11.0-8-generic 140s Use 'sudo apt autoremove' to remove them. 140s The following packages will be upgraded: 140s pinentry-curses python3-jinja2 strace 140s 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 140s Need to get 652 kB of archives. 140s After this operation, 27.6 kB of additional disk space will be used. 140s Get:1 http://ftpmaster.internal/ubuntu plucky/main s390x strace s390x 6.13+ds-1ubuntu1 [500 kB] 141s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x pinentry-curses s390x 1.3.1-2ubuntu3 [42.9 kB] 141s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x python3-jinja2 all 3.1.5-2ubuntu1 [109 kB] 141s Fetched 652 kB in 1s (586 kB/s) 141s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 81428 files and directories currently installed.) 141s Preparing to unpack .../strace_6.13+ds-1ubuntu1_s390x.deb ... 141s Unpacking strace (6.13+ds-1ubuntu1) over (6.11-0ubuntu1) ... 141s Preparing to unpack .../pinentry-curses_1.3.1-2ubuntu3_s390x.deb ... 141s Unpacking pinentry-curses (1.3.1-2ubuntu3) over (1.3.1-2ubuntu2) ... 141s Preparing to unpack .../python3-jinja2_3.1.5-2ubuntu1_all.deb ... 142s Unpacking python3-jinja2 (3.1.5-2ubuntu1) over (3.1.5-2) ... 142s Setting up pinentry-curses (1.3.1-2ubuntu3) ... 142s Setting up python3-jinja2 (3.1.5-2ubuntu1) ... 142s Setting up strace (6.13+ds-1ubuntu1) ... 142s Processing triggers for man-db (2.13.0-1) ... 142s Reading package lists... 142s Building dependency tree... 142s Reading state information... 143s Solving dependencies... 143s The following packages will be REMOVED: 143s libnsl2* libpython3.12-minimal* libpython3.12-stdlib* libpython3.12t64* 143s linux-headers-6.11.0-8* linux-headers-6.11.0-8-generic* 143s linux-modules-6.11.0-8-generic* linux-tools-6.11.0-8* 143s linux-tools-6.11.0-8-generic* 143s 0 upgraded, 0 newly installed, 9 to remove and 5 not upgraded. 143s After this operation, 167 MB disk space will be freed. 143s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 81428 files and directories currently installed.) 143s Removing linux-tools-6.11.0-8-generic (6.11.0-8.8) ... 143s Removing linux-tools-6.11.0-8 (6.11.0-8.8) ... 143s Removing libpython3.12t64:s390x (3.12.9-1) ... 143s Removing libpython3.12-stdlib:s390x (3.12.9-1) ... 143s Removing libnsl2:s390x (1.3.0-3build3) ... 143s Removing libpython3.12-minimal:s390x (3.12.9-1) ... 143s Removing linux-headers-6.11.0-8-generic (6.11.0-8.8) ... 143s Removing linux-headers-6.11.0-8 (6.11.0-8.8) ... 144s Removing linux-modules-6.11.0-8-generic (6.11.0-8.8) ... 144s Processing triggers for libc-bin (2.41-1ubuntu1) ... 144s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 56328 files and directories currently installed.) 144s Purging configuration files for libpython3.12-minimal:s390x (3.12.9-1) ... 144s Purging configuration files for linux-modules-6.11.0-8-generic (6.11.0-8.8) ... 144s autopkgtest [16:09:30]: upgrading testbed (apt dist-upgrade and autopurge) 144s Reading package lists... 144s Building dependency tree... 144s Reading state information... 145s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 145s Starting 2 pkgProblemResolver with broken count: 0 145s Done 145s Entering ResolveByKeep 145s 145s Calculating upgrade... 145s The following packages will be upgraded: 145s libc-bin libc-dev-bin libc6 libc6-dev locales 145s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 145s Need to get 9512 kB of archives. 145s After this operation, 8192 B of additional disk space will be used. 145s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x libc6-dev s390x 2.41-1ubuntu2 [1678 kB] 148s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x libc-dev-bin s390x 2.41-1ubuntu2 [24.3 kB] 148s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x libc6 s390x 2.41-1ubuntu2 [2892 kB] 151s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x libc-bin s390x 2.41-1ubuntu2 [671 kB] 152s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x locales all 2.41-1ubuntu2 [4246 kB] 157s Preconfiguring packages ... 158s Fetched 9512 kB in 12s (796 kB/s) 158s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 56326 files and directories currently installed.) 158s Preparing to unpack .../libc6-dev_2.41-1ubuntu2_s390x.deb ... 158s Unpacking libc6-dev:s390x (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 158s Preparing to unpack .../libc-dev-bin_2.41-1ubuntu2_s390x.deb ... 158s Unpacking libc-dev-bin (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 158s Preparing to unpack .../libc6_2.41-1ubuntu2_s390x.deb ... 158s Unpacking libc6:s390x (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 158s Setting up libc6:s390x (2.41-1ubuntu2) ... 158s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 56326 files and directories currently installed.) 158s Preparing to unpack .../libc-bin_2.41-1ubuntu2_s390x.deb ... 158s Unpacking libc-bin (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 158s Setting up libc-bin (2.41-1ubuntu2) ... 158s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 56326 files and directories currently installed.) 158s Preparing to unpack .../locales_2.41-1ubuntu2_all.deb ... 158s Unpacking locales (2.41-1ubuntu2) over (2.41-1ubuntu1) ... 158s Setting up locales (2.41-1ubuntu2) ... 158s Generating locales (this might take a while)... 159s en_US.UTF-8... done 159s Generation complete. 159s Setting up libc-dev-bin (2.41-1ubuntu2) ... 159s Setting up libc6-dev:s390x (2.41-1ubuntu2) ... 159s Processing triggers for man-db (2.13.0-1) ... 160s Processing triggers for systemd (257.3-1ubuntu3) ... 161s Reading package lists... 161s Building dependency tree... 161s Reading state information... 161s Starting pkgProblemResolver with broken count: 0 161s Starting 2 pkgProblemResolver with broken count: 0 161s Done 161s Solving dependencies... 161s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 162s autopkgtest [16:09:48]: rebooting testbed after setup commands that affected boot 181s autopkgtest [16:10:07]: testbed running kernel: Linux 6.14.0-10-generic #10-Ubuntu SMP Wed Mar 12 14:53:49 UTC 2025 183s autopkgtest [16:10:09]: @@@@@@@@@@@@@@@@@@@@ apt-source octave-image 185s Get:1 http://ftpmaster.internal/ubuntu plucky/universe octave-image 2.14.0-5build1 (dsc) [2123 B] 185s Get:2 http://ftpmaster.internal/ubuntu plucky/universe octave-image 2.14.0-5build1 (tar) [468 kB] 185s Get:3 http://ftpmaster.internal/ubuntu plucky/universe octave-image 2.14.0-5build1 (diff) [11.7 kB] 185s gpgv: Signature made Tue May 14 09:44:36 2024 UTC 185s gpgv: using RSA key 25E3FF2D7F469DBE7D0D4E50AFCFEC8E669CE1C2 185s gpgv: Can't check signature: No public key 185s dpkg-source: warning: cannot verify inline signature for ./octave-image_2.14.0-5build1.dsc: no acceptable signature found 185s autopkgtest [16:10:11]: testing package octave-image version 2.14.0-5build1 186s autopkgtest [16:10:12]: build not needed 187s autopkgtest [16:10:13]: test command1: preparing testbed 187s Reading package lists... 188s Building dependency tree... 188s Reading state information... 188s Starting pkgProblemResolver with broken count: 0 188s Starting 2 pkgProblemResolver with broken count: 0 188s Done 188s The following NEW packages will be installed: 188s aglfn appstream autoconf automake autopoint autotools-dev cme comerr-dev cpp 188s cpp-14 cpp-14-s390x-linux-gnu cpp-s390x-linux-gnu debhelper debugedit 188s dh-autoreconf dh-octave dh-octave-autopkgtest dh-strip-nondeterminism 188s diffstat dwz fontconfig fontconfig-config fonts-dejavu-core 188s fonts-dejavu-mono fonts-freefont-otf g++ g++-14 g++-14-s390x-linux-gnu 188s g++-s390x-linux-gnu gcc gcc-14 gcc-14-s390x-linux-gnu gcc-s390x-linux-gnu 188s gettext gfortran gfortran-14 gfortran-14-s390x-linux-gnu 188s gfortran-s390x-linux-gnu gnuplot-data gnuplot-nox hdf5-helpers 188s intltool-debian krb5-multidev libaec-dev libaec0 libalgorithm-c3-perl 188s libaliased-perl libamd3 libaom3 libapp-cmd-perl libappstream5 188s libapt-pkg-perl libarchive-zip-perl libarpack2t64 libarray-intspan-perl 188s libasan8 libasound2-data libasound2t64 libavahi-client3 libavahi-common-data 188s libavahi-common3 libb-hooks-endofscope-perl libb-hooks-op-check-perl libb2-1 188s libberkeleydb-perl libblas-dev libblas3 libboolean-perl libbrotli-dev 188s libcairo2 libcamd3 libcapture-tiny-perl libcarp-assert-more-perl libcc1-0 188s libccolamd3 libcgi-pm-perl libcholmod5 libclass-c3-perl 188s libclass-data-inheritable-perl libclass-inspector-perl libclass-load-perl 188s libclass-method-modifiers-perl libclass-xsaccessor-perl libclone-choose-perl 188s libclone-perl libcolamd3 libconfig-model-backend-yaml-perl 188s libconfig-model-dpkg-perl libconfig-model-perl libconfig-tiny-perl 188s libconst-fast-perl libconvert-binhex-perl libcpanel-json-xs-perl libcups2t64 188s libcurl4-openssl-dev libcxsparse4 libdata-dpath-perl 188s libdata-messagepack-perl libdata-optlist-perl libdata-section-perl 188s libdata-validate-domain-perl libdata-validate-ip-perl 188s libdata-validate-uri-perl libdatrie1 libde265-0 libdebhelper-perl 188s libdeflate0 libdevel-callchecker-perl libdevel-size-perl 188s libdevel-stacktrace-perl libdouble-conversion3 libduktape207 188s libdynaloader-functions-perl libegl-mesa0 libegl1 libemail-address-xs-perl 188s libencode-locale-perl liberror-perl libevent-2.1-7t64 188s libexception-class-perl libexporter-lite-perl libexporter-tiny-perl 188s libfftw3-bin libfftw3-dev libfftw3-double3 libfftw3-long3 libfftw3-single3 188s libfile-basedir-perl libfile-find-rule-perl libfile-homedir-perl 188s libfile-listing-perl libfile-sharedir-perl libfile-stripnondeterminism-perl 188s libfile-which-perl libflac12t64 libfltk-gl1.3t64 libfltk1.3t64 188s libfont-ttf-perl libfontconfig1 libfontenc1 libfreetype6 libgbm1 188s libgcc-14-dev libgd3 libgetopt-long-descriptive-perl libgfortran-14-dev 188s libgfortran5 libgl-dev libgl1 libgl1-mesa-dri libgl2ps1.4 libglpk40 188s libglu1-mesa libglvnd0 libglx-dev libglx-mesa0 libglx0 libgmp-dev 188s libgmpxx4ldbl libgnutls-dane0t64 libgnutls-openssl27t64 libgnutls28-dev 188s libgomp1 libgraphicsmagick++-q16-12t64 libgraphicsmagick-q16-3t64 188s libgraphite2-3 libgssrpc4t64 libharfbuzz0b libhash-merge-perl libhdf5-310 188s libhdf5-cpp-310 libhdf5-dev libhdf5-fortran-310 libhdf5-hl-310 188s libhdf5-hl-cpp-310 libhdf5-hl-fortran-310 libheif-plugin-aomdec 188s libheif-plugin-libde265 libheif1 libhtml-form-perl 188s libhtml-html5-entities-perl libhtml-parser-perl libhtml-tagset-perl 188s libhtml-tokeparser-simple-perl libhtml-tree-perl libhttp-cookies-perl 188s libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libice6 188s libidn2-dev libimagequant0 libimport-into-perl libindirect-perl libinput-bin 188s libinput10 libio-html-perl libio-interactive-perl libio-socket-ssl-perl 188s libio-string-perl libio-stringy-perl libio-tiecombine-perl libipc-run3-perl 188s libipc-system-simple-perl libisl23 libiterator-perl libiterator-util-perl 188s libitm1 libjack-jackd2-0 libjbig0 libjpeg-dev libjpeg-turbo8 188s libjpeg-turbo8-dev libjpeg8 libjpeg8-dev libjson-maybexs-perl libjson-perl 188s libjxl0.11 libkadm5clnt-mit12 libkadm5srv-mit12 libkdb5-10t64 libkrb5-dev 188s liblapack-dev liblapack3 liblcms2-2 libldap-dev liblist-compare-perl 188s liblist-moreutils-perl liblist-moreutils-xs-perl liblist-someutils-perl 188s liblist-utilsby-perl liblog-any-adapter-screen-perl liblog-any-perl 188s liblog-log4perl-perl libltdl7 liblua5.4-0 liblwp-mediatypes-perl 188s liblwp-protocol-https-perl libmailtools-perl libmarkdown2 libmd4c0 188s libmime-tools-perl libmldbm-perl libmodule-implementation-perl 188s libmodule-pluggable-perl libmodule-runtime-perl libmoo-perl 188s libmoox-aliases-perl libmouse-perl libmousex-nativetraits-perl 188s libmousex-strictconstructor-perl libmp3lame0 libmpc3 libmpg123-0t64 188s libmro-compat-perl libmtdev1t64 libnamespace-clean-perl libncurses-dev 188s libnet-domain-tld-perl libnet-http-perl libnet-ipv6addr-perl 188s libnet-netmask-perl libnet-smtp-ssl-perl libnet-ssleay-perl 188s libnetaddr-ip-perl libnghttp2-dev libnumber-compare-perl libobject-pad-perl 188s libogg0 libopengl0 libopus0 libp11-kit-dev libpackage-stash-perl 188s libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libparams-classify-perl 188s libparams-util-perl libparams-validate-perl libparse-debcontrol-perl 188s libparse-recdescent-perl libpath-iterator-rule-perl libpath-tiny-perl 188s libpcre2-16-0 libperlio-gzip-perl libperlio-utf8-strict-perl libpixman-1-0 188s libpkgconf3 libpod-constants-perl libpod-parser-perl libpod-pom-perl 188s libportaudio2 libproc-processtable-perl libproxy1v5 libpsl-dev libqhull-r8.0 188s libqrupdate1 libqscintilla2-qt6-15 libqscintilla2-qt6-l10n 188s libqt6core5compat6 libqt6core6t64 libqt6dbus6 libqt6gui6 libqt6help6 188s libqt6network6 libqt6opengl6 libqt6openglwidgets6 libqt6printsupport6 188s libqt6sql6 libqt6widgets6 libqt6xml6 libraqm0 libreadline-dev 188s libregexp-common-perl libregexp-pattern-license-perl libregexp-pattern-perl 188s libregexp-wildcards-perl librole-tiny-perl librtmp-dev libsamplerate0 188s libsereal-decoder-perl libsereal-encoder-perl libset-intspan-perl 188s libsharpyuv0 libsm6 libsndfile1 libsoftware-copyright-perl 188s libsoftware-license-perl libsoftware-licensemoreutils-perl 188s libsort-versions-perl libspqr4 libssh2-1-dev libssl-dev libstdc++-14-dev 188s libstemmer0d libstrictures-perl libstring-copyright-perl 188s libstring-escape-perl libstring-license-perl libstring-rewriteprefix-perl 188s libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl 188s libsub-install-perl libsub-name-perl libsub-quote-perl libsub-uplevel-perl 188s libsuitesparseconfig7 libsyntax-keyword-try-perl libsz2 libtasn1-6-dev 188s libterm-readkey-perl libtest-exception-perl libtext-autoformat-perl 188s libtext-glob-perl libtext-levenshtein-damerau-perl 188s libtext-levenshteinxs-perl libtext-markdown-discount-perl 188s libtext-reform-perl libtext-template-perl libtext-unidecode-perl 188s libtext-xslate-perl libthai-data libthai0 libtiff6 libtime-duration-perl 188s libtime-moment-perl libtimedate-perl libtoml-tiny-perl libtool 188s libtry-tiny-perl libts0t64 libubsan1 libumfpack6 libunbound8 188s libunicode-utf8-perl liburi-perl libvariable-magic-perl libvorbis0a 188s libvorbisenc2 libvulkan1 libwacom-common libwacom9 libwayland-client0 188s libwayland-server0 libwebp7 libwebpmux3 libwmflite-0.2-7 188s libwww-mechanize-perl libwww-perl libwww-robotrules-perl libx11-dev 188s libx11-xcb1 libxau-dev libxaw7 libxcb-cursor0 libxcb-dri3-0 libxcb-glx0 188s libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 libxcb-randr0 188s libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 188s libxcb-util1 libxcb-xfixes0 libxcb-xinput0 libxcb-xkb1 libxcb1-dev 188s libxcursor1 libxdmcp-dev libxfixes3 libxfont2 libxft2 libxinerama1 188s libxkbcommon-x11-0 libxkbfile1 libxml-libxml-perl 188s libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-perl libxmu6 188s libxpm4 libxrandr2 libxrender1 libxs-parse-keyword-perl 188s libxs-parse-sublike-perl libxshmfence1 libxt6t64 libxxf86vm1 188s libyaml-libyaml-perl libyaml-pp-perl libyaml-tiny-perl libzstd-dev 188s licensecheck lintian lzip lzop m4 mesa-libgallium nettle-dev octave 188s octave-common octave-dev octave-image patchutils perl-openssl-defaults 188s pkgconf pkgconf-bin po-debconf t1utils tex-common texinfo texinfo-lib unzip 188s x11-common x11-xkb-utils x11proto-dev xorg-sgml-doctools xserver-common 188s xtrans-dev xvfb zlib1g-dev 188s 0 upgraded, 467 newly installed, 0 to remove and 0 not upgraded. 188s Need to get 175 MB of archives. 188s After this operation, 589 MB of additional disk space will be used. 188s Get:1 http://ftpmaster.internal/ubuntu plucky/main s390x libstemmer0d s390x 2.2.0-4build1 [174 kB] 189s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x libappstream5 s390x 1.0.4-1 [236 kB] 189s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x appstream s390x 1.0.4-1 [72.2 kB] 189s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x m4 s390x 1.4.19-7 [259 kB] 189s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x autoconf all 2.72-3ubuntu1 [383 kB] 190s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x autotools-dev all 20220109.1 [44.9 kB] 190s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x automake all 1:1.17-3ubuntu1 [572 kB] 191s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x autopoint all 0.23.1-1 [619 kB] 191s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x libcapture-tiny-perl all 0.50-1 [20.7 kB] 191s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x libparams-util-perl s390x 1.102-3build1 [21.3 kB] 191s Get:11 http://ftpmaster.internal/ubuntu plucky/main s390x libsub-install-perl all 0.929-1 [9764 B] 191s Get:12 http://ftpmaster.internal/ubuntu plucky/main s390x libdata-optlist-perl all 0.114-1 [9708 B] 191s Get:13 http://ftpmaster.internal/ubuntu plucky/main s390x libb-hooks-op-check-perl s390x 0.22-3build2 [9566 B] 191s Get:14 http://ftpmaster.internal/ubuntu plucky/main s390x libdynaloader-functions-perl all 0.004-1 [11.4 kB] 191s Get:15 http://ftpmaster.internal/ubuntu plucky/main s390x libdevel-callchecker-perl s390x 0.009-1build1 [14.2 kB] 191s Get:16 http://ftpmaster.internal/ubuntu plucky/main s390x libparams-classify-perl s390x 0.015-2build6 [20.6 kB] 191s Get:17 http://ftpmaster.internal/ubuntu plucky/main s390x libmodule-runtime-perl all 0.016-2 [16.4 kB] 191s Get:18 http://ftpmaster.internal/ubuntu plucky/main s390x libtry-tiny-perl all 0.32-1 [21.2 kB] 191s Get:19 http://ftpmaster.internal/ubuntu plucky/main s390x libmodule-implementation-perl all 0.09-2 [12.0 kB] 191s Get:20 http://ftpmaster.internal/ubuntu plucky/main s390x libpackage-stash-perl all 0.40-1 [19.5 kB] 191s Get:21 http://ftpmaster.internal/ubuntu plucky/universe s390x libclass-load-perl all 0.25-2 [12.7 kB] 191s Get:22 http://ftpmaster.internal/ubuntu plucky/main s390x libio-stringy-perl all 2.113-2 [45.3 kB] 192s Get:23 http://ftpmaster.internal/ubuntu plucky/universe s390x libparams-validate-perl s390x 1.31-2build4 [54.9 kB] 192s Get:24 http://ftpmaster.internal/ubuntu plucky/main s390x libsub-exporter-perl all 0.990-1 [49.0 kB] 192s Get:25 http://ftpmaster.internal/ubuntu plucky/universe s390x libgetopt-long-descriptive-perl all 0.116-2 [25.0 kB] 192s Get:26 http://ftpmaster.internal/ubuntu plucky/universe s390x libio-tiecombine-perl all 1.005-3 [9464 B] 192s Get:27 http://ftpmaster.internal/ubuntu plucky/universe s390x libmodule-pluggable-perl all 5.2-5 [19.5 kB] 192s Get:28 http://ftpmaster.internal/ubuntu plucky/universe s390x libstring-rewriteprefix-perl all 0.009-1 [6310 B] 192s Get:29 http://ftpmaster.internal/ubuntu plucky/universe s390x libapp-cmd-perl all 0.337-2 [58.3 kB] 192s Get:30 http://ftpmaster.internal/ubuntu plucky/universe s390x libboolean-perl all 0.46-3 [8430 B] 192s Get:31 http://ftpmaster.internal/ubuntu plucky/universe s390x libsub-uplevel-perl all 0.2800-3 [11.6 kB] 192s Get:32 http://ftpmaster.internal/ubuntu plucky/universe s390x libtest-exception-perl all 0.43-3 [13.4 kB] 192s Get:33 http://ftpmaster.internal/ubuntu plucky/universe s390x libcarp-assert-more-perl all 2.8.0-1 [19.2 kB] 192s Get:34 http://ftpmaster.internal/ubuntu plucky/main s390x libfile-which-perl all 1.27-2 [12.5 kB] 192s Get:35 http://ftpmaster.internal/ubuntu plucky/main s390x libfile-homedir-perl all 1.006-2 [37.0 kB] 192s Get:36 http://ftpmaster.internal/ubuntu plucky/universe s390x libclone-choose-perl all 0.010-2 [7738 B] 192s Get:37 http://ftpmaster.internal/ubuntu plucky/universe s390x libhash-merge-perl all 0.302-1 [13.0 kB] 192s Get:38 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-perl all 4.10000-1 [81.9 kB] 192s Get:39 http://ftpmaster.internal/ubuntu plucky/main s390x libexporter-tiny-perl all 1.006002-1 [36.8 kB] 192s Get:40 http://ftpmaster.internal/ubuntu plucky/universe s390x liblist-moreutils-xs-perl s390x 0.430-4build1 [45.3 kB] 192s Get:41 http://ftpmaster.internal/ubuntu plucky/universe s390x liblist-moreutils-perl all 0.430-2 [38.2 kB] 192s Get:42 http://ftpmaster.internal/ubuntu plucky/universe s390x liblog-log4perl-perl all 1.57-1 [345 kB] 193s Get:43 http://ftpmaster.internal/ubuntu plucky/main s390x libmouse-perl s390x 2.5.11-1build1 [134 kB] 193s Get:44 http://ftpmaster.internal/ubuntu plucky/universe s390x libmousex-nativetraits-perl all 1.09-3 [53.2 kB] 193s Get:45 http://ftpmaster.internal/ubuntu plucky/universe s390x libmousex-strictconstructor-perl all 0.02-3 [4582 B] 193s Get:46 http://ftpmaster.internal/ubuntu plucky/universe s390x libparse-recdescent-perl all 1.967015+dfsg-4 [139 kB] 193s Get:47 http://ftpmaster.internal/ubuntu plucky/main s390x libpath-tiny-perl all 0.146-1 [47.5 kB] 193s Get:48 http://ftpmaster.internal/ubuntu plucky/universe s390x libpod-pom-perl all 2.01-4 [61.3 kB] 193s Get:49 http://ftpmaster.internal/ubuntu plucky/main s390x libregexp-common-perl all 2024080801-1 [162 kB] 193s Get:50 http://ftpmaster.internal/ubuntu plucky/main s390x libyaml-tiny-perl all 1.76-1 [24.2 kB] 193s Get:51 http://ftpmaster.internal/ubuntu plucky/universe s390x libconfig-model-perl all 2.155-1 [356 kB] 194s Get:52 http://ftpmaster.internal/ubuntu plucky/universe s390x libyaml-pp-perl all 0.39.0-1 [107 kB] 194s Get:53 http://ftpmaster.internal/ubuntu plucky/universe s390x cme all 1.041-1 [65.4 kB] 194s Get:54 http://ftpmaster.internal/ubuntu plucky/main s390x libisl23 s390x 0.27-1 [704 kB] 195s Get:55 http://ftpmaster.internal/ubuntu plucky/main s390x libmpc3 s390x 1.3.1-1build2 [57.8 kB] 195s Get:56 http://ftpmaster.internal/ubuntu plucky/main s390x cpp-14-s390x-linux-gnu s390x 14.2.0-17ubuntu3 [9572 kB] 207s Get:57 http://ftpmaster.internal/ubuntu plucky/main s390x cpp-14 s390x 14.2.0-17ubuntu3 [1028 B] 207s Get:58 http://ftpmaster.internal/ubuntu plucky/main s390x cpp-s390x-linux-gnu s390x 4:14.2.0-1ubuntu1 [5556 B] 207s Get:59 http://ftpmaster.internal/ubuntu plucky/main s390x cpp s390x 4:14.2.0-1ubuntu1 [22.4 kB] 207s Get:60 http://ftpmaster.internal/ubuntu plucky/main s390x libdebhelper-perl all 13.24.1ubuntu2 [95.4 kB] 207s Get:61 http://ftpmaster.internal/ubuntu plucky/main s390x libcc1-0 s390x 15-20250222-0ubuntu1 [49.2 kB] 207s Get:62 http://ftpmaster.internal/ubuntu plucky/main s390x libgomp1 s390x 15-20250222-0ubuntu1 [152 kB] 208s Get:63 http://ftpmaster.internal/ubuntu plucky/main s390x libitm1 s390x 15-20250222-0ubuntu1 [31.2 kB] 208s Get:64 http://ftpmaster.internal/ubuntu plucky/main s390x libasan8 s390x 15-20250222-0ubuntu1 [2970 kB] 211s Get:65 http://ftpmaster.internal/ubuntu plucky/main s390x libubsan1 s390x 15-20250222-0ubuntu1 [1212 kB] 213s Get:66 http://ftpmaster.internal/ubuntu plucky/main s390x libgcc-14-dev s390x 14.2.0-17ubuntu3 [1037 kB] 214s Get:67 http://ftpmaster.internal/ubuntu plucky/main s390x gcc-14-s390x-linux-gnu s390x 14.2.0-17ubuntu3 [18.7 MB] 241s Get:68 http://ftpmaster.internal/ubuntu plucky/main s390x gcc-14 s390x 14.2.0-17ubuntu3 [526 kB] 242s Get:69 http://ftpmaster.internal/ubuntu plucky/main s390x gcc-s390x-linux-gnu s390x 4:14.2.0-1ubuntu1 [1204 B] 242s Get:70 http://ftpmaster.internal/ubuntu plucky/main s390x gcc s390x 4:14.2.0-1ubuntu1 [5004 B] 242s Get:71 http://ftpmaster.internal/ubuntu plucky/main s390x libtool all 2.5.4-4 [168 kB] 242s Get:72 http://ftpmaster.internal/ubuntu plucky/main s390x dh-autoreconf all 20 [16.1 kB] 242s Get:73 http://ftpmaster.internal/ubuntu plucky/main s390x libarchive-zip-perl all 1.68-1 [90.2 kB] 242s Get:74 http://ftpmaster.internal/ubuntu plucky/main s390x libfile-stripnondeterminism-perl all 1.14.1-2 [20.3 kB] 242s Get:75 http://ftpmaster.internal/ubuntu plucky/main s390x dh-strip-nondeterminism all 1.14.1-2 [5064 B] 242s Get:76 http://ftpmaster.internal/ubuntu plucky/main s390x debugedit s390x 1:5.1-2 [50.1 kB] 243s Get:77 http://ftpmaster.internal/ubuntu plucky/main s390x dwz s390x 0.15-1build6 [122 kB] 243s Get:78 http://ftpmaster.internal/ubuntu plucky/main s390x gettext s390x 0.23.1-1 [1065 kB] 245s Get:79 http://ftpmaster.internal/ubuntu plucky/main s390x intltool-debian all 0.35.0+20060710.6 [23.2 kB] 245s Get:80 http://ftpmaster.internal/ubuntu plucky/main s390x po-debconf all 1.0.21+nmu1 [233 kB] 245s Get:81 http://ftpmaster.internal/ubuntu plucky/main s390x debhelper all 13.24.1ubuntu2 [895 kB] 247s Get:82 http://ftpmaster.internal/ubuntu plucky/universe s390x aglfn all 1.7+git20191031.4036a9c-2 [30.6 kB] 247s Get:83 http://ftpmaster.internal/ubuntu plucky/universe s390x gnuplot-data all 6.0.2+dfsg1-1 [75.4 kB] 247s Get:84 http://ftpmaster.internal/ubuntu plucky/main s390x libfreetype6 s390x 2.13.3+dfsg-1 [431 kB] 248s Get:85 http://ftpmaster.internal/ubuntu plucky/main s390x fonts-dejavu-mono all 2.37-8 [502 kB] 249s Get:86 http://ftpmaster.internal/ubuntu plucky/main s390x fonts-dejavu-core all 2.37-8 [835 kB] 250s Get:87 http://ftpmaster.internal/ubuntu plucky/universe s390x fonts-freefont-otf all 20211204+svn4273-2 [4596 kB] 258s Get:88 http://ftpmaster.internal/ubuntu plucky/main s390x fontconfig-config s390x 2.15.0-2ubuntu1 [37.5 kB] 258s Get:89 http://ftpmaster.internal/ubuntu plucky/main s390x libfontconfig1 s390x 2.15.0-2ubuntu1 [150 kB] 259s Get:90 http://ftpmaster.internal/ubuntu plucky/main s390x libpixman-1-0 s390x 0.44.0-3 [201 kB] 259s Get:91 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-render0 s390x 1.17.0-2 [17.0 kB] 259s Get:92 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-shm0 s390x 1.17.0-2 [5862 B] 259s Get:93 http://ftpmaster.internal/ubuntu plucky/main s390x libxrender1 s390x 1:0.9.10-1.1build1 [20.4 kB] 259s Get:94 http://ftpmaster.internal/ubuntu plucky/main s390x libcairo2 s390x 1.18.2-2 [580 kB] 260s Get:95 http://ftpmaster.internal/ubuntu plucky/main s390x libsharpyuv0 s390x 1.5.0-0.1 [16.7 kB] 260s Get:96 http://ftpmaster.internal/ubuntu plucky/main s390x libaom3 s390x 3.12.0-1 [1492 kB] 263s Get:97 http://ftpmaster.internal/ubuntu plucky/main s390x libheif-plugin-aomdec s390x 1.19.7-1 [11.6 kB] 263s Get:98 http://ftpmaster.internal/ubuntu plucky/main s390x libde265-0 s390x 1.0.15-1build5 [175 kB] 263s Get:99 http://ftpmaster.internal/ubuntu plucky/main s390x libheif-plugin-libde265 s390x 1.19.7-1 [9054 B] 263s Get:100 http://ftpmaster.internal/ubuntu plucky/main s390x libheif1 s390x 1.19.7-1 [415 kB] 264s Get:101 http://ftpmaster.internal/ubuntu plucky/main s390x libimagequant0 s390x 2.18.0-1build1 [43.3 kB] 264s Get:102 http://ftpmaster.internal/ubuntu plucky/main s390x libjpeg-turbo8 s390x 2.1.5-3ubuntu2 [147 kB] 265s Get:103 http://ftpmaster.internal/ubuntu plucky/main s390x libjpeg8 s390x 8c-2ubuntu11 [2146 B] 265s Get:104 http://ftpmaster.internal/ubuntu plucky/main s390x libgraphite2-3 s390x 1.3.14-2ubuntu1 [79.8 kB] 265s Get:105 http://ftpmaster.internal/ubuntu plucky/main s390x libharfbuzz0b s390x 10.2.0-1 [538 kB] 266s Get:106 http://ftpmaster.internal/ubuntu plucky/main s390x libraqm0 s390x 0.10.2-1 [15.8 kB] 266s Get:107 http://ftpmaster.internal/ubuntu plucky/main s390x libdeflate0 s390x 1.23-1 [46.1 kB] 266s Get:108 http://ftpmaster.internal/ubuntu plucky/main s390x libjbig0 s390x 2.1-6.1ubuntu2 [33.1 kB] 266s Get:109 http://ftpmaster.internal/ubuntu plucky/main s390x libwebp7 s390x 1.5.0-0.1 [210 kB] 266s Get:110 http://ftpmaster.internal/ubuntu plucky/main s390x libtiff6 s390x 4.5.1+git230720-4ubuntu4 [217 kB] 267s Get:111 http://ftpmaster.internal/ubuntu plucky/main s390x libxpm4 s390x 1:3.5.17-1build2 [41.2 kB] 267s Get:112 http://ftpmaster.internal/ubuntu plucky/main s390x libgd3 s390x 2.3.3-12ubuntu3 [141 kB] 267s Get:113 http://ftpmaster.internal/ubuntu plucky/main s390x liblua5.4-0 s390x 5.4.7-1 [174 kB] 267s Get:114 http://ftpmaster.internal/ubuntu plucky/main s390x fontconfig s390x 2.15.0-2ubuntu1 [191 kB] 268s Get:115 http://ftpmaster.internal/ubuntu plucky/main s390x libthai-data all 0.1.29-2build1 [158 kB] 268s Get:116 http://ftpmaster.internal/ubuntu plucky/main s390x libdatrie1 s390x 0.2.13-3build1 [20.6 kB] 268s Get:117 http://ftpmaster.internal/ubuntu plucky/main s390x libthai0 s390x 0.1.29-2build1 [20.7 kB] 268s Get:118 http://ftpmaster.internal/ubuntu plucky/main s390x libpango-1.0-0 s390x 1.56.2-1 [253 kB] 268s Get:119 http://ftpmaster.internal/ubuntu plucky/main s390x libpangoft2-1.0-0 s390x 1.56.2-1 [50.2 kB] 269s Get:120 http://ftpmaster.internal/ubuntu plucky/main s390x libpangocairo-1.0-0 s390x 1.56.2-1 [28.2 kB] 269s Get:121 http://ftpmaster.internal/ubuntu plucky/main s390x libwebpmux3 s390x 1.5.0-0.1 [25.8 kB] 269s Get:122 http://ftpmaster.internal/ubuntu plucky/universe s390x gnuplot-nox s390x 6.0.2+dfsg1-1 [1030 kB] 270s Get:123 http://ftpmaster.internal/ubuntu plucky/universe s390x dh-octave-autopkgtest all 1.8.0 [10.1 kB] 270s Get:124 http://ftpmaster.internal/ubuntu plucky/main s390x libapt-pkg-perl s390x 0.1.41build1 [71.2 kB] 270s Get:125 http://ftpmaster.internal/ubuntu plucky/main s390x libarray-intspan-perl all 2.004-2 [25.0 kB] 270s Get:126 http://ftpmaster.internal/ubuntu plucky/main s390x libyaml-libyaml-perl s390x 0.903.0+ds-1 [32.8 kB] 270s Get:127 http://ftpmaster.internal/ubuntu plucky/universe s390x libconfig-model-backend-yaml-perl all 2.134-2 [10.5 kB] 270s Get:128 http://ftpmaster.internal/ubuntu plucky/universe s390x libexporter-lite-perl all 0.09-2 [9748 B] 270s Get:129 http://ftpmaster.internal/ubuntu plucky/main s390x libencode-locale-perl all 1.05-3 [11.6 kB] 270s Get:130 http://ftpmaster.internal/ubuntu plucky/main s390x libtimedate-perl all 2.3300-2 [34.0 kB] 271s Get:131 http://ftpmaster.internal/ubuntu plucky/main s390x libhttp-date-perl all 6.06-1 [10.2 kB] 271s Get:132 http://ftpmaster.internal/ubuntu plucky/main s390x libfile-listing-perl all 6.16-1 [11.3 kB] 271s Get:133 http://ftpmaster.internal/ubuntu plucky/main s390x libhtml-tagset-perl all 3.24-1 [14.1 kB] 271s Get:134 http://ftpmaster.internal/ubuntu plucky/main s390x liburi-perl all 5.30-1 [94.4 kB] 271s Get:135 http://ftpmaster.internal/ubuntu plucky/main s390x libhtml-parser-perl s390x 3.83-1build1 [87.8 kB] 271s Get:136 http://ftpmaster.internal/ubuntu plucky/main s390x libhtml-tree-perl all 5.07-3 [200 kB] 271s Get:137 http://ftpmaster.internal/ubuntu plucky/main s390x libclone-perl s390x 0.47-1 [10.7 kB] 271s Get:138 http://ftpmaster.internal/ubuntu plucky/main s390x libio-html-perl all 1.004-3 [15.9 kB] 271s Get:139 http://ftpmaster.internal/ubuntu plucky/main s390x liblwp-mediatypes-perl all 6.04-2 [20.1 kB] 271s Get:140 http://ftpmaster.internal/ubuntu plucky/main s390x libhttp-message-perl all 7.00-2ubuntu1 [75.9 kB] 271s Get:141 http://ftpmaster.internal/ubuntu plucky/main s390x libhttp-cookies-perl all 6.11-1 [18.2 kB] 271s Get:142 http://ftpmaster.internal/ubuntu plucky/main s390x libhttp-negotiate-perl all 6.01-2 [12.4 kB] 271s Get:143 http://ftpmaster.internal/ubuntu plucky/main s390x perl-openssl-defaults s390x 7build3 [6628 B] 271s Get:144 http://ftpmaster.internal/ubuntu plucky/main s390x libnet-ssleay-perl s390x 1.94-3 [320 kB] 272s Get:145 http://ftpmaster.internal/ubuntu plucky/main s390x libio-socket-ssl-perl all 2.089-1 [200 kB] 272s Get:146 http://ftpmaster.internal/ubuntu plucky/main s390x libnet-http-perl all 6.23-1 [22.3 kB] 272s Get:147 http://ftpmaster.internal/ubuntu plucky/main s390x liblwp-protocol-https-perl all 6.14-1 [9040 B] 272s Get:148 http://ftpmaster.internal/ubuntu plucky/main s390x libwww-robotrules-perl all 6.02-1 [12.6 kB] 272s Get:149 http://ftpmaster.internal/ubuntu plucky/main s390x libwww-perl all 6.78-1 [139 kB] 273s Get:150 http://ftpmaster.internal/ubuntu plucky/main s390x liberror-perl all 0.17030-1 [23.5 kB] 273s Get:151 http://ftpmaster.internal/ubuntu plucky/universe s390x libparse-debcontrol-perl all 2.005-6 [20.4 kB] 273s Get:152 http://ftpmaster.internal/ubuntu plucky/universe s390x libsoftware-copyright-perl all 0.014-1 [14.5 kB] 273s Get:153 http://ftpmaster.internal/ubuntu plucky/universe s390x libalgorithm-c3-perl all 0.11-2 [10.2 kB] 273s Get:154 http://ftpmaster.internal/ubuntu plucky/universe s390x libclass-c3-perl all 0.35-2 [18.4 kB] 273s Get:155 http://ftpmaster.internal/ubuntu plucky/universe s390x libmro-compat-perl all 0.15-2 [10.1 kB] 273s Get:156 http://ftpmaster.internal/ubuntu plucky/universe s390x libdata-section-perl all 0.200008-1 [11.6 kB] 273s Get:157 http://ftpmaster.internal/ubuntu plucky/universe s390x libtext-template-perl all 1.61-1 [48.5 kB] 273s Get:158 http://ftpmaster.internal/ubuntu plucky/universe s390x libsoftware-license-perl all 0.104006-1 [117 kB] 273s Get:159 http://ftpmaster.internal/ubuntu plucky/universe s390x libsoftware-licensemoreutils-perl all 1.009-1 [21.5 kB] 273s Get:160 http://ftpmaster.internal/ubuntu plucky/main s390x libsort-versions-perl all 1.62-3 [7378 B] 273s Get:161 http://ftpmaster.internal/ubuntu plucky/universe s390x libtext-reform-perl all 1.20-5 [35.4 kB] 273s Get:162 http://ftpmaster.internal/ubuntu plucky/universe s390x libtext-autoformat-perl all 1.750000-2 [29.8 kB] 273s Get:163 http://ftpmaster.internal/ubuntu plucky/universe s390x libtext-levenshtein-damerau-perl all 0.41-3 [10.8 kB] 273s Get:164 http://ftpmaster.internal/ubuntu plucky/universe s390x libtoml-tiny-perl all 0.19-1 [21.6 kB] 273s Get:165 http://ftpmaster.internal/ubuntu plucky/main s390x libclass-inspector-perl all 1.36-3 [15.4 kB] 273s Get:166 http://ftpmaster.internal/ubuntu plucky/main s390x libfile-sharedir-perl all 1.118-3 [14.0 kB] 273s Get:167 http://ftpmaster.internal/ubuntu plucky/main s390x libindirect-perl s390x 0.39-2build5 [22.4 kB] 273s Get:168 http://ftpmaster.internal/ubuntu plucky/main s390x libxs-parse-keyword-perl s390x 0.48-2 [63.5 kB] 273s Get:169 http://ftpmaster.internal/ubuntu plucky/main s390x libxs-parse-sublike-perl s390x 0.37-1 [44.2 kB] 273s Get:170 http://ftpmaster.internal/ubuntu plucky/main s390x libobject-pad-perl s390x 0.820-1 [131 kB] 274s Get:171 http://ftpmaster.internal/ubuntu plucky/main s390x libsyntax-keyword-try-perl s390x 0.30-1 [24.8 kB] 274s Get:172 http://ftpmaster.internal/ubuntu plucky/main s390x libio-interactive-perl all 1.026-1 [10.8 kB] 274s Get:173 http://ftpmaster.internal/ubuntu plucky/main s390x liblog-any-perl all 1.717-1 [73.2 kB] 274s Get:174 http://ftpmaster.internal/ubuntu plucky/main s390x liblog-any-adapter-screen-perl all 0.141-1 [12.9 kB] 274s Get:175 http://ftpmaster.internal/ubuntu plucky/main s390x libsub-exporter-progressive-perl all 0.001013-3 [6718 B] 274s Get:176 http://ftpmaster.internal/ubuntu plucky/main s390x libvariable-magic-perl s390x 0.64-1build1 [36.4 kB] 274s Get:177 http://ftpmaster.internal/ubuntu plucky/main s390x libb-hooks-endofscope-perl all 0.28-1 [15.8 kB] 274s Get:178 http://ftpmaster.internal/ubuntu plucky/main s390x libsub-identify-perl s390x 0.14-3build4 [10.0 kB] 274s Get:179 http://ftpmaster.internal/ubuntu plucky/main s390x libsub-name-perl s390x 0.28-1 [10.8 kB] 274s Get:180 http://ftpmaster.internal/ubuntu plucky/main s390x libnamespace-clean-perl all 0.27-2 [14.0 kB] 274s Get:181 http://ftpmaster.internal/ubuntu plucky/main s390x libnumber-compare-perl all 0.03-3 [5974 B] 274s Get:182 http://ftpmaster.internal/ubuntu plucky/main s390x libtext-glob-perl all 0.11-3 [6780 B] 274s Get:183 http://ftpmaster.internal/ubuntu plucky/main s390x libpath-iterator-rule-perl all 1.015-2 [39.9 kB] 274s Get:184 http://ftpmaster.internal/ubuntu plucky/main s390x libpod-parser-perl all 1.67-1 [80.6 kB] 274s Get:185 http://ftpmaster.internal/ubuntu plucky/main s390x libpod-constants-perl all 0.19-2 [16.3 kB] 274s Get:186 http://ftpmaster.internal/ubuntu plucky/main s390x libset-intspan-perl all 1.19-3 [24.8 kB] 274s Get:187 http://ftpmaster.internal/ubuntu plucky/main s390x libstring-copyright-perl all 0.003014-1 [20.5 kB] 274s Get:188 http://ftpmaster.internal/ubuntu plucky/main s390x libstring-escape-perl all 2010.002-3 [16.1 kB] 274s Get:189 http://ftpmaster.internal/ubuntu plucky/main s390x libregexp-pattern-license-perl all 3.11.2-1 [85.3 kB] 274s Get:190 http://ftpmaster.internal/ubuntu plucky/main s390x libregexp-pattern-perl all 0.2.14-2 [17.6 kB] 274s Get:191 http://ftpmaster.internal/ubuntu plucky/main s390x libstring-license-perl all 0.0.11-1ubuntu1 [34.3 kB] 275s Get:192 http://ftpmaster.internal/ubuntu plucky/main s390x licensecheck all 3.3.9-1ubuntu1 [37.7 kB] 275s Get:193 http://ftpmaster.internal/ubuntu plucky/main s390x diffstat s390x 1.67-1 [33.1 kB] 275s Get:194 http://ftpmaster.internal/ubuntu plucky/main s390x libberkeleydb-perl s390x 0.66-1 [115 kB] 275s Get:195 http://ftpmaster.internal/ubuntu plucky/main s390x libclass-xsaccessor-perl s390x 1.19-4build6 [34.2 kB] 275s Get:196 http://ftpmaster.internal/ubuntu plucky/main s390x libconfig-tiny-perl all 2.30-1 [14.7 kB] 275s Get:197 http://ftpmaster.internal/ubuntu plucky/main s390x libconst-fast-perl all 0.014-2 [8034 B] 275s Get:198 http://ftpmaster.internal/ubuntu plucky/main s390x libcpanel-json-xs-perl s390x 4.39-1 [118 kB] 275s Get:199 http://ftpmaster.internal/ubuntu plucky/main s390x libaliased-perl all 0.34-3 [12.8 kB] 275s Get:200 http://ftpmaster.internal/ubuntu plucky/main s390x libclass-data-inheritable-perl all 0.10-1 [8038 B] 275s Get:201 http://ftpmaster.internal/ubuntu plucky/main s390x libdevel-stacktrace-perl all 2.0500-1 [22.1 kB] 275s Get:202 http://ftpmaster.internal/ubuntu plucky/main s390x libexception-class-perl all 1.45-1 [28.6 kB] 275s Get:203 http://ftpmaster.internal/ubuntu plucky/main s390x libiterator-perl all 0.03+ds1-2 [18.8 kB] 276s Get:204 http://ftpmaster.internal/ubuntu plucky/main s390x libiterator-util-perl all 0.02+ds1-2 [14.1 kB] 276s Get:205 http://ftpmaster.internal/ubuntu plucky/main s390x libdata-dpath-perl all 0.60-1 [37.3 kB] 276s Get:206 http://ftpmaster.internal/ubuntu plucky/main s390x libnet-domain-tld-perl all 1.75-4 [29.0 kB] 276s Get:207 http://ftpmaster.internal/ubuntu plucky/main s390x libdata-validate-domain-perl all 0.15-1 [10.4 kB] 276s Get:208 http://ftpmaster.internal/ubuntu plucky/main s390x libnet-ipv6addr-perl all 1.02-1 [21.0 kB] 276s Get:209 http://ftpmaster.internal/ubuntu plucky/main s390x libnet-netmask-perl all 2.0002-2 [24.8 kB] 276s Get:210 http://ftpmaster.internal/ubuntu plucky/main s390x libnetaddr-ip-perl s390x 4.079+dfsg-2build5 [80.6 kB] 276s Get:211 http://ftpmaster.internal/ubuntu plucky/main s390x libdata-validate-ip-perl all 0.31-1 [17.2 kB] 276s Get:212 http://ftpmaster.internal/ubuntu plucky/main s390x libdata-validate-uri-perl all 0.07-3 [10.8 kB] 276s Get:213 http://ftpmaster.internal/ubuntu plucky/main s390x libdevel-size-perl s390x 0.84-1build1 [20.0 kB] 276s Get:214 http://ftpmaster.internal/ubuntu plucky/main s390x libemail-address-xs-perl s390x 1.05-1build5 [29.3 kB] 276s Get:215 http://ftpmaster.internal/ubuntu plucky/main s390x libipc-system-simple-perl all 1.30-2 [22.3 kB] 276s Get:216 http://ftpmaster.internal/ubuntu plucky/main s390x libfile-basedir-perl all 0.09-2 [14.4 kB] 276s Get:217 http://ftpmaster.internal/ubuntu plucky/main s390x libfile-find-rule-perl all 0.34-3 [24.4 kB] 276s Get:218 http://ftpmaster.internal/ubuntu plucky/main s390x libio-string-perl all 1.08-4 [11.1 kB] 276s Get:219 http://ftpmaster.internal/ubuntu plucky/main s390x libfont-ttf-perl all 1.06-2 [323 kB] 277s Get:220 http://ftpmaster.internal/ubuntu plucky/main s390x libhtml-html5-entities-perl all 0.004-3 [21.6 kB] 277s Get:221 http://ftpmaster.internal/ubuntu plucky/main s390x libhtml-tokeparser-simple-perl all 3.16-4 [38.0 kB] 277s Get:222 http://ftpmaster.internal/ubuntu plucky/main s390x libipc-run3-perl all 0.049-1 [28.8 kB] 277s Get:223 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-maybexs-perl all 1.004008-1 [11.1 kB] 277s Get:224 http://ftpmaster.internal/ubuntu plucky/main s390x liblist-compare-perl all 0.55-2 [62.9 kB] 277s Get:225 http://ftpmaster.internal/ubuntu plucky/main s390x liblist-someutils-perl all 0.59-1 [30.4 kB] 277s Get:226 http://ftpmaster.internal/ubuntu plucky/main s390x liblist-utilsby-perl all 0.12-2 [14.9 kB] 277s Get:227 http://ftpmaster.internal/ubuntu plucky/main s390x libmldbm-perl all 2.05-4 [16.0 kB] 277s Get:228 http://ftpmaster.internal/ubuntu plucky/main s390x libclass-method-modifiers-perl all 2.15-1 [16.1 kB] 277s Get:229 http://ftpmaster.internal/ubuntu plucky/main s390x libimport-into-perl all 1.002005-2 [10.7 kB] 277s Get:230 http://ftpmaster.internal/ubuntu plucky/main s390x librole-tiny-perl all 2.002004-1 [16.3 kB] 277s Get:231 http://ftpmaster.internal/ubuntu plucky/main s390x libsub-quote-perl all 2.006008-1ubuntu1 [20.7 kB] 277s Get:232 http://ftpmaster.internal/ubuntu plucky/main s390x libmoo-perl all 2.005005-1 [47.4 kB] 277s Get:233 http://ftpmaster.internal/ubuntu plucky/main s390x libstrictures-perl all 2.000006-1 [16.3 kB] 277s Get:234 http://ftpmaster.internal/ubuntu plucky/main s390x libmoox-aliases-perl all 0.001006-2 [6796 B] 277s Get:235 http://ftpmaster.internal/ubuntu plucky/main s390x libperlio-gzip-perl s390x 0.20-1build5 [14.8 kB] 277s Get:236 http://ftpmaster.internal/ubuntu plucky/main s390x libperlio-utf8-strict-perl s390x 0.010-1build4 [11.2 kB] 277s Get:237 http://ftpmaster.internal/ubuntu plucky/main s390x libproc-processtable-perl s390x 0.636-1build4 [36.6 kB] 277s Get:238 http://ftpmaster.internal/ubuntu plucky/main s390x libregexp-wildcards-perl all 1.05-3 [12.9 kB] 277s Get:239 http://ftpmaster.internal/ubuntu plucky/main s390x libsereal-decoder-perl s390x 5.004+ds-1build4 [107 kB] 277s Get:240 http://ftpmaster.internal/ubuntu plucky/main s390x libsereal-encoder-perl s390x 5.004+ds-1build4 [112 kB] 277s Get:241 http://ftpmaster.internal/ubuntu plucky/main s390x libterm-readkey-perl s390x 2.38-2build5 [23.1 kB] 277s Get:242 http://ftpmaster.internal/ubuntu plucky/main s390x libtext-levenshteinxs-perl s390x 0.03-5build5 [8350 B] 278s Get:243 http://ftpmaster.internal/ubuntu plucky/main s390x libmarkdown2 s390x 2.2.7-2.1 [40.3 kB] 278s Get:244 http://ftpmaster.internal/ubuntu plucky/main s390x libtext-markdown-discount-perl s390x 0.18-1 [12.4 kB] 278s Get:245 http://ftpmaster.internal/ubuntu plucky/main s390x libdata-messagepack-perl s390x 1.02-1build5 [32.3 kB] 278s Get:246 http://ftpmaster.internal/ubuntu plucky/main s390x libtext-xslate-perl s390x 3.5.9-2build1 [163 kB] 278s Get:247 http://ftpmaster.internal/ubuntu plucky/main s390x libtime-duration-perl all 1.21-2 [12.3 kB] 278s Get:248 http://ftpmaster.internal/ubuntu plucky/main s390x libtime-moment-perl s390x 0.44-2build5 [75.5 kB] 278s Get:249 http://ftpmaster.internal/ubuntu plucky/main s390x libunicode-utf8-perl s390x 0.62-2build4 [18.8 kB] 278s Get:250 http://ftpmaster.internal/ubuntu plucky/main s390x libcgi-pm-perl all 4.67-1 [185 kB] 278s Get:251 http://ftpmaster.internal/ubuntu plucky/main s390x libhtml-form-perl all 6.12-1 [31.1 kB] 278s Get:252 http://ftpmaster.internal/ubuntu plucky/main s390x libwww-mechanize-perl all 2.19-1ubuntu1 [93.3 kB] 278s Get:253 http://ftpmaster.internal/ubuntu plucky/main s390x libxml-namespacesupport-perl all 1.12-2 [13.5 kB] 278s Get:254 http://ftpmaster.internal/ubuntu plucky/main s390x libxml-sax-base-perl all 1.09-3 [18.9 kB] 278s Get:255 http://ftpmaster.internal/ubuntu plucky/main s390x libxml-sax-perl all 1.02+dfsg-4 [52.4 kB] 278s Get:256 http://ftpmaster.internal/ubuntu plucky/main s390x libxml-libxml-perl s390x 2.0207+dfsg+really+2.0134-5build1 [312 kB] 279s Get:257 http://ftpmaster.internal/ubuntu plucky/main s390x lzip s390x 1.25-2 [89.5 kB] 279s Get:258 http://ftpmaster.internal/ubuntu plucky/main s390x lzop s390x 1.04-2build3 [84.3 kB] 279s Get:259 http://ftpmaster.internal/ubuntu plucky/main s390x patchutils s390x 0.4.2-1build3 [79.2 kB] 279s Get:260 http://ftpmaster.internal/ubuntu plucky/main s390x t1utils s390x 1.41-4build3 [65.6 kB] 279s Get:261 http://ftpmaster.internal/ubuntu plucky/main s390x unzip s390x 6.0-28ubuntu6 [186 kB] 279s Get:262 http://ftpmaster.internal/ubuntu plucky/main s390x lintian all 2.121.1+nmu1ubuntu2 [1075 kB] 281s Get:263 http://ftpmaster.internal/ubuntu plucky/universe s390x libconfig-model-dpkg-perl all 3.010 [176 kB] 282s Get:264 http://ftpmaster.internal/ubuntu plucky/main s390x libconvert-binhex-perl all 1.125-3 [27.1 kB] 282s Get:265 http://ftpmaster.internal/ubuntu plucky/main s390x libnet-smtp-ssl-perl all 1.04-2 [6218 B] 282s Get:266 http://ftpmaster.internal/ubuntu plucky/main s390x libmailtools-perl all 2.22-1 [77.1 kB] 282s Get:267 http://ftpmaster.internal/ubuntu plucky/main s390x libmime-tools-perl all 5.515-1 [187 kB] 282s Get:268 http://ftpmaster.internal/ubuntu plucky/main s390x libsuitesparseconfig7 s390x 1:7.8.3+dfsg-3 [13.2 kB] 282s Get:269 http://ftpmaster.internal/ubuntu plucky/universe s390x libamd3 s390x 1:7.8.3+dfsg-3 [35.1 kB] 282s Get:270 http://ftpmaster.internal/ubuntu plucky/main s390x libblas3 s390x 3.12.1-2 [252 kB] 282s Get:271 http://ftpmaster.internal/ubuntu plucky/main s390x libgfortran5 s390x 15-20250222-0ubuntu1 [620 kB] 283s Get:272 http://ftpmaster.internal/ubuntu plucky/main s390x liblapack3 s390x 3.12.1-2 [2971 kB] 287s Get:273 http://ftpmaster.internal/ubuntu plucky/universe s390x libarpack2t64 s390x 3.9.1-4 [110 kB] 287s Get:274 http://ftpmaster.internal/ubuntu plucky/universe s390x libccolamd3 s390x 1:7.8.3+dfsg-3 [32.7 kB] 287s Get:275 http://ftpmaster.internal/ubuntu plucky/universe s390x libcamd3 s390x 1:7.8.3+dfsg-3 [29.7 kB] 287s Get:276 http://ftpmaster.internal/ubuntu plucky/main s390x libcolamd3 s390x 1:7.8.3+dfsg-3 [23.4 kB] 287s Get:277 http://ftpmaster.internal/ubuntu plucky/universe s390x libcholmod5 s390x 1:7.8.3+dfsg-3 [920 kB] 288s Get:278 http://ftpmaster.internal/ubuntu plucky/universe s390x libcxsparse4 s390x 1:7.8.3+dfsg-3 [89.6 kB] 288s Get:279 http://ftpmaster.internal/ubuntu plucky/main s390x libfftw3-double3 s390x 3.3.10-2fakesync1build1 [511 kB] 289s Get:280 http://ftpmaster.internal/ubuntu plucky/main s390x libfftw3-single3 s390x 3.3.10-2fakesync1build1 [483 kB] 289s Get:281 http://ftpmaster.internal/ubuntu plucky/main s390x libxfixes3 s390x 1:6.0.0-2build1 [11.3 kB] 290s Get:282 http://ftpmaster.internal/ubuntu plucky/main s390x libxcursor1 s390x 1:1.2.3-1 [23.4 kB] 290s Get:283 http://ftpmaster.internal/ubuntu plucky/main s390x libxft2 s390x 2.3.6-1build1 [49.6 kB] 290s Get:284 http://ftpmaster.internal/ubuntu plucky/main s390x libxinerama1 s390x 2:1.1.4-3build1 [6476 B] 290s Get:285 http://ftpmaster.internal/ubuntu plucky/universe s390x libfltk1.3t64 s390x 1.3.8-6.1build2 [645 kB] 290s Get:286 http://ftpmaster.internal/ubuntu plucky/main s390x libglvnd0 s390x 1.7.0-1build1 [110 kB] 290s Get:287 http://ftpmaster.internal/ubuntu plucky/main s390x libx11-xcb1 s390x 2:1.8.10-2 [7954 B] 290s Get:288 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-dri3-0 s390x 1.17.0-2 [7616 B] 290s Get:289 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-glx0 s390x 1.17.0-2 [26.0 kB] 291s Get:290 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-present0 s390x 1.17.0-2 [6244 B] 291s Get:291 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-xfixes0 s390x 1.17.0-2 [10.5 kB] 291s Get:292 http://ftpmaster.internal/ubuntu plucky/main s390x libxxf86vm1 s390x 1:1.1.4-1build4 [9630 B] 291s Get:293 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-randr0 s390x 1.17.0-2 [19.2 kB] 291s Get:294 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-sync1 s390x 1.17.0-2 [9488 B] 291s Get:295 http://ftpmaster.internal/ubuntu plucky/main s390x libxshmfence1 s390x 1.3-1build5 [4772 B] 291s Get:296 http://ftpmaster.internal/ubuntu plucky/main s390x mesa-libgallium s390x 25.0.1-2ubuntu1 [8056 kB] 300s Get:297 http://ftpmaster.internal/ubuntu plucky/main s390x libwayland-server0 s390x 1.23.1-3 [37.3 kB] 301s Get:298 http://ftpmaster.internal/ubuntu plucky/main s390x libgbm1 s390x 25.0.1-2ubuntu1 [34.5 kB] 301s Get:299 http://ftpmaster.internal/ubuntu plucky/main s390x libvulkan1 s390x 1.4.304.0-1 [147 kB] 301s Get:300 http://ftpmaster.internal/ubuntu plucky/main s390x libgl1-mesa-dri s390x 25.0.1-2ubuntu1 [35.4 kB] 301s Get:301 http://ftpmaster.internal/ubuntu plucky/main s390x libglx-mesa0 s390x 25.0.1-2ubuntu1 [161 kB] 301s Get:302 http://ftpmaster.internal/ubuntu plucky/main s390x libglx0 s390x 1.7.0-1build1 [32.2 kB] 301s Get:303 http://ftpmaster.internal/ubuntu plucky/main s390x libgl1 s390x 1.7.0-1build1 [142 kB] 301s Get:304 http://ftpmaster.internal/ubuntu plucky/universe s390x libfltk-gl1.3t64 s390x 1.3.8-6.1build2 [43.7 kB] 302s Get:305 http://ftpmaster.internal/ubuntu plucky/universe s390x libgl2ps1.4 s390x 1.4.2+dfsg1-2build1 [44.1 kB] 302s Get:306 http://ftpmaster.internal/ubuntu plucky/main s390x libltdl7 s390x 2.5.4-4 [43.8 kB] 302s Get:307 http://ftpmaster.internal/ubuntu plucky/universe s390x libglpk40 s390x 5.0-1build2 [406 kB] 302s Get:308 http://ftpmaster.internal/ubuntu plucky/main s390x libopengl0 s390x 1.7.0-1build1 [48.0 kB] 302s Get:309 http://ftpmaster.internal/ubuntu plucky/main s390x libglu1-mesa s390x 9.0.2-1.1build1 [176 kB] 302s Get:310 http://ftpmaster.internal/ubuntu plucky/main s390x liblcms2-2 s390x 2.16-2 [175 kB] 303s Get:311 http://ftpmaster.internal/ubuntu plucky/universe s390x libjxl0.11 s390x 0.11.1-1 [1008 kB] 304s Get:312 http://ftpmaster.internal/ubuntu plucky/main s390x libwmflite-0.2-7 s390x 0.2.13-1.1build3 [72.1 kB] 304s Get:313 http://ftpmaster.internal/ubuntu plucky/universe s390x libgraphicsmagick-q16-3t64 s390x 1.4+really1.3.45+hg17689-1 [1327 kB] 306s Get:314 http://ftpmaster.internal/ubuntu plucky/universe s390x libgraphicsmagick++-q16-12t64 s390x 1.4+really1.3.45+hg17689-1 [113 kB] 306s Get:315 http://ftpmaster.internal/ubuntu plucky/universe s390x libaec0 s390x 1.1.3-1 [25.7 kB] 306s Get:316 http://ftpmaster.internal/ubuntu plucky/universe s390x libsz2 s390x 1.1.3-1 [5442 B] 306s Get:317 http://ftpmaster.internal/ubuntu plucky/universe s390x libhdf5-310 s390x 1.14.5+repack-3 [1477 kB] 308s Get:318 http://ftpmaster.internal/ubuntu plucky/main s390x libasound2-data all 1.2.13-1build1 [21.1 kB] 308s Get:319 http://ftpmaster.internal/ubuntu plucky/main s390x libasound2t64 s390x 1.2.13-1build1 [411 kB] 308s Get:320 http://ftpmaster.internal/ubuntu plucky/main s390x libopus0 s390x 1.5.2-2 [2928 kB] 312s Get:321 http://ftpmaster.internal/ubuntu plucky/main s390x libsamplerate0 s390x 0.2.2-4build1 [1344 kB] 313s Get:322 http://ftpmaster.internal/ubuntu plucky/main s390x libjack-jackd2-0 s390x 1.9.22~dfsg-4 [292 kB] 313s Get:323 http://ftpmaster.internal/ubuntu plucky/universe s390x libportaudio2 s390x 19.6.0-1.2build3 [71.6 kB] 313s Get:324 http://ftpmaster.internal/ubuntu plucky/universe s390x libqhull-r8.0 s390x 2020.2-6build1 [199 kB] 314s Get:325 http://ftpmaster.internal/ubuntu plucky/universe s390x libqrupdate1 s390x 1.1.5-1 [48.5 kB] 314s Get:326 http://ftpmaster.internal/ubuntu plucky/universe s390x libqscintilla2-qt6-l10n all 2.14.1+dfsg-1build4 [56.4 kB] 314s Get:327 http://ftpmaster.internal/ubuntu plucky/universe s390x libb2-1 s390x 0.98.1-1.1build1 [21.0 kB] 314s Get:328 http://ftpmaster.internal/ubuntu plucky/universe s390x libdouble-conversion3 s390x 3.3.1-1 [43.3 kB] 314s Get:329 http://ftpmaster.internal/ubuntu plucky/main s390x libpcre2-16-0 s390x 10.45-1 [259 kB] 314s Get:330 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6core6t64 s390x 6.8.2+dfsg-5 [2157 kB] 317s Get:331 http://ftpmaster.internal/ubuntu plucky/main s390x libwayland-client0 s390x 1.23.1-3 [28.2 kB] 317s Get:332 http://ftpmaster.internal/ubuntu plucky/main s390x libegl-mesa0 s390x 25.0.1-2ubuntu1 [126 kB] 317s Get:333 http://ftpmaster.internal/ubuntu plucky/main s390x libegl1 s390x 1.7.0-1build1 [31.8 kB] 317s Get:334 http://ftpmaster.internal/ubuntu plucky/main s390x x11-common all 1:7.7+23ubuntu3 [21.7 kB] 317s Get:335 http://ftpmaster.internal/ubuntu plucky/main s390x libice6 s390x 2:1.1.1-1 [45.4 kB] 317s Get:336 http://ftpmaster.internal/ubuntu plucky/main s390x libmtdev1t64 s390x 1.1.7-1 [15.6 kB] 317s Get:337 http://ftpmaster.internal/ubuntu plucky/main s390x libwacom-common all 2.14.0-1 [103 kB] 317s Get:338 http://ftpmaster.internal/ubuntu plucky/main s390x libwacom9 s390x 2.14.0-1 [27.1 kB] 317s Get:339 http://ftpmaster.internal/ubuntu plucky/main s390x libinput-bin s390x 1.27.1-1 [23.3 kB] 317s Get:340 http://ftpmaster.internal/ubuntu plucky/main s390x libinput10 s390x 1.27.1-1 [139 kB] 318s Get:341 http://ftpmaster.internal/ubuntu plucky/universe s390x libmd4c0 s390x 0.5.2-2 [47.7 kB] 318s Get:342 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6dbus6 s390x 6.8.2+dfsg-5 [304 kB] 318s Get:343 http://ftpmaster.internal/ubuntu plucky/main s390x libsm6 s390x 2:1.2.4-1 [18.4 kB] 318s Get:344 http://ftpmaster.internal/ubuntu plucky/universe s390x libts0t64 s390x 1.22-1.1build1 [66.8 kB] 318s Get:345 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-util1 s390x 0.4.1-1 [10.7 kB] 318s Get:346 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-image0 s390x 0.4.0-2build1 [12.0 kB] 318s Get:347 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-render-util0 s390x 0.3.10-1 [10.3 kB] 318s Get:348 http://ftpmaster.internal/ubuntu plucky/universe s390x libxcb-cursor0 s390x 0.1.5-1 [11.3 kB] 318s Get:349 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-icccm4 s390x 0.4.2-1 [11.4 kB] 318s Get:350 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-keysyms1 s390x 0.4.1-1 [8908 B] 318s Get:351 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-shape0 s390x 1.17.0-2 [6202 B] 318s Get:352 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-xinput0 s390x 1.17.0-2 [35.8 kB] 318s Get:353 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb-xkb1 s390x 1.17.0-2 [34.5 kB] 318s Get:354 http://ftpmaster.internal/ubuntu plucky/main s390x libxkbcommon-x11-0 s390x 1.7.0-2 [14.8 kB] 318s Get:355 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6gui6 s390x 6.8.2+dfsg-5 [3685 kB] 323s Get:356 http://ftpmaster.internal/ubuntu plucky/main s390x libavahi-common-data s390x 0.8-16ubuntu1 [30.9 kB] 323s Get:357 http://ftpmaster.internal/ubuntu plucky/main s390x libavahi-common3 s390x 0.8-16ubuntu1 [23.5 kB] 323s Get:358 http://ftpmaster.internal/ubuntu plucky/main s390x libavahi-client3 s390x 0.8-16ubuntu1 [26.3 kB] 323s Get:359 http://ftpmaster.internal/ubuntu plucky/main s390x libcups2t64 s390x 2.4.11-0ubuntu2 [282 kB] 323s Get:360 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6widgets6 s390x 6.8.2+dfsg-5 [3025 kB] 327s Get:361 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6printsupport6 s390x 6.8.2+dfsg-5 [235 kB] 327s Get:362 http://ftpmaster.internal/ubuntu plucky/universe s390x libqscintilla2-qt6-15 s390x 2.14.1+dfsg-1build4 [1357 kB] 329s Get:363 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6core5compat6 s390x 6.8.2-3 [160 kB] 329s Get:364 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6sql6 s390x 6.8.2+dfsg-5 [157 kB] 329s Get:365 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6help6 s390x 6.8.2-3 [215 kB] 329s Get:366 http://ftpmaster.internal/ubuntu plucky/main s390x libduktape207 s390x 2.7.0+tests-0ubuntu3 [150 kB] 329s Get:367 http://ftpmaster.internal/ubuntu plucky/main s390x libproxy1v5 s390x 0.5.9-1 [27.8 kB] 329s Get:368 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6network6 s390x 6.8.2+dfsg-5 [922 kB] 330s Get:369 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6opengl6 s390x 6.8.2+dfsg-5 [466 kB] 331s Get:370 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6openglwidgets6 s390x 6.8.2+dfsg-5 [43.7 kB] 331s Get:371 http://ftpmaster.internal/ubuntu plucky/universe s390x libqt6xml6 s390x 6.8.2+dfsg-5 [84.6 kB] 331s Get:372 http://ftpmaster.internal/ubuntu plucky/main s390x libogg0 s390x 1.3.5-3build1 [24.4 kB] 331s Get:373 http://ftpmaster.internal/ubuntu plucky/main s390x libflac12t64 s390x 1.4.3+ds-4 [161 kB] 331s Get:374 http://ftpmaster.internal/ubuntu plucky/main s390x libmp3lame0 s390x 3.100-6build1 [160 kB] 331s Get:375 http://ftpmaster.internal/ubuntu plucky/main s390x libmpg123-0t64 s390x 1.32.10-1 [179 kB] 332s Get:376 http://ftpmaster.internal/ubuntu plucky/main s390x libvorbis0a s390x 1.3.7-2 [112 kB] 332s Get:377 http://ftpmaster.internal/ubuntu plucky/main s390x libvorbisenc2 s390x 1.3.7-2 [80.6 kB] 332s Get:378 http://ftpmaster.internal/ubuntu plucky/main s390x libsndfile1 s390x 1.2.2-2 [238 kB] 332s Get:379 http://ftpmaster.internal/ubuntu plucky/universe s390x libspqr4 s390x 1:7.8.3+dfsg-3 [171 kB] 332s Get:380 http://ftpmaster.internal/ubuntu plucky/universe s390x libumfpack6 s390x 1:7.8.3+dfsg-3 [371 kB] 333s Get:381 http://ftpmaster.internal/ubuntu plucky/universe s390x libtext-unidecode-perl all 1.30-3 [105 kB] 333s Get:382 http://ftpmaster.internal/ubuntu plucky/universe s390x texinfo-lib s390x 7.1.1-1 [142 kB] 333s Get:383 http://ftpmaster.internal/ubuntu plucky/universe s390x tex-common all 6.19 [29.8 kB] 333s Get:384 http://ftpmaster.internal/ubuntu plucky/universe s390x texinfo all 7.1.1-1 [1272 kB] 335s Get:385 http://ftpmaster.internal/ubuntu plucky/universe s390x octave-common all 9.4.0-1 [6087 kB] 341s Get:386 http://ftpmaster.internal/ubuntu plucky/universe s390x octave s390x 9.4.0-1 [10.1 MB] 353s Get:387 http://ftpmaster.internal/ubuntu plucky/main s390x libncurses-dev s390x 6.5+20250216-2 [407 kB] 353s Get:388 http://ftpmaster.internal/ubuntu plucky/main s390x libreadline-dev s390x 8.2-6 [187 kB] 353s Get:389 http://ftpmaster.internal/ubuntu plucky/universe s390x libhdf5-fortran-310 s390x 1.14.5+repack-3 [115 kB] 353s Get:390 http://ftpmaster.internal/ubuntu plucky/universe s390x libhdf5-hl-310 s390x 1.14.5+repack-3 [61.0 kB] 353s Get:391 http://ftpmaster.internal/ubuntu plucky/universe s390x libhdf5-hl-fortran-310 s390x 1.14.5+repack-3 [32.5 kB] 353s Get:392 http://ftpmaster.internal/ubuntu plucky/universe s390x libhdf5-cpp-310 s390x 1.14.5+repack-3 [117 kB] 353s Get:393 http://ftpmaster.internal/ubuntu plucky/universe s390x libhdf5-hl-cpp-310 s390x 1.14.5+repack-3 [11.7 kB] 353s Get:394 http://ftpmaster.internal/ubuntu plucky/main s390x zlib1g-dev s390x 1:1.3.dfsg+really1.3.1-1ubuntu1 [898 kB] 355s Get:395 http://ftpmaster.internal/ubuntu plucky/main s390x libjpeg-turbo8-dev s390x 2.1.5-3ubuntu2 [281 kB] 355s Get:396 http://ftpmaster.internal/ubuntu plucky/main s390x libjpeg8-dev s390x 8c-2ubuntu11 [1484 B] 355s Get:397 http://ftpmaster.internal/ubuntu plucky/main s390x libjpeg-dev s390x 8c-2ubuntu11 [1484 B] 355s Get:398 http://ftpmaster.internal/ubuntu plucky/universe s390x libaec-dev s390x 1.1.3-1 [23.3 kB] 355s Get:399 http://ftpmaster.internal/ubuntu plucky/main s390x libbrotli-dev s390x 1.1.0-2build4 [395 kB] 355s Get:400 http://ftpmaster.internal/ubuntu plucky/main s390x libidn2-dev s390x 2.3.7-2build2 [122 kB] 356s Get:401 http://ftpmaster.internal/ubuntu plucky/main s390x comerr-dev s390x 2.1-1.47.2-1ubuntu1 [44.7 kB] 356s Get:402 http://ftpmaster.internal/ubuntu plucky/main s390x libgssrpc4t64 s390x 1.21.3-4ubuntu2 [59.1 kB] 356s Get:403 http://ftpmaster.internal/ubuntu plucky/main s390x libkadm5clnt-mit12 s390x 1.21.3-4ubuntu2 [40.6 kB] 356s Get:404 http://ftpmaster.internal/ubuntu plucky/main s390x libkdb5-10t64 s390x 1.21.3-4ubuntu2 [42.0 kB] 356s Get:405 http://ftpmaster.internal/ubuntu plucky/main s390x libkadm5srv-mit12 s390x 1.21.3-4ubuntu2 [55.4 kB] 356s Get:406 http://ftpmaster.internal/ubuntu plucky/main s390x krb5-multidev s390x 1.21.3-4ubuntu2 [125 kB] 356s Get:407 http://ftpmaster.internal/ubuntu plucky/main s390x libkrb5-dev s390x 1.21.3-4ubuntu2 [11.9 kB] 356s Get:408 http://ftpmaster.internal/ubuntu plucky/main s390x libldap-dev s390x 2.6.9+dfsg-1~exp2ubuntu1 [316 kB] 357s Get:409 http://ftpmaster.internal/ubuntu plucky/main s390x libpkgconf3 s390x 1.8.1-4 [31.2 kB] 357s Get:410 http://ftpmaster.internal/ubuntu plucky/main s390x pkgconf-bin s390x 1.8.1-4 [21.5 kB] 357s Get:411 http://ftpmaster.internal/ubuntu plucky/main s390x pkgconf s390x 1.8.1-4 [16.7 kB] 357s Get:412 http://ftpmaster.internal/ubuntu plucky/main s390x libnghttp2-dev s390x 1.64.0-1 [121 kB] 357s Get:413 http://ftpmaster.internal/ubuntu plucky/main s390x libpsl-dev s390x 0.21.2-1.1build1 [77.3 kB] 357s Get:414 http://ftpmaster.internal/ubuntu plucky/main s390x libgmpxx4ldbl s390x 2:6.3.0+dfsg-3ubuntu1 [10.1 kB] 357s Get:415 http://ftpmaster.internal/ubuntu plucky/main s390x libgmp-dev s390x 2:6.3.0+dfsg-3ubuntu1 [424 kB] 358s Get:416 http://ftpmaster.internal/ubuntu plucky/main s390x libevent-2.1-7t64 s390x 2.1.12-stable-10 [145 kB] 358s Get:417 http://ftpmaster.internal/ubuntu plucky/main s390x libunbound8 s390x 1.22.0-1ubuntu1 [462 kB] 358s Get:418 http://ftpmaster.internal/ubuntu plucky/main s390x libgnutls-dane0t64 s390x 3.8.9-2ubuntu2 [24.5 kB] 358s Get:419 http://ftpmaster.internal/ubuntu plucky/main s390x libgnutls-openssl27t64 s390x 3.8.9-2ubuntu2 [24.5 kB] 358s Get:420 http://ftpmaster.internal/ubuntu plucky/main s390x libp11-kit-dev s390x 0.25.5-2ubuntu3 [23.5 kB] 358s Get:421 http://ftpmaster.internal/ubuntu plucky/main s390x libtasn1-6-dev s390x 4.20.0-2 [94.8 kB] 359s Get:422 http://ftpmaster.internal/ubuntu plucky/main s390x nettle-dev s390x 3.10.1-1 [1198 kB] 360s Get:423 http://ftpmaster.internal/ubuntu plucky/main s390x libgnutls28-dev s390x 3.8.9-2ubuntu2 [1016 kB] 361s Get:424 http://ftpmaster.internal/ubuntu plucky/main s390x librtmp-dev s390x 2.4+20151223.gitfa8646d.1-2build7 [69.2 kB] 361s Get:425 http://ftpmaster.internal/ubuntu plucky/main s390x libssl-dev s390x 3.4.1-1ubuntu1 [2429 kB] 364s Get:426 http://ftpmaster.internal/ubuntu plucky/main s390x libssh2-1-dev s390x 1.11.1-1 [287 kB] 364s Get:427 http://ftpmaster.internal/ubuntu plucky/main s390x libzstd-dev s390x 1.5.6+dfsg-2 [408 kB] 365s Get:428 http://ftpmaster.internal/ubuntu plucky/main s390x libcurl4-openssl-dev s390x 8.12.1-3ubuntu1 [513 kB] 365s Get:429 http://ftpmaster.internal/ubuntu plucky/universe s390x hdf5-helpers s390x 1.14.5+repack-3 [17.0 kB] 365s Get:430 http://ftpmaster.internal/ubuntu plucky/universe s390x libhdf5-dev s390x 1.14.5+repack-3 [3385 kB] 369s Get:431 http://ftpmaster.internal/ubuntu plucky/main s390x xorg-sgml-doctools all 1:1.11-1.1 [10.9 kB] 369s Get:432 http://ftpmaster.internal/ubuntu plucky/main s390x x11proto-dev all 2024.1-1 [606 kB] 370s Get:433 http://ftpmaster.internal/ubuntu plucky/main s390x libxau-dev s390x 1:1.0.11-1 [9752 B] 370s Get:434 http://ftpmaster.internal/ubuntu plucky/main s390x libxdmcp-dev s390x 1:1.1.5-1 [26.9 kB] 370s Get:435 http://ftpmaster.internal/ubuntu plucky/main s390x xtrans-dev all 1.4.0-1 [68.9 kB] 370s Get:436 http://ftpmaster.internal/ubuntu plucky/main s390x libxcb1-dev s390x 1.17.0-2 [88.9 kB] 370s Get:437 http://ftpmaster.internal/ubuntu plucky/main s390x libx11-dev s390x 2:1.8.10-2 [761 kB] 371s Get:438 http://ftpmaster.internal/ubuntu plucky/main s390x libglx-dev s390x 1.7.0-1build1 [14.2 kB] 371s Get:439 http://ftpmaster.internal/ubuntu plucky/main s390x libgl-dev s390x 1.7.0-1build1 [102 kB] 371s Get:440 http://ftpmaster.internal/ubuntu plucky/main s390x libblas-dev s390x 3.12.1-2 [254 kB] 371s Get:441 http://ftpmaster.internal/ubuntu plucky/main s390x liblapack-dev s390x 3.12.1-2 [5967 kB] 378s Get:442 http://ftpmaster.internal/ubuntu plucky/main s390x libfftw3-long3 s390x 3.3.10-2fakesync1build1 [533 kB] 378s Get:443 http://ftpmaster.internal/ubuntu plucky/main s390x libfftw3-bin s390x 3.3.10-2fakesync1build1 [36.5 kB] 378s Get:444 http://ftpmaster.internal/ubuntu plucky/main s390x libfftw3-dev s390x 3.3.10-2fakesync1build1 [1329 kB] 379s Get:445 http://ftpmaster.internal/ubuntu plucky/main s390x libgfortran-14-dev s390x 14.2.0-17ubuntu3 [654 kB] 380s Get:446 http://ftpmaster.internal/ubuntu plucky/main s390x gfortran-14-s390x-linux-gnu s390x 14.2.0-17ubuntu3 [10.3 MB] 391s Get:447 http://ftpmaster.internal/ubuntu plucky/main s390x gfortran-14 s390x 14.2.0-17ubuntu3 [13.6 kB] 391s Get:448 http://ftpmaster.internal/ubuntu plucky/main s390x gfortran-s390x-linux-gnu s390x 4:14.2.0-1ubuntu1 [1012 B] 391s Get:449 http://ftpmaster.internal/ubuntu plucky/main s390x gfortran s390x 4:14.2.0-1ubuntu1 [1160 B] 391s Get:450 http://ftpmaster.internal/ubuntu plucky/main s390x libstdc++-14-dev s390x 14.2.0-17ubuntu3 [2611 kB] 394s Get:451 http://ftpmaster.internal/ubuntu plucky/main s390x g++-14-s390x-linux-gnu s390x 14.2.0-17ubuntu3 [11.0 MB] 407s Get:452 http://ftpmaster.internal/ubuntu plucky/main s390x g++-14 s390x 14.2.0-17ubuntu3 [21.8 kB] 407s Get:453 http://ftpmaster.internal/ubuntu plucky/main s390x g++-s390x-linux-gnu s390x 4:14.2.0-1ubuntu1 [956 B] 407s Get:454 http://ftpmaster.internal/ubuntu plucky/main s390x g++ s390x 4:14.2.0-1ubuntu1 [1080 B] 407s Get:455 http://ftpmaster.internal/ubuntu plucky/universe s390x octave-dev s390x 9.4.0-1 [460 kB] 407s Get:456 http://ftpmaster.internal/ubuntu plucky/universe s390x dh-octave all 1.8.0 [19.7 kB] 407s Get:457 http://ftpmaster.internal/ubuntu plucky/main s390x libfontenc1 s390x 1:1.1.8-1build1 [14.8 kB] 407s Get:458 http://ftpmaster.internal/ubuntu plucky/main s390x libxt6t64 s390x 1:1.2.1-1.2build1 [184 kB] 407s Get:459 http://ftpmaster.internal/ubuntu plucky/main s390x libxmu6 s390x 2:1.1.3-3build2 [53.0 kB] 407s Get:460 http://ftpmaster.internal/ubuntu plucky/main s390x libxaw7 s390x 2:1.0.16-1 [201 kB] 408s Get:461 http://ftpmaster.internal/ubuntu plucky/main s390x libxfont2 s390x 1:2.0.6-1build1 [101 kB] 408s Get:462 http://ftpmaster.internal/ubuntu plucky/main s390x libxkbfile1 s390x 1:1.1.0-1build4 [76.5 kB] 408s Get:463 http://ftpmaster.internal/ubuntu plucky/main s390x libxrandr2 s390x 2:1.5.4-1 [20.8 kB] 408s Get:464 http://ftpmaster.internal/ubuntu plucky/universe s390x octave-image s390x 2.14.0-5build1 [695 kB] 409s Get:465 http://ftpmaster.internal/ubuntu plucky/main s390x x11-xkb-utils s390x 7.7+9 [169 kB] 409s Get:466 http://ftpmaster.internal/ubuntu plucky/main s390x xserver-common all 2:21.1.16-1ubuntu1 [34.4 kB] 409s Get:467 http://ftpmaster.internal/ubuntu plucky/universe s390x xvfb s390x 2:21.1.16-1ubuntu1 [942 kB] 411s Fetched 175 MB in 3min 42s (787 kB/s) 411s Selecting previously unselected package libstemmer0d:s390x. 411s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 56326 files and directories currently installed.) 411s Preparing to unpack .../000-libstemmer0d_2.2.0-4build1_s390x.deb ... 411s Unpacking libstemmer0d:s390x (2.2.0-4build1) ... 411s Selecting previously unselected package libappstream5:s390x. 411s Preparing to unpack .../001-libappstream5_1.0.4-1_s390x.deb ... 411s Unpacking libappstream5:s390x (1.0.4-1) ... 411s Selecting previously unselected package appstream. 411s Preparing to unpack .../002-appstream_1.0.4-1_s390x.deb ... 411s Unpacking appstream (1.0.4-1) ... 411s Selecting previously unselected package m4. 411s Preparing to unpack .../003-m4_1.4.19-7_s390x.deb ... 411s Unpacking m4 (1.4.19-7) ... 411s Selecting previously unselected package autoconf. 411s Preparing to unpack .../004-autoconf_2.72-3ubuntu1_all.deb ... 411s Unpacking autoconf (2.72-3ubuntu1) ... 411s Selecting previously unselected package autotools-dev. 411s Preparing to unpack .../005-autotools-dev_20220109.1_all.deb ... 411s Unpacking autotools-dev (20220109.1) ... 411s Selecting previously unselected package automake. 411s Preparing to unpack .../006-automake_1%3a1.17-3ubuntu1_all.deb ... 411s Unpacking automake (1:1.17-3ubuntu1) ... 411s Selecting previously unselected package autopoint. 411s Preparing to unpack .../007-autopoint_0.23.1-1_all.deb ... 411s Unpacking autopoint (0.23.1-1) ... 411s Selecting previously unselected package libcapture-tiny-perl. 411s Preparing to unpack .../008-libcapture-tiny-perl_0.50-1_all.deb ... 411s Unpacking libcapture-tiny-perl (0.50-1) ... 411s Selecting previously unselected package libparams-util-perl. 411s Preparing to unpack .../009-libparams-util-perl_1.102-3build1_s390x.deb ... 411s Unpacking libparams-util-perl (1.102-3build1) ... 411s Selecting previously unselected package libsub-install-perl. 411s Preparing to unpack .../010-libsub-install-perl_0.929-1_all.deb ... 411s Unpacking libsub-install-perl (0.929-1) ... 411s Selecting previously unselected package libdata-optlist-perl. 411s Preparing to unpack .../011-libdata-optlist-perl_0.114-1_all.deb ... 411s Unpacking libdata-optlist-perl (0.114-1) ... 411s Selecting previously unselected package libb-hooks-op-check-perl:s390x. 411s Preparing to unpack .../012-libb-hooks-op-check-perl_0.22-3build2_s390x.deb ... 411s Unpacking libb-hooks-op-check-perl:s390x (0.22-3build2) ... 411s Selecting previously unselected package libdynaloader-functions-perl. 411s Preparing to unpack .../013-libdynaloader-functions-perl_0.004-1_all.deb ... 411s Unpacking libdynaloader-functions-perl (0.004-1) ... 411s Selecting previously unselected package libdevel-callchecker-perl:s390x. 411s Preparing to unpack .../014-libdevel-callchecker-perl_0.009-1build1_s390x.deb ... 411s Unpacking libdevel-callchecker-perl:s390x (0.009-1build1) ... 411s Selecting previously unselected package libparams-classify-perl:s390x. 411s Preparing to unpack .../015-libparams-classify-perl_0.015-2build6_s390x.deb ... 411s Unpacking libparams-classify-perl:s390x (0.015-2build6) ... 411s Selecting previously unselected package libmodule-runtime-perl. 411s Preparing to unpack .../016-libmodule-runtime-perl_0.016-2_all.deb ... 411s Unpacking libmodule-runtime-perl (0.016-2) ... 411s Selecting previously unselected package libtry-tiny-perl. 411s Preparing to unpack .../017-libtry-tiny-perl_0.32-1_all.deb ... 411s Unpacking libtry-tiny-perl (0.32-1) ... 411s Selecting previously unselected package libmodule-implementation-perl. 411s Preparing to unpack .../018-libmodule-implementation-perl_0.09-2_all.deb ... 411s Unpacking libmodule-implementation-perl (0.09-2) ... 411s Selecting previously unselected package libpackage-stash-perl. 411s Preparing to unpack .../019-libpackage-stash-perl_0.40-1_all.deb ... 411s Unpacking libpackage-stash-perl (0.40-1) ... 411s Selecting previously unselected package libclass-load-perl. 411s Preparing to unpack .../020-libclass-load-perl_0.25-2_all.deb ... 411s Unpacking libclass-load-perl (0.25-2) ... 411s Selecting previously unselected package libio-stringy-perl. 411s Preparing to unpack .../021-libio-stringy-perl_2.113-2_all.deb ... 411s Unpacking libio-stringy-perl (2.113-2) ... 411s Selecting previously unselected package libparams-validate-perl:s390x. 411s Preparing to unpack .../022-libparams-validate-perl_1.31-2build4_s390x.deb ... 411s Unpacking libparams-validate-perl:s390x (1.31-2build4) ... 411s Selecting previously unselected package libsub-exporter-perl. 411s Preparing to unpack .../023-libsub-exporter-perl_0.990-1_all.deb ... 411s Unpacking libsub-exporter-perl (0.990-1) ... 411s Selecting previously unselected package libgetopt-long-descriptive-perl. 411s Preparing to unpack .../024-libgetopt-long-descriptive-perl_0.116-2_all.deb ... 411s Unpacking libgetopt-long-descriptive-perl (0.116-2) ... 411s Selecting previously unselected package libio-tiecombine-perl. 411s Preparing to unpack .../025-libio-tiecombine-perl_1.005-3_all.deb ... 411s Unpacking libio-tiecombine-perl (1.005-3) ... 411s Selecting previously unselected package libmodule-pluggable-perl. 411s Preparing to unpack .../026-libmodule-pluggable-perl_5.2-5_all.deb ... 411s Unpacking libmodule-pluggable-perl (5.2-5) ... 411s Selecting previously unselected package libstring-rewriteprefix-perl. 411s Preparing to unpack .../027-libstring-rewriteprefix-perl_0.009-1_all.deb ... 411s Unpacking libstring-rewriteprefix-perl (0.009-1) ... 411s Selecting previously unselected package libapp-cmd-perl. 411s Preparing to unpack .../028-libapp-cmd-perl_0.337-2_all.deb ... 411s Unpacking libapp-cmd-perl (0.337-2) ... 411s Selecting previously unselected package libboolean-perl. 411s Preparing to unpack .../029-libboolean-perl_0.46-3_all.deb ... 411s Unpacking libboolean-perl (0.46-3) ... 411s Selecting previously unselected package libsub-uplevel-perl. 411s Preparing to unpack .../030-libsub-uplevel-perl_0.2800-3_all.deb ... 411s Unpacking libsub-uplevel-perl (0.2800-3) ... 411s Selecting previously unselected package libtest-exception-perl. 411s Preparing to unpack .../031-libtest-exception-perl_0.43-3_all.deb ... 411s Unpacking libtest-exception-perl (0.43-3) ... 411s Selecting previously unselected package libcarp-assert-more-perl. 411s Preparing to unpack .../032-libcarp-assert-more-perl_2.8.0-1_all.deb ... 411s Unpacking libcarp-assert-more-perl (2.8.0-1) ... 411s Selecting previously unselected package libfile-which-perl. 411s Preparing to unpack .../033-libfile-which-perl_1.27-2_all.deb ... 411s Unpacking libfile-which-perl (1.27-2) ... 411s Selecting previously unselected package libfile-homedir-perl. 411s Preparing to unpack .../034-libfile-homedir-perl_1.006-2_all.deb ... 411s Unpacking libfile-homedir-perl (1.006-2) ... 411s Selecting previously unselected package libclone-choose-perl. 411s Preparing to unpack .../035-libclone-choose-perl_0.010-2_all.deb ... 411s Unpacking libclone-choose-perl (0.010-2) ... 411s Selecting previously unselected package libhash-merge-perl. 411s Preparing to unpack .../036-libhash-merge-perl_0.302-1_all.deb ... 411s Unpacking libhash-merge-perl (0.302-1) ... 411s Selecting previously unselected package libjson-perl. 411s Preparing to unpack .../037-libjson-perl_4.10000-1_all.deb ... 411s Unpacking libjson-perl (4.10000-1) ... 411s Selecting previously unselected package libexporter-tiny-perl. 411s Preparing to unpack .../038-libexporter-tiny-perl_1.006002-1_all.deb ... 411s Unpacking libexporter-tiny-perl (1.006002-1) ... 411s Selecting previously unselected package liblist-moreutils-xs-perl. 412s Preparing to unpack .../039-liblist-moreutils-xs-perl_0.430-4build1_s390x.deb ... 412s Unpacking liblist-moreutils-xs-perl (0.430-4build1) ... 412s Selecting previously unselected package liblist-moreutils-perl. 412s Preparing to unpack .../040-liblist-moreutils-perl_0.430-2_all.deb ... 412s Unpacking liblist-moreutils-perl (0.430-2) ... 412s Selecting previously unselected package liblog-log4perl-perl. 412s Preparing to unpack .../041-liblog-log4perl-perl_1.57-1_all.deb ... 412s Unpacking liblog-log4perl-perl (1.57-1) ... 412s Selecting previously unselected package libmouse-perl:s390x. 412s Preparing to unpack .../042-libmouse-perl_2.5.11-1build1_s390x.deb ... 412s Unpacking libmouse-perl:s390x (2.5.11-1build1) ... 412s Selecting previously unselected package libmousex-nativetraits-perl. 412s Preparing to unpack .../043-libmousex-nativetraits-perl_1.09-3_all.deb ... 412s Unpacking libmousex-nativetraits-perl (1.09-3) ... 412s Selecting previously unselected package libmousex-strictconstructor-perl. 412s Preparing to unpack .../044-libmousex-strictconstructor-perl_0.02-3_all.deb ... 412s Unpacking libmousex-strictconstructor-perl (0.02-3) ... 412s Selecting previously unselected package libparse-recdescent-perl. 412s Preparing to unpack .../045-libparse-recdescent-perl_1.967015+dfsg-4_all.deb ... 412s Unpacking libparse-recdescent-perl (1.967015+dfsg-4) ... 412s Selecting previously unselected package libpath-tiny-perl. 412s Preparing to unpack .../046-libpath-tiny-perl_0.146-1_all.deb ... 412s Unpacking libpath-tiny-perl (0.146-1) ... 412s Selecting previously unselected package libpod-pom-perl. 412s Preparing to unpack .../047-libpod-pom-perl_2.01-4_all.deb ... 412s Unpacking libpod-pom-perl (2.01-4) ... 412s Selecting previously unselected package libregexp-common-perl. 412s Preparing to unpack .../048-libregexp-common-perl_2024080801-1_all.deb ... 412s Unpacking libregexp-common-perl (2024080801-1) ... 412s Selecting previously unselected package libyaml-tiny-perl. 412s Preparing to unpack .../049-libyaml-tiny-perl_1.76-1_all.deb ... 412s Unpacking libyaml-tiny-perl (1.76-1) ... 412s Selecting previously unselected package libconfig-model-perl. 412s Preparing to unpack .../050-libconfig-model-perl_2.155-1_all.deb ... 412s Unpacking libconfig-model-perl (2.155-1) ... 412s Selecting previously unselected package libyaml-pp-perl. 412s Preparing to unpack .../051-libyaml-pp-perl_0.39.0-1_all.deb ... 412s Unpacking libyaml-pp-perl (0.39.0-1) ... 412s Selecting previously unselected package cme. 412s Preparing to unpack .../052-cme_1.041-1_all.deb ... 412s Unpacking cme (1.041-1) ... 412s Selecting previously unselected package libisl23:s390x. 412s Preparing to unpack .../053-libisl23_0.27-1_s390x.deb ... 412s Unpacking libisl23:s390x (0.27-1) ... 412s Selecting previously unselected package libmpc3:s390x. 412s Preparing to unpack .../054-libmpc3_1.3.1-1build2_s390x.deb ... 412s Unpacking libmpc3:s390x (1.3.1-1build2) ... 412s Selecting previously unselected package cpp-14-s390x-linux-gnu. 412s Preparing to unpack .../055-cpp-14-s390x-linux-gnu_14.2.0-17ubuntu3_s390x.deb ... 412s Unpacking cpp-14-s390x-linux-gnu (14.2.0-17ubuntu3) ... 412s Selecting previously unselected package cpp-14. 412s Preparing to unpack .../056-cpp-14_14.2.0-17ubuntu3_s390x.deb ... 412s Unpacking cpp-14 (14.2.0-17ubuntu3) ... 412s Selecting previously unselected package cpp-s390x-linux-gnu. 412s Preparing to unpack .../057-cpp-s390x-linux-gnu_4%3a14.2.0-1ubuntu1_s390x.deb ... 412s Unpacking cpp-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 412s Selecting previously unselected package cpp. 412s Preparing to unpack .../058-cpp_4%3a14.2.0-1ubuntu1_s390x.deb ... 412s Unpacking cpp (4:14.2.0-1ubuntu1) ... 412s Selecting previously unselected package libdebhelper-perl. 412s Preparing to unpack .../059-libdebhelper-perl_13.24.1ubuntu2_all.deb ... 412s Unpacking libdebhelper-perl (13.24.1ubuntu2) ... 412s Selecting previously unselected package libcc1-0:s390x. 412s Preparing to unpack .../060-libcc1-0_15-20250222-0ubuntu1_s390x.deb ... 412s Unpacking libcc1-0:s390x (15-20250222-0ubuntu1) ... 412s Selecting previously unselected package libgomp1:s390x. 412s Preparing to unpack .../061-libgomp1_15-20250222-0ubuntu1_s390x.deb ... 412s Unpacking libgomp1:s390x (15-20250222-0ubuntu1) ... 412s Selecting previously unselected package libitm1:s390x. 412s Preparing to unpack .../062-libitm1_15-20250222-0ubuntu1_s390x.deb ... 412s Unpacking libitm1:s390x (15-20250222-0ubuntu1) ... 412s Selecting previously unselected package libasan8:s390x. 412s Preparing to unpack .../063-libasan8_15-20250222-0ubuntu1_s390x.deb ... 412s Unpacking libasan8:s390x (15-20250222-0ubuntu1) ... 412s Selecting previously unselected package libubsan1:s390x. 412s Preparing to unpack .../064-libubsan1_15-20250222-0ubuntu1_s390x.deb ... 412s Unpacking libubsan1:s390x (15-20250222-0ubuntu1) ... 412s Selecting previously unselected package libgcc-14-dev:s390x. 412s Preparing to unpack .../065-libgcc-14-dev_14.2.0-17ubuntu3_s390x.deb ... 412s Unpacking libgcc-14-dev:s390x (14.2.0-17ubuntu3) ... 412s Selecting previously unselected package gcc-14-s390x-linux-gnu. 412s Preparing to unpack .../066-gcc-14-s390x-linux-gnu_14.2.0-17ubuntu3_s390x.deb ... 412s Unpacking gcc-14-s390x-linux-gnu (14.2.0-17ubuntu3) ... 412s Selecting previously unselected package gcc-14. 412s Preparing to unpack .../067-gcc-14_14.2.0-17ubuntu3_s390x.deb ... 412s Unpacking gcc-14 (14.2.0-17ubuntu3) ... 412s Selecting previously unselected package gcc-s390x-linux-gnu. 412s Preparing to unpack .../068-gcc-s390x-linux-gnu_4%3a14.2.0-1ubuntu1_s390x.deb ... 412s Unpacking gcc-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 412s Selecting previously unselected package gcc. 412s Preparing to unpack .../069-gcc_4%3a14.2.0-1ubuntu1_s390x.deb ... 412s Unpacking gcc (4:14.2.0-1ubuntu1) ... 412s Selecting previously unselected package libtool. 412s Preparing to unpack .../070-libtool_2.5.4-4_all.deb ... 412s Unpacking libtool (2.5.4-4) ... 412s Selecting previously unselected package dh-autoreconf. 412s Preparing to unpack .../071-dh-autoreconf_20_all.deb ... 412s Unpacking dh-autoreconf (20) ... 412s Selecting previously unselected package libarchive-zip-perl. 412s Preparing to unpack .../072-libarchive-zip-perl_1.68-1_all.deb ... 412s Unpacking libarchive-zip-perl (1.68-1) ... 412s Selecting previously unselected package libfile-stripnondeterminism-perl. 412s Preparing to unpack .../073-libfile-stripnondeterminism-perl_1.14.1-2_all.deb ... 412s Unpacking libfile-stripnondeterminism-perl (1.14.1-2) ... 412s Selecting previously unselected package dh-strip-nondeterminism. 412s Preparing to unpack .../074-dh-strip-nondeterminism_1.14.1-2_all.deb ... 412s Unpacking dh-strip-nondeterminism (1.14.1-2) ... 412s Selecting previously unselected package debugedit. 412s Preparing to unpack .../075-debugedit_1%3a5.1-2_s390x.deb ... 412s Unpacking debugedit (1:5.1-2) ... 412s Selecting previously unselected package dwz. 412s Preparing to unpack .../076-dwz_0.15-1build6_s390x.deb ... 412s Unpacking dwz (0.15-1build6) ... 412s Selecting previously unselected package gettext. 412s Preparing to unpack .../077-gettext_0.23.1-1_s390x.deb ... 412s Unpacking gettext (0.23.1-1) ... 412s Selecting previously unselected package intltool-debian. 412s Preparing to unpack .../078-intltool-debian_0.35.0+20060710.6_all.deb ... 412s Unpacking intltool-debian (0.35.0+20060710.6) ... 412s Selecting previously unselected package po-debconf. 412s Preparing to unpack .../079-po-debconf_1.0.21+nmu1_all.deb ... 412s Unpacking po-debconf (1.0.21+nmu1) ... 412s Selecting previously unselected package debhelper. 412s Preparing to unpack .../080-debhelper_13.24.1ubuntu2_all.deb ... 412s Unpacking debhelper (13.24.1ubuntu2) ... 412s Selecting previously unselected package aglfn. 412s Preparing to unpack .../081-aglfn_1.7+git20191031.4036a9c-2_all.deb ... 412s Unpacking aglfn (1.7+git20191031.4036a9c-2) ... 412s Selecting previously unselected package gnuplot-data. 413s Preparing to unpack .../082-gnuplot-data_6.0.2+dfsg1-1_all.deb ... 413s Unpacking gnuplot-data (6.0.2+dfsg1-1) ... 413s Selecting previously unselected package libfreetype6:s390x. 413s Preparing to unpack .../083-libfreetype6_2.13.3+dfsg-1_s390x.deb ... 413s Unpacking libfreetype6:s390x (2.13.3+dfsg-1) ... 413s Selecting previously unselected package fonts-dejavu-mono. 413s Preparing to unpack .../084-fonts-dejavu-mono_2.37-8_all.deb ... 413s Unpacking fonts-dejavu-mono (2.37-8) ... 413s Selecting previously unselected package fonts-dejavu-core. 413s Preparing to unpack .../085-fonts-dejavu-core_2.37-8_all.deb ... 413s Unpacking fonts-dejavu-core (2.37-8) ... 413s Selecting previously unselected package fonts-freefont-otf. 413s Preparing to unpack .../086-fonts-freefont-otf_20211204+svn4273-2_all.deb ... 413s Unpacking fonts-freefont-otf (20211204+svn4273-2) ... 413s Selecting previously unselected package fontconfig-config. 413s Preparing to unpack .../087-fontconfig-config_2.15.0-2ubuntu1_s390x.deb ... 413s Unpacking fontconfig-config (2.15.0-2ubuntu1) ... 413s Selecting previously unselected package libfontconfig1:s390x. 413s Preparing to unpack .../088-libfontconfig1_2.15.0-2ubuntu1_s390x.deb ... 413s Unpacking libfontconfig1:s390x (2.15.0-2ubuntu1) ... 413s Selecting previously unselected package libpixman-1-0:s390x. 413s Preparing to unpack .../089-libpixman-1-0_0.44.0-3_s390x.deb ... 413s Unpacking libpixman-1-0:s390x (0.44.0-3) ... 413s Selecting previously unselected package libxcb-render0:s390x. 413s Preparing to unpack .../090-libxcb-render0_1.17.0-2_s390x.deb ... 413s Unpacking libxcb-render0:s390x (1.17.0-2) ... 413s Selecting previously unselected package libxcb-shm0:s390x. 413s Preparing to unpack .../091-libxcb-shm0_1.17.0-2_s390x.deb ... 413s Unpacking libxcb-shm0:s390x (1.17.0-2) ... 413s Selecting previously unselected package libxrender1:s390x. 413s Preparing to unpack .../092-libxrender1_1%3a0.9.10-1.1build1_s390x.deb ... 413s Unpacking libxrender1:s390x (1:0.9.10-1.1build1) ... 413s Selecting previously unselected package libcairo2:s390x. 413s Preparing to unpack .../093-libcairo2_1.18.2-2_s390x.deb ... 413s Unpacking libcairo2:s390x (1.18.2-2) ... 413s Selecting previously unselected package libsharpyuv0:s390x. 413s Preparing to unpack .../094-libsharpyuv0_1.5.0-0.1_s390x.deb ... 413s Unpacking libsharpyuv0:s390x (1.5.0-0.1) ... 413s Selecting previously unselected package libaom3:s390x. 413s Preparing to unpack .../095-libaom3_3.12.0-1_s390x.deb ... 413s Unpacking libaom3:s390x (3.12.0-1) ... 413s Selecting previously unselected package libheif-plugin-aomdec:s390x. 413s Preparing to unpack .../096-libheif-plugin-aomdec_1.19.7-1_s390x.deb ... 413s Unpacking libheif-plugin-aomdec:s390x (1.19.7-1) ... 413s Selecting previously unselected package libde265-0:s390x. 413s Preparing to unpack .../097-libde265-0_1.0.15-1build5_s390x.deb ... 413s Unpacking libde265-0:s390x (1.0.15-1build5) ... 413s Selecting previously unselected package libheif-plugin-libde265:s390x. 413s Preparing to unpack .../098-libheif-plugin-libde265_1.19.7-1_s390x.deb ... 413s Unpacking libheif-plugin-libde265:s390x (1.19.7-1) ... 413s Selecting previously unselected package libheif1:s390x. 413s Preparing to unpack .../099-libheif1_1.19.7-1_s390x.deb ... 413s Unpacking libheif1:s390x (1.19.7-1) ... 413s Selecting previously unselected package libimagequant0:s390x. 413s Preparing to unpack .../100-libimagequant0_2.18.0-1build1_s390x.deb ... 413s Unpacking libimagequant0:s390x (2.18.0-1build1) ... 413s Selecting previously unselected package libjpeg-turbo8:s390x. 413s Preparing to unpack .../101-libjpeg-turbo8_2.1.5-3ubuntu2_s390x.deb ... 413s Unpacking libjpeg-turbo8:s390x (2.1.5-3ubuntu2) ... 413s Selecting previously unselected package libjpeg8:s390x. 413s Preparing to unpack .../102-libjpeg8_8c-2ubuntu11_s390x.deb ... 413s Unpacking libjpeg8:s390x (8c-2ubuntu11) ... 413s Selecting previously unselected package libgraphite2-3:s390x. 413s Preparing to unpack .../103-libgraphite2-3_1.3.14-2ubuntu1_s390x.deb ... 413s Unpacking libgraphite2-3:s390x (1.3.14-2ubuntu1) ... 413s Selecting previously unselected package libharfbuzz0b:s390x. 413s Preparing to unpack .../104-libharfbuzz0b_10.2.0-1_s390x.deb ... 413s Unpacking libharfbuzz0b:s390x (10.2.0-1) ... 413s Selecting previously unselected package libraqm0:s390x. 413s Preparing to unpack .../105-libraqm0_0.10.2-1_s390x.deb ... 413s Unpacking libraqm0:s390x (0.10.2-1) ... 413s Selecting previously unselected package libdeflate0:s390x. 413s Preparing to unpack .../106-libdeflate0_1.23-1_s390x.deb ... 413s Unpacking libdeflate0:s390x (1.23-1) ... 413s Selecting previously unselected package libjbig0:s390x. 413s Preparing to unpack .../107-libjbig0_2.1-6.1ubuntu2_s390x.deb ... 413s Unpacking libjbig0:s390x (2.1-6.1ubuntu2) ... 413s Selecting previously unselected package libwebp7:s390x. 413s Preparing to unpack .../108-libwebp7_1.5.0-0.1_s390x.deb ... 413s Unpacking libwebp7:s390x (1.5.0-0.1) ... 413s Selecting previously unselected package libtiff6:s390x. 413s Preparing to unpack .../109-libtiff6_4.5.1+git230720-4ubuntu4_s390x.deb ... 413s Unpacking libtiff6:s390x (4.5.1+git230720-4ubuntu4) ... 413s Selecting previously unselected package libxpm4:s390x. 413s Preparing to unpack .../110-libxpm4_1%3a3.5.17-1build2_s390x.deb ... 413s Unpacking libxpm4:s390x (1:3.5.17-1build2) ... 413s Selecting previously unselected package libgd3:s390x. 413s Preparing to unpack .../111-libgd3_2.3.3-12ubuntu3_s390x.deb ... 413s Unpacking libgd3:s390x (2.3.3-12ubuntu3) ... 413s Selecting previously unselected package liblua5.4-0:s390x. 413s Preparing to unpack .../112-liblua5.4-0_5.4.7-1_s390x.deb ... 413s Unpacking liblua5.4-0:s390x (5.4.7-1) ... 413s Selecting previously unselected package fontconfig. 413s Preparing to unpack .../113-fontconfig_2.15.0-2ubuntu1_s390x.deb ... 413s Unpacking fontconfig (2.15.0-2ubuntu1) ... 413s Selecting previously unselected package libthai-data. 413s Preparing to unpack .../114-libthai-data_0.1.29-2build1_all.deb ... 413s Unpacking libthai-data (0.1.29-2build1) ... 413s Selecting previously unselected package libdatrie1:s390x. 413s Preparing to unpack .../115-libdatrie1_0.2.13-3build1_s390x.deb ... 413s Unpacking libdatrie1:s390x (0.2.13-3build1) ... 413s Selecting previously unselected package libthai0:s390x. 413s Preparing to unpack .../116-libthai0_0.1.29-2build1_s390x.deb ... 413s Unpacking libthai0:s390x (0.1.29-2build1) ... 413s Selecting previously unselected package libpango-1.0-0:s390x. 413s Preparing to unpack .../117-libpango-1.0-0_1.56.2-1_s390x.deb ... 413s Unpacking libpango-1.0-0:s390x (1.56.2-1) ... 413s Selecting previously unselected package libpangoft2-1.0-0:s390x. 413s Preparing to unpack .../118-libpangoft2-1.0-0_1.56.2-1_s390x.deb ... 413s Unpacking libpangoft2-1.0-0:s390x (1.56.2-1) ... 413s Selecting previously unselected package libpangocairo-1.0-0:s390x. 413s Preparing to unpack .../119-libpangocairo-1.0-0_1.56.2-1_s390x.deb ... 413s Unpacking libpangocairo-1.0-0:s390x (1.56.2-1) ... 413s Selecting previously unselected package libwebpmux3:s390x. 413s Preparing to unpack .../120-libwebpmux3_1.5.0-0.1_s390x.deb ... 413s Unpacking libwebpmux3:s390x (1.5.0-0.1) ... 413s Selecting previously unselected package gnuplot-nox. 413s Preparing to unpack .../121-gnuplot-nox_6.0.2+dfsg1-1_s390x.deb ... 413s Unpacking gnuplot-nox (6.0.2+dfsg1-1) ... 413s Selecting previously unselected package dh-octave-autopkgtest. 413s Preparing to unpack .../122-dh-octave-autopkgtest_1.8.0_all.deb ... 413s Unpacking dh-octave-autopkgtest (1.8.0) ... 413s Selecting previously unselected package libapt-pkg-perl. 413s Preparing to unpack .../123-libapt-pkg-perl_0.1.41build1_s390x.deb ... 413s Unpacking libapt-pkg-perl (0.1.41build1) ... 413s Selecting previously unselected package libarray-intspan-perl. 413s Preparing to unpack .../124-libarray-intspan-perl_2.004-2_all.deb ... 413s Unpacking libarray-intspan-perl (2.004-2) ... 413s Selecting previously unselected package libyaml-libyaml-perl. 413s Preparing to unpack .../125-libyaml-libyaml-perl_0.903.0+ds-1_s390x.deb ... 413s Unpacking libyaml-libyaml-perl (0.903.0+ds-1) ... 413s Selecting previously unselected package libconfig-model-backend-yaml-perl. 413s Preparing to unpack .../126-libconfig-model-backend-yaml-perl_2.134-2_all.deb ... 413s Unpacking libconfig-model-backend-yaml-perl (2.134-2) ... 413s Selecting previously unselected package libexporter-lite-perl. 413s Preparing to unpack .../127-libexporter-lite-perl_0.09-2_all.deb ... 413s Unpacking libexporter-lite-perl (0.09-2) ... 413s Selecting previously unselected package libencode-locale-perl. 413s Preparing to unpack .../128-libencode-locale-perl_1.05-3_all.deb ... 413s Unpacking libencode-locale-perl (1.05-3) ... 413s Selecting previously unselected package libtimedate-perl. 413s Preparing to unpack .../129-libtimedate-perl_2.3300-2_all.deb ... 413s Unpacking libtimedate-perl (2.3300-2) ... 413s Selecting previously unselected package libhttp-date-perl. 413s Preparing to unpack .../130-libhttp-date-perl_6.06-1_all.deb ... 413s Unpacking libhttp-date-perl (6.06-1) ... 413s Selecting previously unselected package libfile-listing-perl. 413s Preparing to unpack .../131-libfile-listing-perl_6.16-1_all.deb ... 413s Unpacking libfile-listing-perl (6.16-1) ... 413s Selecting previously unselected package libhtml-tagset-perl. 413s Preparing to unpack .../132-libhtml-tagset-perl_3.24-1_all.deb ... 413s Unpacking libhtml-tagset-perl (3.24-1) ... 413s Selecting previously unselected package liburi-perl. 413s Preparing to unpack .../133-liburi-perl_5.30-1_all.deb ... 413s Unpacking liburi-perl (5.30-1) ... 413s Selecting previously unselected package libhtml-parser-perl:s390x. 413s Preparing to unpack .../134-libhtml-parser-perl_3.83-1build1_s390x.deb ... 413s Unpacking libhtml-parser-perl:s390x (3.83-1build1) ... 413s Selecting previously unselected package libhtml-tree-perl. 413s Preparing to unpack .../135-libhtml-tree-perl_5.07-3_all.deb ... 413s Unpacking libhtml-tree-perl (5.07-3) ... 413s Selecting previously unselected package libclone-perl:s390x. 413s Preparing to unpack .../136-libclone-perl_0.47-1_s390x.deb ... 413s Unpacking libclone-perl:s390x (0.47-1) ... 413s Selecting previously unselected package libio-html-perl. 413s Preparing to unpack .../137-libio-html-perl_1.004-3_all.deb ... 413s Unpacking libio-html-perl (1.004-3) ... 413s Selecting previously unselected package liblwp-mediatypes-perl. 413s Preparing to unpack .../138-liblwp-mediatypes-perl_6.04-2_all.deb ... 413s Unpacking liblwp-mediatypes-perl (6.04-2) ... 413s Selecting previously unselected package libhttp-message-perl. 413s Preparing to unpack .../139-libhttp-message-perl_7.00-2ubuntu1_all.deb ... 413s Unpacking libhttp-message-perl (7.00-2ubuntu1) ... 413s Selecting previously unselected package libhttp-cookies-perl. 413s Preparing to unpack .../140-libhttp-cookies-perl_6.11-1_all.deb ... 413s Unpacking libhttp-cookies-perl (6.11-1) ... 413s Selecting previously unselected package libhttp-negotiate-perl. 413s Preparing to unpack .../141-libhttp-negotiate-perl_6.01-2_all.deb ... 413s Unpacking libhttp-negotiate-perl (6.01-2) ... 413s Selecting previously unselected package perl-openssl-defaults:s390x. 413s Preparing to unpack .../142-perl-openssl-defaults_7build3_s390x.deb ... 413s Unpacking perl-openssl-defaults:s390x (7build3) ... 413s Selecting previously unselected package libnet-ssleay-perl:s390x. 413s Preparing to unpack .../143-libnet-ssleay-perl_1.94-3_s390x.deb ... 413s Unpacking libnet-ssleay-perl:s390x (1.94-3) ... 413s Selecting previously unselected package libio-socket-ssl-perl. 413s Preparing to unpack .../144-libio-socket-ssl-perl_2.089-1_all.deb ... 413s Unpacking libio-socket-ssl-perl (2.089-1) ... 413s Selecting previously unselected package libnet-http-perl. 413s Preparing to unpack .../145-libnet-http-perl_6.23-1_all.deb ... 413s Unpacking libnet-http-perl (6.23-1) ... 413s Selecting previously unselected package liblwp-protocol-https-perl. 413s Preparing to unpack .../146-liblwp-protocol-https-perl_6.14-1_all.deb ... 413s Unpacking liblwp-protocol-https-perl (6.14-1) ... 413s Selecting previously unselected package libwww-robotrules-perl. 413s Preparing to unpack .../147-libwww-robotrules-perl_6.02-1_all.deb ... 413s Unpacking libwww-robotrules-perl (6.02-1) ... 413s Selecting previously unselected package libwww-perl. 413s Preparing to unpack .../148-libwww-perl_6.78-1_all.deb ... 413s Unpacking libwww-perl (6.78-1) ... 413s Selecting previously unselected package liberror-perl. 414s Preparing to unpack .../149-liberror-perl_0.17030-1_all.deb ... 414s Unpacking liberror-perl (0.17030-1) ... 414s Selecting previously unselected package libparse-debcontrol-perl. 414s Preparing to unpack .../150-libparse-debcontrol-perl_2.005-6_all.deb ... 414s Unpacking libparse-debcontrol-perl (2.005-6) ... 414s Selecting previously unselected package libsoftware-copyright-perl. 414s Preparing to unpack .../151-libsoftware-copyright-perl_0.014-1_all.deb ... 414s Unpacking libsoftware-copyright-perl (0.014-1) ... 414s Selecting previously unselected package libalgorithm-c3-perl. 414s Preparing to unpack .../152-libalgorithm-c3-perl_0.11-2_all.deb ... 414s Unpacking libalgorithm-c3-perl (0.11-2) ... 414s Selecting previously unselected package libclass-c3-perl. 414s Preparing to unpack .../153-libclass-c3-perl_0.35-2_all.deb ... 414s Unpacking libclass-c3-perl (0.35-2) ... 414s Selecting previously unselected package libmro-compat-perl. 414s Preparing to unpack .../154-libmro-compat-perl_0.15-2_all.deb ... 414s Unpacking libmro-compat-perl (0.15-2) ... 414s Selecting previously unselected package libdata-section-perl. 414s Preparing to unpack .../155-libdata-section-perl_0.200008-1_all.deb ... 414s Unpacking libdata-section-perl (0.200008-1) ... 414s Selecting previously unselected package libtext-template-perl. 414s Preparing to unpack .../156-libtext-template-perl_1.61-1_all.deb ... 414s Unpacking libtext-template-perl (1.61-1) ... 414s Selecting previously unselected package libsoftware-license-perl. 414s Preparing to unpack .../157-libsoftware-license-perl_0.104006-1_all.deb ... 414s Unpacking libsoftware-license-perl (0.104006-1) ... 414s Selecting previously unselected package libsoftware-licensemoreutils-perl. 414s Preparing to unpack .../158-libsoftware-licensemoreutils-perl_1.009-1_all.deb ... 414s Unpacking libsoftware-licensemoreutils-perl (1.009-1) ... 414s Selecting previously unselected package libsort-versions-perl. 414s Preparing to unpack .../159-libsort-versions-perl_1.62-3_all.deb ... 414s Unpacking libsort-versions-perl (1.62-3) ... 414s Selecting previously unselected package libtext-reform-perl. 414s Preparing to unpack .../160-libtext-reform-perl_1.20-5_all.deb ... 414s Unpacking libtext-reform-perl (1.20-5) ... 414s Selecting previously unselected package libtext-autoformat-perl. 414s Preparing to unpack .../161-libtext-autoformat-perl_1.750000-2_all.deb ... 414s Unpacking libtext-autoformat-perl (1.750000-2) ... 414s Selecting previously unselected package libtext-levenshtein-damerau-perl. 414s Preparing to unpack .../162-libtext-levenshtein-damerau-perl_0.41-3_all.deb ... 414s Unpacking libtext-levenshtein-damerau-perl (0.41-3) ... 414s Selecting previously unselected package libtoml-tiny-perl. 414s Preparing to unpack .../163-libtoml-tiny-perl_0.19-1_all.deb ... 414s Unpacking libtoml-tiny-perl (0.19-1) ... 414s Selecting previously unselected package libclass-inspector-perl. 414s Preparing to unpack .../164-libclass-inspector-perl_1.36-3_all.deb ... 414s Unpacking libclass-inspector-perl (1.36-3) ... 414s Selecting previously unselected package libfile-sharedir-perl. 414s Preparing to unpack .../165-libfile-sharedir-perl_1.118-3_all.deb ... 414s Unpacking libfile-sharedir-perl (1.118-3) ... 414s Selecting previously unselected package libindirect-perl. 414s Preparing to unpack .../166-libindirect-perl_0.39-2build5_s390x.deb ... 414s Unpacking libindirect-perl (0.39-2build5) ... 414s Selecting previously unselected package libxs-parse-keyword-perl. 414s Preparing to unpack .../167-libxs-parse-keyword-perl_0.48-2_s390x.deb ... 414s Unpacking libxs-parse-keyword-perl (0.48-2) ... 414s Selecting previously unselected package libxs-parse-sublike-perl:s390x. 414s Preparing to unpack .../168-libxs-parse-sublike-perl_0.37-1_s390x.deb ... 414s Unpacking libxs-parse-sublike-perl:s390x (0.37-1) ... 414s Selecting previously unselected package libobject-pad-perl. 414s Preparing to unpack .../169-libobject-pad-perl_0.820-1_s390x.deb ... 414s Unpacking libobject-pad-perl (0.820-1) ... 414s Selecting previously unselected package libsyntax-keyword-try-perl. 414s Preparing to unpack .../170-libsyntax-keyword-try-perl_0.30-1_s390x.deb ... 414s Unpacking libsyntax-keyword-try-perl (0.30-1) ... 414s Selecting previously unselected package libio-interactive-perl. 414s Preparing to unpack .../171-libio-interactive-perl_1.026-1_all.deb ... 414s Unpacking libio-interactive-perl (1.026-1) ... 414s Selecting previously unselected package liblog-any-perl. 414s Preparing to unpack .../172-liblog-any-perl_1.717-1_all.deb ... 414s Unpacking liblog-any-perl (1.717-1) ... 414s Selecting previously unselected package liblog-any-adapter-screen-perl. 414s Preparing to unpack .../173-liblog-any-adapter-screen-perl_0.141-1_all.deb ... 414s Unpacking liblog-any-adapter-screen-perl (0.141-1) ... 414s Selecting previously unselected package libsub-exporter-progressive-perl. 414s Preparing to unpack .../174-libsub-exporter-progressive-perl_0.001013-3_all.deb ... 414s Unpacking libsub-exporter-progressive-perl (0.001013-3) ... 414s Selecting previously unselected package libvariable-magic-perl. 414s Preparing to unpack .../175-libvariable-magic-perl_0.64-1build1_s390x.deb ... 414s Unpacking libvariable-magic-perl (0.64-1build1) ... 414s Selecting previously unselected package libb-hooks-endofscope-perl. 414s Preparing to unpack .../176-libb-hooks-endofscope-perl_0.28-1_all.deb ... 414s Unpacking libb-hooks-endofscope-perl (0.28-1) ... 414s Selecting previously unselected package libsub-identify-perl. 414s Preparing to unpack .../177-libsub-identify-perl_0.14-3build4_s390x.deb ... 414s Unpacking libsub-identify-perl (0.14-3build4) ... 414s Selecting previously unselected package libsub-name-perl:s390x. 414s Preparing to unpack .../178-libsub-name-perl_0.28-1_s390x.deb ... 414s Unpacking libsub-name-perl:s390x (0.28-1) ... 414s Selecting previously unselected package libnamespace-clean-perl. 414s Preparing to unpack .../179-libnamespace-clean-perl_0.27-2_all.deb ... 414s Unpacking libnamespace-clean-perl (0.27-2) ... 414s Selecting previously unselected package libnumber-compare-perl. 414s Preparing to unpack .../180-libnumber-compare-perl_0.03-3_all.deb ... 414s Unpacking libnumber-compare-perl (0.03-3) ... 414s Selecting previously unselected package libtext-glob-perl. 414s Preparing to unpack .../181-libtext-glob-perl_0.11-3_all.deb ... 414s Unpacking libtext-glob-perl (0.11-3) ... 414s Selecting previously unselected package libpath-iterator-rule-perl. 414s Preparing to unpack .../182-libpath-iterator-rule-perl_1.015-2_all.deb ... 414s Unpacking libpath-iterator-rule-perl (1.015-2) ... 414s Selecting previously unselected package libpod-parser-perl. 414s Preparing to unpack .../183-libpod-parser-perl_1.67-1_all.deb ... 414s Adding 'diversion of /usr/bin/podselect to /usr/bin/podselect.bundled by libpod-parser-perl' 414s Adding 'diversion of /usr/share/man/man1/podselect.1.gz to /usr/share/man/man1/podselect.bundled.1.gz by libpod-parser-perl' 414s Unpacking libpod-parser-perl (1.67-1) ... 414s Selecting previously unselected package libpod-constants-perl. 414s Preparing to unpack .../184-libpod-constants-perl_0.19-2_all.deb ... 414s Unpacking libpod-constants-perl (0.19-2) ... 414s Selecting previously unselected package libset-intspan-perl. 414s Preparing to unpack .../185-libset-intspan-perl_1.19-3_all.deb ... 414s Unpacking libset-intspan-perl (1.19-3) ... 414s Selecting previously unselected package libstring-copyright-perl. 414s Preparing to unpack .../186-libstring-copyright-perl_0.003014-1_all.deb ... 414s Unpacking libstring-copyright-perl (0.003014-1) ... 414s Selecting previously unselected package libstring-escape-perl. 414s Preparing to unpack .../187-libstring-escape-perl_2010.002-3_all.deb ... 414s Unpacking libstring-escape-perl (2010.002-3) ... 414s Selecting previously unselected package libregexp-pattern-license-perl. 414s Preparing to unpack .../188-libregexp-pattern-license-perl_3.11.2-1_all.deb ... 414s Unpacking libregexp-pattern-license-perl (3.11.2-1) ... 414s Selecting previously unselected package libregexp-pattern-perl. 414s Preparing to unpack .../189-libregexp-pattern-perl_0.2.14-2_all.deb ... 414s Unpacking libregexp-pattern-perl (0.2.14-2) ... 414s Selecting previously unselected package libstring-license-perl. 414s Preparing to unpack .../190-libstring-license-perl_0.0.11-1ubuntu1_all.deb ... 414s Unpacking libstring-license-perl (0.0.11-1ubuntu1) ... 414s Selecting previously unselected package licensecheck. 414s Preparing to unpack .../191-licensecheck_3.3.9-1ubuntu1_all.deb ... 414s Unpacking licensecheck (3.3.9-1ubuntu1) ... 414s Selecting previously unselected package diffstat. 414s Preparing to unpack .../192-diffstat_1.67-1_s390x.deb ... 414s Unpacking diffstat (1.67-1) ... 414s Selecting previously unselected package libberkeleydb-perl:s390x. 414s Preparing to unpack .../193-libberkeleydb-perl_0.66-1_s390x.deb ... 414s Unpacking libberkeleydb-perl:s390x (0.66-1) ... 414s Selecting previously unselected package libclass-xsaccessor-perl. 414s Preparing to unpack .../194-libclass-xsaccessor-perl_1.19-4build6_s390x.deb ... 414s Unpacking libclass-xsaccessor-perl (1.19-4build6) ... 414s Selecting previously unselected package libconfig-tiny-perl. 414s Preparing to unpack .../195-libconfig-tiny-perl_2.30-1_all.deb ... 414s Unpacking libconfig-tiny-perl (2.30-1) ... 414s Selecting previously unselected package libconst-fast-perl. 414s Preparing to unpack .../196-libconst-fast-perl_0.014-2_all.deb ... 414s Unpacking libconst-fast-perl (0.014-2) ... 414s Selecting previously unselected package libcpanel-json-xs-perl:s390x. 414s Preparing to unpack .../197-libcpanel-json-xs-perl_4.39-1_s390x.deb ... 414s Unpacking libcpanel-json-xs-perl:s390x (4.39-1) ... 414s Selecting previously unselected package libaliased-perl. 414s Preparing to unpack .../198-libaliased-perl_0.34-3_all.deb ... 414s Unpacking libaliased-perl (0.34-3) ... 414s Selecting previously unselected package libclass-data-inheritable-perl. 414s Preparing to unpack .../199-libclass-data-inheritable-perl_0.10-1_all.deb ... 414s Unpacking libclass-data-inheritable-perl (0.10-1) ... 414s Selecting previously unselected package libdevel-stacktrace-perl. 414s Preparing to unpack .../200-libdevel-stacktrace-perl_2.0500-1_all.deb ... 414s Unpacking libdevel-stacktrace-perl (2.0500-1) ... 414s Selecting previously unselected package libexception-class-perl. 414s Preparing to unpack .../201-libexception-class-perl_1.45-1_all.deb ... 414s Unpacking libexception-class-perl (1.45-1) ... 414s Selecting previously unselected package libiterator-perl. 414s Preparing to unpack .../202-libiterator-perl_0.03+ds1-2_all.deb ... 414s Unpacking libiterator-perl (0.03+ds1-2) ... 414s Selecting previously unselected package libiterator-util-perl. 414s Preparing to unpack .../203-libiterator-util-perl_0.02+ds1-2_all.deb ... 414s Unpacking libiterator-util-perl (0.02+ds1-2) ... 414s Selecting previously unselected package libdata-dpath-perl. 414s Preparing to unpack .../204-libdata-dpath-perl_0.60-1_all.deb ... 414s Unpacking libdata-dpath-perl (0.60-1) ... 414s Selecting previously unselected package libnet-domain-tld-perl. 414s Preparing to unpack .../205-libnet-domain-tld-perl_1.75-4_all.deb ... 414s Unpacking libnet-domain-tld-perl (1.75-4) ... 414s Selecting previously unselected package libdata-validate-domain-perl. 414s Preparing to unpack .../206-libdata-validate-domain-perl_0.15-1_all.deb ... 414s Unpacking libdata-validate-domain-perl (0.15-1) ... 414s Selecting previously unselected package libnet-ipv6addr-perl. 414s Preparing to unpack .../207-libnet-ipv6addr-perl_1.02-1_all.deb ... 414s Unpacking libnet-ipv6addr-perl (1.02-1) ... 414s Selecting previously unselected package libnet-netmask-perl. 414s Preparing to unpack .../208-libnet-netmask-perl_2.0002-2_all.deb ... 414s Unpacking libnet-netmask-perl (2.0002-2) ... 414s Selecting previously unselected package libnetaddr-ip-perl. 414s Preparing to unpack .../209-libnetaddr-ip-perl_4.079+dfsg-2build5_s390x.deb ... 414s Unpacking libnetaddr-ip-perl (4.079+dfsg-2build5) ... 414s Selecting previously unselected package libdata-validate-ip-perl. 414s Preparing to unpack .../210-libdata-validate-ip-perl_0.31-1_all.deb ... 414s Unpacking libdata-validate-ip-perl (0.31-1) ... 414s Selecting previously unselected package libdata-validate-uri-perl. 414s Preparing to unpack .../211-libdata-validate-uri-perl_0.07-3_all.deb ... 414s Unpacking libdata-validate-uri-perl (0.07-3) ... 414s Selecting previously unselected package libdevel-size-perl. 414s Preparing to unpack .../212-libdevel-size-perl_0.84-1build1_s390x.deb ... 414s Unpacking libdevel-size-perl (0.84-1build1) ... 414s Selecting previously unselected package libemail-address-xs-perl. 414s Preparing to unpack .../213-libemail-address-xs-perl_1.05-1build5_s390x.deb ... 414s Unpacking libemail-address-xs-perl (1.05-1build5) ... 414s Selecting previously unselected package libipc-system-simple-perl. 414s Preparing to unpack .../214-libipc-system-simple-perl_1.30-2_all.deb ... 414s Unpacking libipc-system-simple-perl (1.30-2) ... 414s Selecting previously unselected package libfile-basedir-perl. 414s Preparing to unpack .../215-libfile-basedir-perl_0.09-2_all.deb ... 414s Unpacking libfile-basedir-perl (0.09-2) ... 414s Selecting previously unselected package libfile-find-rule-perl. 414s Preparing to unpack .../216-libfile-find-rule-perl_0.34-3_all.deb ... 414s Unpacking libfile-find-rule-perl (0.34-3) ... 414s Selecting previously unselected package libio-string-perl. 414s Preparing to unpack .../217-libio-string-perl_1.08-4_all.deb ... 414s Unpacking libio-string-perl (1.08-4) ... 414s Selecting previously unselected package libfont-ttf-perl. 414s Preparing to unpack .../218-libfont-ttf-perl_1.06-2_all.deb ... 414s Unpacking libfont-ttf-perl (1.06-2) ... 414s Selecting previously unselected package libhtml-html5-entities-perl. 414s Preparing to unpack .../219-libhtml-html5-entities-perl_0.004-3_all.deb ... 414s Unpacking libhtml-html5-entities-perl (0.004-3) ... 414s Selecting previously unselected package libhtml-tokeparser-simple-perl. 414s Preparing to unpack .../220-libhtml-tokeparser-simple-perl_3.16-4_all.deb ... 414s Unpacking libhtml-tokeparser-simple-perl (3.16-4) ... 414s Selecting previously unselected package libipc-run3-perl. 414s Preparing to unpack .../221-libipc-run3-perl_0.049-1_all.deb ... 414s Unpacking libipc-run3-perl (0.049-1) ... 414s Selecting previously unselected package libjson-maybexs-perl. 414s Preparing to unpack .../222-libjson-maybexs-perl_1.004008-1_all.deb ... 414s Unpacking libjson-maybexs-perl (1.004008-1) ... 414s Selecting previously unselected package liblist-compare-perl. 414s Preparing to unpack .../223-liblist-compare-perl_0.55-2_all.deb ... 414s Unpacking liblist-compare-perl (0.55-2) ... 414s Selecting previously unselected package liblist-someutils-perl. 414s Preparing to unpack .../224-liblist-someutils-perl_0.59-1_all.deb ... 414s Unpacking liblist-someutils-perl (0.59-1) ... 414s Selecting previously unselected package liblist-utilsby-perl. 414s Preparing to unpack .../225-liblist-utilsby-perl_0.12-2_all.deb ... 414s Unpacking liblist-utilsby-perl (0.12-2) ... 414s Selecting previously unselected package libmldbm-perl. 414s Preparing to unpack .../226-libmldbm-perl_2.05-4_all.deb ... 414s Unpacking libmldbm-perl (2.05-4) ... 414s Selecting previously unselected package libclass-method-modifiers-perl. 414s Preparing to unpack .../227-libclass-method-modifiers-perl_2.15-1_all.deb ... 414s Unpacking libclass-method-modifiers-perl (2.15-1) ... 414s Selecting previously unselected package libimport-into-perl. 414s Preparing to unpack .../228-libimport-into-perl_1.002005-2_all.deb ... 414s Unpacking libimport-into-perl (1.002005-2) ... 414s Selecting previously unselected package librole-tiny-perl. 414s Preparing to unpack .../229-librole-tiny-perl_2.002004-1_all.deb ... 414s Unpacking librole-tiny-perl (2.002004-1) ... 414s Selecting previously unselected package libsub-quote-perl. 414s Preparing to unpack .../230-libsub-quote-perl_2.006008-1ubuntu1_all.deb ... 414s Unpacking libsub-quote-perl (2.006008-1ubuntu1) ... 414s Selecting previously unselected package libmoo-perl. 414s Preparing to unpack .../231-libmoo-perl_2.005005-1_all.deb ... 414s Unpacking libmoo-perl (2.005005-1) ... 414s Selecting previously unselected package libstrictures-perl. 414s Preparing to unpack .../232-libstrictures-perl_2.000006-1_all.deb ... 414s Unpacking libstrictures-perl (2.000006-1) ... 414s Selecting previously unselected package libmoox-aliases-perl. 414s Preparing to unpack .../233-libmoox-aliases-perl_0.001006-2_all.deb ... 414s Unpacking libmoox-aliases-perl (0.001006-2) ... 414s Selecting previously unselected package libperlio-gzip-perl. 414s Preparing to unpack .../234-libperlio-gzip-perl_0.20-1build5_s390x.deb ... 414s Unpacking libperlio-gzip-perl (0.20-1build5) ... 414s Selecting previously unselected package libperlio-utf8-strict-perl. 414s Preparing to unpack .../235-libperlio-utf8-strict-perl_0.010-1build4_s390x.deb ... 414s Unpacking libperlio-utf8-strict-perl (0.010-1build4) ... 414s Selecting previously unselected package libproc-processtable-perl:s390x. 414s Preparing to unpack .../236-libproc-processtable-perl_0.636-1build4_s390x.deb ... 414s Unpacking libproc-processtable-perl:s390x (0.636-1build4) ... 414s Selecting previously unselected package libregexp-wildcards-perl. 414s Preparing to unpack .../237-libregexp-wildcards-perl_1.05-3_all.deb ... 414s Unpacking libregexp-wildcards-perl (1.05-3) ... 415s Selecting previously unselected package libsereal-decoder-perl. 415s Preparing to unpack .../238-libsereal-decoder-perl_5.004+ds-1build4_s390x.deb ... 415s Unpacking libsereal-decoder-perl (5.004+ds-1build4) ... 415s Selecting previously unselected package libsereal-encoder-perl. 415s Preparing to unpack .../239-libsereal-encoder-perl_5.004+ds-1build4_s390x.deb ... 415s Unpacking libsereal-encoder-perl (5.004+ds-1build4) ... 415s Selecting previously unselected package libterm-readkey-perl. 415s Preparing to unpack .../240-libterm-readkey-perl_2.38-2build5_s390x.deb ... 415s Unpacking libterm-readkey-perl (2.38-2build5) ... 415s Selecting previously unselected package libtext-levenshteinxs-perl. 415s Preparing to unpack .../241-libtext-levenshteinxs-perl_0.03-5build5_s390x.deb ... 415s Unpacking libtext-levenshteinxs-perl (0.03-5build5) ... 415s Selecting previously unselected package libmarkdown2:s390x. 415s Preparing to unpack .../242-libmarkdown2_2.2.7-2.1_s390x.deb ... 415s Unpacking libmarkdown2:s390x (2.2.7-2.1) ... 415s Selecting previously unselected package libtext-markdown-discount-perl. 415s Preparing to unpack .../243-libtext-markdown-discount-perl_0.18-1_s390x.deb ... 415s Unpacking libtext-markdown-discount-perl (0.18-1) ... 415s Selecting previously unselected package libdata-messagepack-perl. 415s Preparing to unpack .../244-libdata-messagepack-perl_1.02-1build5_s390x.deb ... 415s Unpacking libdata-messagepack-perl (1.02-1build5) ... 415s Selecting previously unselected package libtext-xslate-perl:s390x. 415s Preparing to unpack .../245-libtext-xslate-perl_3.5.9-2build1_s390x.deb ... 415s Unpacking libtext-xslate-perl:s390x (3.5.9-2build1) ... 415s Selecting previously unselected package libtime-duration-perl. 415s Preparing to unpack .../246-libtime-duration-perl_1.21-2_all.deb ... 415s Unpacking libtime-duration-perl (1.21-2) ... 415s Selecting previously unselected package libtime-moment-perl. 415s Preparing to unpack .../247-libtime-moment-perl_0.44-2build5_s390x.deb ... 415s Unpacking libtime-moment-perl (0.44-2build5) ... 415s Selecting previously unselected package libunicode-utf8-perl. 415s Preparing to unpack .../248-libunicode-utf8-perl_0.62-2build4_s390x.deb ... 415s Unpacking libunicode-utf8-perl (0.62-2build4) ... 415s Selecting previously unselected package libcgi-pm-perl. 415s Preparing to unpack .../249-libcgi-pm-perl_4.67-1_all.deb ... 415s Unpacking libcgi-pm-perl (4.67-1) ... 415s Selecting previously unselected package libhtml-form-perl. 415s Preparing to unpack .../250-libhtml-form-perl_6.12-1_all.deb ... 415s Unpacking libhtml-form-perl (6.12-1) ... 415s Selecting previously unselected package libwww-mechanize-perl. 415s Preparing to unpack .../251-libwww-mechanize-perl_2.19-1ubuntu1_all.deb ... 415s Unpacking libwww-mechanize-perl (2.19-1ubuntu1) ... 415s Selecting previously unselected package libxml-namespacesupport-perl. 415s Preparing to unpack .../252-libxml-namespacesupport-perl_1.12-2_all.deb ... 415s Unpacking libxml-namespacesupport-perl (1.12-2) ... 415s Selecting previously unselected package libxml-sax-base-perl. 415s Preparing to unpack .../253-libxml-sax-base-perl_1.09-3_all.deb ... 415s Unpacking libxml-sax-base-perl (1.09-3) ... 415s Selecting previously unselected package libxml-sax-perl. 415s Preparing to unpack .../254-libxml-sax-perl_1.02+dfsg-4_all.deb ... 415s Unpacking libxml-sax-perl (1.02+dfsg-4) ... 415s Selecting previously unselected package libxml-libxml-perl. 415s Preparing to unpack .../255-libxml-libxml-perl_2.0207+dfsg+really+2.0134-5build1_s390x.deb ... 415s Unpacking libxml-libxml-perl (2.0207+dfsg+really+2.0134-5build1) ... 415s Selecting previously unselected package lzip. 415s Preparing to unpack .../256-lzip_1.25-2_s390x.deb ... 415s Unpacking lzip (1.25-2) ... 415s Selecting previously unselected package lzop. 415s Preparing to unpack .../257-lzop_1.04-2build3_s390x.deb ... 415s Unpacking lzop (1.04-2build3) ... 415s Selecting previously unselected package patchutils. 415s Preparing to unpack .../258-patchutils_0.4.2-1build3_s390x.deb ... 415s Unpacking patchutils (0.4.2-1build3) ... 415s Selecting previously unselected package t1utils. 415s Preparing to unpack .../259-t1utils_1.41-4build3_s390x.deb ... 415s Unpacking t1utils (1.41-4build3) ... 415s Selecting previously unselected package unzip. 415s Preparing to unpack .../260-unzip_6.0-28ubuntu6_s390x.deb ... 415s Unpacking unzip (6.0-28ubuntu6) ... 415s Selecting previously unselected package lintian. 415s Preparing to unpack .../261-lintian_2.121.1+nmu1ubuntu2_all.deb ... 415s Unpacking lintian (2.121.1+nmu1ubuntu2) ... 415s Selecting previously unselected package libconfig-model-dpkg-perl. 415s Preparing to unpack .../262-libconfig-model-dpkg-perl_3.010_all.deb ... 415s Unpacking libconfig-model-dpkg-perl (3.010) ... 415s Selecting previously unselected package libconvert-binhex-perl. 415s Preparing to unpack .../263-libconvert-binhex-perl_1.125-3_all.deb ... 415s Unpacking libconvert-binhex-perl (1.125-3) ... 415s Selecting previously unselected package libnet-smtp-ssl-perl. 415s Preparing to unpack .../264-libnet-smtp-ssl-perl_1.04-2_all.deb ... 415s Unpacking libnet-smtp-ssl-perl (1.04-2) ... 415s Selecting previously unselected package libmailtools-perl. 415s Preparing to unpack .../265-libmailtools-perl_2.22-1_all.deb ... 415s Unpacking libmailtools-perl (2.22-1) ... 415s Selecting previously unselected package libmime-tools-perl. 415s Preparing to unpack .../266-libmime-tools-perl_5.515-1_all.deb ... 415s Unpacking libmime-tools-perl (5.515-1) ... 415s Selecting previously unselected package libsuitesparseconfig7:s390x. 415s Preparing to unpack .../267-libsuitesparseconfig7_1%3a7.8.3+dfsg-3_s390x.deb ... 415s Unpacking libsuitesparseconfig7:s390x (1:7.8.3+dfsg-3) ... 415s Selecting previously unselected package libamd3:s390x. 415s Preparing to unpack .../268-libamd3_1%3a7.8.3+dfsg-3_s390x.deb ... 415s Unpacking libamd3:s390x (1:7.8.3+dfsg-3) ... 415s Selecting previously unselected package libblas3:s390x. 415s Preparing to unpack .../269-libblas3_3.12.1-2_s390x.deb ... 415s Unpacking libblas3:s390x (3.12.1-2) ... 415s Selecting previously unselected package libgfortran5:s390x. 415s Preparing to unpack .../270-libgfortran5_15-20250222-0ubuntu1_s390x.deb ... 415s Unpacking libgfortran5:s390x (15-20250222-0ubuntu1) ... 415s Selecting previously unselected package liblapack3:s390x. 415s Preparing to unpack .../271-liblapack3_3.12.1-2_s390x.deb ... 415s Unpacking liblapack3:s390x (3.12.1-2) ... 415s Selecting previously unselected package libarpack2t64:s390x. 415s Preparing to unpack .../272-libarpack2t64_3.9.1-4_s390x.deb ... 415s Unpacking libarpack2t64:s390x (3.9.1-4) ... 415s Selecting previously unselected package libccolamd3:s390x. 415s Preparing to unpack .../273-libccolamd3_1%3a7.8.3+dfsg-3_s390x.deb ... 415s Unpacking libccolamd3:s390x (1:7.8.3+dfsg-3) ... 415s Selecting previously unselected package libcamd3:s390x. 415s Preparing to unpack .../274-libcamd3_1%3a7.8.3+dfsg-3_s390x.deb ... 415s Unpacking libcamd3:s390x (1:7.8.3+dfsg-3) ... 415s Selecting previously unselected package libcolamd3:s390x. 415s Preparing to unpack .../275-libcolamd3_1%3a7.8.3+dfsg-3_s390x.deb ... 415s Unpacking libcolamd3:s390x (1:7.8.3+dfsg-3) ... 415s Selecting previously unselected package libcholmod5:s390x. 415s Preparing to unpack .../276-libcholmod5_1%3a7.8.3+dfsg-3_s390x.deb ... 415s Unpacking libcholmod5:s390x (1:7.8.3+dfsg-3) ... 415s Selecting previously unselected package libcxsparse4:s390x. 415s Preparing to unpack .../277-libcxsparse4_1%3a7.8.3+dfsg-3_s390x.deb ... 415s Unpacking libcxsparse4:s390x (1:7.8.3+dfsg-3) ... 415s Selecting previously unselected package libfftw3-double3:s390x. 415s Preparing to unpack .../278-libfftw3-double3_3.3.10-2fakesync1build1_s390x.deb ... 415s Unpacking libfftw3-double3:s390x (3.3.10-2fakesync1build1) ... 415s Selecting previously unselected package libfftw3-single3:s390x. 415s Preparing to unpack .../279-libfftw3-single3_3.3.10-2fakesync1build1_s390x.deb ... 415s Unpacking libfftw3-single3:s390x (3.3.10-2fakesync1build1) ... 415s Selecting previously unselected package libxfixes3:s390x. 415s Preparing to unpack .../280-libxfixes3_1%3a6.0.0-2build1_s390x.deb ... 415s Unpacking libxfixes3:s390x (1:6.0.0-2build1) ... 415s Selecting previously unselected package libxcursor1:s390x. 415s Preparing to unpack .../281-libxcursor1_1%3a1.2.3-1_s390x.deb ... 415s Unpacking libxcursor1:s390x (1:1.2.3-1) ... 415s Selecting previously unselected package libxft2:s390x. 415s Preparing to unpack .../282-libxft2_2.3.6-1build1_s390x.deb ... 415s Unpacking libxft2:s390x (2.3.6-1build1) ... 415s Selecting previously unselected package libxinerama1:s390x. 415s Preparing to unpack .../283-libxinerama1_2%3a1.1.4-3build1_s390x.deb ... 415s Unpacking libxinerama1:s390x (2:1.1.4-3build1) ... 415s Selecting previously unselected package libfltk1.3t64:s390x. 415s Preparing to unpack .../284-libfltk1.3t64_1.3.8-6.1build2_s390x.deb ... 415s Unpacking libfltk1.3t64:s390x (1.3.8-6.1build2) ... 415s Selecting previously unselected package libglvnd0:s390x. 415s Preparing to unpack .../285-libglvnd0_1.7.0-1build1_s390x.deb ... 415s Unpacking libglvnd0:s390x (1.7.0-1build1) ... 415s Selecting previously unselected package libx11-xcb1:s390x. 415s Preparing to unpack .../286-libx11-xcb1_2%3a1.8.10-2_s390x.deb ... 415s Unpacking libx11-xcb1:s390x (2:1.8.10-2) ... 415s Selecting previously unselected package libxcb-dri3-0:s390x. 415s Preparing to unpack .../287-libxcb-dri3-0_1.17.0-2_s390x.deb ... 415s Unpacking libxcb-dri3-0:s390x (1.17.0-2) ... 415s Selecting previously unselected package libxcb-glx0:s390x. 415s Preparing to unpack .../288-libxcb-glx0_1.17.0-2_s390x.deb ... 415s Unpacking libxcb-glx0:s390x (1.17.0-2) ... 415s Selecting previously unselected package libxcb-present0:s390x. 415s Preparing to unpack .../289-libxcb-present0_1.17.0-2_s390x.deb ... 415s Unpacking libxcb-present0:s390x (1.17.0-2) ... 415s Selecting previously unselected package libxcb-xfixes0:s390x. 415s Preparing to unpack .../290-libxcb-xfixes0_1.17.0-2_s390x.deb ... 415s Unpacking libxcb-xfixes0:s390x (1.17.0-2) ... 415s Selecting previously unselected package libxxf86vm1:s390x. 415s Preparing to unpack .../291-libxxf86vm1_1%3a1.1.4-1build4_s390x.deb ... 415s Unpacking libxxf86vm1:s390x (1:1.1.4-1build4) ... 415s Selecting previously unselected package libxcb-randr0:s390x. 415s Preparing to unpack .../292-libxcb-randr0_1.17.0-2_s390x.deb ... 415s Unpacking libxcb-randr0:s390x (1.17.0-2) ... 415s Selecting previously unselected package libxcb-sync1:s390x. 415s Preparing to unpack .../293-libxcb-sync1_1.17.0-2_s390x.deb ... 415s Unpacking libxcb-sync1:s390x (1.17.0-2) ... 415s Selecting previously unselected package libxshmfence1:s390x. 415s Preparing to unpack .../294-libxshmfence1_1.3-1build5_s390x.deb ... 415s Unpacking libxshmfence1:s390x (1.3-1build5) ... 415s Selecting previously unselected package mesa-libgallium:s390x. 415s Preparing to unpack .../295-mesa-libgallium_25.0.1-2ubuntu1_s390x.deb ... 415s Unpacking mesa-libgallium:s390x (25.0.1-2ubuntu1) ... 416s Selecting previously unselected package libwayland-server0:s390x. 416s Preparing to unpack .../296-libwayland-server0_1.23.1-3_s390x.deb ... 416s Unpacking libwayland-server0:s390x (1.23.1-3) ... 416s Selecting previously unselected package libgbm1:s390x. 416s Preparing to unpack .../297-libgbm1_25.0.1-2ubuntu1_s390x.deb ... 416s Unpacking libgbm1:s390x (25.0.1-2ubuntu1) ... 416s Selecting previously unselected package libvulkan1:s390x. 416s Preparing to unpack .../298-libvulkan1_1.4.304.0-1_s390x.deb ... 416s Unpacking libvulkan1:s390x (1.4.304.0-1) ... 416s Selecting previously unselected package libgl1-mesa-dri:s390x. 416s Preparing to unpack .../299-libgl1-mesa-dri_25.0.1-2ubuntu1_s390x.deb ... 416s Unpacking libgl1-mesa-dri:s390x (25.0.1-2ubuntu1) ... 416s Selecting previously unselected package libglx-mesa0:s390x. 416s Preparing to unpack .../300-libglx-mesa0_25.0.1-2ubuntu1_s390x.deb ... 416s Unpacking libglx-mesa0:s390x (25.0.1-2ubuntu1) ... 416s Selecting previously unselected package libglx0:s390x. 416s Preparing to unpack .../301-libglx0_1.7.0-1build1_s390x.deb ... 416s Unpacking libglx0:s390x (1.7.0-1build1) ... 416s Selecting previously unselected package libgl1:s390x. 416s Preparing to unpack .../302-libgl1_1.7.0-1build1_s390x.deb ... 416s Unpacking libgl1:s390x (1.7.0-1build1) ... 416s Selecting previously unselected package libfltk-gl1.3t64:s390x. 416s Preparing to unpack .../303-libfltk-gl1.3t64_1.3.8-6.1build2_s390x.deb ... 416s Unpacking libfltk-gl1.3t64:s390x (1.3.8-6.1build2) ... 416s Selecting previously unselected package libgl2ps1.4. 416s Preparing to unpack .../304-libgl2ps1.4_1.4.2+dfsg1-2build1_s390x.deb ... 416s Unpacking libgl2ps1.4 (1.4.2+dfsg1-2build1) ... 416s Selecting previously unselected package libltdl7:s390x. 416s Preparing to unpack .../305-libltdl7_2.5.4-4_s390x.deb ... 416s Unpacking libltdl7:s390x (2.5.4-4) ... 416s Selecting previously unselected package libglpk40:s390x. 416s Preparing to unpack .../306-libglpk40_5.0-1build2_s390x.deb ... 416s Unpacking libglpk40:s390x (5.0-1build2) ... 416s Selecting previously unselected package libopengl0:s390x. 416s Preparing to unpack .../307-libopengl0_1.7.0-1build1_s390x.deb ... 416s Unpacking libopengl0:s390x (1.7.0-1build1) ... 416s Selecting previously unselected package libglu1-mesa:s390x. 416s Preparing to unpack .../308-libglu1-mesa_9.0.2-1.1build1_s390x.deb ... 416s Unpacking libglu1-mesa:s390x (9.0.2-1.1build1) ... 416s Selecting previously unselected package liblcms2-2:s390x. 416s Preparing to unpack .../309-liblcms2-2_2.16-2_s390x.deb ... 416s Unpacking liblcms2-2:s390x (2.16-2) ... 416s Selecting previously unselected package libjxl0.11:s390x. 416s Preparing to unpack .../310-libjxl0.11_0.11.1-1_s390x.deb ... 416s Unpacking libjxl0.11:s390x (0.11.1-1) ... 416s Selecting previously unselected package libwmflite-0.2-7:s390x. 416s Preparing to unpack .../311-libwmflite-0.2-7_0.2.13-1.1build3_s390x.deb ... 416s Unpacking libwmflite-0.2-7:s390x (0.2.13-1.1build3) ... 416s Selecting previously unselected package libgraphicsmagick-q16-3t64. 416s Preparing to unpack .../312-libgraphicsmagick-q16-3t64_1.4+really1.3.45+hg17689-1_s390x.deb ... 416s Unpacking libgraphicsmagick-q16-3t64 (1.4+really1.3.45+hg17689-1) ... 416s Selecting previously unselected package libgraphicsmagick++-q16-12t64. 416s Preparing to unpack .../313-libgraphicsmagick++-q16-12t64_1.4+really1.3.45+hg17689-1_s390x.deb ... 416s Unpacking libgraphicsmagick++-q16-12t64 (1.4+really1.3.45+hg17689-1) ... 416s Selecting previously unselected package libaec0:s390x. 416s Preparing to unpack .../314-libaec0_1.1.3-1_s390x.deb ... 416s Unpacking libaec0:s390x (1.1.3-1) ... 416s Selecting previously unselected package libsz2:s390x. 416s Preparing to unpack .../315-libsz2_1.1.3-1_s390x.deb ... 416s Unpacking libsz2:s390x (1.1.3-1) ... 416s Selecting previously unselected package libhdf5-310:s390x. 416s Preparing to unpack .../316-libhdf5-310_1.14.5+repack-3_s390x.deb ... 416s Unpacking libhdf5-310:s390x (1.14.5+repack-3) ... 416s Selecting previously unselected package libasound2-data. 416s Preparing to unpack .../317-libasound2-data_1.2.13-1build1_all.deb ... 416s Unpacking libasound2-data (1.2.13-1build1) ... 416s Selecting previously unselected package libasound2t64:s390x. 416s Preparing to unpack .../318-libasound2t64_1.2.13-1build1_s390x.deb ... 416s Unpacking libasound2t64:s390x (1.2.13-1build1) ... 416s Selecting previously unselected package libopus0:s390x. 416s Preparing to unpack .../319-libopus0_1.5.2-2_s390x.deb ... 416s Unpacking libopus0:s390x (1.5.2-2) ... 416s Selecting previously unselected package libsamplerate0:s390x. 416s Preparing to unpack .../320-libsamplerate0_0.2.2-4build1_s390x.deb ... 416s Unpacking libsamplerate0:s390x (0.2.2-4build1) ... 416s Selecting previously unselected package libjack-jackd2-0:s390x. 416s Preparing to unpack .../321-libjack-jackd2-0_1.9.22~dfsg-4_s390x.deb ... 416s Unpacking libjack-jackd2-0:s390x (1.9.22~dfsg-4) ... 416s Selecting previously unselected package libportaudio2:s390x. 416s Preparing to unpack .../322-libportaudio2_19.6.0-1.2build3_s390x.deb ... 416s Unpacking libportaudio2:s390x (19.6.0-1.2build3) ... 416s Selecting previously unselected package libqhull-r8.0:s390x. 416s Preparing to unpack .../323-libqhull-r8.0_2020.2-6build1_s390x.deb ... 416s Unpacking libqhull-r8.0:s390x (2020.2-6build1) ... 416s Selecting previously unselected package libqrupdate1:s390x. 416s Preparing to unpack .../324-libqrupdate1_1.1.5-1_s390x.deb ... 416s Unpacking libqrupdate1:s390x (1.1.5-1) ... 416s Selecting previously unselected package libqscintilla2-qt6-l10n. 416s Preparing to unpack .../325-libqscintilla2-qt6-l10n_2.14.1+dfsg-1build4_all.deb ... 416s Unpacking libqscintilla2-qt6-l10n (2.14.1+dfsg-1build4) ... 416s Selecting previously unselected package libb2-1:s390x. 416s Preparing to unpack .../326-libb2-1_0.98.1-1.1build1_s390x.deb ... 416s Unpacking libb2-1:s390x (0.98.1-1.1build1) ... 416s Selecting previously unselected package libdouble-conversion3:s390x. 416s Preparing to unpack .../327-libdouble-conversion3_3.3.1-1_s390x.deb ... 416s Unpacking libdouble-conversion3:s390x (3.3.1-1) ... 416s Selecting previously unselected package libpcre2-16-0:s390x. 416s Preparing to unpack .../328-libpcre2-16-0_10.45-1_s390x.deb ... 416s Unpacking libpcre2-16-0:s390x (10.45-1) ... 416s Selecting previously unselected package libqt6core6t64:s390x. 416s Preparing to unpack .../329-libqt6core6t64_6.8.2+dfsg-5_s390x.deb ... 416s Unpacking libqt6core6t64:s390x (6.8.2+dfsg-5) ... 416s Selecting previously unselected package libwayland-client0:s390x. 416s Preparing to unpack .../330-libwayland-client0_1.23.1-3_s390x.deb ... 416s Unpacking libwayland-client0:s390x (1.23.1-3) ... 416s Selecting previously unselected package libegl-mesa0:s390x. 416s Preparing to unpack .../331-libegl-mesa0_25.0.1-2ubuntu1_s390x.deb ... 416s Unpacking libegl-mesa0:s390x (25.0.1-2ubuntu1) ... 416s Selecting previously unselected package libegl1:s390x. 416s Preparing to unpack .../332-libegl1_1.7.0-1build1_s390x.deb ... 416s Unpacking libegl1:s390x (1.7.0-1build1) ... 416s Selecting previously unselected package x11-common. 416s Preparing to unpack .../333-x11-common_1%3a7.7+23ubuntu3_all.deb ... 416s Unpacking x11-common (1:7.7+23ubuntu3) ... 416s Selecting previously unselected package libice6:s390x. 416s Preparing to unpack .../334-libice6_2%3a1.1.1-1_s390x.deb ... 416s Unpacking libice6:s390x (2:1.1.1-1) ... 416s Selecting previously unselected package libmtdev1t64:s390x. 416s Preparing to unpack .../335-libmtdev1t64_1.1.7-1_s390x.deb ... 416s Unpacking libmtdev1t64:s390x (1.1.7-1) ... 416s Selecting previously unselected package libwacom-common. 416s Preparing to unpack .../336-libwacom-common_2.14.0-1_all.deb ... 416s Unpacking libwacom-common (2.14.0-1) ... 416s Selecting previously unselected package libwacom9:s390x. 416s Preparing to unpack .../337-libwacom9_2.14.0-1_s390x.deb ... 416s Unpacking libwacom9:s390x (2.14.0-1) ... 416s Selecting previously unselected package libinput-bin. 416s Preparing to unpack .../338-libinput-bin_1.27.1-1_s390x.deb ... 416s Unpacking libinput-bin (1.27.1-1) ... 416s Selecting previously unselected package libinput10:s390x. 416s Preparing to unpack .../339-libinput10_1.27.1-1_s390x.deb ... 416s Unpacking libinput10:s390x (1.27.1-1) ... 416s Selecting previously unselected package libmd4c0:s390x. 416s Preparing to unpack .../340-libmd4c0_0.5.2-2_s390x.deb ... 416s Unpacking libmd4c0:s390x (0.5.2-2) ... 416s Selecting previously unselected package libqt6dbus6:s390x. 416s Preparing to unpack .../341-libqt6dbus6_6.8.2+dfsg-5_s390x.deb ... 416s Unpacking libqt6dbus6:s390x (6.8.2+dfsg-5) ... 416s Selecting previously unselected package libsm6:s390x. 416s Preparing to unpack .../342-libsm6_2%3a1.2.4-1_s390x.deb ... 416s Unpacking libsm6:s390x (2:1.2.4-1) ... 416s Selecting previously unselected package libts0t64:s390x. 416s Preparing to unpack .../343-libts0t64_1.22-1.1build1_s390x.deb ... 416s Unpacking libts0t64:s390x (1.22-1.1build1) ... 416s Selecting previously unselected package libxcb-util1:s390x. 416s Preparing to unpack .../344-libxcb-util1_0.4.1-1_s390x.deb ... 416s Unpacking libxcb-util1:s390x (0.4.1-1) ... 416s Selecting previously unselected package libxcb-image0:s390x. 416s Preparing to unpack .../345-libxcb-image0_0.4.0-2build1_s390x.deb ... 416s Unpacking libxcb-image0:s390x (0.4.0-2build1) ... 416s Selecting previously unselected package libxcb-render-util0:s390x. 416s Preparing to unpack .../346-libxcb-render-util0_0.3.10-1_s390x.deb ... 416s Unpacking libxcb-render-util0:s390x (0.3.10-1) ... 416s Selecting previously unselected package libxcb-cursor0:s390x. 416s Preparing to unpack .../347-libxcb-cursor0_0.1.5-1_s390x.deb ... 416s Unpacking libxcb-cursor0:s390x (0.1.5-1) ... 416s Selecting previously unselected package libxcb-icccm4:s390x. 416s Preparing to unpack .../348-libxcb-icccm4_0.4.2-1_s390x.deb ... 416s Unpacking libxcb-icccm4:s390x (0.4.2-1) ... 416s Selecting previously unselected package libxcb-keysyms1:s390x. 416s Preparing to unpack .../349-libxcb-keysyms1_0.4.1-1_s390x.deb ... 416s Unpacking libxcb-keysyms1:s390x (0.4.1-1) ... 416s Selecting previously unselected package libxcb-shape0:s390x. 416s Preparing to unpack .../350-libxcb-shape0_1.17.0-2_s390x.deb ... 416s Unpacking libxcb-shape0:s390x (1.17.0-2) ... 416s Selecting previously unselected package libxcb-xinput0:s390x. 416s Preparing to unpack .../351-libxcb-xinput0_1.17.0-2_s390x.deb ... 416s Unpacking libxcb-xinput0:s390x (1.17.0-2) ... 416s Selecting previously unselected package libxcb-xkb1:s390x. 416s Preparing to unpack .../352-libxcb-xkb1_1.17.0-2_s390x.deb ... 416s Unpacking libxcb-xkb1:s390x (1.17.0-2) ... 416s Selecting previously unselected package libxkbcommon-x11-0:s390x. 416s Preparing to unpack .../353-libxkbcommon-x11-0_1.7.0-2_s390x.deb ... 416s Unpacking libxkbcommon-x11-0:s390x (1.7.0-2) ... 416s Selecting previously unselected package libqt6gui6:s390x. 416s Preparing to unpack .../354-libqt6gui6_6.8.2+dfsg-5_s390x.deb ... 416s Unpacking libqt6gui6:s390x (6.8.2+dfsg-5) ... 416s Selecting previously unselected package libavahi-common-data:s390x. 416s Preparing to unpack .../355-libavahi-common-data_0.8-16ubuntu1_s390x.deb ... 416s Unpacking libavahi-common-data:s390x (0.8-16ubuntu1) ... 416s Selecting previously unselected package libavahi-common3:s390x. 416s Preparing to unpack .../356-libavahi-common3_0.8-16ubuntu1_s390x.deb ... 416s Unpacking libavahi-common3:s390x (0.8-16ubuntu1) ... 416s Selecting previously unselected package libavahi-client3:s390x. 416s Preparing to unpack .../357-libavahi-client3_0.8-16ubuntu1_s390x.deb ... 416s Unpacking libavahi-client3:s390x (0.8-16ubuntu1) ... 416s Selecting previously unselected package libcups2t64:s390x. 416s Preparing to unpack .../358-libcups2t64_2.4.11-0ubuntu2_s390x.deb ... 416s Unpacking libcups2t64:s390x (2.4.11-0ubuntu2) ... 417s Selecting previously unselected package libqt6widgets6:s390x. 417s Preparing to unpack .../359-libqt6widgets6_6.8.2+dfsg-5_s390x.deb ... 417s Unpacking libqt6widgets6:s390x (6.8.2+dfsg-5) ... 417s Selecting previously unselected package libqt6printsupport6:s390x. 417s Preparing to unpack .../360-libqt6printsupport6_6.8.2+dfsg-5_s390x.deb ... 417s Unpacking libqt6printsupport6:s390x (6.8.2+dfsg-5) ... 417s Selecting previously unselected package libqscintilla2-qt6-15:s390x. 417s Preparing to unpack .../361-libqscintilla2-qt6-15_2.14.1+dfsg-1build4_s390x.deb ... 417s Unpacking libqscintilla2-qt6-15:s390x (2.14.1+dfsg-1build4) ... 417s Selecting previously unselected package libqt6core5compat6:s390x. 417s Preparing to unpack .../362-libqt6core5compat6_6.8.2-3_s390x.deb ... 417s Unpacking libqt6core5compat6:s390x (6.8.2-3) ... 417s Selecting previously unselected package libqt6sql6:s390x. 417s Preparing to unpack .../363-libqt6sql6_6.8.2+dfsg-5_s390x.deb ... 417s Unpacking libqt6sql6:s390x (6.8.2+dfsg-5) ... 417s Selecting previously unselected package libqt6help6:s390x. 417s Preparing to unpack .../364-libqt6help6_6.8.2-3_s390x.deb ... 417s Unpacking libqt6help6:s390x (6.8.2-3) ... 417s Selecting previously unselected package libduktape207:s390x. 417s Preparing to unpack .../365-libduktape207_2.7.0+tests-0ubuntu3_s390x.deb ... 417s Unpacking libduktape207:s390x (2.7.0+tests-0ubuntu3) ... 417s Selecting previously unselected package libproxy1v5:s390x. 417s Preparing to unpack .../366-libproxy1v5_0.5.9-1_s390x.deb ... 417s Unpacking libproxy1v5:s390x (0.5.9-1) ... 417s Selecting previously unselected package libqt6network6:s390x. 417s Preparing to unpack .../367-libqt6network6_6.8.2+dfsg-5_s390x.deb ... 417s Unpacking libqt6network6:s390x (6.8.2+dfsg-5) ... 417s Selecting previously unselected package libqt6opengl6:s390x. 417s Preparing to unpack .../368-libqt6opengl6_6.8.2+dfsg-5_s390x.deb ... 417s Unpacking libqt6opengl6:s390x (6.8.2+dfsg-5) ... 417s Selecting previously unselected package libqt6openglwidgets6:s390x. 417s Preparing to unpack .../369-libqt6openglwidgets6_6.8.2+dfsg-5_s390x.deb ... 417s Unpacking libqt6openglwidgets6:s390x (6.8.2+dfsg-5) ... 417s Selecting previously unselected package libqt6xml6:s390x. 417s Preparing to unpack .../370-libqt6xml6_6.8.2+dfsg-5_s390x.deb ... 417s Unpacking libqt6xml6:s390x (6.8.2+dfsg-5) ... 417s Selecting previously unselected package libogg0:s390x. 417s Preparing to unpack .../371-libogg0_1.3.5-3build1_s390x.deb ... 417s Unpacking libogg0:s390x (1.3.5-3build1) ... 417s Selecting previously unselected package libflac12t64:s390x. 417s Preparing to unpack .../372-libflac12t64_1.4.3+ds-4_s390x.deb ... 417s Unpacking libflac12t64:s390x (1.4.3+ds-4) ... 417s Selecting previously unselected package libmp3lame0:s390x. 417s Preparing to unpack .../373-libmp3lame0_3.100-6build1_s390x.deb ... 417s Unpacking libmp3lame0:s390x (3.100-6build1) ... 417s Selecting previously unselected package libmpg123-0t64:s390x. 417s Preparing to unpack .../374-libmpg123-0t64_1.32.10-1_s390x.deb ... 417s Unpacking libmpg123-0t64:s390x (1.32.10-1) ... 417s Selecting previously unselected package libvorbis0a:s390x. 417s Preparing to unpack .../375-libvorbis0a_1.3.7-2_s390x.deb ... 417s Unpacking libvorbis0a:s390x (1.3.7-2) ... 417s Selecting previously unselected package libvorbisenc2:s390x. 417s Preparing to unpack .../376-libvorbisenc2_1.3.7-2_s390x.deb ... 417s Unpacking libvorbisenc2:s390x (1.3.7-2) ... 417s Selecting previously unselected package libsndfile1:s390x. 417s Preparing to unpack .../377-libsndfile1_1.2.2-2_s390x.deb ... 417s Unpacking libsndfile1:s390x (1.2.2-2) ... 417s Selecting previously unselected package libspqr4:s390x. 417s Preparing to unpack .../378-libspqr4_1%3a7.8.3+dfsg-3_s390x.deb ... 417s Unpacking libspqr4:s390x (1:7.8.3+dfsg-3) ... 417s Selecting previously unselected package libumfpack6:s390x. 417s Preparing to unpack .../379-libumfpack6_1%3a7.8.3+dfsg-3_s390x.deb ... 417s Unpacking libumfpack6:s390x (1:7.8.3+dfsg-3) ... 417s Selecting previously unselected package libtext-unidecode-perl. 417s Preparing to unpack .../380-libtext-unidecode-perl_1.30-3_all.deb ... 417s Unpacking libtext-unidecode-perl (1.30-3) ... 417s Selecting previously unselected package texinfo-lib. 417s Preparing to unpack .../381-texinfo-lib_7.1.1-1_s390x.deb ... 417s Unpacking texinfo-lib (7.1.1-1) ... 417s Selecting previously unselected package tex-common. 417s Preparing to unpack .../382-tex-common_6.19_all.deb ... 417s Unpacking tex-common (6.19) ... 417s Selecting previously unselected package texinfo. 417s Preparing to unpack .../383-texinfo_7.1.1-1_all.deb ... 417s Unpacking texinfo (7.1.1-1) ... 417s Selecting previously unselected package octave-common. 417s Preparing to unpack .../384-octave-common_9.4.0-1_all.deb ... 417s Unpacking octave-common (9.4.0-1) ... 417s Selecting previously unselected package octave. 417s Preparing to unpack .../385-octave_9.4.0-1_s390x.deb ... 417s Unpacking octave (9.4.0-1) ... 417s Selecting previously unselected package libncurses-dev:s390x. 417s Preparing to unpack .../386-libncurses-dev_6.5+20250216-2_s390x.deb ... 417s Unpacking libncurses-dev:s390x (6.5+20250216-2) ... 417s Selecting previously unselected package libreadline-dev:s390x. 417s Preparing to unpack .../387-libreadline-dev_8.2-6_s390x.deb ... 417s Unpacking libreadline-dev:s390x (8.2-6) ... 417s Selecting previously unselected package libhdf5-fortran-310:s390x. 417s Preparing to unpack .../388-libhdf5-fortran-310_1.14.5+repack-3_s390x.deb ... 417s Unpacking libhdf5-fortran-310:s390x (1.14.5+repack-3) ... 417s Selecting previously unselected package libhdf5-hl-310:s390x. 417s Preparing to unpack .../389-libhdf5-hl-310_1.14.5+repack-3_s390x.deb ... 417s Unpacking libhdf5-hl-310:s390x (1.14.5+repack-3) ... 417s Selecting previously unselected package libhdf5-hl-fortran-310:s390x. 417s Preparing to unpack .../390-libhdf5-hl-fortran-310_1.14.5+repack-3_s390x.deb ... 417s Unpacking libhdf5-hl-fortran-310:s390x (1.14.5+repack-3) ... 417s Selecting previously unselected package libhdf5-cpp-310:s390x. 417s Preparing to unpack .../391-libhdf5-cpp-310_1.14.5+repack-3_s390x.deb ... 417s Unpacking libhdf5-cpp-310:s390x (1.14.5+repack-3) ... 417s Selecting previously unselected package libhdf5-hl-cpp-310:s390x. 417s Preparing to unpack .../392-libhdf5-hl-cpp-310_1.14.5+repack-3_s390x.deb ... 417s Unpacking libhdf5-hl-cpp-310:s390x (1.14.5+repack-3) ... 417s Selecting previously unselected package zlib1g-dev:s390x. 417s Preparing to unpack .../393-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_s390x.deb ... 417s Unpacking zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 417s Selecting previously unselected package libjpeg-turbo8-dev:s390x. 417s Preparing to unpack .../394-libjpeg-turbo8-dev_2.1.5-3ubuntu2_s390x.deb ... 417s Unpacking libjpeg-turbo8-dev:s390x (2.1.5-3ubuntu2) ... 417s Selecting previously unselected package libjpeg8-dev:s390x. 417s Preparing to unpack .../395-libjpeg8-dev_8c-2ubuntu11_s390x.deb ... 417s Unpacking libjpeg8-dev:s390x (8c-2ubuntu11) ... 417s Selecting previously unselected package libjpeg-dev:s390x. 417s Preparing to unpack .../396-libjpeg-dev_8c-2ubuntu11_s390x.deb ... 417s Unpacking libjpeg-dev:s390x (8c-2ubuntu11) ... 417s Selecting previously unselected package libaec-dev:s390x. 417s Preparing to unpack .../397-libaec-dev_1.1.3-1_s390x.deb ... 417s Unpacking libaec-dev:s390x (1.1.3-1) ... 417s Selecting previously unselected package libbrotli-dev:s390x. 417s Preparing to unpack .../398-libbrotli-dev_1.1.0-2build4_s390x.deb ... 417s Unpacking libbrotli-dev:s390x (1.1.0-2build4) ... 417s Selecting previously unselected package libidn2-dev:s390x. 417s Preparing to unpack .../399-libidn2-dev_2.3.7-2build2_s390x.deb ... 418s Unpacking libidn2-dev:s390x (2.3.7-2build2) ... 418s Selecting previously unselected package comerr-dev:s390x. 418s Preparing to unpack .../400-comerr-dev_2.1-1.47.2-1ubuntu1_s390x.deb ... 418s Unpacking comerr-dev:s390x (2.1-1.47.2-1ubuntu1) ... 418s Selecting previously unselected package libgssrpc4t64:s390x. 418s Preparing to unpack .../401-libgssrpc4t64_1.21.3-4ubuntu2_s390x.deb ... 418s Unpacking libgssrpc4t64:s390x (1.21.3-4ubuntu2) ... 418s Selecting previously unselected package libkadm5clnt-mit12:s390x. 418s Preparing to unpack .../402-libkadm5clnt-mit12_1.21.3-4ubuntu2_s390x.deb ... 418s Unpacking libkadm5clnt-mit12:s390x (1.21.3-4ubuntu2) ... 418s Selecting previously unselected package libkdb5-10t64:s390x. 418s Preparing to unpack .../403-libkdb5-10t64_1.21.3-4ubuntu2_s390x.deb ... 418s Unpacking libkdb5-10t64:s390x (1.21.3-4ubuntu2) ... 418s Selecting previously unselected package libkadm5srv-mit12:s390x. 418s Preparing to unpack .../404-libkadm5srv-mit12_1.21.3-4ubuntu2_s390x.deb ... 418s Unpacking libkadm5srv-mit12:s390x (1.21.3-4ubuntu2) ... 418s Selecting previously unselected package krb5-multidev:s390x. 418s Preparing to unpack .../405-krb5-multidev_1.21.3-4ubuntu2_s390x.deb ... 418s Unpacking krb5-multidev:s390x (1.21.3-4ubuntu2) ... 418s Selecting previously unselected package libkrb5-dev:s390x. 418s Preparing to unpack .../406-libkrb5-dev_1.21.3-4ubuntu2_s390x.deb ... 418s Unpacking libkrb5-dev:s390x (1.21.3-4ubuntu2) ... 418s Selecting previously unselected package libldap-dev:s390x. 418s Preparing to unpack .../407-libldap-dev_2.6.9+dfsg-1~exp2ubuntu1_s390x.deb ... 418s Unpacking libldap-dev:s390x (2.6.9+dfsg-1~exp2ubuntu1) ... 418s Selecting previously unselected package libpkgconf3:s390x. 418s Preparing to unpack .../408-libpkgconf3_1.8.1-4_s390x.deb ... 418s Unpacking libpkgconf3:s390x (1.8.1-4) ... 418s Selecting previously unselected package pkgconf-bin. 418s Preparing to unpack .../409-pkgconf-bin_1.8.1-4_s390x.deb ... 418s Unpacking pkgconf-bin (1.8.1-4) ... 418s Selecting previously unselected package pkgconf:s390x. 418s Preparing to unpack .../410-pkgconf_1.8.1-4_s390x.deb ... 418s Unpacking pkgconf:s390x (1.8.1-4) ... 418s Selecting previously unselected package libnghttp2-dev:s390x. 418s Preparing to unpack .../411-libnghttp2-dev_1.64.0-1_s390x.deb ... 418s Unpacking libnghttp2-dev:s390x (1.64.0-1) ... 418s Selecting previously unselected package libpsl-dev:s390x. 418s Preparing to unpack .../412-libpsl-dev_0.21.2-1.1build1_s390x.deb ... 418s Unpacking libpsl-dev:s390x (0.21.2-1.1build1) ... 418s Selecting previously unselected package libgmpxx4ldbl:s390x. 418s Preparing to unpack .../413-libgmpxx4ldbl_2%3a6.3.0+dfsg-3ubuntu1_s390x.deb ... 418s Unpacking libgmpxx4ldbl:s390x (2:6.3.0+dfsg-3ubuntu1) ... 418s Selecting previously unselected package libgmp-dev:s390x. 418s Preparing to unpack .../414-libgmp-dev_2%3a6.3.0+dfsg-3ubuntu1_s390x.deb ... 418s Unpacking libgmp-dev:s390x (2:6.3.0+dfsg-3ubuntu1) ... 418s Selecting previously unselected package libevent-2.1-7t64:s390x. 418s Preparing to unpack .../415-libevent-2.1-7t64_2.1.12-stable-10_s390x.deb ... 418s Unpacking libevent-2.1-7t64:s390x (2.1.12-stable-10) ... 418s Selecting previously unselected package libunbound8:s390x. 418s Preparing to unpack .../416-libunbound8_1.22.0-1ubuntu1_s390x.deb ... 418s Unpacking libunbound8:s390x (1.22.0-1ubuntu1) ... 418s Selecting previously unselected package libgnutls-dane0t64:s390x. 418s Preparing to unpack .../417-libgnutls-dane0t64_3.8.9-2ubuntu2_s390x.deb ... 418s Unpacking libgnutls-dane0t64:s390x (3.8.9-2ubuntu2) ... 418s Selecting previously unselected package libgnutls-openssl27t64:s390x. 418s Preparing to unpack .../418-libgnutls-openssl27t64_3.8.9-2ubuntu2_s390x.deb ... 418s Unpacking libgnutls-openssl27t64:s390x (3.8.9-2ubuntu2) ... 418s Selecting previously unselected package libp11-kit-dev:s390x. 418s Preparing to unpack .../419-libp11-kit-dev_0.25.5-2ubuntu3_s390x.deb ... 418s Unpacking libp11-kit-dev:s390x (0.25.5-2ubuntu3) ... 418s Selecting previously unselected package libtasn1-6-dev:s390x. 418s Preparing to unpack .../420-libtasn1-6-dev_4.20.0-2_s390x.deb ... 418s Unpacking libtasn1-6-dev:s390x (4.20.0-2) ... 418s Selecting previously unselected package nettle-dev:s390x. 418s Preparing to unpack .../421-nettle-dev_3.10.1-1_s390x.deb ... 418s Unpacking nettle-dev:s390x (3.10.1-1) ... 418s Selecting previously unselected package libgnutls28-dev:s390x. 418s Preparing to unpack .../422-libgnutls28-dev_3.8.9-2ubuntu2_s390x.deb ... 418s Unpacking libgnutls28-dev:s390x (3.8.9-2ubuntu2) ... 418s Selecting previously unselected package librtmp-dev:s390x. 418s Preparing to unpack .../423-librtmp-dev_2.4+20151223.gitfa8646d.1-2build7_s390x.deb ... 418s Unpacking librtmp-dev:s390x (2.4+20151223.gitfa8646d.1-2build7) ... 418s Selecting previously unselected package libssl-dev:s390x. 418s Preparing to unpack .../424-libssl-dev_3.4.1-1ubuntu1_s390x.deb ... 418s Unpacking libssl-dev:s390x (3.4.1-1ubuntu1) ... 418s Selecting previously unselected package libssh2-1-dev:s390x. 418s Preparing to unpack .../425-libssh2-1-dev_1.11.1-1_s390x.deb ... 418s Unpacking libssh2-1-dev:s390x (1.11.1-1) ... 418s Selecting previously unselected package libzstd-dev:s390x. 418s Preparing to unpack .../426-libzstd-dev_1.5.6+dfsg-2_s390x.deb ... 418s Unpacking libzstd-dev:s390x (1.5.6+dfsg-2) ... 418s Selecting previously unselected package libcurl4-openssl-dev:s390x. 418s Preparing to unpack .../427-libcurl4-openssl-dev_8.12.1-3ubuntu1_s390x.deb ... 418s Unpacking libcurl4-openssl-dev:s390x (8.12.1-3ubuntu1) ... 418s Selecting previously unselected package hdf5-helpers. 418s Preparing to unpack .../428-hdf5-helpers_1.14.5+repack-3_s390x.deb ... 418s Unpacking hdf5-helpers (1.14.5+repack-3) ... 418s Selecting previously unselected package libhdf5-dev. 418s Preparing to unpack .../429-libhdf5-dev_1.14.5+repack-3_s390x.deb ... 418s Unpacking libhdf5-dev (1.14.5+repack-3) ... 418s Selecting previously unselected package xorg-sgml-doctools. 418s Preparing to unpack .../430-xorg-sgml-doctools_1%3a1.11-1.1_all.deb ... 418s Unpacking xorg-sgml-doctools (1:1.11-1.1) ... 418s Selecting previously unselected package x11proto-dev. 418s Preparing to unpack .../431-x11proto-dev_2024.1-1_all.deb ... 418s Unpacking x11proto-dev (2024.1-1) ... 418s Selecting previously unselected package libxau-dev:s390x. 418s Preparing to unpack .../432-libxau-dev_1%3a1.0.11-1_s390x.deb ... 418s Unpacking libxau-dev:s390x (1:1.0.11-1) ... 418s Selecting previously unselected package libxdmcp-dev:s390x. 418s Preparing to unpack .../433-libxdmcp-dev_1%3a1.1.5-1_s390x.deb ... 418s Unpacking libxdmcp-dev:s390x (1:1.1.5-1) ... 418s Selecting previously unselected package xtrans-dev. 418s Preparing to unpack .../434-xtrans-dev_1.4.0-1_all.deb ... 418s Unpacking xtrans-dev (1.4.0-1) ... 418s Selecting previously unselected package libxcb1-dev:s390x. 418s Preparing to unpack .../435-libxcb1-dev_1.17.0-2_s390x.deb ... 418s Unpacking libxcb1-dev:s390x (1.17.0-2) ... 418s Selecting previously unselected package libx11-dev:s390x. 418s Preparing to unpack .../436-libx11-dev_2%3a1.8.10-2_s390x.deb ... 418s Unpacking libx11-dev:s390x (2:1.8.10-2) ... 418s Selecting previously unselected package libglx-dev:s390x. 418s Preparing to unpack .../437-libglx-dev_1.7.0-1build1_s390x.deb ... 418s Unpacking libglx-dev:s390x (1.7.0-1build1) ... 418s Selecting previously unselected package libgl-dev:s390x. 418s Preparing to unpack .../438-libgl-dev_1.7.0-1build1_s390x.deb ... 418s Unpacking libgl-dev:s390x (1.7.0-1build1) ... 418s Selecting previously unselected package libblas-dev:s390x. 418s Preparing to unpack .../439-libblas-dev_3.12.1-2_s390x.deb ... 418s Unpacking libblas-dev:s390x (3.12.1-2) ... 418s Selecting previously unselected package liblapack-dev:s390x. 418s Preparing to unpack .../440-liblapack-dev_3.12.1-2_s390x.deb ... 418s Unpacking liblapack-dev:s390x (3.12.1-2) ... 418s Selecting previously unselected package libfftw3-long3:s390x. 418s Preparing to unpack .../441-libfftw3-long3_3.3.10-2fakesync1build1_s390x.deb ... 418s Unpacking libfftw3-long3:s390x (3.3.10-2fakesync1build1) ... 418s Selecting previously unselected package libfftw3-bin. 418s Preparing to unpack .../442-libfftw3-bin_3.3.10-2fakesync1build1_s390x.deb ... 418s Unpacking libfftw3-bin (3.3.10-2fakesync1build1) ... 418s Selecting previously unselected package libfftw3-dev:s390x. 418s Preparing to unpack .../443-libfftw3-dev_3.3.10-2fakesync1build1_s390x.deb ... 418s Unpacking libfftw3-dev:s390x (3.3.10-2fakesync1build1) ... 418s Selecting previously unselected package libgfortran-14-dev:s390x. 418s Preparing to unpack .../444-libgfortran-14-dev_14.2.0-17ubuntu3_s390x.deb ... 418s Unpacking libgfortran-14-dev:s390x (14.2.0-17ubuntu3) ... 419s Selecting previously unselected package gfortran-14-s390x-linux-gnu. 419s Preparing to unpack .../445-gfortran-14-s390x-linux-gnu_14.2.0-17ubuntu3_s390x.deb ... 419s Unpacking gfortran-14-s390x-linux-gnu (14.2.0-17ubuntu3) ... 419s Selecting previously unselected package gfortran-14. 419s Preparing to unpack .../446-gfortran-14_14.2.0-17ubuntu3_s390x.deb ... 419s Unpacking gfortran-14 (14.2.0-17ubuntu3) ... 419s Selecting previously unselected package gfortran-s390x-linux-gnu. 419s Preparing to unpack .../447-gfortran-s390x-linux-gnu_4%3a14.2.0-1ubuntu1_s390x.deb ... 419s Unpacking gfortran-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 419s Selecting previously unselected package gfortran. 419s Preparing to unpack .../448-gfortran_4%3a14.2.0-1ubuntu1_s390x.deb ... 419s Unpacking gfortran (4:14.2.0-1ubuntu1) ... 419s Selecting previously unselected package libstdc++-14-dev:s390x. 419s Preparing to unpack .../449-libstdc++-14-dev_14.2.0-17ubuntu3_s390x.deb ... 419s Unpacking libstdc++-14-dev:s390x (14.2.0-17ubuntu3) ... 419s Selecting previously unselected package g++-14-s390x-linux-gnu. 419s Preparing to unpack .../450-g++-14-s390x-linux-gnu_14.2.0-17ubuntu3_s390x.deb ... 419s Unpacking g++-14-s390x-linux-gnu (14.2.0-17ubuntu3) ... 419s Selecting previously unselected package g++-14. 419s Preparing to unpack .../451-g++-14_14.2.0-17ubuntu3_s390x.deb ... 419s Unpacking g++-14 (14.2.0-17ubuntu3) ... 419s Selecting previously unselected package g++-s390x-linux-gnu. 419s Preparing to unpack .../452-g++-s390x-linux-gnu_4%3a14.2.0-1ubuntu1_s390x.deb ... 419s Unpacking g++-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 419s Selecting previously unselected package g++. 419s Preparing to unpack .../453-g++_4%3a14.2.0-1ubuntu1_s390x.deb ... 419s Unpacking g++ (4:14.2.0-1ubuntu1) ... 419s Selecting previously unselected package octave-dev. 419s Preparing to unpack .../454-octave-dev_9.4.0-1_s390x.deb ... 419s Unpacking octave-dev (9.4.0-1) ... 419s Selecting previously unselected package dh-octave. 419s Preparing to unpack .../455-dh-octave_1.8.0_all.deb ... 419s Unpacking dh-octave (1.8.0) ... 419s Selecting previously unselected package libfontenc1:s390x. 419s Preparing to unpack .../456-libfontenc1_1%3a1.1.8-1build1_s390x.deb ... 419s Unpacking libfontenc1:s390x (1:1.1.8-1build1) ... 419s Selecting previously unselected package libxt6t64:s390x. 419s Preparing to unpack .../457-libxt6t64_1%3a1.2.1-1.2build1_s390x.deb ... 419s Unpacking libxt6t64:s390x (1:1.2.1-1.2build1) ... 419s Selecting previously unselected package libxmu6:s390x. 419s Preparing to unpack .../458-libxmu6_2%3a1.1.3-3build2_s390x.deb ... 419s Unpacking libxmu6:s390x (2:1.1.3-3build2) ... 419s Selecting previously unselected package libxaw7:s390x. 419s Preparing to unpack .../459-libxaw7_2%3a1.0.16-1_s390x.deb ... 419s Unpacking libxaw7:s390x (2:1.0.16-1) ... 419s Selecting previously unselected package libxfont2:s390x. 419s Preparing to unpack .../460-libxfont2_1%3a2.0.6-1build1_s390x.deb ... 419s Unpacking libxfont2:s390x (1:2.0.6-1build1) ... 419s Selecting previously unselected package libxkbfile1:s390x. 419s Preparing to unpack .../461-libxkbfile1_1%3a1.1.0-1build4_s390x.deb ... 419s Unpacking libxkbfile1:s390x (1:1.1.0-1build4) ... 419s Selecting previously unselected package libxrandr2:s390x. 419s Preparing to unpack .../462-libxrandr2_2%3a1.5.4-1_s390x.deb ... 419s Unpacking libxrandr2:s390x (2:1.5.4-1) ... 419s Selecting previously unselected package octave-image:s390x. 419s Preparing to unpack .../463-octave-image_2.14.0-5build1_s390x.deb ... 419s Unpacking octave-image:s390x (2.14.0-5build1) ... 419s Selecting previously unselected package x11-xkb-utils. 419s Preparing to unpack .../464-x11-xkb-utils_7.7+9_s390x.deb ... 419s Unpacking x11-xkb-utils (7.7+9) ... 419s Selecting previously unselected package xserver-common. 419s Preparing to unpack .../465-xserver-common_2%3a21.1.16-1ubuntu1_all.deb ... 419s Unpacking xserver-common (2:21.1.16-1ubuntu1) ... 419s Selecting previously unselected package xvfb. 419s Preparing to unpack .../466-xvfb_2%3a21.1.16-1ubuntu1_s390x.deb ... 419s Unpacking xvfb (2:21.1.16-1ubuntu1) ... 419s Setting up libapt-pkg-perl (0.1.41build1) ... 419s Setting up libmodule-pluggable-perl (5.2-5) ... 419s Setting up libgraphite2-3:s390x (1.3.14-2ubuntu1) ... 419s Setting up libstring-escape-perl (2010.002-3) ... 419s Setting up libgnutls-openssl27t64:s390x (3.8.9-2ubuntu2) ... 419s Setting up libxcb-dri3-0:s390x (1.17.0-2) ... 419s Setting up liblcms2-2:s390x (2.16-2) ... 419s Setting up libberkeleydb-perl:s390x (0.66-1) ... 419s Setting up libpixman-1-0:s390x (0.44.0-3) ... 419s Setting up libsharpyuv0:s390x (1.5.0-0.1) ... 419s Setting up libwayland-server0:s390x (1.23.1-3) ... 419s Setting up libaom3:s390x (3.12.0-1) ... 419s Setting up libx11-xcb1:s390x (2:1.8.10-2) ... 419s Setting up libfile-which-perl (1.27-2) ... 419s Setting up libdouble-conversion3:s390x (3.3.1-1) ... 419s Setting up libncurses-dev:s390x (6.5+20250216-2) ... 419s Setting up libunicode-utf8-perl (0.62-2build4) ... 419s Setting up libset-intspan-perl (1.19-3) ... 419s Setting up libxcb-xfixes0:s390x (1.17.0-2) ... 419s Setting up libogg0:s390x (1.3.5-3build1) ... 419s Setting up libmouse-perl:s390x (2.5.11-1build1) ... 419s Setting up libzstd-dev:s390x (1.5.6+dfsg-2) ... 419s Setting up libpod-pom-perl (2.01-4) ... 419s Setting up libxpm4:s390x (1:3.5.17-1build2) ... 419s Setting up hdf5-helpers (1.14.5+repack-3) ... 419s Setting up libwmflite-0.2-7:s390x (0.2.13-1.1build3) ... 419s Setting up libregexp-pattern-perl (0.2.14-2) ... 419s Setting up libdata-messagepack-perl (1.02-1build5) ... 419s Setting up libclass-inspector-perl (1.36-3) ... 419s Setting up libxcb-xinput0:s390x (1.17.0-2) ... 419s Setting up libxrender1:s390x (1:0.9.10-1.1build1) ... 419s Setting up libdynaloader-functions-perl (0.004-1) ... 419s Setting up libdatrie1:s390x (0.2.13-3build1) ... 419s Setting up libtext-glob-perl (0.11-3) ... 419s Setting up libclass-method-modifiers-perl (2.15-1) ... 419s Setting up liblist-compare-perl (0.55-2) ... 419s Setting up libxcb-render0:s390x (1.17.0-2) ... 419s Setting up libclone-perl:s390x (0.47-1) ... 419s Setting up libarchive-zip-perl (1.68-1) ... 419s Setting up libsub-identify-perl (0.14-3build4) ... 419s Setting up libcpanel-json-xs-perl:s390x (4.39-1) ... 419s Setting up libglvnd0:s390x (1.7.0-1build1) ... 419s Setting up libio-stringy-perl (2.113-2) ... 419s Setting up libhtml-tagset-perl (3.24-1) ... 419s Setting up libts0t64:s390x (1.22-1.1build1) ... 419s Setting up liblog-any-perl (1.717-1) ... 419s Setting up libyaml-pp-perl (0.39.0-1) ... 419s Setting up libxcb-glx0:s390x (1.17.0-2) ... 419s Setting up libdevel-size-perl (0.84-1build1) ... 419s Setting up unzip (6.0-28ubuntu6) ... 419s Setting up libdebhelper-perl (13.24.1ubuntu2) ... 419s Setting up libregexp-pattern-license-perl (3.11.2-1) ... 419s Setting up libconvert-binhex-perl (1.125-3) ... 419s Setting up liblwp-mediatypes-perl (6.04-2) ... 419s Setting up libyaml-libyaml-perl (0.903.0+ds-1) ... 419s Setting up fonts-freefont-otf (20211204+svn4273-2) ... 419s Setting up libio-interactive-perl (1.026-1) ... 419s Setting up libxcb-keysyms1:s390x (0.4.1-1) ... 419s Setting up libxcb-shape0:s390x (1.17.0-2) ... 419s Setting up x11-common (1:7.7+23ubuntu3) ... 420s Setting up libtry-tiny-perl (0.32-1) ... 420s Setting up libdeflate0:s390x (1.23-1) ... 420s Setting up perl-openssl-defaults:s390x (7build3) ... 420s Setting up libmldbm-perl (2.05-4) ... 420s Setting up libxml-namespacesupport-perl (1.12-2) ... 420s Setting up m4 (1.4.19-7) ... 420s Setting up libevent-2.1-7t64:s390x (2.1.12-stable-10) ... 420s Setting up libclone-choose-perl (0.010-2) ... 420s Setting up libqhull-r8.0:s390x (2020.2-6build1) ... 420s Setting up libxcb-render-util0:s390x (0.3.10-1) ... 420s Setting up libtime-moment-perl (0.44-2build5) ... 420s Setting up libencode-locale-perl (1.05-3) ... 420s Setting up libxcb-shm0:s390x (1.17.0-2) ... 420s Setting up libxcb-icccm4:s390x (0.4.2-1) ... 420s Setting up texinfo-lib (7.1.1-1) ... 420s Setting up libreadline-dev:s390x (8.2-6) ... 420s Setting up libmpg123-0t64:s390x (1.32.10-1) ... 420s Setting up libgomp1:s390x (15-20250222-0ubuntu1) ... 420s Setting up libconfig-tiny-perl (2.30-1) ... 420s Setting up libsereal-encoder-perl (5.004+ds-1build4) ... 420s Setting up liblist-utilsby-perl (0.12-2) ... 420s Setting up libyaml-tiny-perl (1.76-1) ... 420s Setting up libjbig0:s390x (2.1-6.1ubuntu2) ... 420s Setting up octave-common (9.4.0-1) ... 420s Setting up libregexp-common-perl (2024080801-1) ... 420s Setting up libpcre2-16-0:s390x (10.45-1) ... 420s Setting up libaec0:s390x (1.1.3-1) ... 420s Setting up libnet-netmask-perl (2.0002-2) ... 420s Setting up libopengl0:s390x (1.7.0-1build1) ... 420s Setting up libsub-install-perl (0.929-1) ... 420s Setting up libxcb-util1:s390x (0.4.1-1) ... 420s Setting up libpsl-dev:s390x (0.21.2-1.1build1) ... 420s Setting up libxxf86vm1:s390x (1:1.1.4-1build4) ... 420s Setting up libindirect-perl (0.39-2build5) ... 420s Setting up libxcb-xkb1:s390x (1.17.0-2) ... 420s Setting up libxcb-image0:s390x (0.4.0-2build1) ... 420s Setting up libnumber-compare-perl (0.03-3) ... 420s Setting up libxcb-present0:s390x (1.17.0-2) ... 420s Setting up liberror-perl (0.17030-1) ... 420s Setting up libasound2-data (1.2.13-1build1) ... 420s Setting up patchutils (0.4.2-1build3) ... 420s Setting up tex-common (6.19) ... 420s update-language: texlive-base not installed and configured, doing nothing! 420s Setting up libjson-maybexs-perl (1.004008-1) ... 420s Setting up libxml-sax-base-perl (1.09-3) ... 420s Setting up libio-string-perl (1.08-4) ... 420s Setting up libboolean-perl (0.46-3) ... 420s Setting up libnetaddr-ip-perl (4.079+dfsg-2build5) ... 420s Setting up xtrans-dev (1.4.0-1) ... 420s Setting up libfontenc1:s390x (1:1.1.8-1build1) ... 420s Setting up autotools-dev (20220109.1) ... 420s Setting up libblas3:s390x (3.12.1-2) ... 420s update-alternatives: using /usr/lib/s390x-linux-gnu/blas/libblas.so.3 to provide /usr/lib/s390x-linux-gnu/libblas.so.3 (libblas.so.3-s390x-linux-gnu) in auto mode 420s Setting up libclass-data-inheritable-perl (0.10-1) ... 420s Setting up libunbound8:s390x (1.22.0-1ubuntu1) ... 420s Setting up libpkgconf3:s390x (1.8.1-4) ... 420s Setting up libgmpxx4ldbl:s390x (2:6.3.0+dfsg-3ubuntu1) ... 420s Setting up libalgorithm-c3-perl (0.11-2) ... 420s Setting up libasound2t64:s390x (1.2.13-1build1) ... 420s Setting up liblog-log4perl-perl (1.57-1) ... 420s Setting up libtext-reform-perl (1.20-5) ... 420s Setting up libgnutls-dane0t64:s390x (3.8.9-2ubuntu2) ... 420s Setting up libfreetype6:s390x (2.13.3+dfsg-1) ... 420s Setting up libfile-find-rule-perl (0.34-3) ... 420s Setting up libxfixes3:s390x (1:6.0.0-2build1) ... 420s Setting up libxcb-sync1:s390x (1.17.0-2) ... 420s Setting up libipc-system-simple-perl (1.30-2) ... 420s Setting up libio-tiecombine-perl (1.005-3) ... 420s Setting up libnet-domain-tld-perl (1.75-4) ... 420s Setting up libgssrpc4t64:s390x (1.21.3-4ubuntu2) ... 420s Setting up libperlio-utf8-strict-perl (0.010-1build4) ... 420s Setting up libldap-dev:s390x (2.6.9+dfsg-1~exp2ubuntu1) ... 420s Setting up aglfn (1.7+git20191031.4036a9c-2) ... 420s Setting up libxcb-cursor0:s390x (0.1.5-1) ... 420s Setting up lzip (1.25-2) ... 420s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip (lzip) in auto mode 420s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-compressor (lzip-compressor) in auto mode 420s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-decompressor (lzip-decompressor) in auto mode 420s Setting up libavahi-common-data:s390x (0.8-16ubuntu1) ... 420s Setting up libopus0:s390x (1.5.2-2) ... 420s Setting up t1utils (1.41-4build3) ... 420s Setting up libxinerama1:s390x (2:1.1.4-3build1) ... 420s Setting up diffstat (1.67-1) ... 420s Setting up libimagequant0:s390x (2.18.0-1build1) ... 420s Setting up comerr-dev:s390x (2.1-1.47.2-1ubuntu1) ... 420s Setting up libxkbcommon-x11-0:s390x (1.7.0-2) ... 420s Setting up fonts-dejavu-mono (2.37-8) ... 420s Setting up libssl-dev:s390x (3.4.1-1ubuntu1) ... 420s Setting up libmpc3:s390x (1.3.1-1build2) ... 420s Setting up libvorbis0a:s390x (1.3.7-2) ... 420s Setting up libvariable-magic-perl (0.64-1build1) ... 420s Setting up libio-html-perl (1.004-3) ... 420s Setting up libxrandr2:s390x (2:1.5.4-1) ... 420s Setting up libtext-template-perl (1.61-1) ... 420s Setting up libpod-parser-perl (1.67-1) ... 420s Setting up autopoint (0.23.1-1) ... 420s Setting up libb-hooks-op-check-perl:s390x (0.22-3build2) ... 420s Setting up fonts-dejavu-core (2.37-8) ... 420s Setting up liblist-moreutils-xs-perl (0.430-4build1) ... 420s Setting up pkgconf-bin (1.8.1-4) ... 420s Setting up libjpeg-turbo8:s390x (2.1.5-3ubuntu2) ... 420s Setting up libqscintilla2-qt6-l10n (2.14.1+dfsg-1build4) ... 420s Setting up libltdl7:s390x (2.5.4-4) ... 420s Setting up libidn2-dev:s390x (2.3.7-2build2) ... 420s Setting up libfftw3-double3:s390x (3.3.10-2fakesync1build1) ... 420s Setting up libparams-util-perl (1.102-3build1) ... 420s Setting up libgfortran5:s390x (15-20250222-0ubuntu1) ... 420s Setting up libvulkan1:s390x (1.4.304.0-1) ... 420s Setting up libtime-duration-perl (1.21-2) ... 420s Setting up autoconf (2.72-3ubuntu1) ... 420s Setting up libtext-xslate-perl:s390x (3.5.9-2build1) ... 420s Setting up libsub-exporter-progressive-perl (0.001013-3) ... 420s Setting up libwebp7:s390x (1.5.0-0.1) ... 420s Setting up libarray-intspan-perl (2.004-2) ... 420s Setting up libcapture-tiny-perl (0.50-1) ... 420s Setting up libtimedate-perl (2.3300-2) ... 420s Setting up libexporter-lite-perl (0.09-2) ... 420s Setting up libubsan1:s390x (15-20250222-0ubuntu1) ... 420s Setting up libsub-name-perl:s390x (0.28-1) ... 420s Setting up zlib1g-dev:s390x (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 420s Setting up dwz (0.15-1build6) ... 420s Setting up libdata-validate-domain-perl (0.15-1) ... 420s Setting up libproc-processtable-perl:s390x (0.636-1build4) ... 420s Setting up libparse-recdescent-perl (1.967015+dfsg-4) ... 420s Setting up libmtdev1t64:s390x (1.1.7-1) ... 420s Setting up libduktape207:s390x (2.7.0+tests-0ubuntu3) ... 420s Setting up libxshmfence1:s390x (1.3-1build5) ... 420s Setting up libxcb-randr0:s390x (1.17.0-2) ... 420s Setting up libpath-tiny-perl (0.146-1) ... 420s Setting up libasan8:s390x (15-20250222-0ubuntu1) ... 420s Setting up lzop (1.04-2build3) ... 420s Setting up libjson-perl (4.10000-1) ... 420s Setting up liblog-any-adapter-screen-perl (0.141-1) ... 420s Setting up librole-tiny-perl (2.002004-1) ... 420s Setting up debugedit (1:5.1-2) ... 420s Setting up libipc-run3-perl (0.049-1) ... 420s Setting up libmd4c0:s390x (0.5.2-2) ... 420s Setting up libregexp-wildcards-perl (1.05-3) ... 420s Setting up libmousex-strictconstructor-perl (0.02-3) ... 420s Setting up libfile-sharedir-perl (1.118-3) ... 420s Setting up libsub-uplevel-perl (0.2800-3) ... 420s Setting up libsuitesparseconfig7:s390x (1:7.8.3+dfsg-3) ... 420s Setting up liblua5.4-0:s390x (5.4.7-1) ... 420s Setting up libaliased-perl (0.34-3) ... 420s Setting up libharfbuzz0b:s390x (10.2.0-1) ... 420s Setting up libthai-data (0.1.29-2build1) ... 420s Setting up xorg-sgml-doctools (1:1.11-1.1) ... 420s Setting up libstrictures-perl (2.000006-1) ... 420s Setting up libsub-quote-perl (2.006008-1ubuntu1) ... 420s Setting up libdevel-stacktrace-perl (2.0500-1) ... 420s Setting up libclass-xsaccessor-perl (1.19-4build6) ... 420s Setting up libtext-autoformat-perl (1.750000-2) ... 420s Setting up libglu1-mesa:s390x (9.0.2-1.1build1) ... 420s Setting up libflac12t64:s390x (1.4.3+ds-4) ... 420s Setting up libtoml-tiny-perl (0.19-1) ... 420s Setting up libstemmer0d:s390x (2.2.0-4build1) ... 420s Setting up libxkbfile1:s390x (1:1.1.0-1build4) ... 420s Setting up libsort-versions-perl (1.62-3) ... 420s Setting up libexporter-tiny-perl (1.006002-1) ... 420s Setting up libterm-readkey-perl (2.38-2build5) ... 420s Setting up libisl23:s390x (0.27-1) ... 420s Setting up libtext-unidecode-perl (1.30-3) ... 420s Setting up libde265-0:s390x (1.0.15-1build5) ... 420s Setting up libfont-ttf-perl (1.06-2) ... 420s Setting up libfile-homedir-perl (1.006-2) ... 420s Setting up libsamplerate0:s390x (0.2.2-4build1) ... 420s Setting up libtasn1-6-dev:s390x (4.20.0-2) ... 420s Setting up libwebpmux3:s390x (1.5.0-0.1) ... 420s Setting up libtext-levenshteinxs-perl (0.03-5build5) ... 420s Setting up libperlio-gzip-perl (0.20-1build5) ... 420s Setting up libjxl0.11:s390x (0.11.1-1) ... 420s Setting up libxfont2:s390x (1:2.0.6-1build1) ... 420s Setting up libhtml-html5-entities-perl (0.004-3) ... 420s Setting up libtext-levenshtein-damerau-perl (0.41-3) ... 420s Setting up libsereal-decoder-perl (5.004+ds-1build4) ... 420s Setting up libmarkdown2:s390x (2.2.7-2.1) ... 420s Setting up libcc1-0:s390x (15-20250222-0ubuntu1) ... 420s Setting up liburi-perl (5.30-1) ... 420s Setting up libnet-ipv6addr-perl (1.02-1) ... 420s Setting up libbrotli-dev:s390x (1.1.0-2build4) ... 420s Setting up libp11-kit-dev:s390x (0.25.5-2ubuntu3) ... 420s Setting up libmp3lame0:s390x (3.100-6build1) ... 420s Setting up libblas-dev:s390x (3.12.1-2) ... 420s update-alternatives: using /usr/lib/s390x-linux-gnu/blas/libblas.so to provide /usr/lib/s390x-linux-gnu/libblas.so (libblas.so-s390x-linux-gnu) in auto mode 420s Setting up libsz2:s390x (1.1.3-1) ... 420s Setting up libitm1:s390x (15-20250222-0ubuntu1) ... 420s Setting up libvorbisenc2:s390x (1.3.7-2) ... 420s Setting up libkadm5clnt-mit12:s390x (1.21.3-4ubuntu2) ... 420s Setting up libdata-validate-ip-perl (0.31-1) ... 420s Setting up libwacom-common (2.14.0-1) ... 420s Setting up libmousex-nativetraits-perl (1.09-3) ... 420s Setting up libemail-address-xs-perl (1.05-1build5) ... 420s Setting up libwayland-client0:s390x (1.23.1-3) ... 420s Setting up libnet-ssleay-perl:s390x (1.94-3) ... 420s Setting up libjpeg8:s390x (8c-2ubuntu11) ... 420s Setting up automake (1:1.17-3ubuntu1) ... 420s update-alternatives: using /usr/bin/automake-1.17 to provide /usr/bin/automake (automake) in auto mode 420s Setting up libb2-1:s390x (0.98.1-1.1build1) ... 420s Setting up x11proto-dev (2024.1-1) ... 420s Setting up libfile-stripnondeterminism-perl (1.14.1-2) ... 420s Setting up gnuplot-data (6.0.2+dfsg1-1) ... 420s Setting up libice6:s390x (2:1.1.1-1) ... 420s Setting up libqt6core6t64:s390x (6.8.2+dfsg-5) ... 420s Setting up libhttp-date-perl (6.06-1) ... 420s Setting up mesa-libgallium:s390x (25.0.1-2ubuntu1) ... 420s Setting up libjpeg-turbo8-dev:s390x (2.1.5-3ubuntu2) ... 420s Setting up liblapack3:s390x (3.12.1-2) ... 420s update-alternatives: using /usr/lib/s390x-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/s390x-linux-gnu/liblapack.so.3 (liblapack.so.3-s390x-linux-gnu) in auto mode 420s Setting up libproxy1v5:s390x (0.5.9-1) ... 420s Setting up libfile-basedir-perl (0.09-2) ... 420s Setting up gettext (0.23.1-1) ... 420s Setting up libarpack2t64:s390x (3.9.1-4) ... 420s Setting up libfftw3-single3:s390x (3.3.10-2fakesync1build1) ... 420s Setting up libgmp-dev:s390x (2:6.3.0+dfsg-3ubuntu1) ... 420s Setting up libamd3:s390x (1:7.8.3+dfsg-3) ... 420s Setting up libfile-listing-perl (6.16-1) ... 420s Setting up libxau-dev:s390x (1:1.0.11-1) ... 420s Setting up nettle-dev:s390x (3.10.1-1) ... 420s Setting up libkdb5-10t64:s390x (1.21.3-4ubuntu2) ... 420s Setting up libgbm1:s390x (25.0.1-2ubuntu1) ... 420s Setting up libcolamd3:s390x (1:7.8.3+dfsg-3) ... 420s Setting up libwacom9:s390x (2.14.0-1) ... 420s Setting up fontconfig-config (2.15.0-2ubuntu1) ... 420s Setting up liblist-moreutils-perl (0.430-2) ... 420s Setting up libxcursor1:s390x (1:1.2.3-1) ... 420s Setting up libpod-constants-perl (0.19-2) ... 420s Setting up libgl1-mesa-dri:s390x (25.0.1-2ubuntu1) ... 420s Setting up libhash-merge-perl (0.302-1) ... 420s Setting up libsoftware-copyright-perl (0.014-1) ... 420s Setting up libaec-dev:s390x (1.1.3-1) ... 420s Setting up libavahi-common3:s390x (0.8-16ubuntu1) ... 420s Setting up libcxsparse4:s390x (1:7.8.3+dfsg-3) ... 420s Setting up libfftw3-long3:s390x (3.3.10-2fakesync1build1) ... 420s Setting up libnet-http-perl (6.23-1) ... 420s Setting up libpath-iterator-rule-perl (1.015-2) ... 420s Setting up libtext-markdown-discount-perl (0.18-1) ... 420s Setting up libappstream5:s390x (1.0.4-1) ... 420s Setting up libexception-class-perl (1.45-1) ... 420s Setting up libclass-c3-perl (0.35-2) ... 420s Setting up libqrupdate1:s390x (1.1.5-1) ... 420s Setting up libdevel-callchecker-perl:s390x (0.009-1build1) ... 420s Setting up libxml-sax-perl (1.02+dfsg-4) ... 420s update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::PurePerl with priority 10... 420s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 420s Creating config file /etc/perl/XML/SAX/ParserDetails.ini with new version 420s Setting up libcamd3:s390x (1:7.8.3+dfsg-3) ... 420s Setting up pkgconf:s390x (1.8.1-4) ... 420s Setting up libinput-bin (1.27.1-1) ... 420s Setting up libxs-parse-sublike-perl:s390x (0.37-1) ... 420s Setting up intltool-debian (0.35.0+20060710.6) ... 420s Setting up libthai0:s390x (0.1.29-2build1) ... 420s Setting up libxdmcp-dev:s390x (1:1.1.5-1) ... 420s Setting up libegl-mesa0:s390x (25.0.1-2ubuntu1) ... 420s Setting up libdata-validate-uri-perl (0.07-3) ... 420s Setting up libxs-parse-keyword-perl (0.48-2) ... 420s Setting up libtest-exception-perl (0.43-3) ... 420s Setting up appstream (1.0.4-1) ... 420s ✔ Metadata cache was updated successfully. 420s Setting up libqt6xml6:s390x (6.8.2+dfsg-5) ... 420s Setting up libglpk40:s390x (5.0-1build2) ... 420s Setting up libqt6sql6:s390x (6.8.2+dfsg-5) ... 420s Setting up libstring-copyright-perl (0.003014-1) ... 420s Setting up libraqm0:s390x (0.10.2-1) ... 420s Setting up liblapack-dev:s390x (3.12.1-2) ... 420s update-alternatives: using /usr/lib/s390x-linux-gnu/lapack/liblapack.so to provide /usr/lib/s390x-linux-gnu/liblapack.so (liblapack.so-s390x-linux-gnu) in auto mode 420s Setting up libdata-optlist-perl (0.114-1) ... 420s Setting up libssh2-1-dev:s390x (1.11.1-1) ... 420s Setting up cpp-14-s390x-linux-gnu (14.2.0-17ubuntu3) ... 420s Setting up cpp-14 (14.2.0-17ubuntu3) ... 420s Setting up libccolamd3:s390x (1:7.8.3+dfsg-3) ... 420s Setting up libxml-libxml-perl (2.0207+dfsg+really+2.0134-5build1) ... 420s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50... 420s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX with priority 50... 420s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 420s Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version 420s Setting up dh-strip-nondeterminism (1.14.1-2) ... 420s Setting up libwww-robotrules-perl (6.02-1) ... 420s Setting up libsyntax-keyword-try-perl (0.30-1) ... 420s Setting up libjack-jackd2-0:s390x (1.9.22~dfsg-4) ... 420s Setting up libhdf5-310:s390x (1.14.5+repack-3) ... 420s Setting up libtiff6:s390x (4.5.1+git230720-4ubuntu4) ... 420s Setting up libhtml-parser-perl:s390x (3.83-1build1) ... 420s Setting up libkadm5srv-mit12:s390x (1.21.3-4ubuntu2) ... 420s Setting up libegl1:s390x (1.7.0-1build1) ... 420s Setting up libqt6core5compat6:s390x (6.8.2-3) ... 420s Setting up libfontconfig1:s390x (2.15.0-2ubuntu1) ... 420s Setting up libsndfile1:s390x (1.2.2-2) ... 420s Setting up libmro-compat-perl (0.15-2) ... 420s Setting up libgcc-14-dev:s390x (14.2.0-17ubuntu3) ... 420s Setting up libjpeg8-dev:s390x (8c-2ubuntu11) ... 420s Setting up libhdf5-fortran-310:s390x (1.14.5+repack-3) ... 420s Setting up libstdc++-14-dev:s390x (14.2.0-17ubuntu3) ... 420s Setting up libsm6:s390x (2:1.2.4-1) ... 420s Setting up libavahi-client3:s390x (0.8-16ubuntu1) ... 420s Setting up libio-socket-ssl-perl (2.089-1) ... 420s Setting up libsub-exporter-perl (0.990-1) ... 420s Setting up libqt6dbus6:s390x (6.8.2+dfsg-5) ... 420s Setting up libhttp-message-perl (7.00-2ubuntu1) ... 420s Setting up libhtml-form-perl (6.12-1) ... 420s Setting up krb5-multidev:s390x (1.21.3-4ubuntu2) ... 420s Setting up libhdf5-cpp-310:s390x (1.14.5+repack-3) ... 420s Setting up libgfortran-14-dev:s390x (14.2.0-17ubuntu3) ... 420s Setting up libiterator-perl (0.03+ds1-2) ... 420s Setting up libgnutls28-dev:s390x (3.8.9-2ubuntu2) ... 420s Setting up libinput10:s390x (1.27.1-1) ... 420s Setting up libnghttp2-dev:s390x (1.64.0-1) ... 420s Setting up libhdf5-hl-310:s390x (1.14.5+repack-3) ... 420s Setting up libportaudio2:s390x (19.6.0-1.2build3) ... 420s Setting up libhttp-negotiate-perl (6.01-2) ... 420s Setting up fontconfig (2.15.0-2ubuntu1) ... 422s Regenerating fonts cache... done. 422s Setting up libcarp-assert-more-perl (2.8.0-1) ... 422s Setting up libcholmod5:s390x (1:7.8.3+dfsg-3) ... 422s Setting up libxft2:s390x (2.3.6-1build1) ... 423s Setting up libglx-mesa0:s390x (25.0.1-2ubuntu1) ... 423s Setting up libxcb1-dev:s390x (1.17.0-2) ... 423s Setting up libiterator-util-perl (0.02+ds1-2) ... 423s Setting up libglx0:s390x (1.7.0-1build1) ... 423s Setting up cpp-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 423s Setting up libhttp-cookies-perl (6.11-1) ... 423s Setting up libspqr4:s390x (1:7.8.3+dfsg-3) ... 423s Setting up libfftw3-bin (3.3.10-2fakesync1build1) ... 423s Setting up po-debconf (1.0.21+nmu1) ... 423s Setting up libhtml-tree-perl (5.07-3) ... 423s Setting up libparams-classify-perl:s390x (0.015-2build6) ... 423s Setting up libpango-1.0-0:s390x (1.56.2-1) ... 423s Setting up libcgi-pm-perl (4.67-1) ... 423s Setting up libjpeg-dev:s390x (8c-2ubuntu11) ... 423s Setting up libx11-dev:s390x (2:1.8.10-2) ... 423s Setting up libcairo2:s390x (1.18.2-2) ... 423s Setting up libobject-pad-perl (0.820-1) ... 423s Setting up libkrb5-dev:s390x (1.21.3-4ubuntu2) ... 423s Setting up gcc-14-s390x-linux-gnu (14.2.0-17ubuntu3) ... 423s Setting up libgl1:s390x (1.7.0-1build1) ... 423s Setting up libqt6gui6:s390x (6.8.2+dfsg-5) ... 423s Setting up gcc-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 423s Setting up libnet-smtp-ssl-perl (1.04-2) ... 423s Setting up libmodule-runtime-perl (0.016-2) ... 423s Setting up libmailtools-perl (2.22-1) ... 423s Setting up libconfig-model-perl (2.155-1) ... 423s Setting up libxt6t64:s390x (1:1.2.1-1.2build1) ... 423s Setting up librtmp-dev:s390x (2.4+20151223.gitfa8646d.1-2build7) ... 423s Setting up g++-14-s390x-linux-gnu (14.2.0-17ubuntu3) ... 423s Setting up texinfo (7.1.1-1) ... 423s Setting up libumfpack6:s390x (1:7.8.3+dfsg-3) ... 423s Setting up libconst-fast-perl (0.014-2) ... 423s Setting up libqt6network6:s390x (6.8.2+dfsg-5) ... 423s Setting up cpp (4:14.2.0-1ubuntu1) ... 423s Setting up libdata-section-perl (0.200008-1) ... 423s Setting up libglx-dev:s390x (1.7.0-1build1) ... 423s Setting up libpangoft2-1.0-0:s390x (1.56.2-1) ... 423s Setting up libdata-dpath-perl (0.60-1) ... 423s Setting up libfltk1.3t64:s390x (1.3.8-6.1build2) ... 423s Setting up libfftw3-dev:s390x (3.3.10-2fakesync1build1) ... 423s Setting up libcups2t64:s390x (2.4.11-0ubuntu2) ... 423s Setting up libgl-dev:s390x (1.7.0-1build1) ... 423s Setting up libstring-rewriteprefix-perl (0.009-1) ... 423s Setting up libpangocairo-1.0-0:s390x (1.56.2-1) ... 423s Setting up libhdf5-hl-cpp-310:s390x (1.14.5+repack-3) ... 423s Setting up libconfig-model-backend-yaml-perl (2.134-2) ... 423s Setting up libhdf5-hl-fortran-310:s390x (1.14.5+repack-3) ... 423s Setting up libxmu6:s390x (2:1.1.3-3build2) ... 423s Setting up libmodule-implementation-perl (0.09-2) ... 423s Setting up libpackage-stash-perl (0.40-1) ... 423s Setting up libimport-into-perl (1.002005-2) ... 423s Setting up libmoo-perl (2.005005-1) ... 423s Setting up gfortran-14-s390x-linux-gnu (14.2.0-17ubuntu3) ... 423s Setting up libqt6opengl6:s390x (6.8.2+dfsg-5) ... 423s Setting up liblist-someutils-perl (0.59-1) ... 423s Setting up g++-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 423s Setting up libxaw7:s390x (2:1.0.16-1) ... 423s Setting up libmime-tools-perl (5.515-1) ... 423s Setting up libsoftware-license-perl (0.104006-1) ... 423s Setting up libclass-load-perl (0.25-2) ... 423s Setting up libgl2ps1.4 (1.4.2+dfsg1-2build1) ... 423s Setting up gcc-14 (14.2.0-17ubuntu3) ... 423s Setting up libqt6widgets6:s390x (6.8.2+dfsg-5) ... 423s Setting up libfltk-gl1.3t64:s390x (1.3.8-6.1build2) ... 423s Setting up libcurl4-openssl-dev:s390x (8.12.1-3ubuntu1) ... 423s Setting up libhdf5-dev (1.14.5+repack-3) ... 423s update-alternatives: using /usr/lib/s390x-linux-gnu/pkgconfig/hdf5-serial.pc to provide /usr/lib/s390x-linux-gnu/pkgconfig/hdf5.pc (hdf5.pc) in auto mode 423s Setting up g++-14 (14.2.0-17ubuntu3) ... 423s Setting up libmoox-aliases-perl (0.001006-2) ... 423s Setting up gfortran-14 (14.2.0-17ubuntu3) ... 423s Setting up libparams-validate-perl:s390x (1.31-2build4) ... 423s Setting up libqt6openglwidgets6:s390x (6.8.2+dfsg-5) ... 423s Setting up libb-hooks-endofscope-perl (0.28-1) ... 423s Setting up libqt6printsupport6:s390x (6.8.2+dfsg-5) ... 423s Setting up gfortran-s390x-linux-gnu (4:14.2.0-1ubuntu1) ... 423s Setting up libtool (2.5.4-4) ... 423s Setting up libsoftware-licensemoreutils-perl (1.009-1) ... 423s Setting up x11-xkb-utils (7.7+9) ... 423s Setting up libqt6help6:s390x (6.8.2-3) ... 423s Setting up libqscintilla2-qt6-15:s390x (2.14.1+dfsg-1build4) ... 423s Setting up gcc (4:14.2.0-1ubuntu1) ... 423s Setting up dh-autoreconf (20) ... 423s Setting up libnamespace-clean-perl (0.27-2) ... 423s Setting up libstring-license-perl (0.0.11-1ubuntu1) ... 423s Setting up libgetopt-long-descriptive-perl (0.116-2) ... 423s Setting up g++ (4:14.2.0-1ubuntu1) ... 423s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 423s Setting up xserver-common (2:21.1.16-1ubuntu1) ... 423s Setting up licensecheck (3.3.9-1ubuntu1) ... 423s Setting up libapp-cmd-perl (0.337-2) ... 423s Setting up xvfb (2:21.1.16-1ubuntu1) ... 423s Setting up debhelper (13.24.1ubuntu2) ... 423s Setting up gfortran (4:14.2.0-1ubuntu1) ... 423s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode 423s update-alternatives: warning: skip creation of /usr/share/man/man1/f95.1.gz because associated file /usr/share/man/man1/gfortran.1.gz (of link group f95) doesn't exist 423s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f77 (f77) in auto mode 423s update-alternatives: warning: skip creation of /usr/share/man/man1/f77.1.gz because associated file /usr/share/man/man1/gfortran.1.gz (of link group f77) doesn't exist 423s Setting up cme (1.041-1) ... 423s Setting up libheif-plugin-aomdec:s390x (1.19.7-1) ... 423s Setting up libwww-perl (6.78-1) ... 423s Setting up libheif1:s390x (1.19.7-1) ... 423s Setting up libparse-debcontrol-perl (2.005-6) ... 423s Setting up libhtml-tokeparser-simple-perl (3.16-4) ... 423s Setting up libwww-mechanize-perl (2.19-1ubuntu1) ... 423s Setting up libgd3:s390x (2.3.3-12ubuntu3) ... 423s Setting up gnuplot-nox (6.0.2+dfsg1-1) ... 423s update-alternatives: using /usr/bin/gnuplot-nox to provide /usr/bin/gnuplot (gnuplot) in auto mode 423s Setting up liblwp-protocol-https-perl (6.14-1) ... 423s Setting up libheif-plugin-libde265:s390x (1.19.7-1) ... 423s Setting up libgraphicsmagick-q16-3t64 (1.4+really1.3.45+hg17689-1) ... 423s Setting up lintian (2.121.1+nmu1ubuntu2) ... 423s Setting up libgraphicsmagick++-q16-12t64 (1.4+really1.3.45+hg17689-1) ... 423s Setting up libconfig-model-dpkg-perl (3.010) ... 423s Setting up dh-octave-autopkgtest (1.8.0) ... 423s Setting up octave (9.4.0-1) ... 423s Setting up octave-dev (9.4.0-1) ... 423s Setting up octave-image:s390x (2.14.0-5build1) ... 423s Setting up dh-octave (1.8.0) ... 423s Processing triggers for libc-bin (2.41-1ubuntu2) ... 423s Processing triggers for man-db (2.13.0-1) ... 424s Processing triggers for udev (257.3-1ubuntu3) ... 424s Processing triggers for install-info (7.1.1-1) ... 426s autopkgtest [16:14:12]: test command1: DH_OCTAVE_TEST_ENV="xvfb-run -a" /usr/bin/dh_octave_check --use-installed-package 426s autopkgtest [16:14:12]: test command1: [----------------------- 426s Checking package... 426s Run the unit tests... 426s Checking m files ... 426s [inst/applylut.m] 426s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/applylut.m 426s ***** demo 426s lut = makelut (@(x) sum (x (:)) >= 3, 3); 426s S = applylut (eye (5), lut); 426s disp (S) 426s ## Everything should be 0 despite a diagonal which doesn't reach borders. 426s ***** assert (prod (applylut (eye (3), makelut (@(x) x(1) == 1, 2)) == eye (3)), [1 1 1]); 426s ***** assert (prod (applylut (eye (3), makelut (@(x) x(2,2) == 1, 3)) == eye (3)), [1 1 1]); 426s ***** assert (prod (applylut (eye (3), makelut (@(x) x(3,3) == 1, 3)) == 426s applylut (eye (3), makelut (@(x) x(2,2) == 1, 2))), 426s [1 1 1]); 426s 3 tests, 3 passed, 0 known failure, 0 skipped 426s [inst/isind.m] 426s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/isind.m 426s ***** assert (isind ([]), false); 426s ***** assert (isind (1:10), true); 426s ***** assert (isind (0:10), false); 426s ***** assert (isind (1), true); 426s ***** assert (isind (0), false); 426s ***** assert (isind ([1.3 2.4]), false); 426s ***** assert (isind ([1 2; 3 4]), true); 426s ***** assert (isind (randi (100, 10, 10, 1, 4)), true); 426s ***** assert (isind (randi (100, 10, 10, 3, 4)), false); 426s ***** assert (isind (randi (100, 10, 10, 1, 4, 2)), false); 426s 10 tests, 10 passed, 0 known failure, 0 skipped 426s [inst/xyz2lab.m] 426s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/xyz2lab.m 426s ***** assert (xyz2lab ([0, 0, 0]), [0 0 0], 5e-2) 426s ***** assert (xyz2lab ([0.4125, 0.2127, 0.0193]), [53.24, 80.09, 67.20], 5e-2) 426s ***** assert (xyz2lab ([0.7700, 0.9278, 0.1385]), [97.14, -21.55, 94.48], 5e-2) 426s ***** assert (xyz2lab ([0.3576, 0.7152, 0.1192]), [87.74, -86.18, 83.18], 5e-2) 426s ***** assert (xyz2lab ([0.5380, 0.7873, 1.0694]), [91.11, -48.09, -14.13], 5e-2) 426s ***** assert (xyz2lab ([0.1804, 0.07217, 0.9502]), [32.30, 79.19, -107.86], 5e-2) 426s ***** assert (xyz2lab ([0.5929, 0.28484, 0.9696]), [60.32, 98.24, -60.83], 5e-2) 426s ***** assert (xyz2lab ([0.9505, 1.0000, 1.0888]), [100, 0.00, 0.00], 5e-2) 426s ***** assert (xyz2lab ([0.2034, 0.2140, 0.2330]), [53.39, 0.00, 0.00], 5e-2) 426s ***** assert (xyz2lab ([0.2155, 0.1111, 0.0101]), [39.77, 64.51, 54.13], 5e-2) 426s ***** assert (xyz2lab ([0.0883, 0.0455, 0.0041]), [25.42, 47.91, 37.91], 5e-2) 426s ***** assert (xyz2lab ([0.02094, 0.0108, 0.00098]), [9.66, 29.68, 15.24], 5e-2) 426s ***** assert (xyz2lab ([0.5276, 0.3812, 0.2482]), [68.11, 48.39, 22.83], 5e-2) 426s ***** assert (xyz2lab ([1.5 1 1]), [100, 82.15, 5.60], 5e-2) 426s xyz_map = rand (64, 3); 426s assert (lab2xyz (xyz2lab (xyz_map)), xyz_map, 1e-5); 426s ***** test 426s xyz_img = rand (64, 64, 3); 426s assert (lab2xyz (xyz2lab (xyz_img)), xyz_img, 1e-5); 426s ***** assert (xyz2lab (sparse ([0 0 0])), [0 0 0], 5e-2) 426s ***** assert (class (xyz2lab (single([0.5 0.5 0.5]))), 'single') 426s ***** error xyz2lab () 426s ***** error xyz2lab (1,2) 426s ***** error xyz2lab ({1}) 426s ***** error xyz2lab (ones (2,2)) 426s ***** test 426s xyz = rand (16, 16, 3, 5); 426s lab = zeros (size (xyz)); 426s for i = 1:5 426s lab(:,:,:,i) = xyz2lab (xyz(:,:,:,i)); 426s endfor 426s assert (xyz2lab (xyz), lab) 426s 22 tests, 22 passed, 0 known failure, 0 skipped 426s [inst/stdfilt.m] 426s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/stdfilt.m 426s ***** test 426s im = stdfilt (ones (5)); 426s assert (im, zeros (5)) 426s ***** test 426s A = zeros (3,3); 426s B = ones (3,3); 426s C = [1 1 1; 2 2 2; 3 3 3]; 426s D = C'; 426s E = ones (3,3); 426s E(2,2) = 2; 426s F = 3 .* ones (3,3); 426s F(2,2) = 1; 426s G = [-1 2 7; -5 2 8; -7 pi 9]; 426s H = [5 2 8; 1 -3 1; 5 1 0]; 426s A_out = [0 0 0; 0 0 0; 0 0 0]; 426s B_out = [0 0 0; 0 0 0; 0 0 0]; 426s C_out = repmat ([std([1 1 1 1 1 1 2 2 2]) 426s std([1 1 1 2 2 2 3 3 3]) 426s std([2 2 2 3 3 3 3 3 3])], [1 3]); 426s D_out = C_out'; 426s E_out = (1/3) .* ones (3,3); 426s F_out = (2/3) .* ones (3,3); 426s G_out = [std([-1 -1 2 -1 -1 2 -5 -5 2]), std([-1 2 7 -1 2 7 -5 2 8]), std([2 7 7 2 7 7 2 8 8]); 426s std([-1 -1 2 -5 -5 2 -7 -7 pi]), std([-1 2 7 -5 2 8 -7 pi 9]), std([2 7 7 2 8 8 pi 9 9]); 426s std([-5 -5 2 -7 -7 pi -7 -7 pi]), std([-5 2 8 -7 pi 9 -7 pi 9]), std([2 8 8 pi 9 9 pi 9 9])]; 426s H_out = [std([5 5 2 5 5 2 1 1 -3]), std([5 2 8 5 2 8 1 -3 1]), std([2 8 8 2 8 8 -3 1 1]); 426s std([5 5 2 1 1 -3 5 5 1]), std([5 2 8 1 -3 1 5 1 0]), std([2 8 8 -3 1 1 1 0 0]); 426s std([1 1 -3 5 5 1 5 5 1]), std([1 -3 1 5 1 0 5 1 0]), std([-3 1 1 1 0 0 1 0 0])]; 426s assert (stdfilt (A), A_out) 426s assert (stdfilt (B), B_out) 426s assert (stdfilt (C), C_out, 4*eps) 426s assert (stdfilt (D), D_out, 4*eps) 426s assert (stdfilt (E), E_out, 4*eps) 426s assert (stdfilt (F), F_out, 4*eps) 426s assert (stdfilt (G), G_out, 4*eps) 426s assert (stdfilt (H), H_out, 4*eps) 426s im = stdfilt (ones (5, 'logical')); 426s assert (im, zeros (5)) 426s im = stdfilt (ones (5, 'uint8')); 426s assert (im, zeros (5)) 426s assert (stdfilt (int8(H), H_out, 4*eps)) 426s assert (stdfilt (uint8(H), H_out, 4*eps)) 426s assert (stdfilt (int16(H), H_out, 4*eps)) 426s assert (stdfilt (uint16(H), H_out, 4*eps)) 426s assert (stdfilt (int32(H), H_out, 4*eps)) 426s assert (stdfilt (uint32(H), H_out, 4*eps)) 426s assert (stdfilt (int64(H), H_out, 4*eps)) 426s assert (stdfilt (uint64(H), H_out, 4*eps)) 426s assert (stdfilt (single(H), H_out, 4*eps)) 426s 2 tests, 2 passed, 0 known failure, 0 skipped 426s [inst/makelut.m] 426s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/makelut.m 426s ***** demo 426s makelut(@(x) sum(x(:))>=3, 2) 426s % Returns '1' if one or more values 426s % in the input matrix are 1 426s ***** assert(prod(makelut(@(x) sum(x(:))==2, 2)==makelut(@(x, a, b, c, d) sum(x(:))==a*b*c*d,2,2/(3*4*5),3,4,5))); # test multiple params 426s ***** assert(prod(makelut(@(x) x(1,1)==1, 2)==[zeros(2^3,1);ones(2^3,1)])==1); # test 2-by-2 426s ***** assert(prod(makelut(@(x) x(1,1)==1, 3)==[zeros(2^8,1);ones(2^8,1)])==1); # test 3-by-3 426s ***** assert(prod(makelut(@(x) x(1,1)==1, 4)==[zeros(2^15,1);ones(2^15,1)])==1); # test 4-by-4 428s ***** assert(prod(makelut(@(x) x(2,1)==1, 3)==[zeros(2^7,1);ones(2^7,1);zeros(2^7,1);ones(2^7,1)])==1); # another test for 3-by-3 428s 5 tests, 5 passed, 0 known failure, 0 skipped 428s [inst/im2uint8.m] 428s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/im2uint8.m 428s ***** assert (im2uint8 (uint8 ([1 2 3])), uint8 ([1 2 3])); 428s ***** assert (im2uint8 (uint16 ([0 65535])), uint8 ([0 255])); 428s ***** assert (im2uint8 ([0 0.5 1]), uint8 ([0 128 255])); 428s ***** assert (im2uint8 ([1 2]), uint8 ([255 255])); 428s ***** assert (im2uint8 ([-1 0 0.5 1 2]), uint8 ([0 0 128 255 255])); 428s ***** assert (im2uint8 (int16 ([-32768 0 32768])), uint8 ([0 128 255])); 428s ***** assert (im2uint8 ([false true]), uint8 ([0 255])); 428s ***** assert (im2uint8 ([true false]), uint8 ([255 0])); 428s ***** assert (im2uint8 ([1 256], "indexed"), uint8 ([0 255])); 428s ***** assert (im2uint8 ([3 25], "indexed"), uint8 ([2 24])); 428s ***** assert (im2uint8 (uint16 ([3 25]), "indexed"), uint8 ([3 25])); 428s ***** error im2uint8 ([0 1 2], "indexed"); 428s ***** error im2uint8 (int16 ([17 8]), "indexed"); 428s ***** error im2uint8 (int16 ([-7 8]), "indexed"); 428s ***** error im2uint8 ([false true], "indexed"); 428s ***** error im2uint8 (uint16 (256), "indexed"); 428s ***** error im2uint8 (257, "indexed"); 428s ***** assert (im2uint8 ((1:255) ./ 256), uint8 ([1:128 128:254])) 428s ***** assert (im2uint8 ((0:255) ./ 256), uint8 ([0:128 128:254])) 428s 19 tests, 19 passed, 0 known failure, 0 skipped 428s [inst/isgray.m] 428s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/isgray.m 428s ***** assert (isgray ([0 0 1; 1 0 1]), true) 428s ***** assert (isgray (zeros (3)), true) 428s ***** assert (isgray (ones (3)), true) 428s ***** test 428s a = rand (10); 428s assert (isgray (a), true); 428s a(5, 5) = 2; 428s assert (isgray (a), false); 428s ***** test 428s a = uint8 (randi (255, 10)); 428s assert (isgray (a), true); 428s a = int8 (a); 428s assert (isgray (a), false); 428s ***** test 428s a = rand (10); 428s a(50) = NaN; 428s assert (isgray (a), true); 428s ***** assert (isgray (rand (5, 5, 1, 4)), true); 428s ***** assert (isgray (rand (5, 5, 3, 4)), false); 428s ***** assert (isgray (rand (5, 5, 3)), false); 428s ***** assert (isgray (rand (5, 5, 1, 3, 4)), false); 428s ***** assert (isgray (rand (5, "single")), true) 428s ***** assert (isgray ([.1 .2 .3; .4 NaN .6; .7 .8 .9]), true) 428s ***** assert (isgray ([.1 .2 .3; NA NaN .6; .7 .8 .9]), true) 428s ***** assert (isgray ([.1 .2 .3; NA .5 .6; .7 .8 .9]), true) 428s ***** assert (isgray (NaN (5)), false) 428s ***** assert (isgray (NA (5)), false) 428s 16 tests, 16 passed, 0 known failure, 0 skipped 428s [inst/imfill.m] 428s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imfill.m 428s ***** test 428s I = uint8 (5.*[1 1 1; 1 0 1; 1 1 1]); 428s bw = logical ([1 1 1; 1 0 1; 1 1 1]); 428s I2 = uint8 (5.*ones (3)); 428s bw2 = logical (ones (3)); 428s 428s assert (imfill (int8 (I)), int8 (I2)) 428s assert (imfill (int16 (I)), int16 (I2)) 428s assert (imfill (int32 (I)), int32 (I2)) 428s assert (imfill (int64 (I)), int64 (I2)) 428s assert (imfill (uint8 (I)), uint8 (I2)) 428s assert (imfill (uint16 (I)), uint16 (I2)) 428s assert (imfill (uint32 (I)), uint32 (I2)) 428s assert (imfill (uint64 (I)), uint64 (I2)) 428s assert (imfill (single (I)), single (I2)) 428s assert (imfill (double (I)), double (I2)) 428s assert (imfill (bw, "holes"), bw2) 428s assert (imfill (uint8 (bw)), uint8 (bw2)) 428s ***** error 428s imfill (i + ones (3, 3)); # complex input 428s ***** error 428s imfill (sparse (double (I))); # sparse input 428s ***** error 428s imfill (); 428s ***** error 428s imfill (true (3), 4, "holes", 5) 428s ***** error 428s imfill (false (3), ones (2, 3)) 428s ***** error 428s imfill (false (3), ones (2, 3), 4) 428s ***** error 428s imfill (false (3)) 428s ***** error 428s imfill (false (3), 0, 4) 428s ***** warning 428s bw = logical ([1 1 1; 1 0 1; 1 1 1]); 428s assert (imfill (bw, [5 5]), bw) 428s assert (imfill (bw, 15), bw) 428s 428s bw = repmat (bw, [1 1 3]); 428s assert (imfill (bw, 30), bw) 428s assert (imfill (bw, [2 2 5]), bw) 428s ***** test 428s bw = logical ([1 0 0 0 0 0 0 0 428s 1 1 1 1 1 0 0 0 428s 1 0 0 0 1 0 1 0 428s 1 0 0 0 1 1 1 0 428s 1 1 1 1 0 1 1 1 428s 1 0 0 1 1 0 1 0 428s 1 0 0 0 1 0 1 0 428s 1 0 0 0 1 1 1 0]); 428s bw2 = logical ([1 0 0 0 0 0 0 0 428s 1 1 1 1 1 0 0 0 428s 1 1 1 1 1 0 1 0 428s 1 1 1 1 1 1 1 0 428s 1 1 1 1 1 1 1 1 428s 1 0 0 1 1 1 1 0 428s 1 0 0 0 1 1 1 0 428s 1 0 0 0 1 1 1 0]); 428s bw3 = logical ([1 0 0 0 0 0 0 0 428s 1 1 1 1 1 0 0 0 428s 1 1 1 1 1 0 1 0 428s 1 1 1 1 1 1 1 0 428s 1 1 1 1 0 1 1 1 428s 1 0 0 1 1 0 1 0 428s 1 0 0 0 1 0 1 0 428s 1 0 0 0 1 1 1 0]); 428s assert (imfill (bw, "holes"), bw2) 428s assert (imfill (bw, 8, "holes"), bw2) 428s assert (imfill (bw, 4, "holes"), bw2) 428s assert (imfill (bw, [3 3]), bw3) 428s assert (imfill (bw, 19), bw3) 428s assert (imfill (bw, [3 3], 4), bw3) 428s assert (imfill (bw, 19, 4), bw3) 428s assert (imfill (bw, [3 3], 8), bw2) 428s assert (imfill (bw, 19, 8), bw2) 428s assert (imfill (bw, [19; 20]), bw3) 428s assert (imfill (bw, [19; 20], 4), bw3) 428s assert (imfill (bw, [19; 20], 8), bw2) 428s ***** warning 428s bw = logical ([1 1 1 1 1 1 1 428s 1 0 0 0 0 0 1 428s 1 0 1 1 1 0 1 428s 1 0 1 0 1 0 1 428s 1 0 1 1 1 0 1 428s 1 0 0 0 0 0 1 428s 1 1 1 1 1 1 1]); 428s bw44 = logical ([1 1 1 1 1 1 1 428s 1 0 0 0 0 0 1 428s 1 0 1 1 1 0 1 428s 1 0 1 1 1 0 1 428s 1 0 1 1 1 0 1 428s 1 0 0 0 0 0 1 428s 1 1 1 1 1 1 1]); 428s bw9 = logical ([1 1 1 1 1 1 1 428s 1 1 1 1 1 1 1 428s 1 1 1 1 1 1 1 428s 1 1 1 0 1 1 1 428s 1 1 1 1 1 1 1 428s 1 1 1 1 1 1 1 428s 1 1 1 1 1 1 1]); 428s assert (imfill (bw, "holes"), logical (ones (7))) 428s assert (imfill (bw, [4 4]), bw44) 428s assert (imfill (bw, 9), bw9) 428s assert (imfill (bw, [4 4; 10 10]), bw44) 428s ***** test 428s bw = logical ([1 1 0 1 1]); 428s assert (imfill (bw, "holes"), bw) 428s bw = logical([1 1 0 1 1; 1 1 1 1 1]); 428s assert (imfill (bw, "holes"), bw) 428s ***** test 428s I = zeros (5); 428s I(:, [2 4]) = 1; 428s I2_expected = [0 1 1 1 0 428s 0 1 1 1 0 428s 0 1 1 1 0 428s 0 1 1 1 0 428s 0 1 1 1 0]; 428s I2 = imfill (I, [0 0 0; 1 1 1; 0 0 0], "holes"); 428s assert (I2, I2_expected) 428s ***** test 428s I = zeros (5); 428s I(:, [2 4]) = 1; 428s I2_expected = I; 428s I2 = imfill (I, [0 1 0; 0 1 0; 0 1 0], "holes"); 428s assert (I2, I2_expected) 428s ***** test # this test is Matlab compatible 428s I = zeros (5); 428s I(:, [2 4]) = 1; 428s I2_expected = inf .* ones (5); 428s I2 = imfill (I, [0 0 0; 0 1 0; 0 0 0], "holes"); 428s assert (I2, I2_expected) 428s ***** test 428s I = false (5); 428s I(:, [2 4]) = true; 428s I2_expected = true (5); 428s I2 = imfill (I, [0 0 0; 0 1 0; 0 0 0], "holes"); 428s assert (I2, I2_expected) 428s ***** test 428s I = uint8 ([10 20 80 85 20 428s 15 90 03 25 88 428s 05 85 02 50 83 428s 90 04 03 80 80 428s 10 81 83 85 30]); 428s I2 = uint8 ([10 20 80 85 20 428s 15 90 80 80 88 428s 05 85 80 80 83 428s 90 80 80 80 80 428s 10 81 83 85 30]); 428s I3 = uint8 ([10 20 80 85 20 428s 15 90 05 25 88 428s 05 85 05 50 83 428s 90 05 05 80 80 428s 10 81 83 85 30]); 428s assert (imfill (I), I2) 428s assert (imfill (I, 4), I2) 428s assert (imfill (I, 4, "holes"), I2) 428s assert (imfill (I, 8), I3) 428s assert (imfill (I, "holes"), I2) 428s ***** test 428s v_line = [0 1 0; 0 1 0; 0 1 0]; 428s h_line = [0 0 0; 1 1 1; 0 0 0]; 428s im = [0 1 0 0 1 0]; 428s 428s assert (imfill (im, h_line, "holes"), [0 1 1 1 1 0]) 428s assert (imfill (im, v_line, "holes"), [0 1 0 0 1 0]) 428s assert (imfill (im', h_line, "holes"), [0 1 0 0 1 0]') 428s assert (imfill (im', v_line, "holes"), [0 1 1 1 1 0]') 428s 428s im = repmat (im, [1 1 5]); 428s assert (imfill (im, h_line, "holes"), repmat ([0 1 1 1 1 0], [1 1 5])) 428s assert (imfill (im, v_line, "holes"), im) 428s 428s im = permute (im, [2 1 3]); 428s assert (imfill (im, h_line, "holes"), im) 428s assert (imfill (im, v_line, "holes"), repmat ([0 1 1 1 1 0]', [1 1 5])) 428s ***** test 428s im = logical ([0 0 0 0 0 0 428s 0 1 1 1 1 0 428s 0 1 0 0 1 0 428s 0 1 1 1 1 0 428s 0 0 0 0 0 0]); 428s fi = logical ([0 0 0 0 0 0 428s 0 1 1 1 1 0 428s 0 1 1 1 1 0 428s 0 1 1 1 1 0 428s 0 0 0 0 0 0]); 428s 428s assert (imfill (cat (3, im, im, im), 8, 'holes'), cat (3, fi, fi, fi)) 428s assert (imfill (cat (3, im, im, im), 'holes'), cat (3, im, im, im)) 428s assert (imfill (cat (3, fi, im, fi), 'holes'), cat (3, fi, fi, fi)) 428s ***** test 428s emp = false (5, 6); 428s im = logical ([0 0 0 0 0 0 428s 0 1 1 1 1 0 428s 0 1 0 1 0 1 428s 0 1 1 1 1 0 428s 0 0 0 0 0 0]); 428s fi = logical ([0 0 0 0 0 0 428s 0 1 1 1 1 0 428s 0 1 1 1 1 1 428s 0 1 1 1 1 0 428s 0 0 0 0 0 0]); 428s fi1 = logical ([0 0 0 0 0 0 428s 0 1 1 1 1 0 428s 0 1 1 1 0 1 428s 0 1 1 1 1 0 428s 0 0 0 0 0 0]); 428s fi2 = logical ([0 0 0 0 0 0 428s 0 1 1 1 1 0 428s 0 1 0 1 1 1 428s 0 1 1 1 1 0 428s 0 0 0 0 0 0]); 428s 428s assert (imfill (cat (3, im, im, im), [3 3 2]), cat (3, fi1, fi1, fi1)) 428s assert (imfill (cat (3, im, im, im), [3 5 2]), cat (3, fi2, fi2, fi2)) 428s assert (imfill (cat (3, im, im, im), [3 3 2; 3 5 2]), cat (3, fi, fi, fi)) 428s assert (imfill (cat (3, emp, im, emp), [3 3 2]), true (5, 6, 3)) 428s 21 tests, 21 passed, 0 known failure, 0 skipped 428s [inst/lab2double.m] 428s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/lab2double.m 428s ***** test 428s l_max_f = 100 + (25500 / 65280); 428s ab_max_f = 127 + (255 / 256); 428s cm = [ 428s -Inf 428s Inf 428s NaN 428s l_max_f 428s ab_max_f 428s -200 428s -129 428s -128 428s -128+(255/65280)*(0.499999) 428s -128+(255/65280)*(0.500001) # should be 0.5, but float rounding error 428s -128+(255/65280)*(0.500002) 428s -127 428s -1 428s 0 428s (100/65280)*(0.499999) 428s (100/65280)*(0.51) 428s (100/65280)*(0.500001) 428s 1 428s 99 428s 100 428s 101 428s 126 428s 127 428s 128 428s 254 428s 255 428s 256 428s 257]; 428s cm = repmat (cm, [1 3]); 428s im2d = reshape (cm, [7 4 3]); 428s imnd = permute (im2d, [1 4 3 2]); 428s 428s cm_uint8 = uint8 ([ 428s 0 0 0 428s 255 255 255 428s 255 255 255 428s 255 228 228 428s 255 255 255 428s 0 0 0 428s 0 0 0 428s 0 0 0 428s 0 0 0 428s 0 0 0 428s 0 0 0 428s 0 1 1 428s 0 127 127 428s 0 128 128 428s 0 128 128 428s 0 128 128 428s 0 128 128 428s 3 129 129 428s 252 227 227 428s 255 228 228 428s 255 229 229 428s 255 254 254 428s 255 255 255 428s 255 255 255 428s 255 255 255 428s 255 255 255 428s 255 255 255 428s 255 255 255]); 428s 428s assert (lab2uint8 (cm), cm_uint8) 428s im2d_uint8 = reshape (cm_uint8, [7 4 3]); 428s assert (lab2uint8 (im2d), im2d_uint8) 428s assert (lab2uint8 (imnd), permute (im2d_uint8, [1 4 3 2])) 428s 428s cm_uint16 = uint16 ([ 428s 0 0 0 428s 65535 65535 65535 428s 65535 65535 65535 428s 65535 58468 58468 428s 65535 65535 65535 428s 0 0 0 428s 0 0 0 428s 0 0 0 428s 0 0 0 428s 0 1 1 428s 0 1 1 428s 0 256 256 428s 0 32512 32512 428s 0 32768 32768 428s 0 32768 32768 428s 1 32768 32768 428s 1 32768 32768 428s 653 33024 33024 428s 64627 58112 58112 428s 65280 58368 58368 428s 65535 58624 58624 428s 65535 65024 65024 428s 65535 65280 65280 428s 65535 65535 65535 428s 65535 65535 65535 428s 65535 65535 65535 428s 65535 65535 65535 428s 65535 65535 65535]); 428s 428s assert (lab2uint16 (cm), cm_uint16) 428s im2d_uint16 = reshape (cm_uint16, [7 4 3]); 428s assert (lab2uint16 (im2d), im2d_uint16) 428s assert (lab2uint16 (imnd), permute (im2d_uint16, [1 4 3 2])) 428s 428s assert (lab2single (cm), single (cm)) 428s assert (lab2single (im2d), single (im2d)) 428s assert (lab2single (imnd), single (imnd)) 428s 1 test, 1 passed, 0 known failure, 0 skipped 428s [inst/imgradient.m] 428s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imgradient.m 428s ***** test 428s A = [0 1 0 428s 1 1 1 428s 0 1 0]; 428s 428s [gMag, gDir] = imgradient (A); 428s assert (gMag,[sqrt(18) 4 sqrt(18); 4 0 4; sqrt(18),4,sqrt(18)]); 428s assert (gDir,[-45 -90 -135; -0 -0 -180; 45 90 135]); 428s 428s ## the following just test if passing gx and gy separately gets 428s ## us the same as the image and method though imgradient 428s [gxSobel, gySobel] = imgradientxy (A, "Sobel"); 428s [gxPrewitt, gyPrewitt] = imgradientxy (A, "Prewitt"); 428s [gxCd, gyCd] = imgradientxy (A, "CentralDifference"); 428s [gxId, gyId] = imgradientxy (A, "IntermediateDifference"); 428s 428s assert (imgradient (A), 428s imgradient (gxSobel, gySobel)); 428s assert (imgradient (A, "Sobel"), 428s imgradient (gxSobel, gySobel)); 428s assert (imgradient (A, "Prewitt"), 428s imgradient(gxPrewitt, gyPrewitt)); 428s assert (imgradient (A, "CentralDifference"), 428s imgradient (gxCd, gyCd)); 428s assert (imgradient (A, "IntermediateDifference"), 428s imgradient (gxId, gyId)); 428s 1 test, 1 passed, 0 known failure, 0 skipped 428s [inst/imgetfile.m] 428s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imgetfile.m 428s ***** assert (1) 428s 1 test, 1 passed, 0 known failure, 0 skipped 428s [inst/imextendedmin.m] 428s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imextendedmin.m 428s ***** shared im0, bw0_h2_out 428s im0 = uint8 ([5 5 5 5 5; 428s 5 4 3 4 5; 428s 5 3 0 3 5; 428s 5 4 3 4 5; 428s 5 5 5 5 5]); 428s bw0_h2_out = false (5); 428s bw0_h2_out(3,3) = true; 428s ***** error imextendedmin () 428s ***** error imextendedmin (im0) 428s ***** error imextendedmin ("hello", 2) 428s ***** error imextendedmin (i.*im0, 2) 428s ***** error imextendedmin (sparse (im0), 2) 428s ***** error imextendedmin (im0, -2) 428s ***** error imextendedmin (im0, 'a') 428s ***** error imextendedmin (im0, ones (2)) 428s ***** error imextendedmin (im0, 2*i) 428s ***** assert (imextendedmin (im0, 2), bw0_h2_out) 428s ***** assert (imextendedmin (double (im0), 2), bw0_h2_out) 428s ***** assert (imextendedmin (im0, 2, 8), bw0_h2_out) 428s ***** assert (imextendedmin (im0, 2, 4), bw0_h2_out) 428s ***** assert (imextendedmin (im0, 2, true (3)), bw0_h2_out) 428s ***** test 428s out = imextendedmin (im0, 2); 428s assert (size (out), size (im0)) 428s assert (class (out), "logical") 428s ***** test 428s out = imextendedmin (single (im0), 2); 428s assert (size (out), size (im0)) 428s assert (class (out), "logical") 428s ***** test 428s out = imextendedmin (uint8 (im0), 2); 428s assert (size (out), size (im0)) 428s assert (class (out), "logical") 428s ***** test 428s out = imextendedmin (uint16 (im0), 2); 428s assert (size (out), size (im0)) 428s assert (class (out), "logical") 428s ***** test 428s im = cat (3, im0, im0, im0, im0); 428s out = imextendedmin (im, 2); 428s assert (size (out), size (im)) 428s ***** test 428s im = 10 .* ones (10); 428s im(2:4, 2:4) = 7; 428s im(6:8, 6:8) = 2; 428s expected_4 = false (10); 428s expected_4(6:8, 6:8) = true; 428s expected_2 = expected_4; 428s expected_2(2:4, 2:4) = true; 428s out = imextendedmin (im, 4); 428s assert (out, expected_4, eps) 428s out = imextendedmin (0.1.*im, 0.4); 428s assert (out, expected_4, eps) 428s out = imextendedmin (im, 2); 428s assert (out, expected_2, eps) 428s ***** test 428s im2 = 10 .* ones (10); 428s im2(2:4, 2:4) = 7; 428s im2(6:9, 6:9)=2; 428s im2(5, 5)=2; 428s im2(6, 7)=10; 428s im2(7, 8)=10; 428s expected_8 = false (10); 428s expected_8(6:9, 6:9) = true; 428s expected_8(5, 5) = true; 428s expected_8(6, 7) = false; 428s expected_8(7, 8) = false; 428s expected_4 = expected_8; 428s expected_4(2:4, 2:4) = true; 428s out2 = imextendedmin (im2, 2); 428s assert (out2, expected_8, eps) 428s out2 = imextendedmin (im2, 2, 4); 428s assert (out2, expected_4, eps) 428s out2 = imextendedmin (im2, 2, 8); 428s assert (out2, expected_8, eps) 428s 21 tests, 21 passed, 0 known failure, 0 skipped 428s [inst/bwareafilt.m] 428s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/bwareafilt.m 428s ***** shared a2d, a3d 428s a2d = [1 0 0 0 0 0 1 0 0 1 428s 1 0 0 1 0 1 0 1 0 1 428s 1 0 1 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 1 0 0 0 0 0 0 0 0 428s 1 1 0 1 1 1 0 0 0 0 428s 1 1 0 1 0 0 0 1 0 0 428s 1 1 0 0 0 0 1 0 1 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 1 1 0 0 1]; 428s 428s a3d = a2d; 428s a3d(:,:,2) = [ 428s 0 0 0 0 0 0 0 0 0 0 428s 1 0 0 1 1 0 0 1 0 0 428s 0 0 0 1 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 1 1 0 0 0 0 428s 1 1 0 1 0 0 0 0 0 0 428s 1 0 0 0 0 0 1 0 0 0 428s 0 1 0 0 0 0 0 0 0 1 428s 1 1 0 0 0 0 1 0 0 0]; 428s 428s a3d(:,:,3) = [ 428s 1 0 0 0 0 0 0 0 0 0 428s 0 1 0 1 1 0 0 1 0 0 428s 0 0 0 1 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 1 1 1 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 1 0 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 1 428s 1 1 0 0 0 0 0 0 0 0]; 428s ***** test 428s f2d = [0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 1 0 0 0 0 0 0 0 0 428s 1 1 0 1 1 1 0 0 0 0 428s 1 1 0 1 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0]; 428s assert (bwareafilt (a2d, 2), logical (f2d)); 428s assert (bwareafilt (a2d, 2, 8), logical (f2d)); 428s assert (bwareafilt (a2d, 2, 4), logical (f2d)); 428s ***** test 428s f2d = [1 0 0 0 0 0 1 0 0 0 428s 1 0 0 0 0 1 0 1 0 0 428s 1 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 1 0 0 0 0 0 0 0 0 428s 1 1 0 1 1 1 0 0 0 0 428s 1 1 0 1 0 0 0 1 0 0 428s 1 1 0 0 0 0 1 0 1 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0]; 428s assert (bwareafilt (a2d, 5), logical (f2d)); 428s assert (bwareafilt (a2d, 5, 8), logical (f2d)); 428s ***** test 428s f2d = [0 0 0 0 0 0 1 0 0 1 428s 0 0 0 1 0 1 0 1 0 1 428s 0 0 1 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 1 0 0 428s 0 0 0 0 0 0 1 0 1 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 1 1 0 0 1]; 428s assert (bwareafilt (a2d, 11, "smallest", 4), logical (f2d)); 428s ***** test 428s f2d = [1 0 0 0 0 0 1 0 0 0 428s 1 0 0 0 0 1 0 1 0 0 428s 1 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 1 1 1 0 0 0 0 428s 0 0 0 1 0 0 0 1 0 0 428s 0 0 0 0 0 0 1 0 1 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0]; 428s assert (bwareafilt (a2d, [3 5]), logical (f2d)); 428s assert (bwareafilt (a2d, [3 5], 8), logical (f2d)); 428s ***** test 428s f2d = [1 0 0 0 0 0 0 0 0 0 428s 1 0 0 0 0 0 0 0 0 0 428s 1 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 1 1 1 0 0 0 0 428s 0 0 0 1 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0]; 428s assert (bwareafilt (a2d, [3 4], 4), logical (f2d)); 428s assert (bwareafilt (a2d, [3 4], [0 1 0; 1 1 1; 0 1 0]), logical (f2d)); 428s ***** test 428s f2d = [1 0 0 0 0 0 1 0 0 1 428s 1 0 0 1 0 1 0 1 0 1 428s 1 0 1 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 1 1 1 0 0 0 0 428s 0 0 0 1 0 0 0 1 0 0 428s 0 0 0 0 0 0 1 0 1 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 1 1 0 0 0]; 428s assert (bwareafilt (a2d, [2 4]), logical (f2d)); 428s assert (bwareafilt (a2d, [2 4], 8), logical (f2d)); 428s assert (bwareafilt (a2d, [2 4], ones (3)), logical (f2d)); 428s ***** test 428s f3d = [0 0 0 0 0 0 1 0 0 0 428s 0 0 0 1 0 1 0 1 0 0 428s 0 0 1 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0]; 428s 428s f3d(:,:,2) = [ 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 1 1 0 0 1 0 0 428s 0 0 0 1 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 0 0 0 0 0 0 0 0 0 428s 0 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0]; 428s 428s f3d(:,:,3) = [ 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 1 1 0 0 1 0 0 428s 0 0 0 1 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 1 0 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0]; 428s assert (bwareafilt (a3d, 2), logical (f3d)); 428s assert (bwareafilt (a3d, 2, 26), logical (f3d)); 428s assert (bwareafilt (a3d, 2, ones (3, 3, 3)), logical (f3d)); 428s ***** test 428s f3d = [0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 1 0 0 0 0 0 0 0 0 428s 1 1 0 1 1 1 0 0 0 0 428s 1 1 0 1 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0]; 428s 428s f3d(:,:,2) = [ 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 1 1 0 0 0 0 428s 1 1 0 1 0 0 0 0 0 0 428s 1 0 0 0 0 0 0 0 0 0 428s 0 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0]; 428s 428s f3d(:,:,3) = [ 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 0 0 0 1 1 1 0 0 0 0 428s 0 0 0 0 0 0 0 0 0 0 428s 1 0 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0 428s 1 1 0 0 0 0 0 0 0 0]; 428s assert (bwareafilt (a3d, 2, 6), logical (f3d)); 428s assert (bwareafilt (a3d, 2, conndef (3, "minimal")), logical (f3d)); 428s 8 tests, 8 passed, 0 known failure, 0 skipped 428s [inst/deconvwnr.m] 428s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/deconvwnr.m 428s ***** shared im0, psf0, im0_out, psf1, im2, out2_0, out2_1, im3 428s im0 = ones (5, 5); 428s psf0 = ones (3, 3); 428s im0_out = 0.11111 .* ones (5, 5); 428s psf1 = [1 0 0; 0 1 0; 0 0 1]; 428s im2 = checkerboard (2, 2, 2); 428s out2_0 = [ 428s -0.4713 -0.2786 0.4229 0.5161 -0.2759 -0.4685 0.5131 0.4199; 428s -0.4713 -0.2786 0.4229 0.5161 -0.2759 -0.4685 0.5131 0.4199; 428s 0.5161 0.4229 -0.2786 -0.4713 0.4199 0.5131 -0.4685 -0.2759; 428s 0.5161 0.4229 -0.2786 -0.4713 0.4199 0.5131 -0.4685 -0.2759; 428s -0.4713 -0.2786 0.4229 0.5161 -0.2759 -0.4685 0.5131 0.4199; 428s -0.4713 -0.2786 0.4229 0.5161 -0.2759 -0.4685 0.5131 0.4199; 428s 0.5161 0.4229 -0.2786 -0.4713 0.4199 0.5131 -0.4685 -0.2759; 428s 0.5161 0.4229 -0.2786 -0.4713 0.4199 0.5131 -0.4685 -0.2759]; 428s out2_1 = [ 428s -0.0000 0.8481 0.4288 -0.4194 0.0000 0.2765 0.1373 -0.1392; 428s 0.5623 -0.0000 -0.4194 0.1429 0.5623 0.0000 -0.1392 0.4231; 428s 0.1429 -0.4194 0 0.5623 0.4231 -0.1392 0 0.5623; 428s -0.4194 0.4288 0.8481 0 -0.1392 0.1373 0.2765 0; 428s -0.0000 0.8481 0.4288 -0.4194 0.0000 0.2765 0.1373 -0.1392; 428s 0.5623 -0.0000 -0.4194 0.1429 0.5623 0.0000 -0.1392 0.4231; 428s 0.1429 -0.4194 0 0.5623 0.4231 -0.1392 0 0.5623; 428s -0.4194 0.4288 0.8481 0 -0.1392 0.1373 0.2765 0]; 428s im3 = rot90 (diag (0.5.*ones (1,8)) + diag (ones(1,7), 1)); 428s ***** error deconvwnr () 428s ***** error deconvwnr (ones (5)) 428s ***** assert (deconvwnr (ones (5), ones (3))) 428s ***** assert (deconvwnr (ones (5), ones (3), 0.7)) 428s ***** assert (deconvwnr (ones (5), ones (3), 0.5 .* ones (5))) 428s ***** assert (deconvwnr (ones (5, 5, 5), ones (3))) 428s ***** error deconvwnr (ones (5), ones (3), -0.7) 428s ***** error 428s deconvwnr (ones (5), ones (7)) 428s ***** error 428s deconvwnr (ones (5, 8, 2), ones (6, 5)) 428s ***** assert (deconvwnr (im0, psf0), im0_out, 1e-5) 428s ***** assert (deconvwnr (im0, single (psf0)), im0_out, 1e-5) 428s ***** assert (class (deconvwnr (im0, psf0)), "double") 428s ***** assert (deconvwnr (single (im0), psf0), single (im0_out), 1e-5) 428s ***** assert (class (deconvwnr (single (im0), psf0)), "single") 428s ***** assert (deconvwnr (im2uint8 (im0), psf0), im2uint8 (im0_out)) 428s ***** assert (class (deconvwnr (im2uint8 (im0), psf0)), "uint8") 428s ***** assert (deconvwnr (im2uint16 (im0), psf0), im2uint16 (im0_out)) 428s ***** assert (class (deconvwnr (im2uint16 (im0), psf0)), "uint16") 428s ***** assert (deconvwnr (im2int16 (im0), psf0), im2int16 (im0_out)) 428s ***** assert (class (deconvwnr (im2int16 (im0), psf0)), "int16") 428s ***** error deconvwnr (true (5), ones (3)) 428s ***** test 428s assert (deconvwnr (im0, psf0, 0.01), im0_out, 1e-4) 428s assert (deconvwnr (im0, psf1, 0.01), 0.333.*ones (5), 1e-4) 428s ***** test 428s im1 = magic (5)./25; 428s out1_0 = [ 428s -0.0820 0.5845 -0.4293 0.2372 -0.0214; 428s 0.6241 -0.5877 0.2768 0.0182 -0.0424; 428s -0.5481 0.3164 0.0578 -0.2009 0.6637; 428s 0.1580 0.0974 -0.1613 0.7033 -0.5085; 428s 0.1370 -0.1217 0.5449 -0.4689 0.1976]; 428s out1_1 = [ 428s -0.2959 -0.1363 0.4038 0.7595 0.1347; 428s -0.0191 0.3269 0.8768 0.0559 -0.3748; 428s 0.2481 0.7979 0.1731 -0.4517 0.0982; 428s 0.7210 0.2904 -0.5305 0.0194 0.3654; 428s 0.2116 -0.4132 -0.0575 0.4826 0.6422]; 428s assert (deconvwnr (im1, psf0, 0.01), out1_0, 1e-4) 428s assert (deconvwnr (im1, psf1, 0.01), out1_1, 1e-4) 428s ***** test 428s assert (deconvwnr (im2, psf0, 0.01), out2_0, 1e-4) 428s assert (deconvwnr (im2, psf1, 0.01), out2_1, 1e-4) 428s ***** test 428s out3_0_x = [ 428s -1.1111 1.0556 -0.4444 -0.1111 0.5556 -0.9444 0.8889 0.0556; 428s 1.0556 -0.7778 0.2222 0.5556 -1.2778 1.2222 0.0556 -0.7778; 428s -0.4444 0.2222 0.2222 -0.9444 1.2222 -0.2778 -0.4444 0.7222; 428s -0.1111 0.5556 -0.9444 0.8889 0.0556 -0.4444 0.3889 -0.4444; 428s 0.5556 -1.2778 1.2222 0.0556 -0.7778 0.7222 -0.4444 0.2222; 428s -0.9444 1.2222 -0.2778 -0.4444 0.7222 -0.7778 0.5556 0.2222; 428s 0.8889 0.0556 -0.4444 0.3889 -0.4444 0.5556 -0.1111 -0.9444; 428s 0.0556 -0.7778 0.7222 -0.4444 0.2222 0.2222 -0.9444 1.2222]; 428s out3_0_01 = [ 428s -0.5064 0.2140 0.1101 -0.0993 0.0297 -0.1942 0.3223 0.0772; 428s 0.2140 -0.0659 0.0375 0.0891 -0.4109 0.4783 0.2202 -0.2860; 428s 0.1101 0.0375 -0.0525 -0.3208 0.5721 0.0034 -0.1743 0.0939; 428s -0.0993 0.0891 -0.3208 0.4624 0.0936 -0.1150 -0.1395 -0.0135; 428s 0.0297 -0.4109 0.5721 0.0936 -0.2566 -0.0027 0.1101 0.1341; 428s -0.1942 0.4783 0.0034 -0.1150 -0.0027 -0.0659 0.2542 -0.0819; 428s 0.3223 0.2202 -0.1743 -0.1395 0.1101 0.2542 -0.3023 -0.3371; 428s 0.0772 -0.2860 0.0939 -0.0135 0.1341 -0.0819 -0.3371 0.6794]; 428s out3_0_00001 = [ 428s -1.1087 1.0520 -0.4419 -0.1112 0.5532 -0.9410 0.8864 0.0557; 428s 1.0520 -0.7746 0.2213 0.5537 -1.2742 1.2190 0.0565 -0.7759; 428s -0.4419 0.2213 0.2211 -0.9418 1.2196 -0.2767 -0.4433 0.7195; 428s -0.1112 0.5537 -0.9418 0.8870 0.0557 -0.4428 0.3864 -0.4425; 428s 0.5532 -1.2742 1.2196 0.0557 -0.7755 0.7188 -0.4419 0.2220; 428s -0.9410 1.2190 -0.2767 -0.4428 0.7188 -0.7746 0.5544 0.2206; 428s 0.8864 0.0565 -0.4433 0.3864 -0.4419 0.5544 -0.1121 -0.9418; 428s 0.0557 -0.7759 0.7195 -0.4425 0.2220 0.2206 -0.9418 1.2201]; 428s out3_0_3 = [ 428s -0.0893 -0.0089 0.0446 -0.0357 -0.0268 0.0268 0.0893 0.0446; 428s -0.0089 0.0223 -0.0089 -0.0357 -0.0089 0.1473 0.1161 0.0179; 428s 0.0446 -0.0089 -0.0357 -0.0089 0.1607 0.0804 -0.0089 -0.0357; 428s -0.0357 -0.0357 -0.0089 0.1652 0.0804 -0.0179 -0.0714 0.0045; 428s -0.0268 -0.0089 0.1607 0.0804 -0.0179 -0.0446 0.0446 -0.0000; 428s 0.0268 0.1473 0.0804 -0.0179 -0.0446 0.0223 0.0268 -0.0000; 428s 0.0893 0.1161 -0.0089 -0.0714 0.0446 0.0268 -0.1071 -0.0446; 428s 0.0446 0.0179 -0.0357 0.0045 0.0000 -0.0000 -0.0446 0.1652]; 428s out3_1_x = [ 428s -0.3333 0.1667 -0.6667 -0.3333 0.3333 0.1667 0.3333 0.1667; 428s 0.1667 -0.3333 -0.3333 0.3333 0.1667 0.3333 0.1667 0.3333; 428s -0.6667 -0.3333 0.6667 0.1667 0.3333 0.1667 0.3333 0.1667; 428s -0.3333 0.3333 0.1667 -0.3333 0.1667 0.3333 0.1667 -0.6667; 428s 0.3333 0.1667 0.3333 0.1667 0.6667 0.1667 -0.6667 -0.3333; 428s 0.1667 0.3333 0.1667 0.3333 0.1667 -0.3333 -0.3333 0.3333; 428s 0.3333 0.1667 0.3333 0.1667 -0.6667 -0.3333 -0.3333 0.1667; 428s 0.1667 0.3333 0.1667 -0.6667 -0.3333 0.3333 0.1667 0.6667]; 428s out3_1_01 = [ 428s -0.1868 0.1548 -0.5994 -0.2997 0.3097 0.1548 0.3097 0.1548; 428s 0.1548 -0.2997 -0.2997 0.3097 0.1548 0.3097 0.1548 0.3097; 428s -0.5994 -0.2997 0.4965 0.1548 0.3097 0.1548 0.3097 0.1548; 428s -0.2997 0.3097 0.1548 -0.1247 0.1548 0.3097 0.1548 -0.5994; 428s 0.3097 0.1548 0.3097 0.1548 0.4965 0.1548 -0.5994 -0.2997; 428s 0.1548 0.3097 0.1548 0.3097 0.1548 -0.2997 -0.2997 0.3097; 428s 0.3097 0.1548 0.3097 0.1548 -0.5994 -0.2997 -0.1868 0.1548; 428s 0.1548 0.3097 0.1548 -0.5994 -0.2997 0.3097 0.1548 0.4343]; 428s out3_1_00001 = [ 428s -0.3331 0.1667 -0.6666 -0.3333 0.3333 0.1667 0.3333 0.1667; 428s 0.1667 -0.3333 -0.3333 0.3333 0.1667 0.3333 0.1667 0.3333; 428s -0.6666 -0.3333 0.6664 0.1667 0.3333 0.1667 0.3333 0.1667; 428s -0.3333 0.3333 0.1667 -0.3330 0.1667 0.3333 0.1667 -0.6666; 428s 0.3333 0.1667 0.3333 0.1667 0.6664 0.1667 -0.6666 -0.3333; 428s 0.1667 0.3333 0.1667 0.3333 0.1667 -0.3333 -0.3333 0.3333; 428s 0.3333 0.1667 0.3333 0.1667 -0.6666 -0.3333 -0.3331 0.1667; 428s 0.1667 0.3333 0.1667 -0.6666 -0.3333 0.3333 0.1667 0.6663]; 428s out3_1_3 = [ 428s -0.0089 0.0625 -0.1250 -0.0625 0.1250 0.0625 0.1250 0.0625; 428s 0.0625 -0.0625 -0.0625 0.1250 0.0625 0.1250 0.0625 0.1250; 428s -0.1250 -0.0625 0.1339 0.0625 0.1250 0.0625 0.1250 0.0625; 428s -0.0625 0.1250 0.0625 0.0982 0.0625 0.1250 0.0625 -0.1250; 428s 0.1250 0.0625 0.1250 0.0625 0.1339 0.0625 -0.1250 -0.0625; 428s 0.0625 0.1250 0.0625 0.1250 0.0625 -0.0625 -0.0625 0.1250; 428s 0.1250 0.0625 0.1250 0.0625 -0.1250 -0.0625 -0.0089 0.0625; 428s 0.0625 0.1250 0.0625 -0.1250 -0.0625 0.1250 0.0625 0.0268]; 428s assert (deconvwnr (im3, psf0), out3_0_x, 1e-4) 428s assert (deconvwnr (im3, psf0, 0.1), out3_0_01, 1e-4) 428s assert (deconvwnr (im3, psf0, 0.0001), out3_0_00001, 1e-4) 428s assert (deconvwnr (im3, psf0, 3), out3_0_3, 1e-4) 428s assert (deconvwnr (im3, psf1), out3_1_x, 1e-4) 428s assert (deconvwnr (im3, psf1, 0.1), out3_1_01, 1e-4) 428s assert (deconvwnr (im3, psf1, 0.0001), out3_1_00001, 1e-4) 428s assert (deconvwnr (im3, psf1, 3), out3_1_3, 1e-4) 429s ***** test 429s im_rgb = cat (3, im2, im3, magic (8)./64); 429s out_rgb_0(:, :, 1) = out2_0; 429s out_rgb_0(:, :, 2) = [ 429s -0.9255 0.7869 -0.2553 -0.1154 0.3801 -0.6906 0.7000 0.0651; 429s 0.7869 -0.5407 0.1534 0.4141 -1.0064 0.9816 0.1222 -0.6335; 429s -0.2553 0.1534 0.1343 -0.7453 1.0211 -0.1936 -0.3586 0.5209; 429s -0.1154 0.4141 -0.7453 0.7468 0.0675 -0.3247 0.2023 -0.2996; 429s 0.3801 -1.0064 1.0211 0.0675 -0.6045 0.4711 -0.2553 0.2032; 429s -0.6906 0.9816 -0.1936 -0.3247 0.4711 -0.5407 0.4692 0.1052; 429s 0.7000 0.1222 -0.3586 0.2023 -0.2553 0.4692 -0.1868 -0.7477; 429s 0.0651 -0.6335 0.5209 -0.2996 0.2032 0.1052 -0.7477 1.0630]; 429s out_rgb_0(:, :, 3) = [ 429s -0.8118 0.8805 0.8341 -0.7963 -0.6343 0.8222 0.7757 -0.6188; 429s 0.5720 -0.4151 -0.3687 0.5565 0.3945 -0.3567 -0.3103 0.3791; 429s 0.2007 -0.0438 0.0026 0.1852 0.0232 0.0146 0.0610 0.0078; 429s -0.6880 0.7568 0.7104 -0.6725 -0.5105 0.6984 0.6520 -0.4951; 429s 0.6079 -0.5392 -0.5856 0.6234 0.7854 -0.5975 -0.6439 0.8008; 429s 0.1051 0.0519 0.0983 0.0896 -0.0724 0.1102 0.1566 -0.0879; 429s -0.2662 0.4231 0.4696 -0.2817 -0.4437 0.4815 0.5279 -0.4592; 429s 0.7317 -0.6629 -0.7093 0.7471 0.9091 -0.7213 -0.7677 0.9246]; 429s out_rgb_1(:, :, 1) = out2_1; 429s out_rgb_1(:, :, 2) = [ 429s -0.3110 0.1654 -0.6593 -0.3297 0.3308 0.1654 0.3308 0.1654; 429s 0.1654 -0.3297 -0.3297 0.3308 0.1654 0.3308 0.1654 0.3308; 429s -0.6593 -0.3297 0.6418 0.1654 0.3308 0.1654 0.3308 0.1654; 429s -0.3297 0.3308 0.1654 -0.3016 0.1654 0.3308 0.1654 -0.6593; 429s 0.3308 0.1654 0.3308 0.1654 0.6418 0.1654 -0.6593 -0.3297; 429s 0.1654 0.3308 0.1654 0.3308 0.1654 -0.3297 -0.3297 0.3308; 429s 0.3308 0.1654 0.3308 0.1654 -0.6593 -0.3297 -0.3110 0.1654; 429s 0.1654 0.3308 0.1654 -0.6593 -0.3297 0.3308 0.1654 0.6323]; 429s out_rgb_1(:, :, 3) = [ 429s -0.0240 0.3338 0.3335 0.0329 0.0344 0.1564 0.3942 0.0913; 429s 0.7871 0.6512 -0.5394 -0.2225 0.7287 0.5905 -0.3619 -0.2809; 429s 0.1333 -0.7196 0.2335 1.0291 0.0749 -0.5421 0.1728 0.9708; 429s -0.2201 0.4109 0.6487 -0.1632 -0.1617 0.4716 0.4713 -0.1048; 429s 0.4430 -0.1331 -0.1334 0.4999 0.5014 -0.3106 -0.0727 0.5582; 429s -0.6326 0.1654 0.8803 0.2633 -0.6910 0.1047 1.0577 0.2049; 429s 0.6191 0.7001 -0.2523 -0.3905 0.5607 0.8776 -0.3130 -0.4489; 429s 0.2469 -0.0561 0.1818 0.3038 0.3052 0.0047 0.0043 0.3621]; 429s assert (deconvwnr (im_rgb, psf0, 0.01), out_rgb_0, 1e-4) 429s assert (deconvwnr (im_rgb, psf1, 0.01), out_rgb_1, 1e-4) 429s ***** test 429s ## Test that psf and nsr can be of class single, but are usually 429s ## internally as doubles. Matlab requires everything all to be 429s ## double so this is Matlab incompatible behaviour by design. 429s nsr = 0.1; 429s psf1_recast = double (single (psf1)); 429s nsr_recast = double (single (0.1)); 429s deconvolved = deconvwnr (im2, psf1_recast, nsr_recast); 429s assert (deconvwnr (im2, single (psf1), single (nsr)), deconvolved) 429s assert (deconvwnr (im2, single (psf1), nsr_recast), deconvolved) 429s assert (deconvwnr (im2, psf1_recast, single (nsr)), deconvolved) 429s ***** demo 429s I = phantom (); 429s figure, imshow (I); 429s title ("Original image"); 429s psf = fspecial ("motion", 30, 15); 429s blurred = imfilter (I, psf, "conv"); 429s figure, imshow (blurred); 429s title ("Image with added motion blur"); 429s var_noise = 0.00005; 429s blurred_noisy = imnoise (blurred, "gaussian", 0, var_noise); 429s figure, imshow (blurred_noisy); 429s title ("Image with motion blur and added Gaussian noise"); 429s estimated_nsr = var_noise / (var(blurred_noisy(:)) - var_noise); 429s J = deconvwnr (blurred_noisy, psf, estimated_nsr); 429s figure, imshow (J) 429s title ({"restored image after Wiener deconvolution", 429s "with known PSF and estimated NSR"}); 429s 27 tests, 27 passed, 0 known failure, 0 skipped 429s [inst/axes2pix.m] 429s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/axes2pix.m 429s ***** error id=Octave:invalid-fun-call axes2pix () 429s ***** error id=Octave:invalid-fun-call axes2pix (42) 429s ***** error id=Octave:invalid-fun-call axes2pix (42, [1, 2]) 429s ***** error id=Octave:invalid-input-arg axes2pix ([42, 43], [1, 2], [1, 2, 3]) 429s ***** error id=Octave:invalid-input-arg axes2pix (42, [1, 2; 3, 4], [1, 2, 3]) 429s ***** assert (axes2pix (42, [1 42], []), []) 429s ***** assert (axes2pix (240, [1, 240], 30), 30) 429s ***** assert (axes2pix (291, [1, 291], 30), 30) 429s ***** assert (axes2pix (240, [400.5, 520], 450), 100) 429s ***** assert (axes2pix (291, [-19, 271], 90), 110) 429s ***** assert (axes2pix (1, [1 1], [0, 1, 2, 3, 4]), [0, 1, 2, 3, 4]) 429s ***** assert (axes2pix (5, [1 1], [0, 1, 2, 3, 4]), [0, 1, 2, 3, 4]) 429s ***** assert (axes2pix (0, [1 1], [0, 1, 2, 3, 4]), [0, 1, 2, 3, 4]) 429s ***** assert (axes2pix (5, [5 1], [1, 2, 3, 4, 5]), [5, 4, 3, 2, 1]) 429s ***** assert (axes2pix (5, [3 -1], [1, 2, 3, 4, 5]), [3, 2, 1, 0, -1]) 429s ***** assert (axes2pix (25, [5 1], [1, 2, 3, 4, 5]), [25, 19, 13, 7, 1]) 429s ***** assert (axes2pix (1, [1 5], [1, 2, 3, 4, 5]), [1, 2, 3, 4, 5]) 429s ***** assert (axes2pix (1, [5 1], [-1, 0, 1, 2.5]), [-5, -4, -3, -1.5]) 429s ***** assert (axes2pix (1, [-10 -15], [-1, 0, 1.5]), [10, 11, 12.5]) 429s ***** assert (axes2pix (5, [5; 1], [1, 2, 3, 4, 5]), [5, 4, 3, 2, 1]) 429s ***** assert (axes2pix (5, [5; 1], [1; 2; 3; 4; 5]), [5; 4; 3; 2; 1]) 429s 21 tests, 21 passed, 0 known failure, 0 skipped 429s [inst/cp2tform.m] 429s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/cp2tform.m 429s ***** function [crw, cap] = coords (npt = 1000, scale = 2, dtheta = pi/3, 429s dx = 2, dy = -6, sig2noise = 1e32) 429s theta = (rand(npt, 1)*2-1)*2*pi; 429s R = rand(npt,1); 429s y = R.*sin(theta); 429s x = R.*cos(theta); 429s crw = [y x]; 429s 429s thetap = theta + dtheta; 429s Rap = R * scale; 429s 429s yap = Rap.*sin(thetap); 429s yap = yap + dy; 429s yap = yap + rand (size (yap)) * norm (yap) / sig2noise; 429s 429s xap = Rap.*cos(thetap); 429s xap = xap + dx; 429s xap = xap + rand (size (xap)) * norm (xap) / sig2noise; 429s cap = [yap xap]; 429s ***** endfunction 429s ***** test 429s npt = 100000; 429s [crw, cap] = coords (npt); 429s ttype = 'projective'; 429s T = cp2tform (crw, cap, ttype); 429s crw2 = tforminv (T, cap); 429s finalerr = norm (crw - crw2)/npt; 429s assert (finalerr < 2*eps, "norm = %3.2e ( > 2*eps)", finalerr) 429s ***** test 429s npt = 100000; 429s [crw, cap] = coords (npt); 429s ttype = 'affine'; 429s T = cp2tform (crw, cap, ttype); 429s crw2 = tforminv (T, cap); 429s finalerr = norm (crw - crw2)/npt; 429s assert (finalerr < 2*eps, "norm = %3.2e ( > 2*eps)", finalerr) 429s ***** xtest 429s npt = 100000; 429s [crw, cap] = coords (npt); 429s ttype = 'nonreflective similarity'; 429s T = cp2tform (crw, cap, ttype); 429s crw2 = tforminv (T, cap); 429s finalerr = norm (crw - crw2)/npt; 429s assert (finalerr < 3*eps, "norm = %3.2e ( > 3*eps)", finalerr) 429s ***** test 429s npt = 100000; 429s [crw, cap] = coords (npt); 429s cap(:,2) *= -1; % reflection around y axis 429s ttype = 'similarity'; 429s T = cp2tform (crw, cap, ttype); 429s crw2 = tforminv (T, cap); 429s finalerr = norm (crw - crw2)/npt; 429s assert (finalerr < 3*eps, "norm = %3.2e ( > 3*eps)", finalerr) 429s ***** xtest 429s npt = 100000; 429s [crw, cap] = coords (npt); 429s ttype = 'polynomial'; 429s ord = 2; 429s T = cp2tform (crw, cap, ttype, ord); 429s crw2 = tforminv (T, cap); 429s finalerr = norm (crw - crw2)/npt; 429s assert (finalerr < eps, "norm = %3.2e ( > eps)", finalerr) 429s ***** xtest 429s npt = 100000; 429s [crw, cap] = coords (npt); 429s ttype = 'polynomial'; 429s ord = 3; 429s T = cp2tform (crw, cap, ttype, ord); 429s crw2 = tforminv (T, cap); 429s finalerr = norm (crw - crw2)/npt; 429s assert (finalerr < eps, "norm = %3.2e ( > eps)", finalerr) 429s ***** xtest 429s npt = 100000; 429s [crw, cap] = coords (npt); 429s ttype = 'polynomial'; 429s ord = 4; 429s T = cp2tform (crw, cap, ttype, ord); 429s crw2 = tforminv (T, cap); 429s finalerr = norm (crw - crw2)/npt; 429s assert (finalerr < 6*eps, "norm = %3.2e ( > 6*eps)", finalerr) 429s 7 tests, 7 passed, 0 known failure, 0 skipped 429s [inst/im2col.m] 429s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/im2col.m 429s ***** demo 429s ## Divide A using distinct blocks and then reverse the operation 429s A = [ 1:10 429s 11:20 429s 21:30 429s 31:40]; 429s B = im2col (A, [2 5], "distinct") 429s C = col2im (B, [2 5], [4 10], "distinct") 429s ***** test 429s a = rand (10); 429s assert (im2col (a, [5 5]), im2col (a, [5 5], "sliding")) 429s ***** test 429s a = rand (10); 429s assert (im2col (a, [5 5]), im2col (a, "indexed", [5 5])) 429s ***** error im2col (rand (20), [2 5], 10) 429s ***** error im2col (rand (20), [2 5], "wrong_block_type") 429s ***** error im2col (rand (10), [5 5], "sliding", 5) 429s ***** error im2col (rand (10), "indexed", [5 5], "sliding", 5) 429s ***** shared B, A, Bs, As, Ap, Bp0, Bp1, Bp0_3s 429s v = [1:10]'; 429s r = reshape (v, 2, 5); 429s B = [v v+20 v+40 v+10 v+30 v+50]; 429s A = [r r+10; r+20 r+30; r+40 r+50]; 429s As = [ 1 2 3 4 5 429s 6 7 8 9 10 429s 11 12 13 14 15]; 429s b1 = As(1:2, 1:4)(:); 429s b2 = As(2:3, 1:4)(:); 429s b3 = As(1:2, 2:5)(:); 429s b4 = As(2:3, 2:5)(:); 429s Bs = [b1, b2, b3, b4]; 429s Ap = A(:, 1:9); 429s Bp1 = Bp0 = B; 429s Bp0(9:10, 4:6) = 0; 429s Bp1(9:10, 4:6) = 1; 429s Bp0_3s = Bp0; 429s Bp0_3s(11:30, :) = 0; 429s ***** assert (im2col (A, [2 5], "distinct"), B); 429s ***** assert (im2col (Ap, [2 5], "distinct"), Bp0); 429s ***** assert (im2col (Ap, [2 5 3], "distinct"), Bp0_3s); 429s ***** assert (im2col (Ap, "indexed", [2 5], "distinct"), Bp1); 429s ***** assert (im2col (uint8 (Ap), "indexed", [2 5], "distinct"), uint8 (Bp0)); 429s ***** assert (im2col (uint16 (Ap), "indexed", [2 5], "distinct"), uint16 (Bp0)); 429s ***** assert (im2col (int16 (Ap), "indexed", [2 5], "distinct"), int16 (Bp1)); 429s ***** assert (im2col (uint32 (Ap), "indexed", [2 5], "distinct"), uint32 (Bp1)); 429s ***** assert (im2col (uint8 (A), [2 5], "distinct"), uint8 (B)); 429s ***** assert (im2col (single (A), [2 5], "distinct"), single (B)); 429s ***** assert (im2col (logical (A), [2 5], "distinct"), logical (B)); 429s ***** assert (im2col (uint8 (As), [2 4], "sliding"), uint8 (Bs)); 429s ***** assert (im2col (single (As), [2 4], "sliding"), single (Bs)); 429s ***** assert (im2col (logical (As), [2 4], "sliding"), logical (Bs)); 429s ***** assert (im2col (As, [2 4], "sliding"), Bs); 429s ***** assert (im2col (As, [3 5], "sliding"), As(:)); 429s ***** test 429s A = randi (9, 10, 9, 5); 429s ***** assert (convn (A, ones (3, 3, 3), "valid"), 429s reshape (sum (im2col (A, [3 3 3])), [8 7 3])); 429s 429s A = randi (9, 10, 9, 5, 7); 429s ***** assert (convn (A, ones (3, 3, 3), "valid"), 429s reshape (sum (im2col (A, [3 3 3])), [8 7 3 7])); 429s ***** assert (convn (A, ones (3, 4, 3), "valid"), 429s reshape (sum (im2col (A, [3 4 3])), [8 6 3 7])); 429s ***** assert (convn (A, ones (3, 5, 3, 2), "valid"), 429s reshape (sum (im2col (A, [3 5 3 2])), [8 5 3 6])); 429s ***** assert (im2col (1:8, [2 1]), zeros (2, 0)) 429s 28 tests, 28 passed, 0 known failure, 0 skipped 429s [inst/qtsetblk.m] 429s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/qtsetblk.m 429s ***** demo 429s J=qtsetblk(eye(4),qtdecomp(eye(4)),2,ones(2,2,2)) 429s % Sets upper-right and lower-left blocks of 2*2 zeros to ones 429s ***** shared A, S 429s A=[ 1, 4, 2, 5,54,55,61,62; 429s 3, 6, 3, 1,58,53,67,65; 429s 3, 6, 3, 1,58,53,67,65; 429s 3, 6, 3, 1,58,53,67,65; 429s 23,42,42,42,99,99,99,99; 429s 27,42,42,42,99,99,99,99; 429s 23,22,26,25,99,99,99,99; 429s 22,22,24,22,99,99,99,99]; 429s S = qtdecomp (A, 10); 430s ***** test 430s R=A; 430s vals=zeros(4,4,2); 430s vals(:,:,1)=reshape([1:16],4,4); 430s vals(:,:,2)=reshape([21:36],4,4); 430s R(1:4,1:4)=reshape([1:16],4,4); 430s R(5:8,5:8)=reshape([21:36],4,4); 430s assert(qtsetblk(A,S,4,vals),R); 430s ***** test 430s R=A; 430s R(1:4,5:8)=1; 430s R(7:8,1:4)=1; 430s R(5:6,3:4)=1; 430s assert(qtsetblk(A,S,2,ones(2,2,7)),R); 430s ***** test 430s R=A; 430s R(5:6,1:2)=10; 430s assert(qtsetblk(A,S,1,ones(1,1,4)*10),R); 430s 3 tests, 3 passed, 0 known failure, 0 skipped 430s [inst/xyz2rgb.m] 430s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/xyz2rgb.m 430s ***** assert (xyz2rgb ([0, 0, 0]), [0 0 0], 1e-3) 430s ***** assert (xyz2rgb ([0.4125, 0.2127, 0.0193]), [1 0 0], 1e-3) 430s ***** assert (xyz2rgb ([0.7700, 0.9278, 0.1385]), [1 1 0], 1e-3) 430s ***** assert (xyz2rgb ([0.3576, 0.7152, 0.1192]), [0 1 0], 1e-3) 430s ***** assert (xyz2rgb ([0.5380, 0.7873, 1.0694]), [0 1 1], 1e-3) 430s ***** assert (xyz2rgb ([0.1804, 0.07217, 0.9502]), [0 0 1], 1e-3) 430s ***** assert (xyz2rgb ([0.5929, 0.28484, 0.9696]), [1 0 1], 1e-3) 430s ***** assert (xyz2rgb ([0.9505, 1.0000, 1.0888]), [1 1 1], 1e-3) 430s ***** assert (xyz2rgb ([0.2034, 0.2140, 0.2330]), [0.5 0.5 0.5], 1e-3) 430s ***** assert (xyz2rgb ([0.2155, 0.1111, 0.0101]), [0.75 0 0], 1e-3) 430s ***** assert (xyz2rgb ([0.0883, 0.0455, 0.0041]), [0.5 0 0], 1e-3) 430s ***** assert (xyz2rgb ([0.0210, 0.0108, 0.0010]), [0.25 0 0], 1e-3) 430s ***** assert (xyz2rgb ([0.5276, 0.3812, 0.2482]), [1 0.5 0.5], 1e-3) 430s ***** assert (xyz2rgb ([1.5 1 1]), [1.5712, 0.7109 0.9717], 1e-3) 430s ***** test 430s xyz_map = rand (64, 3); 430s assert (rgb2xyz (xyz2rgb (xyz_map)), xyz_map, 3e-4); 430s ***** test 430s xyz_img = rand (64, 64, 3); 430s assert (rgb2xyz (xyz2rgb (xyz_img)), xyz_img, 3e-4); 430s ***** assert (xyz2rgb (sparse ([0 0 0])), [0 0 0], 1e-3) 430s ***** assert (class (xyz2rgb (single([0.5 0.5 0.5]))), 'single') 430s ***** error xyz2rgb () 430s ***** error xyz2rgb (1,2) 430s ***** error xyz2rgb ({1}) 430s ***** error xyz2rgb (ones (2,2)) 430s ***** test 430s xyz = rand (16, 16, 3, 5); 430s rgb = zeros (size (xyz)); 430s for i = 1:5 430s rgb(:,:,:,i) = xyz2rgb (xyz(:,:,:,i)); 430s endfor 430s assert (xyz2rgb (xyz), rgb) 430s 23 tests, 23 passed, 0 known failure, 0 skipped 430s [inst/immultiply.m] 430s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/immultiply.m 430s ***** assert (immultiply (uint8 ([255 50]), uint16 ([300 50])), uint8 ([255 255])); # default to first class and truncate 430s ***** assert (immultiply (uint8 ([250 50]), uint16 ([ 3 4]), "uint32"), uint32 ([750 200])); # defining output class works (not in matlab?) 430s ***** assert (immultiply (uint8 ([255 50]), 4), uint8 ([255 200])); # works multiplying by a scalar 430s ***** assert (immultiply (logical ([ 1 0]), uint16 ([300 50])), uint16 ([300 0])); # output class defaults to whatever input is not logical 430s ***** assert (immultiply (logical ([ 1 0]), logical ([ 1 1])), double ([ 1 0])); # tested on matlab for compatibility 430s 5 tests, 5 passed, 0 known failure, 0 skipped 430s [inst/im2bw.m] 430s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/im2bw.m 430s ***** assert(im2bw ([0 0.4 0.5 0.6 1], 0.5), logical([0 0 0 1 1])); # basic usage 430s ***** assert(im2bw (uint8 ([0 100 255]), 0.5), logical([0 0 1])); # with a uint8 input 430s ***** warning bw = im2bw (logical ([0 1 0])); 430s ***** warning bw = im2bw (logical ([0 1 0]), 1); 430s ***** test 430s warning ("off", "all", "local"); 430s assert (im2bw (logical ([0 1 0])), logical ([0 1 0])) 430s assert (im2bw (logical ([0 1 0]), 0), logical ([0 1 0])) 430s assert (im2bw (logical ([0 1 0]), 1), logical ([0 1 0])) 430s ***** assert (nnz (im2bw (uint8 ([0:255]), 0.9)), 26) 430s ***** test 430s img = uint8 ([0:255]); 430s s = 0; 430s for i=0:.1:1 430s s += nnz (im2bw (img, i)); 430s endfor 430s assert (s, 1405) 430s ***** assert (nnz (im2bw (int16 ([-128:127]), 0.499)), 194) 430s ***** assert (nnz (im2bw (int16 ([-128:127]), 0.500)), 128) 430s ***** assert (nnz (im2bw (int16 ([-128:127]), 0.501)), 62) 430s ***** test 430s img = uint16 ([0:intmax("uint16")]); 430s s = 0; 430s for i=0:.1:1 430s s += nnz (im2bw (img, i)); 430s endfor 430s assert (s, 360445) 430s ***** test 430s img = int16 ([intmin("int16"):intmax("int16")]); 430s s = 0; 430s for i=0:.1:1 430s s += nnz (im2bw (img, i)); 430s endfor 430s assert (s, 360445) 430s ***** test 430s im = [((randn(10)/10)+.3) ((randn(10)/10)+.7)]; 430s assert (im2bw (im, "Otsu"), im2bw (im, graythresh (im, "Otsu"))) 430s assert (im2bw (im, "moments"), im2bw (im, graythresh (im, "moments"))) 430s ***** test 430s im = [((randn(10)/10)+.3) ((randn(10)/10)+.7)]; 430s im = reshape (im, [10 10 1 2]); 430s assert (im2bw (im, "Otsu"), im2bw (im, graythresh (im, "Otsu"))) 430s assert (im2bw (im, "moments"), im2bw (im, graythresh (im, "moments"))) 430s 14 tests, 14 passed, 0 known failure, 0 skipped 430s [inst/nlfilter.m] 430s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/nlfilter.m 430s ***** demo 430s ## creates a "wide" diagonal (although it can be performed more 430s ## efficiently with "imdilate (A, true (3))") 430s nlfilter (eye (10), [3 3], @(x) any (x(:) > 0)) 430s ***** assert (nlfilter (eye (4), [2 3], @(x) sum (x(:))), 430s [2 2 1 0 430s 1 2 2 1 430s 0 1 2 2 430s 0 0 1 1]); 430s ***** assert (nlfilter (eye (4), "indexed", [2 3], @(x) sum (x(:))), 430s [4 2 1 2 430s 3 2 2 3 430s 2 1 2 4 430s 4 3 4 5]); 430s ***** assert (nlfilter (eye (4), "indexed", [2 3], @(x, y) sum (x(:)) == y, 2), 430s logical ([0 1 0 1 430s 0 1 1 0 430s 1 0 1 0 430s 0 0 0 0])); 430s ***** assert (nlfilter (uint8 (eye (4)), "indexed", [2 3], @(x) sum (x(:))), 430s [2 2 1 0 430s 1 2 2 1 430s 0 1 2 2 430s 0 0 1 1]); 430s ***** assert (nlfilter (int16 (eye (4)), "indexed", [2 3], @(x) sum (x(:))), 430s [4 2 1 2 430s 3 2 2 3 430s 2 1 2 4 430s 4 3 4 5]); 430s ***** assert (nlfilter (uint8 (eye (4)), "indexed", [2 3], @(x) int8 (sum (x(:)))), 430s int8 ([2 2 1 0 430s 1 2 2 1 430s 0 1 2 2 430s 0 0 1 1])); 430s ***** test 430s ## Effect of out of border elements. 430s expected = [ 430s 0.5 6.0 6.0 0.5 0 430s 5.5 10.5 13.5 10.5 4.0 430s 6.5 12.5 13.5 13.5 1.5 430s 10.5 12.5 15.5 11.0 1.0 430s 5.0 10.5 6.0 1.0 0 430s ]; 430s assert (nlfilter (magic (5), [3 4], @(x) median (x(:))), expected) 430s ***** test 430s ## The center pixel of a sliding window when its length is even 430s ## sized is ceil ((size (NHOOD) +1) /2) 430s expected = [ 430s 24 24 24 16 16 430s 24 24 24 22 22 430s 23 23 22 22 22 430s 25 25 25 25 22 430s 25 25 25 25 21 430s ]; 430s assert (nlfilter (magic (5), [3 4], @(x) max (x(:))), expected) 430s ***** function dilated = imdilate_like_nlfilter (im, nhood) 430s even_nhood_dims = find (mod (size (nhood), 2) == 0); 430s for i = 1:even_nhood_dims 430s im = flip (im, i); 430s endfor 430s dilated = imdilate (im, nhood); 430s for i = 1:even_nhood_dims 430s dilated = flip (dilated, i); 430s endfor 430s ***** endfunction 430s ***** test 430s a = randi (65535, 20, 20, 20, "uint16"); 430s ## extra dimensions on matrix only 430s assert (nlfilter (a, [5 5], @(x) max(x(:))), imdilate (a, ones (5))) 430s ## extra dimensions on both matrix and block 430s assert (nlfilter (a, [5 5 5], @(x) max(x(:))), imdilate (a, ones ([5 5 5]))) 430s ## extra dimensions and padding 430s assert (nlfilter (a, [3 7], @(x) max(x(:))), imdilate (a, ones ([3 7]))) 430s assert (nlfilter (a, [3 7 3], @(x) max(x(:))), imdilate (a, ones ([3 7 3]))) 430s ***** test 430s a = randi (65535, 15, 15, 4, 8, 3, "uint16"); 430s assert (nlfilter (a, [3 4 7 5], @(x) max(x(:))), 430s imdilate_like_nlfilter (a, ones ([3 4 7 5]))) 431s ***** test 431s a = randi (65535, 15, 15, 4, 3, 8, "uint16"); 431s ord = ordfiltn (a, 3, ones ([3 7 3 1 5])); 431s assert (nlfilter (a, [3 7 3 1 5], @(x) sort (x(:))(3)), ord) 431s assert (nlfilter (a, [3 7 3 1 5], @(x, y) sort (x(:))(y), 3), ord) 433s 11 tests, 11 passed, 0 known failure, 0 skipped 433s [inst/@imref2d/contains.m] 433s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@imref2d/contains.m 433s ***** error id=Octave:invalid-fun-call contains (imref2d) 433s ***** error id=Octave:invalid-fun-call contains (imref2d, 1) 433s ***** error id=Octave:invalid-fun-call contains (imref2d, 1, 2, 3) 433s ***** error id=Octave:invalid-input-arg contains (imref2d, 1, [2, 3]) 433s ***** error id=Octave:invalid-input-arg contains (imref2d, [1, 2], 3) 433s ***** error id=Octave:expected-real contains (imref2d, 0, j) 433s ***** error id=Octave:expected-real contains (imref2d, j, 0) 433s ***** assert (contains (imref2d, [], []), logical( zeros (0, 0))) 433s ***** assert (contains (imref2d, [1, 2; 3, 4], [5, -6; 7, 8]), logical (zeros (2, 2))) 433s ***** test 433s r = imref2d ([256, 256]); 433s assert (contains(r, [5, 8, 8], [5, 10, 257]), logical([1, 1, 0])) 433s 10 tests, 10 passed, 0 known failure, 0 skipped 433s [inst/@imref2d/imref2d.m] 433s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@imref2d/imref2d.m 433s ***** error id=Octave:invalid-fun-call imref2d (1, 2, 3, 4) 433s ***** error id=Octave:invalid-input-arg imref2d (42) 433s ***** error id=Octave:invalid-input-arg imref2d ([42]) 433s ***** error id=Octave:expected-integer imref2d ([4.2, 42]) 433s ***** error id=Octave:expected-positive imref2d ([0, 0]) 433s ***** error id=Octave:expected-positive imref2d ([-4, 2]) 433s ***** error id=Octave:expected-positive imref2d ([4, 2], 0, 2) 433s ***** error id=Octave:expected-positive imref2d ([4, 2], 2, 0) 433s ***** error id=Octave:expected-real imref2d ([4, 2], j, 2) 433s ***** error id=Octave:expected-real imref2d ([4, 2], 2, j) 433s ***** error id=Octave:expected-real imref2d ([4, 2], [j, 2], [3, 4]) 433s ***** error id=Octave:expected-real imref2d ([4, 2], [1, 2], [j, 4]) 433s ***** error id=Octave:expected-vector imref2d ([4, 2], [], []) 433s ***** error id=Octave:expected-vector imref2d ([4, 2], [], [1]) 433s ***** error id=Octave:expected-scalar imref2d ([4, 2], [1], []) 433s ***** error id=Octave:incorrect-size imref2d ([4, 2], [1, 2], [0]) 433s ***** error id=Octave:incorrect-size imref2d ([4, 2], [1, 2], [1, 2, 3]) 433s ***** error id=Octave:incorrect-size imref2d ([4, 2], [1, 2, 3], [1, 2]) 433s ***** error id=Octave:incorrect-size imref2d ([4, 2], [1; 2], [1, 2]) 433s ***** error id=Octave:incorrect-size imref2d ([4, 2], [1, 2], [1; 2]) 433s ***** error id=Octave:invalid-indexing imref2d().InvalidProperty 433s ***** error id=Octave:expected-increasing imref2d ([100 200], [1.5 0.5], [2.5 3.5]) 433s ***** error id=Octave:expected-increasing imref2d ([100 200], [1.5 2.5], [2.5 1.5]) 433s ***** test 433s r = imref2d; 433s assert (r.XWorldLimits, [0.5, 2.5]) 433s assert (r.YWorldLimits, [0.5, 2.5]) 433s assert (r.ImageSize, [2, 2]) 433s assert (r.PixelExtentInWorldX, 1) 433s assert (r.PixelExtentInWorldY, 1) 433s assert (r.ImageExtentInWorldX, 2) 433s assert (r.ImageExtentInWorldY, 2) 433s assert (r.XIntrinsicLimits, [0.5, 2.5]) 433s assert (r.YIntrinsicLimits, [0.5, 2.5]) 433s ***** test 433s r = imref2d ([100, 200]); 433s assert (r.XWorldLimits, [0.5, 200.5]) 433s assert (r.YWorldLimits, [0.5, 100.5]) 433s assert (r.ImageSize, [100, 200]) 433s assert (r.PixelExtentInWorldX, 1) 433s assert (r.PixelExtentInWorldY, 1) 433s assert (r.ImageExtentInWorldX, 200) 433s assert (r.ImageExtentInWorldY, 100) 433s assert (r.XIntrinsicLimits, [0.5, 200.5]) 433s assert (r.YIntrinsicLimits, [0.5, 100.5]) 433s ***** test 433s xWorldLimits = [2, 5]; 433s yWorldLimits = [3, 6]; 433s r = imref2d ([291, 240], xWorldLimits, yWorldLimits); 433s assert (r.XWorldLimits, [2, 5]) 433s assert (r.YWorldLimits, [3, 6]) 433s assert (r.ImageSize, [291, 240]) 433s assert (r.PixelExtentInWorldX, 0.0125) 433s assert (r.PixelExtentInWorldY, 0.0103, 1e-3) 433s assert (r.ImageExtentInWorldX, 3) 433s assert (r.ImageExtentInWorldY, 3) 433s assert (r.XIntrinsicLimits, [0.5, 240.5]) 433s assert (r.YIntrinsicLimits, [0.5, 291.5]) 433s ***** test 433s pixelExtentInWorldX = 0.3125; 433s pixelExtentInWorldY = 0.3125; 433s r = imref2d ([512, 512], pixelExtentInWorldX, pixelExtentInWorldY); 433s assert (r.XWorldLimits, [0.15625, 160.1562], 1e-4) 433s assert (r.YWorldLimits, [0.15625, 160.1562], 1e-4) 433s assert (r.ImageSize, [512, 512]) 433s assert (r.PixelExtentInWorldX, 0.3125) 433s assert (r.PixelExtentInWorldY, 0.3125) 433s assert (r.ImageExtentInWorldX, 160) 433s assert (r.ImageExtentInWorldY, 160) 433s assert (r.XIntrinsicLimits, [0.5, 512.5]) 433s assert (r.YIntrinsicLimits, [0.5, 512.5]) 433s ***** test 433s pixelExtentInWorldX = 0.1; 433s pixelExtentInWorldY = 0.4; 433s r = imref2d ([100, 200], pixelExtentInWorldX, pixelExtentInWorldY); 433s assert (r.XWorldLimits, [0.05, 20.05], 1e-4) 433s assert (r.YWorldLimits, [0.2, 40.2], 1e-4) 433s assert (r.ImageSize, [100, 200]) 433s assert (r.PixelExtentInWorldX, 0.1) 433s assert (r.PixelExtentInWorldY, 0.4) 433s assert (r.ImageExtentInWorldX, 20) 433s assert (r.ImageExtentInWorldY, 40) 433s assert (r.XIntrinsicLimits, [0.5, 200.5]) 433s assert (r.YIntrinsicLimits, [0.5, 100.5]) 433s ***** test 433s r = imref2d; 433s assert (r.XWorldLimits, [0.5, 2.5]) 433s assert (r.YWorldLimits, [0.5, 2.5]) 433s assert (r.ImageSize, [2, 2]) 433s assert (r.PixelExtentInWorldX, 1) 433s assert (r.PixelExtentInWorldY, 1) 433s assert (r.ImageExtentInWorldX, 2) 433s assert (r.ImageExtentInWorldY, 2) 433s assert (r.XIntrinsicLimits, [0.5, 2.5]) 433s assert (r.YIntrinsicLimits, [0.5, 2.5]) 433s r.ImageSize = [800, 600]; 433s assert (r.XWorldLimits, [0.5, 2.5]) 433s assert (r.YWorldLimits, [0.5, 2.5]) 433s assert (r.ImageSize, [800, 600]) 433s assert (r.PixelExtentInWorldX, 0.003333, 1e-5) 433s assert (r.PixelExtentInWorldY, 0.0025) 433s assert (r.ImageExtentInWorldX, 2) 433s assert (r.ImageExtentInWorldY, 2) 433s assert (r.XIntrinsicLimits, [0.5, 600.5]) 433s assert (r.YIntrinsicLimits, [0.5, 800.5]) 433s ***** test 433s r = imref2d; 433s assert (r.XWorldLimits, [0.5, 2.5]) 433s assert (r.YWorldLimits, [0.5, 2.5]) 433s assert (r.ImageSize, [2, 2]) 433s assert (r.PixelExtentInWorldX, 1) 433s assert (r.PixelExtentInWorldY, 1) 433s assert (r.ImageExtentInWorldX, 2) 433s assert (r.ImageExtentInWorldY, 2) 433s assert (r.XIntrinsicLimits, [0.5, 2.5]) 433s assert (r.YIntrinsicLimits, [0.5, 2.5]) 433s r.XWorldLimits = [-60, 13.33]; 433s r.YWorldLimits = [-900.8, -560.26]; 433s assert (r.XWorldLimits, [-60, 13.33]) 433s assert (r.YWorldLimits, [-900.8, -560.26]) 433s assert (r.PixelExtentInWorldX, 36.6650) 433s assert (r.PixelExtentInWorldY, 170.27, 1e-5) 433s assert (r.ImageExtentInWorldX, 73.33, 1e-5) 433s assert (r.ImageExtentInWorldY, 340.54, 1e-5) 433s assert (r.XIntrinsicLimits, [0.5, 2.5]) 433s assert (r.YIntrinsicLimits, [0.5, 2.5]) 433s ***** test 433s r = imref2d; 433s fail ("r.XWorldLimits = []", "") 433s fail ("r.XWorldLimits = [1]", "") 433s fail ("r.XWorldLimits = [j]", "") 433s fail ("r.XWorldLimits = [1; 2]", "") 433s fail ("r.YWorldLimits = []", "") 433s fail ("r.YWorldLimits = [1]", "") 433s fail ("r.YWorldLimits = [j]", "") 433s fail ("r.YWorldLimits = [1; 2]", "") 433s ***** assert (imref2d ([4, 2, 3]).ImageSize, [4, 2]); 433s 32 tests, 32 passed, 0 known failure, 0 skipped 433s [inst/@imref2d/worldToSubscript.m] 433s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@imref2d/worldToSubscript.m 433s ***** error id=Octave:invalid-fun-call worldToSubscript (imref2d) 433s ***** error id=Octave:invalid-fun-call worldToSubscript (imref2d, 1, 2, 3) 433s ***** error id=Octave:expected-real worldToSubscript (imref2d, 1j, 2) 433s ***** error id=Octave:expected-real worldToSubscript (imref2d, 1, 2j) 433s ***** error id=Octave:invalid-input-arg worldToSubscript (imref2d, [1, 2], 3) 433s ***** error id=Octave:invalid-input-arg worldToSubscript (imref2d, [1], [2, 3]) 433s ***** test 433s r = imref2d ([512, 512], 0.3125, 0.3125); 433s xW = [38.44, 39.44, 38.44, -0.2]; 433s yW = [68.75, 68.75, 75.75, -1]; 433s [rS, cS] = worldToSubscript (r, xW, yW); 433s assert (rS, [220, 220, 242, NaN]) 433s assert (cS, [123, 126, 123, NaN]) 433s 7 tests, 7 passed, 0 known failure, 0 skipped 433s [inst/@imref2d/intrinsicToWorld.m] 433s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@imref2d/intrinsicToWorld.m 433s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref2d) 433s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref2d, 1, 2, 3) 433s ***** error id=Octave:expected-real intrinsicToWorld (imref2d, 1j, 2) 433s ***** error id=Octave:expected-real intrinsicToWorld (imref2d, 1, 2j) 433s ***** error id=Octave:invalid-input-arg intrinsicToWorld (imref2d, [1, 2], 3) 433s ***** error id=Octave:invalid-input-arg intrinsicToWorld (imref2d, [1], [2, 3]) 433s ***** test 433s r = imref2d ([512, 512], 0.3125, 0.3125); 433s xIntrinsic = [34, 442]; 433s yIntrinsic = [172, 172]; 433s [xWorld, yWorld] = intrinsicToWorld (r, xIntrinsic, yIntrinsic); 433s assert (xWorld, [10.625, 138.125]) 433s assert (yWorld, [53.75, 53.75]) 433s ***** test 433s [xWorld, yWorld] = intrinsicToWorld (imref2d, -5.3, -2.8); 433s assert (xWorld, -5.3) 433s assert (yWorld, -2.8) 433s ***** test 433s [xW, yW] = intrinsicToWorld (imref2d, [1, 2; 3, 4], [2, 3; 5, 9]); 433s assert (xW, [1, 2; 3, 4]) 433s assert (yW, [2, 3; 5, 9]) 433s 9 tests, 9 passed, 0 known failure, 0 skipped 433s [inst/@imref2d/worldToIntrinsic.m] 433s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@imref2d/worldToIntrinsic.m 433s ***** error id=Octave:invalid-fun-call worldToIntrinsic (imref2d) 433s ***** error id=Octave:invalid-fun-call worldToIntrinsic (imref2d, 1, 2, 3) 433s ***** error id=Octave:expected-real worldToIntrinsic (imref2d, 1j, 2) 433s ***** error id=Octave:expected-real worldToIntrinsic (imref2d, 1, 2j) 433s ***** error id=Octave:invalid-input-arg worldToIntrinsic (imref2d, [1, 2], 3) 433s ***** error id=Octave:invalid-input-arg worldToIntrinsic (imref2d, [1], [2, 3]) 433s ***** test 433s r = imref2d ([512, 512], 0.3125, 0.3125); 433s xW = [38.44, 39.44, 38.44, -0.2]; 433s yW = [68.75, 68.75, 75.75, -1]; 433s [xI, yI] = worldToIntrinsic (r, xW, yW); 433s assert (xI, [123.008, 126.208, 123.008, -0.64], 1e-6) 433s assert (yI, [220, 220, 242.4, -3.2], 1e-6) 433s 7 tests, 7 passed, 0 known failure, 0 skipped 433s [inst/@imref2d/sizesMatch.m] 433s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@imref2d/sizesMatch.m 433s ***** error id=Octave:invalid-fun-call sizesMatch (imref2d) 434s ***** test 434s I = zeros (256, 256); 434s r = imref2d ([256, 256]); 434s assert (sizesMatch (r, I), true) 434s I2 = zeros (246, 300); 434s assert (sizesMatch (r, I2), false) 434s ***** test 434s r = imref2d ([256, 256]); 434s assert (sizesMatch (r, []), false) 434s ***** test 434s r = imref2d ([256, 256]); 434s assert (sizesMatch (r, 42), false) 434s ***** test 434s r = imref2d ([256, 256]); 434s assert (sizesMatch (r, zeros (256, 256, 3, 2)), true) 434s ***** test 434s I = zeros (384, 512, 3); 434s r = imref2d (size (I)); 434s assert (sizesMatch (r, I), true) 434s 6 tests, 6 passed, 0 known failure, 0 skipped 434s [inst/medfilt2.m] 434s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/medfilt2.m 434s ***** shared b, f 434s b = [ 0 1 2 3 434s 1 8 12 12 434s 4 20 24 21 434s 7 22 25 18]; 434s f = [ 0 1 2 0 434s 1 4 12 3 434s 4 12 20 12 434s 0 7 20 0]; 434s ***** assert (medfilt2 (b), f); 434s 434s f = [ 0 1 2 3 434s 1 8 12 12 434s 4 20 24 18 434s 4 20 24 18]; 434s ***** assert (medfilt2 (b, true (3, 1)), f); 434s ***** assert (medfilt2 (b, [3 1]), f); 434s 434s f = [ 1 8 10 10 434s 1 8 12 12 434s 4 20 24 18 434s 7 20 24 18]; 434s ***** assert (medfilt2 (b, [3 1], 10), f); 434s ***** assert (medfilt2 (b, 10, [3 1]), f); 434s 434s f = [ 0.5 4.5 7.0 7.5 434s 2.5 14.0 18.0 15.0 434s 2.5 14.0 18.0 15.0 434s 2.0 10.0 12.0 9.0]; 434s ***** assert (medfilt2 (b, true (4, 1)), f); 434s ***** assert (medfilt2 (b, [4 1]), f); 434s ***** test 434s A = zeros (3, 3); 434s B = ones (3, 3); 434s C = [1 1 1; 2 2 2; 3 3 3]; 434s D = C'; 434s E = ones (3, 3); 434s E(2,2) = 2; 434s F = 3 .* ones (3, 3); 434s F(2,2) = 1; 434s G = [-1 2 7; -5 2 8; -7 pi 9]; 434s H = [5 2 8; 1 -3 1; 5 1 0]; 434s A_out = [0 0 0; 0 0 0; 0 0 0]; 434s B_out = [0 1 0; 1 1 1; 0 1 0]; 434s C_out = [0 1 0; 1 2 1; 0 2 0]; 434s D_out = [0 1 0; 1 2 2; 0 1 0]; 434s E_out = [0 1 0; 1 1 1; 0 1 0]; 434s F_out = [0 3 0; 3 3 3; 0 3 0]; 434s G_out = [0 0 0; 0 2 2; 0 0 0]; 434s H_out = [0 1 0; 1 1 0; 0 0 0]; 434s assert (medfilt2 (A), A_out); 434s assert (medfilt2 (B), B_out); 434s assert (medfilt2 (C), C_out); 434s assert (medfilt2 (D), D_out); 434s assert (medfilt2 (E), E_out); 434s assert (medfilt2 (F), F_out); 434s assert (medfilt2 (G), G_out); 434s assert (medfilt2 (H), H_out); 434s 8 tests, 8 passed, 0 known failure, 0 skipped 434s [inst/imbothat.m] 434s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imbothat.m 434s ***** assert (imbothat (ones (3), [1 1; 0 1]), zeros (3)); 434s ***** assert (imbothat (true (3), [1 1; 0 1]), false (3)); 434s ***** shared in, out, se 434s in = [ 0 0 0 1 1 1 0 0 1 1 434s 0 1 0 1 1 1 0 0 0 1 434s 1 1 1 1 1 0 0 0 0 0 434s 0 1 1 1 1 0 0 0 0 0 434s 0 0 0 1 0 0 0 0 1 0 434s 0 0 0 0 0 0 0 1 1 1 434s 0 0 0 0 1 0 1 0 1 0 434s 0 0 0 1 1 1 1 1 0 0 434s 0 0 0 0 1 1 1 0 0 0 434s 0 0 0 1 1 1 0 0 0 0]; 434s 434s out = [ 1 1 1 0 0 0 1 1 0 0 434s 1 0 1 0 0 0 0 0 0 0 434s 0 0 0 0 0 0 0 0 0 1 434s 1 0 0 0 0 0 0 0 0 1 434s 0 0 0 0 1 0 0 0 0 1 434s 0 0 0 1 1 1 1 0 0 0 434s 0 0 0 1 0 1 0 1 0 1 434s 0 0 0 0 0 0 0 0 0 0 434s 0 0 0 1 0 0 0 0 0 0 434s 0 0 0 0 0 0 1 0 0 0]; 434s ***** assert (imbothat (logical (in), ones (3)), logical (out)); 434s 434s out = [ 7 0 15 8 1 6 0 13 6 24 434s 0 8 9 2 0 0 16 7 0 23 434s 89 7 0 41 39 7 12 7 0 23 434s 8 1 69 40 58 1 6 2 0 43 434s 7 0 63 59 52 0 0 0 14 32 434s 62 55 6 7 0 7 0 23 16 1 434s 56 74 0 2 0 0 16 14 7 0 434s 0 73 69 0 0 19 15 8 1 0 434s 8 6 0 0 6 13 9 2 0 6 434s 7 0 0 19 0 14 7 0 23 0]; 434s ***** assert (imbothat (magic (10), ones (3)), out); 434s ***** assert (imbothat (uint8 (magic (10)), strel ("square", 3)), uint8 (out)); 434s 434s ## using a se that will be decomposed in 2 pieces 434s out =[ 7 0 87 66 59 7 0 19 12 30 434s 0 13 81 60 58 1 19 13 6 29 434s 89 12 0 54 52 20 18 7 0 23 434s 8 6 69 53 71 14 12 2 0 43 434s 7 0 63 73 66 14 7 0 23 41 434s 76 69 14 7 0 30 23 46 39 7 434s 70 88 9 2 0 24 42 40 33 6 434s 14 87 80 0 0 43 41 34 27 0 434s 84 82 0 0 19 37 35 28 26 19 434s 89 82 0 20 13 36 29 22 45 13]; 434s ***** assert (imbothat (magic (10), ones(5)), out); 434s 434s ## using a weird non-symmetric and even-size se 434s out =[ 0 0 15 8 1 3 0 7 0 18 434s 0 8 53 59 0 0 14 13 0 17 434s 84 0 0 40 38 6 13 6 0 23 434s 2 0 42 47 58 0 6 0 0 41 434s 0 0 62 59 52 0 0 0 16 35 434s 6 58 13 6 0 3 19 19 35 1 434s 0 18 0 0 0 0 15 13 6 0 434s 0 17 69 0 0 17 17 8 0 0 434s 8 67 0 0 0 15 9 2 0 6 434s 7 0 0 17 10 42 7 0 19 0]; 434s ***** assert (imbothat (magic (10), [1 0 0 0; 1 1 1 0; 0 1 0 1]), out); 434s 434s ## N dimensional and weird se 434s in = reshape (magic(16), [4 8 4 2]); 434s se = ones (3, 3, 3); 434s se(:,:,1) = [1 0 1; 0 1 1; 0 0 0]; 434s se(:,:,3) = [1 0 1; 0 1 1; 0 0 1]; 434s out = zeros (size (in)); 434s out(:,:,1,1) = [ 434s 0 17 81 145 237 146 64 0 434s 205 128 64 0 0 37 83 147 434s 175 111 47 0 0 64 117 181 434s 0 64 128 209 173 109 45 0]; 434s out(:,:,2,1) = [ 434s 235 142 78 18 0 23 69 133 434s 0 35 103 163 215 128 46 0 434s 0 64 128 195 183 123 48 0 434s 153 93 43 0 14 78 146 215]; 434s out(:,:,3,1) = [ 434s 0 25 89 153 229 142 64 0 434s 201 128 64 0 0 41 91 155 434s 167 103 57 0 0 64 125 189 434s 0 64 146 217 165 101 37 0]; 434s out(:,:,4,1) = [ 434s 227 142 78 14 0 31 77 141 434s 0 43 107 171 211 128 46 0 434s 0 64 128 203 179 115 48 0 434s 149 99 35 0 18 82 146 223]; 434s out(:,:,1,2) = [ 434s 0 33 97 161 221 146 64 0 434s 189 125 61 0 0 53 99 163 434s 159 95 31 0 0 64 128 197 434s 0 64 128 225 157 93 29 0]; 434s out(:,:,2,2) = [ 434s 219 142 78 18 0 39 85 149 434s 0 51 119 179 199 128 46 0 434s 0 64 128 211 167 107 43 0 434s 137 77 27 0 14 78 146 231]; 434s out(:,:,3,2) = [ 434s 0 41 105 169 213 142 64 0 434s 185 121 64 0 0 57 107 171 434s 151 87 41 0 0 64 128 205 434s 0 64 146 233 149 85 21 0]; 434s out(:,:,4,2) = [ 434s 211 142 78 14 0 47 93 157 434s 0 59 123 187 195 128 46 0 434s 0 64 128 219 163 99 35 0 434s 133 83 19 0 18 82 146 239]; 434s ***** assert (imbothat (in, se), out); 434s 8 tests, 8 passed, 0 known failure, 0 skipped 434s [inst/imhmax.m] 434s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imhmax.m 434s ***** shared im0, im0_h2_out 434s im0 = uint8 ([0 0 0 0 0; 434s 0 1 2 1 0; 434s 0 2 5 2 0; 434s 0 1 2 1 0; 434s 0 0 0 0 0]); 434s im0_h2_out = uint8 ([0 0 0 0 0; 434s 0 1 2 1 0; 434s 0 2 3 2 0; 434s 0 1 2 1 0; 434s 0 0 0 0 0]); 434s ***** error imhmax () 434s ***** error imhmax (im0) 434s ***** error imhmax ("hello", 2) 434s ***** error imhmax (i.*im0, 2) 434s ***** error imhmax (sparse (im0), 2) 434s ***** error imhmax (im0, -2) 434s ***** error imhmax (im0, 'a') 434s ***** error imhmax (im0, ones (2)) 434s ***** error imhmax (im0, 2*i) 434s ***** assert (imhmax (im0, 2), im0_h2_out) 434s ***** assert (imhmax (double (im0), 2), double (im0_h2_out)) 434s ***** assert (imhmax (im0, 2, 8), im0_h2_out) 434s ***** assert (imhmax (im0, 2, 4), im0_h2_out) 434s ***** assert (imhmax (im0, 2, true (3)), im0_h2_out) 434s ***** test 434s out = imhmax (double (im0), 2); 434s assert (size (out), size (im0)) 434s assert (class (out), "double") 434s ***** test 434s out = imhmax (single (im0), 2); 434s assert (size (out), size (im0)) 434s assert (class (out), "single") 434s ***** test 434s out = imhmax (uint8 (im0), 2); 434s assert (size (out), size (im0)) 434s assert (class (out), "uint8") 434s ***** test 434s out = imhmax (uint16 (im0), 2); 434s assert (size (out), size (im0)) 434s assert (class (out), "uint16") 434s ***** test 434s im = cat (3, im0, im0, im0, im0); 434s out = imhmax (im, 2); 434s assert (size (out), size (im)) 434s ***** test 434s im = zeros (10); 434s im(2:4, 2:4) = 3; 434s im(6:8, 6:8) = 8; 434s expected_4 = zeros (10); 434s expected_4(6:8, 6:8) = 4; 434s expected_2 = zeros (10); 434s expected_2(2:4, 2:4) = 1; 434s expected_2(6:8, 6:8) = 6; 434s out = imhmax (im, 4); 434s assert (out, expected_4, eps) 434s out = imhmax (im, 2); 434s assert (out, expected_2, eps) 434s out = imhmax (0.1 .* im, 0.4); 434s assert (out, 0.1 .* expected_4, eps) 434s ***** test 434s im2 = zeros (10); 434s im2(2:4, 2:4) = 3; 434s im2(6:9, 6:9)=8; 434s im2(5, 5)=8; 434s im2(6, 7)=0; 434s im2(7, 8)=0; 434s expected_4 = zeros (10); 434s expected_4(6:9, 6:9) = 4; 434s expected_4(5, 5) = 4; 434s expected_4(6, 7) = 0; 434s expected_4(7, 8) = 0; 434s expected_8 = expected_4; 434s expected_8(2:4, 2:4) = 3; 434s out2 = imhmax (im2, 4); 434s assert (out2, expected_8, eps) 434s out2 = imhmax (im2, 4, 4); 434s assert (out2, expected_4, eps) 434s out2 = imhmax (im2, 4, 8); 434s assert (out2, expected_8, eps) 434s 21 tests, 21 passed, 0 known failure, 0 skipped 434s [inst/imimposemin.m] 434s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imimposemin.m 434s ***** shared im0, bw0, out0, out0_4 434s im0 = uint8 ([5 5 5 5 5; 434s 5 4 3 4 5; 434s 5 3 0 3 5; 434s 5 4 3 4 5; 434s 5 5 5 5 5]); 434s bw0 = false (5); 434s bw0(4, 4) = true; 434s out0 = im0 + 1; 434s out0(4, 4) = 0; 434s out0_4 = out0; 434s out0_4(3, 3) = 4; 434s ***** error imimposemin () 434s ***** error imimposemin (im0) 434s ***** error imimposemin ("hello", bw0) 434s ***** error imimposemin (i.*im0, bw0) 434s ***** error imimposemin (sparse (im0), bw0) 434s ***** error imimposemin (im0, ones (2)) 434s ***** error imimposemin (im0, 'hello') 434s ***** error imimposemin (im0, i .* double (bw0)) 434s ***** error imimposemin (im0, sparse (bw0)) 434s ***** error imimposemin (im0, bw0, 'hello') 434s ***** error imimposemin (im0, bw0, 3) 434s ***** assert (imimposemin (im0, bw0), out0) 434s ***** assert (imimposemin (im0, bw0, 8), out0) 434s ***** assert (imimposemin (im0, bw0, 4), out0_4) 434s ***** assert (imimposemin (im0, bw0, true (3)), out0) 434s ***** test 434s out = imimposemin (im0, bw0); 434s assert (size (out), size (im0)) 434s assert (class (out), "uint8") 434s ***** test 434s out = imimposemin (double (im0), bw0); 434s assert (size (out), size (im0)) 434s assert (class (out), "double") 434s ***** test 434s out = imimposemin (single (im0), bw0); 434s assert (size (out), size (im0)) 434s assert (class (out), "single") 434s ***** test 434s out = imimposemin (uint16 (im0), bw0); 434s assert (size (out), size (im0)) 434s assert (class (out), "uint16") 434s ***** test 434s im = cat (3, im0, im0, im0, im0); 434s bw = cat (3, bw0, bw0, bw0, bw0); 434s out = imimposemin (im, bw); 434s assert (size (out), size (im)) 434s ***** test 434s expected_double = double (im0); 434s expected_double += 0.005; 434s expected_double(4, 4) = -inf; 434s out = imimposemin (double (im0), bw0); 434s assert (out, expected_double, eps) 434s ***** test 434s im = uint8 (10 .* ones (10)); 434s im(6:8, 6:8) = 2; 434s im(2:4, 2:4) = 7; 434s im(3, 3) = 5; 434s im(2, 9) = 9; 434s im(3, 8) = 9; 434s im(9, 2) = 9; 434s im(8, 3) = 9; 434s bw = false (10); 434s bw(3, 3) = true; 434s bw(6:8, 6:8) = true; 434s expected = uint8 (11 .* ones(10)); 434s expected(2:4, 2:4) = 8; 434s expected(3, 3) = 0; 434s expected(6:8, 6:8) = 0; 434s expected_double = double (expected); 434s expected_double -= 0.992; 434s expected_double (expected_double < 0) = -inf; 434s out = imimposemin (im, bw); 434s assert (out, expected, eps) 434s out = imimposemin (double (im), bw); 434s assert (out, expected_double, eps) 434s 22 tests, 22 passed, 0 known failure, 0 skipped 434s [inst/col2im.m] 434s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/col2im.m 434s ***** demo 434s ## Divide A using distinct blocks and then reverse the operation 434s A = [ 1:10 434s 11:20 434s 21:30 434s 31:40]; 434s B = im2col (A, [2 5], "distinct") 434s C = col2im (B, [2 5], [4 10], "distinct") 434s ***** demo 434s ## Get sliding blocks of size from A into columns, calculate the 434s ## mean of each block (mean of each column), and reconstruct A 434s ## after a median filter. 434s A = reshape (1:24, [4 6]) 434s B = im2col (A, [2 3], "sliding") 434s C = mean (B); 434s col2im (C, [1 1], [3 4], "sliding") 434s ***** error col2im (ones (10), [5 5], [10 10], "wrong_block_type"); 434s ***** error col2im (ones (10), [1 1], [ 7 7], "sliding"); 434s ***** error col2im (ones (10), [3 3], [10 10], "distinct") 434s ***** error col2im (ones (10), [5 5], [10 11], "distinct"); 434s ***** assert (col2im (sum (im2col (magic (10), [3 3], "sliding")), [1 1], [8 8]), 434s convn (magic (10), ones (3, 3), "valid")); 434s ***** test 434s B = ones (1, (10-2+1)*(7-3+1)); 434s A = ones ((10-2+1), (7-3+1)); 434s assert (col2im (B, [2 3], [10 7]), A); 434s 434s ## same but different classes 434s assert (col2im (int16 (B), [2 3], [10 7]), int16 (A)); 434s assert (col2im (single (B), [2 3], [10 7]), single (A)); 434s assert (col2im (logical (B), [2 3], [10 7]), logical (A)); 434s ***** test 434s a = rand (10)(:); 434s assert (col2im (a, [1 1], [10 10]), col2im (a, [1 1], [10 10], "sliding")) 434s ***** shared A, B 434s v = [1:10]'; 434s r = reshape (1:10, [2 5]); 434s B = [v v+10 v+20 v+30 v+40 v+50]; 434s A = [r r+30 434s r+10 r+40 434s r+20 r+50]; 434s assert (col2im (B, [2 5], [6 10], "distinct"), A); 434s ***** assert (col2im (int16 (B), [2 5], [6 10], "distinct"), int16 (A)); 434s ***** assert (col2im (logical (B), [2 5], [6 10], "distinct"), logical (A)); 434s ***** assert (col2im (single (B), [2 5], [6 10], "distinct"), single (A)); 434s ***** test 434s a = rand (10, 8); 434s b = im2col (a, [5 5], "distinct"); 434s assert (col2im (b, [5 5], [10 8], "distinct"), a); 434s 434s a = rand (8); 434s b = im2col (a, [5 5], "distinct"); 434s assert (col2im (b, [5 5], [8 8], "distinct"), a); 434s ***** shared a, b 434s ## Same number of multiple dimensions 434s a = rand (10, 10, 10); 434s b = im2col (a, [5 5 5], "distinct"); 434s ***** assert (col2im (b, [5 5 5], [10 10 10], "distinct"), a); 434s 434s ## Different number of dimensions 434s a = rand (10, 10, 10); 434s b = im2col (a, [5 5], "distinct"); 434s ***** assert (col2im (b, [5 5], [10 10 10], "distinct"), a); 434s 434s ## Removing padding from multiple dimensions 434s a = rand (10, 10, 7); 434s b = im2col (a, [5 5 3], "distinct"); 434s ***** assert (col2im (b, [5 5 3], [10 10 7], "distinct"), a); 434s 434s a = rand (10, 10, 7); 434s b = im2col (a, [5 5 5 2], "distinct"); 434s ***** assert (col2im (b, [5 5 5 2], [10 10 7], "distinct"), a); 434s 15 tests, 15 passed, 0 known failure, 0 skipped 434s [inst/imsmooth.m] 434s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imsmooth.m 434s ***** test 434s ## checking Bilateral Filter 434s 434s ## constant image remain the same after Bilateral Filter 434s A = uint8(255*ones(128,128)); 434s B = uint8(imsmooth(A, 'Bilateral', 2, 10)); 434s assert (A,B); 434s 434s ## Bilateral Filter does not smear outlayers 434s A = zeros(256,256); 434s A(128,128) = 256; 434s ## bilateral filter does not smear outlayers 434s B = imsmooth(A, 'Bilateral', 2, 10); 434s assert (A,B,1.e-140); 434s 434s ## When sigma_r is large the filter behaves almost 434s ## like the isotropic Gaussian filter 434s 434s A0 = fspecial ('gaussian',100,100); 434s A = uint8(A0/max(max(A0))*255); 434s B1 = imsmooth(A, 'Bilateral', 2, 100); 434s B2 = imsmooth(A, 'Gaussian', 2); 434s assert (B1,B2); 435s 1 test, 1 passed, 0 known failure, 0 skipped 435s [inst/stretchlim.m] 435s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/stretchlim.m 435s ***** error (stretchlim ()); 435s ***** error (stretchlim ("bad parameter")); 435s ***** error (stretchlim (zeros (10, 10), "bad parameter")); 435s ***** error (stretchlim (zeros (10, 10), 0.01, 2)); 435s ***** assert (stretchlim (0.01:.01:1), [0.02; 0.99]) 435s ***** assert (stretchlim (0.01:.01:1), stretchlim (0.01:.01:1, [0.01 0.99])) 435s ***** assert (stretchlim (0.01:.01:1, 0.15), stretchlim (0.01:.01:1, [0.15 0.85])) 435s ***** assert (stretchlim (0.01:.01:1, [0.01,0.95]), [0.02; 0.95], eps) 435s ***** assert (stretchlim (0.01:.01:1, 0), [0.01; 1]) 435s ***** test 435s im = rand (5); 435s assert (stretchlim (im, 0), [min(im(:)); max(im(:))]) 435s ***** test 435s im = rand (5, 5, 3); 435s assert (stretchlim (im, 0), 435s [min(im(:,:,1)(:)) min(im(:,:,2)(:)) min(im(:,:,3)(:)); 435s max(im(:,:,1)(:)) max(im(:,:,2)(:)) max(im(:,:,3)(:))]) 435s ***** test 435s im = rand (5); 435s assert (stretchlim (im, 0.03), [min(im(:)); max(im(:))]) 435s assert (stretchlim (im, 0.0399), [min(im(:)); max(im(:))]) 435s ***** assert (stretchlim (uint8 (1:100)), im2double (uint8 ([2; 99]))) 435s ***** assert (stretchlim (uint8 (1:100), .25), im2double (uint8 ([26; 75]))) 435s ***** assert (stretchlim (uint16 (1:1000)), im2double (uint16 ([11; 990]))) 435s ***** assert (stretchlim (int16 (-100:100)), im2double (int16 ([-98; 98]))) 435s ***** assert (stretchlim (single (0.01:.01:1)), 435s double (single (0.01:.01:1)([2; 99])).') 435s ***** assert (stretchlim (uint8 ([1 repmat(2, [1, 90]) 92:100]), 0.05), 435s im2double (uint8 ([2; 95]))) 435s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 4]) 6:100]), 0.05), 435s im2double (uint8 ([6; 95]))) 435s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) 7:100]), 0.05), 435s im2double (uint8 ([2; 95]))) 435s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 6]) 8:100]), 0.05), 435s im2double (uint8 ([2; 95]))) 435s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 7]) 9:100]), 0.05), 435s im2double (uint8 ([2; 95]))) 435s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 8]) 10:100]), 0.05), 435s im2double (uint8 ([2; 95]))) 435s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) repmat(3, [1 5]) 9:100]), 0.04), 435s im2double (uint8 ([2; 96]))) 435s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) repmat(3, [1 5]) 9:100]), 0.05), 435s im2double (uint8 ([2; 95]))) 435s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) repmat(3, [1 5]) 9:100]), 0.06), 435s im2double (uint8 ([3; 94]))) 435s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) repmat(3, [1 5]) 9:100]), 0.07), 435s im2double (uint8 ([3; 93]))) 435s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) repmat(3, [1 5]) 9:100]), 0.08), 435s im2double (uint8 ([3; 92]))) 435s ***** test 435s RGB = zeros (100, 1, 3, "uint16"); 435s RGB(:,:,1) = [1:1:100]; 435s RGB(:,:,2) = [2:2:200]; 435s RGB(:,:,3) = [4:4:400]; 435s assert (stretchlim (RGB) , im2double (uint16 ([2 4 8; 99 198 396]))) 435s ***** test 435s im6c = zeros (100, 1, 6, "uint16"); 435s im6c(:,:,1) = [1:1:100]; 435s im6c(:,:,2) = [2:2:200]; 435s im6c(:,:,3) = [4:4:400]; 435s im6c(:,:,4) = [8:8:800]; 435s im6c(:,:,5) = [16:16:1600]; 435s im6c(:,:,6) = [32:32:3200]; 435s assert (stretchlim (im6c) , 435s im2double (uint16 ([2 4 8 16 32 64; 99 198 396 792 1584 3168]))) 435s ***** test 435s im = [0 0 .1 .1 .1 .1 .2 .2 .2 .4 .4 .6 .6 .7 .7 .9 .9 .9 1 1]; 435s 435s assert (stretchlim (im), [0; 1]) 435s 435s ## Consider the returned lower limit in this test. A lower limit 435s ## of 0.1 will saturate two elements (10%), while 0.2 will saturate 435s ## 6 elements (30%). Both have the same distance to 20% but returning 435s ## 0.1 is Matlab compatible. 435s ## Now looking at the higher limit. A limit of .9 will saturate 435s ## 2 elements (10%), while a limit of 0.7 will saturate 5 elements (25%). 435s ## However, for Matlab compatibility we must return .9 even though 435s ## 25% would be closer to 20%. 435s ## Basically, it's not just rounded. 435s assert (stretchlim (im, .2), [0.1; 0.9]) 435s 435s assert (stretchlim (im, .15), [0.1; 0.9]) 435s assert (stretchlim (im, .1), [0.1; 0.9]) 435s assert (stretchlim (im, .25), [0.1; 0.7]) 435s 435s ## Reorder the vector of values (real images don't have the values 435s ## already sorted), just to be sure it all works. 435s im([6 3 16 11 7 17 14 8 5 19 15 1 2 4 18 13 9 20 10 12]) = im; 435s assert (stretchlim (im, .2), [0.1; 0.9]) 435s assert (stretchlim (im, .15), [0.1; 0.9]) 435s assert (stretchlim (im, .1), [0.1; 0.9]) 435s assert (stretchlim (im, .25), [0.1; 0.7]) 435s ***** assert (stretchlim (0.01:.001:1), [0.019; 0.991], eps) 435s ***** assert (stretchlim (0.01:.001:1, [0.01,0.95]), [0.019; 0.951], eps) 435s ***** assert (stretchlim (0.01:.001:1, 0), [0.01; 1]) 435s ***** assert (stretchlim (single (0.01:.001:1)), 435s double (single (0.01:.001:1)([10; 982])).') 435s ***** xtest 435s assert (stretchlim ([(.05:.05:1) (2:4)], 0.2), [0.25; 0.95], eps) 435s assert (stretchlim ([(.05:.05:1) (2:5)], 0.2), [0.25; 1]) 435s assert (stretchlim ([(.05:.05:1) (2:6)], 0.2), [0.3; 1]) 435s assert (stretchlim ([(.05:.05:1) (2:7)], 0.2), [0.3; 1]) 435s !!!!! known failure 435s ASSERT errors for: assert (stretchlim ([(.05:.05:1), (2:6)], 0.2),[0.3; 1]) 435s 435s Location | Observed | Expected | Reason 435s (1) 0.3 0.3 Abs err 5.5511e-17 exceeds tol 0 by 6e-17 435s ***** test 435s assert (stretchlim ([(-6:0) (.05:.05:1)], 0.2), [0; 0.75], eps) 435s assert (stretchlim ([(-5:0) (.05:.05:1)], 0.2), [0; 0.75], eps) 435s ***** test 435s im = rand (4, 4, 2, 3, 2); 435s rv = zeros (2, 2, 3, 2); 435s for p = 1:2 435s for q = 1:3 435s for r = 1:2 435s rv(:,p,q,r) = stretchlim (im(:,:,p,q,r), 0.25); 435s endfor 435s endfor 435s endfor 435s assert (stretchlim (im, 0.25), rv) 435s ***** test 435s im = rand (4, 4, 2, 3, 2); 435s rv = zeros (2, 2, 3, 2); 435s for p = 1:2 435s for q = 1:3 435s for r = 1:2 435s rv(:,p,q,r) = stretchlim (im(:,:,p,q,r), 0); 435s endfor 435s endfor 435s endfor 435s assert (stretchlim (im, 0), rv) 435s ***** assert (stretchlim (zeros (5)), [0; 1]) 435s ***** assert (stretchlim (ones (5)), [0; 1]) 435s ***** assert (stretchlim (.6 * ones (5)), [0; 1]) 435s ***** assert (stretchlim (zeros (3, 3, 3, 3)), repmat ([0; 1], [1 3 3])) 435s ***** assert (stretchlim ([0 .5 .5 .5 .5 1], .2), [0; 1]) 435s ***** test 435s im = repmat ((magic (5) -1) / 24, [1 1 3 3]); 435s im(:,:,1,1) = 0; 435s im(:,:,2,2) = .5; 435s im(:,:,3,3) = 1; 435s lims = stretchlim (im, 0.2); 435s assert (size (lims), [2 3 3]) 435s assert (lims(:, [2 3 4 6 7 8]), 435s repmat ([(1/24)*round(24*.2); 1-((1/24)*round(24*.2))], [1 6]), eps) 435s assert (lims(:, [1 5 9]), repmat ([0; 1], [1 3])) 435s 45 tests, 44 passed, 1 known failure, 0 skipped 435s [inst/radon.m] 435s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/radon.m 435s ***** test 435s A = radon (ones (2,2), 30); 435s assert (A, [0 0 0.608253175473055 2.103325780167649 1.236538105676658 0.051882938682637 0]',1e-10) 435s ***** test 435s ***** # testing all types 435s A = radon (single (ones (2,2)), 90); 435s assert (A, B) 435s A = radon (double (ones (2,2)), 90); 435s assert (A, B) 435s A = radon (int8 (ones (2,2)), 90); 435s assert (A, B) 435s A = radon (int32 (ones (2,2)), 90); 435s assert (A, B) 435s A = radon (int64 (ones (2,2)), 90); 435s assert (A, B) 435s A = radon (uint8 (ones (2,2)), 90); 435s assert (A, B) 435s A = radon (uint16 (ones (2,2)), 90); 435s assert (A, B) 435s A = radon (uint32 (ones (2,2)), 90); 435s assert (A, B) 435s A = radon (uint64 (ones (2,2)), 90); 435s B = [0, 0.25, 1.75, 1.75, 0.25, 0. 0.]'; 435s assert (A, B) 435s bug #58567 435s A = radon (logical (ones (2,2)), 90); 435s assert (A, B) 435s ***** error 435s radon (); 436s ***** error 436s radon ('xxx'); 436s ***** error 436s radon (ones (2, 2), ones (2,2)); 436s ***** error 436s radon (ones (2, 2), 'xxx'); 436s 6 tests, 6 passed, 0 known failure, 0 skipped 436s [inst/ycbcr2rgb.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/ycbcr2rgb.m 436s ***** assert (ycbcr2rgb (rgb2ycbcr (jet (10))), jet (10), 0.00001); 436s ***** assert (class (ycbcr2rgb (single (rand (5, 5, 3)))), "single") 436s 2 tests, 2 passed, 0 known failure, 0 skipped 436s [inst/lab2uint16.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/lab2uint16.m 436s ***** test 436s cm_uint16 = uint16 ([0 127 128 383 384 65151 65152 65279 65280 65281 65534 65535]); 436s cm_uint16 = repmat (cm_uint16(:), [1 3]); 436s im2d_uint16 = reshape (cm_uint16, [4 3 3]); 436s imnd_uint16 = permute (im2d_uint16, [1 4 3 2]); 436s 436s cm_uint8 = uint8 ([0 0 1 1 2 254 255 255 255 255 255 255]); 436s cm_uint8 = repmat (cm_uint8(:), [1 3]); 436s assert (lab2uint8 (cm_uint16), cm_uint8) 436s im2d_uint8 = reshape (cm_uint8, [4 3 3]); 436s assert (lab2uint8 (im2d_uint16), im2d_uint8) 436s assert (lab2uint8 (imnd_uint16), permute (im2d_uint8, [1 4 3 2])) 436s 436s l1 = 100/65280; 436s ab1 = 255/65280; 436s cm = [ 436s 0 -128 436s 127*l1 -128+(ab1*127) 436s 128*l1 -128+(ab1*128) 436s 383*l1 -128+(ab1*383) 436s 384*l1 -128+(ab1*384) 436s 65151*l1 -128+(ab1*65151) 436s 65152*l1 -128+(ab1*65152) 436s 65279*l1 -128+(ab1*65279) 436s 100 127 436s 65281*l1 -128+(ab1*65281) 436s 65534*l1 -128+(ab1*65534) 436s 65535*l1 -128+(ab1*65535)]; 436s cm(:,3) = cm(:,2); 436s im2d = reshape (cm, [4 3 3]); 436s imnd = permute (im2d, [1 4 3 2]); 436s 436s assert (lab2double (cm_uint16), cm) 436s assert (lab2double (im2d_uint16), im2d) 436s assert (lab2double (imnd_uint16), imnd) 436s 436s assert (lab2single (cm_uint16), single (cm)) 436s assert (lab2single (im2d_uint16), single (im2d)) 436s assert (lab2single (imnd_uint16), single (imnd)) 436s 1 test, 1 passed, 0 known failure, 0 skipped 436s [inst/imtophat.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imtophat.m 436s ***** assert (imtophat (ones (3), [1 1; 0 1]), zeros (3)); 436s ***** assert (imtophat (true (3), [1 1; 0 1]), false (3)); 436s ***** shared in, out, se 436s in = [ 0 0 0 1 1 1 0 0 1 1 436s 0 1 0 1 1 1 0 0 0 1 436s 1 1 1 1 1 0 0 0 0 0 436s 0 1 1 1 1 0 0 0 0 0 436s 0 0 0 1 0 0 0 0 1 0 436s 0 0 0 0 0 0 0 1 1 1 436s 0 0 0 0 1 0 1 0 1 0 436s 0 0 0 1 1 1 1 1 0 0 436s 0 0 0 0 1 1 1 0 0 0 436s 0 0 0 1 1 1 0 0 0 0]; 436s 436s out = [ 0 0 0 0 0 0 0 0 1 1 436s 0 1 0 0 0 0 0 0 0 1 436s 1 1 1 1 1 0 0 0 0 0 436s 0 1 1 1 1 0 0 0 0 0 436s 0 0 0 1 0 0 0 0 1 0 436s 0 0 0 0 0 0 0 1 1 1 436s 0 0 0 0 1 0 1 0 1 0 436s 0 0 0 1 1 1 1 1 0 0 436s 0 0 0 0 1 1 1 0 0 0 436s 0 0 0 1 1 1 0 0 0 0]; 436s ***** assert (imtophat (logical (in), ones (3)), logical (out)); 436s 436s out = [12 19 0 0 0 16 23 0 7 0 436s 18 0 0 6 1 19 0 2 9 1 436s 0 74 81 12 7 0 1 8 15 7 436s 68 70 2 14 0 6 7 14 16 0 436s 69 76 8 0 0 7 14 21 0 1 436s 0 7 59 54 61 13 20 0 0 32 436s 18 0 69 60 62 19 0 0 0 27 436s 73 0 0 66 68 0 1 6 6 33 436s 0 0 17 19 1 0 2 9 7 14 436s 1 6 23 0 7 1 8 15 0 32]; 436s ***** assert (imtophat (magic (10), ones (3)), out); 436s ***** assert (imtophat (uint8 (magic (10)), strel ("square", 3)), uint8 (out)); 436s 436s ## using a se that will be decomposed in 2 pieces 436s out =[91 98 0 0 0 27 34 11 18 0 436s 94 76 3 6 1 33 15 17 24 1 436s 0 77 84 12 7 14 16 23 30 7 436s 80 82 14 18 0 32 34 41 43 0 436s 81 88 20 0 0 33 40 47 24 6 436s 12 19 63 57 64 16 23 0 7 39 436s 18 0 69 60 62 19 1 3 12 39 436s 73 0 0 66 68 0 2 9 18 45 436s 4 6 81 67 49 6 8 15 19 26 436s 5 12 87 48 55 7 14 21 0 32]; 436s ***** assert (imtophat (magic (10), ones(5)), out); 436s 436s ## using a weird non-symmetric and even-size se 436s out =[85 92 0 0 0 12 23 0 17 0 436s 91 73 0 6 0 18 0 2 13 0 436s 0 72 81 13 6 0 1 9 15 0 436s 60 62 10 12 0 8 8 17 17 0 436s 61 69 0 0 0 28 16 41 0 0 436s 0 0 47 52 61 12 16 0 0 31 436s 6 0 53 58 60 17 0 0 0 33 436s 69 0 0 60 62 0 0 6 0 33 436s 0 0 17 60 42 0 2 13 1 8 436s 0 6 23 0 7 0 7 15 0 14]; 436s ***** assert (imtophat (magic (10), [1 0 0 0; 1 1 1 0; 0 1 0 1]), out); 436s 436s ## N dimensional and weird se 436s in = reshape (magic(16), [4 8 4 2]); 436s se = ones (3, 3, 3); 436s se(:,:,1) = [1 0 1; 0 1 1; 0 0 0]; 436s se(:,:,3) = [1 0 1; 0 1 1; 0 0 1]; 436s out = zeros (size (in)); 436s out(:,:,1,1) = [ 436s 239 146 82 18 0 19 83 133 436s 0 35 99 163 219 128 64 0 436s 0 46 128 195 187 123 59 0 436s 157 93 47 0 14 78 142 211]; 436s out(:,:,2,1) = [ 436s 0 21 85 149 233 146 64 0 436s 205 128 64 0 0 41 87 151 436s 171 107 57 0 0 64 121 185 436s 0 64 142 213 169 105 41 0]; 436s out(:,:,3,1) = [ 436s 231 146 78 14 0 27 77 137 436s 0 43 107 167 211 128 64 0 436s 0 46 128 199 179 119 51 0 436s 149 85 39 0 18 78 142 219]; 436s out(:,:,4,1) = [ 436s 0 29 93 157 225 128 64 0 436s 197 128 64 0 0 31 95 159 436s 163 99 53 0 0 61 125 189 436s 0 64 146 221 161 97 33 0]; 436s out(:,:,1,2) = [ 436s 223 146 82 18 0 35 99 149 436s 0 48 115 179 203 128 64 0 436s 0 46 128 211 171 107 43 0 436s 141 77 31 0 14 78 142 227]; 436s out(:,:,2,2) = [ 436s 0 37 101 165 217 146 64 0 436s 189 125 64 0 0 57 103 167 436s 155 91 41 0 0 64 128 201 436s 0 64 142 229 153 89 25 0]; 436s out(:,:,3,2) = [ 436s 215 146 78 14 0 43 93 153 436s 0 48 123 183 195 128 64 0 436s 0 46 128 215 163 103 35 0 436s 133 69 23 0 18 78 142 235]; 436s out(:,:,4,2) = [ 436s 0 45 109 173 209 128 64 0 436s 181 117 64 0 0 47 111 175 436s 147 83 37 0 0 64 128 205 436s 0 64 146 237 145 81 17 0]; 436s ***** assert (imtophat (in, se), out); 436s 8 tests, 8 passed, 0 known failure, 0 skipped 436s [inst/imregionalmin.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imregionalmin.m 436s ***** test 436s a = [ 436s 7 3 9 3 10 3 436s 4 2 3 10 1 3 436s 1 4 6 9 4 10 436s 8 7 9 3 4 8 436s 5 9 3 3 8 9 436s 3 6 9 4 1 10]; 436s 436s a4 = logical ([ 436s 0 0 0 1 0 0 436s 0 1 0 0 1 0 436s 1 0 0 0 0 0 436s 0 0 0 1 0 0 436s 0 0 1 1 0 0 436s 1 0 0 0 1 0]); 436s assert (imregionalmin (a, 4), a4) 436s assert (imregionalmin (uint8 (a), 4), a4) 436s assert (imregionalmin (int8 (a), 4), a4) 436s 436s a8 = logical ([ 436s 0 0 0 0 0 0 436s 0 0 0 0 1 0 436s 1 0 0 0 0 0 436s 0 0 0 0 0 0 436s 0 0 0 0 0 0 436s 1 0 0 0 1 0]); 436s assert (imregionalmin (a), a8) 436s assert (imregionalmin (a, 8), a8) 436s assert (imregionalmin (uint8 (a), 8), a8) 436s assert (imregionalmin (int8 (a), 8), a8) 436s ***** test 436s a = [ 436s 4 8 5 -1 8 7 436s -1 4 0 7 1 1 436s 6 1 2 6 7 0 436s 6 1 5 -2 5 9 436s 1 4 -1 0 0 2 436s 4 6 1 0 7 1]; 436s 436s a4 = logical ([ 436s 0 0 0 1 0 0 436s 1 0 1 0 0 0 436s 0 1 0 0 0 1 436s 0 1 0 1 0 0 436s 1 0 1 0 0 0 436s 0 0 0 0 0 1]); 436s assert (imregionalmin (a, 4), a4) 436s assert (imregionalmin (int8 (a), 4), a4) 436s 436s a8 = logical ([ 436s 0 0 0 1 0 0 436s 1 0 0 0 0 0 436s 0 0 0 0 0 1 436s 0 0 0 1 0 0 436s 0 0 0 0 0 0 436s 0 0 0 0 0 0]); 436s assert (imregionalmin (a), a8) 436s assert (imregionalmin (a, 8), a8) 436s assert (imregionalmin (int8 (a), 8), a8) 436s ***** test 436s ## test float input images 436s im0 = peaks (); 436s im1 = im0 ./ 100; 436s max_pos_expected = [1; 49; 664; 1286; 1302; 2401]; 436s max0 = imregionalmin (im0); 436s max0_pos = find (max0); 436s max1 = imregionalmin (im1); 436s assert (max1, max0) 436s assert (max0_pos, max_pos_expected) 436s 3 tests, 3 passed, 0 known failure, 0 skipped 436s [inst/imdivide.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imdivide.m 436s ***** assert (imdivide (uint8 ([23 250]), uint8 ([ 2 50])), uint8 ([ 12 5])); # default to first class 436s ***** assert (imdivide (uint8 ([56 255]), uint8 ([ 0 0])), uint8 ([255 255])); # dividing by zero works (tested in matlab) 436s ***** assert (imdivide (uint8 ([23 250]), 2), uint8 ([ 12 125])); # works subtracting a scalar 436s ***** assert (imdivide (uint8 ([23 250]), uint8 ([ 2 50]), "uint16"), uint16 ([ 12 5])); # defining output class works (not in matlab) 436s ***** assert (imdivide (logical ([1 1 0 0]), logical ([1 0 1 0])), double ([1 Inf 0 NaN])); # dividing logical matrix (tested in matlab) 436s ***** fail ("imdivide (uint8 ([23 250]), uint16 ([23 250]))"); # input needs to have same class 436s 6 tests, 6 passed, 0 known failure, 0 skipped 436s [inst/colorangle.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/colorangle.m 436s ***** error id=Octave:invalid-fun-call colorangle () 436s ***** error id=Octave:invalid-fun-call colorangle (1, 2, 3) 436s ***** error colorangle (2, 3) 436s ***** error colorangle ([1, 2], [3, 4]) 436s ***** error id=Octave:expected-real colorangle ([1, 2, 3j], [4, 5, 6]) 436s ***** error id=Octave:expected-real colorangle ([1, 2, 3], [4j, 5, 6]) 436s ***** error id=Octave:invalid-type colorangle ("abc", "def") 436s ***** test 436s assert (colorangle ([0 0 0], [0 1 0]), NaN) 436s assert (colorangle ([0 0 0], [0 1 1]), NaN) 436s assert (colorangle ([0 1 0], [0 0 0]), NaN) 436s assert (colorangle ([1 1 0], [0 0 0]), NaN) 436s assert (colorangle ([1 1 1], [1 1 1]), 0) 436s ***** assert (colorangle ([0 0 0], [0 0 0]), 0) 436s ***** assert (colorangle ([1 0 0], [-1 0 0]), 180) 436s ***** assert (colorangle ([0 0 1], [1 0 0]), 90) 436s ***** assert (colorangle ([0; 0; 1], [1 0 0]), 90) 436s ***** assert (colorangle ([0, 0, 1], [1; 0; 0]), 90) 436s ***** assert (colorangle ([0.5 0.61237 -0.61237], [0.86603 0.35355 -0.35355]), 30.000270917, 1e-4) 436s ***** assert (colorangle ([0.1582055390, 0.2722362096, 0.1620813305], [0.0717 0.1472 0.0975]), 5.09209927, 1e-6) 436s ***** assert (colorangle ([0.0659838500, 0.1261619536, 0.0690643667], [0.0717 0.1472 0.0975]), 5.10358588, 1e-6) 436s ***** assert (colorangle ([0.436871170, 0.7794672250, 0.4489702582], [0.0717 0.1472 0.0975]), 5.01339769, 1e-6) 436s ***** test 436s a = [1 0 0]; 436s b = [1 1 0]; 436s expected = colorangle (a, b); 436s assert (colorangle (a.', b.'), expected) 436s assert (colorangle (a, b.'), expected) 436s assert (colorangle (a.', b), expected) 436s assert (colorangle (vec (a, 3), b.'), expected) 436s ***** assert (colorangle ([1 0 0; 0 1 1], [1 1 1; 2 3 4]), 436s [colorangle([1 0 0], [1 1 1]); colorangle([0 1 1], [2 3 4])]) 436s ***** test 436s a = [1 0 0; 0.5 1 0; 0 1 1; 1 1 1]; 436s b = [0 1 0]; 436s expected = zeros (4, 1); 436s for i = 1:4 436s expected(i) = colorangle (a(i,:), b); 436s endfor 436s assert (colorangle (a, b), expected) 436s assert (colorangle (b, a), expected) 436s ***** xtest 436s a = [1 2 3]; 436s b = [2 3 4]; 436s c = [5 6 7]; 436s d = [3 1 1]; 436s 436s ac = colorangle (c, a); 436s bc = colorangle (b, c); 436s ad = colorangle (a, d); 436s bd = colorangle (b, d); 436s 436s assert (colorangle (a, cat (3, c, d)), 436s cat (3, [ac ad])) 436s 436s assert (colorangle (cat (3, a, b), cat (3, c, d)), 436s cat (3, [ac cd])) 436s 436s assert (colorangle (cat (1, a, b), cat (3, c, d)), 436s reshape ([ac bc ad bd], [2 2])) 436s !!!!! known failure 436s dot: sizes of X and Y must match 436s 21 tests, 20 passed, 1 known failure, 0 skipped 436s [inst/checkerboard.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/checkerboard.m 436s ***** demo 436s ## Simplest case, default checkerboard size: 436s ## 8 by 8 checkerboard, with squares 10 pixel wide 436s board = checkerboard (); 436s imshow (board) 436s ***** demo 436s ## Simplest case, default checkerboard size: 436s ## 8 by 16 checkerboard, with squares 5 pixel wide 436s board = checkerboard (5, 4, 8); 436s imshow (board) 436s ***** assert (checkerboard (0), zeros (0, 0)) 436s ***** assert (checkerboard (0, 3), zeros (0, 0)) 436s ***** assert (checkerboard (0, 2, 4), zeros (0, 0)) 436s ***** assert (checkerboard (0, 2, 4, 3), zeros (0, 0, 0)) 436s ***** assert (checkerboard (0, 2, 4, 3, 2), zeros (0, 0, 0, 0)) 436s ***** assert (checkerboard (1, 4, 2, 3, 0), zeros (8, 4, 6, 0)) 436s ***** assert (checkerboard (1, 4, 0, 3, 2), zeros (8, 0, 6, 4)) 436s ***** assert (checkerboard (2, 4, 0, 3, 2), zeros (16, 0, 12, 8)) 436s ***** test 436s out = zeros (80); 436s i1 = ((1:20:80) + (0:9)')(:); 436s i2 = ((11:20:80) + (0:9)')(:); 436s out(i1, i2) = 1; 436s out(i2, i1) = 1; 436s i1r = ((41:20:80) + (0:9)')(:); 436s i2r = ((51:20:80) + (0:9)')(:); 436s out(i2, i1r) = 0.7; 436s out(i1, i2r) = 0.7; 436s assert (checkerboard (), out) 436s assert (checkerboard (10, 4, 4), out) 436s assert (checkerboard (10, [4 4]), out) 436s assert (checkerboard (10, [4; 4]), out) 436s ***** test 436s out = zeros (8); 436s out(2:2:8, 1:2:8) = 1; 436s out(1:2:8, 2:2:8) = 1; 436s out(1:2:8, 6:2:8) = 0.7; 436s out(2:2:8, 5:2:8) = 0.7; 436s assert (checkerboard (1), out) 436s assert (checkerboard (1, 4), out) 436s assert (checkerboard (1, 4, 4), out) 436s assert (checkerboard (1, [4 4]), out) 436s ***** test 436s out = zeros (10); 436s out(2:2:10, 1:2:10) = 1; 436s out(1:2:10, 2:2:10) = 1; 436s out(1:2:10, 6:2:10) = 0.7; 436s out(2:2:10, 7:2:10) = 0.7; 436s assert (checkerboard (1, 5), out) 436s assert (checkerboard (1, 5, 5), out) 436s assert (checkerboard (1, [5 5]), out) 436s ***** test 436s out = zeros (20); 436s out([1:4:20 2:4:20], [3:4:20 4:4:20]) = 1; 436s out([3:4:20 4:4:20], [1:4:20 2:4:20]) = 1; 436s out([1:4:20 2:4:20], [11:4:20 12:4:20]) = 0.7; 436s out([3:4:20 4:4:20], [13:4:20 14:4:20]) = 0.7; 436s assert (checkerboard (2, 5), out) 436s assert (checkerboard (2, 5, 5), out) 436s assert (checkerboard (2, [5 5]), out) 436s ***** test 436s out = zeros (4, 4, 4); 436s out([1 3], 1, [1 3]) = 1; 436s out([2 4], 2, [1 3]) = 1; 436s out([1 3], 2, [2 4]) = 1; 436s out([2 4], 1, [2 4]) = 1; 436s out([1 3], 3, [1 3]) = 0.7; 436s out([2 4], 4, [1 3]) = 0.7; 436s out([1 3], 4, [2 4]) = 0.7; 436s out([2 4], 3, [2 4]) = 0.7; 436s assert (checkerboard (1, [2 2 2]), out) 436s assert (checkerboard (1, 2, 2, 2), out) 436s ***** test 436s out = zeros (8, 8, 8); 436s out([1 2 5 6], [1 2], [1 2 5 6]) = 1; 436s out([3 4 7 8], [3 4], [1 2 5 6]) = 1; 436s out([1 2 5 6], [3 4], [3 4 7 8]) = 1; 436s out([3 4 7 8], [1 2], [3 4 7 8]) = 1; 436s out([1 2 5 6], [5 6], [1 2 5 6]) = 0.7; 436s out([3 4 7 8], [7 8], [1 2 5 6]) = 0.7; 436s out([1 2 5 6], [7 8], [3 4 7 8]) = 0.7; 436s out([3 4 7 8], [5 6], [3 4 7 8]) = 0.7; 436s assert (checkerboard (2, [2 2 2]), out) 436s assert (checkerboard (2, 2, 2, 2), out) 436s 14 tests, 14 passed, 0 known failure, 0 skipped 436s [inst/imfilter.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imfilter.m 436s ***** test 436s img = [ 436s 8 2 6 7 4 3 7 8 4 1 436s 9 9 1 1 4 7 3 3 8 1 436s 2 9 8 3 7 6 5 8 6 5 436s 9 5 9 1 8 2 7 3 5 8 436s 6 8 7 1 2 2 9 9 9 9 436s 1 2 7 8 5 5 9 4 3 2 436s 3 4 7 7 5 9 5 2 7 6 436s 5 9 4 3 6 4 2 3 7 5 436s 9 8 6 9 7 6 2 6 4 1 436s 9 9 2 1 7 3 3 5 6 4]; 436s 436s expected_corr = [ 436s 46 53 30 34 44 42 40 51 42 19 436s 48 66 57 42 46 50 59 58 49 34 436s 48 67 55 54 44 58 50 50 64 39 436s 44 77 52 43 28 55 57 75 70 50 436s 29 51 65 51 42 50 60 62 55 42 436s 23 44 58 59 63 59 55 57 50 36 436s 36 50 52 56 56 47 48 45 47 39 436s 51 64 70 62 56 50 40 38 41 31 436s 58 72 50 49 58 45 41 42 49 28 436s 27 37 27 21 19 26 16 23 24 17]; 436s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2]), expected_corr) 436s 436s ## test order of options (and matching with defaults) 436s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2], 0), expected_corr) 436s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2], "corr"), expected_corr) 436s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2], "corr", 0), expected_corr) 436s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2], 0, "corr"), expected_corr) 436s 436s expected_conv = [ 436s 21 31 23 22 21 28 29 26 22 6 436s 47 55 43 43 51 44 49 64 44 24 436s 56 69 53 34 47 50 57 48 52 37 436s 38 70 60 56 41 57 54 61 66 44 436s 46 67 53 48 32 54 59 65 63 46 436s 28 56 63 50 36 54 58 66 63 47 436s 20 43 55 62 67 57 52 53 44 28 436s 42 51 54 61 57 53 44 46 48 39 436s 53 70 63 50 57 42 38 38 43 33 436s 53 62 50 54 52 44 38 40 40 20]; 436s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2], "conv"), expected_conv) 436s 436s ## alternative class 436s assert (imfilter (single (img), [0 1 0; 2 1 1; 1 2 2]), 436s single (expected_corr)) 436s assert (imfilter (int8 (img), [0 1 0; 2 1 1; 1 2 2]), 436s int8 (expected_corr)) 436s assert (imfilter (uint8 (img), [0 1 0; 2 1 1; 1 2 2]), 436s uint8 (expected_corr)) 436s 436s assert (imfilter (single (img), [0 1 0; 2 1 1; 1 2 2], "conv"), 436s single (expected_conv)) 436s assert (imfilter (int8 (img), [0 1 0; 2 1 1; 1 2 2], "conv"), 436s int8 (expected_conv)) 436s assert (imfilter (uint8 (img), [0 1 0; 2 1 1; 1 2 2], "conv"), 436s uint8 (expected_conv)) 436s 436s ***** test 436s I = zeros (6); 436s I(2:3,2:3) = 1; 436s F = zeros (4); 436s F(2,2:3) = 1; 436s result = [0 0 0 0 0 0 436s 1 2 1 0 0 0 436s 1 2 1 0 0 0 436s 0 0 0 0 0 0 436s 0 0 0 0 0 0 436s 0 0 0 0 0 0]; 436s assert (imfilter (I, F), result) 436s 2 tests, 2 passed, 0 known failure, 0 skipped 436s [inst/lab2rgb.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/lab2rgb.m 436s ***** assert (lab2rgb ([0 0 0]), [0, 0, 0], 1e-3) 436s ***** assert (lab2rgb ([53.24, 80.09, 67.20]), [1 0 0], 1e-3) 436s ***** assert (lab2rgb ([97.14, -21.55, 94.48]), [1 1 0], 1e-3) 436s ***** assert (lab2rgb ([87.74, -86.18, 83.18]), [0 1 0], 1e-3) 436s ***** assert (lab2rgb ([91.11, -48.09, -14.13]), [0 1 1], 1e-3) 436s ***** assert (lab2rgb ([32.30, 79.19, -107.86]), [0 0 1], 1e-3) 436s ***** assert (lab2rgb ([60.32, 98.24, -60.83]), [1 0 1], 1e-3) 436s ***** assert (lab2rgb ([100, 0.00, 0.00]), [1 1 1], 1e-3) 436s ***** assert (lab2rgb ([53.39, 0.00, 0.00]), [0.5 0.5 0.5], 1e-3) 436s ***** assert (lab2rgb ([39.77, 64.51, 54.13]), [0.75 0 0], 1e-3) 436s ***** assert (lab2rgb ([25.42, 47.91, 37.91]), [0.5 0 0], 1e-3) 436s ***** assert (lab2rgb ([9.66, 29.68, 15.24]), [0.25 0 0], 1e-3) 436s ***** assert (lab2rgb ([68.11, 48.39, 22.83]), [1 0.5 0.5], 1e-3) 436s ***** assert (lab2rgb ([150 130 130]), [2.714, 1.028, 0.492], 1e-3) 436s ***** test 436s lab_map = rand (64, 3); 436s lab_map(:,1) = lab_map(:,1) .* 100; 436s lab_map(:,2) = lab_map(:,2) .* 254 - 127; 436s lab_map(:,3) = lab_map(:,3) .* 254 - 127; 436s assert (rgb2lab (lab2rgb (lab_map)), lab_map, 5e-3); 436s ***** test 436s lab_img = rand (64, 64, 3); 436s lab_img(:,:,1) = lab_img(:,:,1) .* 100; 436s lab_img(:,:,2) = lab_img(:,:,2) .* 254 - 127; 436s lab_img(:,:,3) = lab_img(:,:,3) .* 254 - 127; 436s assert (rgb2lab (lab2rgb (lab_img)), lab_img, 5e-3); 436s ***** assert (lab2rgb (sparse ([0 0 0])), [0 0 0], 1e-3) 436s ***** assert (lab2rgb (sparse ([100, 0.00, 0.00])), [1 1 1], 1e-3) 436s ***** assert (class (lab2rgb (single([50 50 50]))), 'single') 436s ***** error lab2rgb () 436s ***** error lab2rgb (1,2) 436s ***** error lab2rgb ({1}) 436s ***** error lab2rgb (ones (2,2)) 436s ***** test 436s lab = rand (16, 16, 3, 5); 436s lab(:,:,1,:) = lab(:,:,1,:) .* 100; 436s lab(:,:,2,:) = lab(:,:,2,:) .* 254 - 127; 436s lab(:,:,3,:) = lab(:,:,3,:) .* 254 - 127; 436s rgb = zeros (size (lab)); 436s for i = 1:5 436s rgb(:,:,:,i) = lab2rgb (lab(:,:,:,i)); 436s endfor 436s assert (lab2rgb (lab), rgb) 436s 24 tests, 24 passed, 0 known failure, 0 skipped 436s [inst/iptcheckmap.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/iptcheckmap.m 436s ***** test ("iptcheckmap (jet(64), 'func', 'var', 2)"); # simple must work 436s ***** fail ("iptcheckmap (3, 'func', 'var', 2)"); # not a colormap 436s 2 tests, 2 passed, 0 known failure, 0 skipped 436s [inst/im2int16.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/im2int16.m 436s ***** assert (im2int16 (int16 ([-2 2 3])), int16 ([-2 2 3])); 436s ***** assert (im2int16 (uint16 ([0 65535])), int16 ([-32768 32767])); 436s ***** assert (im2int16 ([false true]), int16 ([-32768 32767])); 436s ***** assert (im2int16 ([true false]), int16 ([32767 -32768])); 436s ***** assert (im2int16 (uint8 ([0 127 128 255])), int16 ([-32768 -129 128 32767])); 436s ***** assert (im2int16 ([0 1.4/65535 1.5/65535 2/65535 1]), int16 ([-32768 -32767 -32766 -32766 32767])); 436s ***** assert (im2int16 ([0 0.5 1]), int16 ([-32768 0 32767])); 436s ***** assert (im2int16 ([-1 0 1 2]), int16 ([-32768 -32768 32767 32767])); 436s ***** error im2int16 ([1 2], "indexed"); 436s 9 tests, 9 passed, 0 known failure, 0 skipped 436s [inst/mat2gray.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/mat2gray.m 436s ***** assert(mat2gray([1 2 3]), [0 0.5 1]); # standard use 436s ***** assert(mat2gray(repmat ([1 2; 3 3], [1 1 3])), repmat ([0 0.5; 1 1], [1 1 3])); # setting min and max 436s ***** assert(mat2gray([1 2 3], [2 2]), [1 1 1]); # equal min and max 436s ***** assert(mat2gray([-1 0 0.5 3], [2 2]), [0 0 0.5 1]); # equal min and max 436s ***** test 436s ## SCALE is unset and all values in the input IMAGE are the same: 436s ## case 1: all values are in the [0 1] range] 436s assert (mat2gray ([.5 .5; .5 .5]), [.5 .5; .5 .5]) 436s ## case 2: all values are above the [0 1] range 436s assert (mat2gray ([3 3; 3 3]), [1 1; 1 1]) 436s ## case 2: all values are below the [0 1] range 436s assert (mat2gray ([-3 -3; -3 -3]), [0 0; 0 0]) 436s ***** assert(mat2gray([1 2 3], [3 1]), [1 0.5 0]); # max and min inverted 436s ***** assert (mat2gray ([-3 -2 -1]), [0 0.5 1]) 436s 7 tests, 7 passed, 0 known failure, 0 skipped 436s [inst/bwmorph.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/bwmorph.m 436s ***** demo 436s bwmorph (true (11), "shrink", Inf) 436s # Should return 0 matrix with 1 pixel set to 1 at (6,6) 436s ***** test 436s slBW = logical ([ 0 0 0 0 0 0 0 436s 0 1 0 0 0 0 0 436s 0 0 1 1 0 0 0 436s 0 0 1 1 0 0 0 436s 0 0 1 1 1 0 0 436s 0 0 1 1 1 0 0 436s 0 1 1 1 1 1 0 436s 0 1 1 1 1 1 0 436s 0 1 1 1 1 1 0 436s 0 1 1 1 1 1 0 436s 0 1 1 1 1 1 0 436s 0 0 0 0 0 0 0]); 436s 436s rslBW = logical ([ 0 0 0 0 0 0 0 436s 0 1 0 0 0 0 0 436s 0 0 1 1 0 0 0 436s 0 0 1 1 0 0 0 436s 0 0 0 0 0 0 0 436s 0 0 0 1 0 0 0 436s 0 0 0 1 0 0 0 436s 0 0 0 0 0 0 0 436s 0 0 0 1 0 0 0 436s 0 0 0 0 0 0 0 436s 0 0 0 0 0 0 0 436s 0 0 0 0 0 0 0]); 436s assert (bwmorph (slBW, "skel-lantuejoul", 1), [rslBW(1:5,:); false(7, 7)]); 436s assert (bwmorph (slBW, "skel-lantuejoul", 2), [rslBW(1:8,:); false(4, 7)]); 436s assert (bwmorph (slBW, "skel-lantuejoul", 3), rslBW); 436s assert (bwmorph (slBW, "skel-lantuejoul", Inf), rslBW); 436s ***** test 436s bw = [ 436s 0 1 1 1 1 1 436s 0 1 1 1 1 1 436s 0 1 1 1 1 1 436s 1 1 1 1 1 1 436s 1 1 1 1 1 1 436s 1 1 1 1 1 1 436s 1 1 1 1 1 0 436s 1 1 1 1 1 0 436s 1 1 1 1 1 0]; 436s 436s final = logical ([ 436s 0 1 0 0 0 1 436s 0 0 1 0 1 0 436s 0 0 0 1 0 0 436s 0 0 0 1 0 0 436s 0 0 1 1 0 0 436s 0 0 1 0 0 0 436s 0 0 1 0 0 0 436s 0 1 0 1 0 0 436s 1 0 0 0 1 0]); 436s assert (bwmorph (bw, "skel", Inf), final) 436s assert (bwmorph (bw, "skel", 3), final) 436s ***** error bwmorph ("not a matrix", "dilate") 436s ***** assert (bwmorph (magic (10), "dilate"), imdilate (logical (magic (10)), ones (3))); 436s ***** test 436s in = logical ([1 1 0 0 1 0 1 0 0 0 1 1 1 0 1 1 0 1 0 0 436s 1 1 1 0 1 0 1 1 1 1 0 1 0 1 0 0 0 0 0 0 436s 0 1 1 1 0 1 1 0 0 0 1 1 0 0 1 1 0 0 1 0 436s 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 1 1 0 0 1 436s 0 1 0 0 1 1 0 1 1 0 0 0 0 0 1 1 0 0 1 0 436s 0 0 1 1 1 1 1 0 0 1 0 1 1 1 0 0 1 0 0 1 436s 0 1 1 1 1 1 1 0 1 1 1 0 0 0 1 0 0 1 0 0 436s 1 0 1 1 1 0 1 1 0 1 0 0 1 1 1 0 0 1 0 0 436s 1 0 1 1 1 0 1 0 0 1 0 0 1 1 0 0 1 1 1 0 436s 1 0 1 1 1 1 0 0 0 1 0 0 0 0 0 0 1 1 0 0 436s 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 1 0 1 1 436s 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0 0 0 1 0 0 436s 0 0 1 1 0 1 1 1 1 0 0 1 0 0 0 0 1 0 1 1 436s 0 0 1 1 0 0 1 1 1 0 0 0 1 1 1 1 0 0 0 0 436s 0 0 1 0 0 0 0 0 0 1 0 0 1 1 1 1 0 0 0 0 436s 0 0 0 0 0 0 1 1 1 0 0 0 1 1 1 1 1 0 0 0 436s 0 1 0 0 0 1 1 0 1 1 0 0 1 1 1 0 1 1 1 1 436s 1 0 0 1 0 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 436s 0 0 1 1 0 1 1 1 1 0 0 0 0 1 1 0 1 1 1 1 436s 0 1 1 0 0 1 0 0 1 1 0 0 1 0 0 1 0 0 0 1]); 436s se = strel ("arbitrary", ones (3)); 436s 436s assert (bwmorph (in, "dilate"), imdilate (in, se)); 436s assert (bwmorph (in, "dilate", 3), imdilate (imdilate (imdilate (in, se), se), se)); 436s assert (bwmorph (in, "bothat"), imbothat (in, se)); 436s assert (bwmorph (in, "tophat"), imtophat (in, se)); 436s assert (bwmorph (in, "open"), imopen (in, se)); 436s assert (bwmorph (in, "close"), imclose (in, se)); 436s ***** assert (bwmorph ([1 0 0; 1 0 1; 0 0 1], "bridge"), logical ([1 1 0; 1 1 1; 0 1 1])); 436s ***** assert (bwmorph ([0 0 0; 1 0 1; 0 0 1], "clean"), logical ([0 0 0; 0 0 1; 0 0 1])); 436s ***** assert (bwmorph ([0 0 0; 0 1 0; 0 0 0], "clean"), false (3)); 436s ***** assert (bwmorph ([0 1 0; 1 0 0; 0 0 0], "diag"), logical ([1 1 0; 1 1 0; 0 0 0])); 436s ***** test 436s in = logical ([0 1 0 1 0 436s 1 1 1 0 1 436s 1 0 0 1 0 436s 1 1 1 0 1 436s 1 1 1 1 1]); 436s out = logical ([0 1 0 1 0 436s 1 1 1 1 1 436s 1 0 0 1 0 436s 1 1 1 1 1 436s 1 1 1 1 1]); 436s assert (bwmorph (in, "fill"), out); 436s ***** assert (bwmorph ([1 1 1; 0 1 0; 1 1 1], "hbreak"), logical ([1 1 1; 0 0 0; 1 1 1])); 436s ***** test 436s in = logical ([0 1 0 0 0 436s 1 0 0 1 0 436s 1 0 1 0 0 436s 1 1 1 1 1 436s 1 1 1 1 1]); 436s 436s out = logical ([0 1 0 0 0 436s 1 0 0 1 0 436s 1 0 1 0 0 436s 1 1 0 1 1 436s 1 1 1 1 1]); 436s assert (bwmorph (in, "remove"), out); 436s 436s out = logical ([0 1 0 0 0 436s 1 0 0 1 0 436s 1 0 1 0 0 436s 1 1 0 1 1 436s 1 1 1 1 1]); 436s assert (bwmorph (in, "remove", Inf), out); 436s ***** xtest 436s ## tests for spur are failing (matlab incompatible) 436s in = logical ([0 1 0 0 0 436s 1 0 0 1 0 436s 1 0 1 0 0 436s 1 1 1 1 1 436s 1 1 1 1 1]); 436s 436s out = logical ([0 1 0 0 0 436s 1 0 0 0 0 436s 1 0 1 0 0 436s 1 1 1 1 1 436s 1 1 1 1 1]); 436s assert (bwmorph (in, "spur"), out); 436s 436s out = logical ([0 1 0 0 0 436s 1 0 0 0 0 436s 1 0 0 0 0 436s 1 1 1 1 1 436s 1 1 1 1 1]); 436s assert (bwmorph (in, "spur", Inf), out); 436s !!!!! known failure 436s ASSERT errors for: assert (bwmorph (in, "spur"),out) 436s 436s Location | Observed | Expected | Reason 436s (1,2) 0 1 Abs err 1 exceeds tol 0 by 1 436s ***** test 436s bw = false (3, 3); 436s bw(3, 1) = true; 436s out = bwmorph (bw, "thicken", 0); 436s assert (out, bw) 436s ***** test 436s bw = false (8, 7); 436s bw(8, 1) = true; 436s expected = logical ([ 436s 0 0 0 0 0 0 0 436s 1 0 0 0 0 0 0 436s 1 1 0 0 0 0 0 436s 1 1 1 0 0 0 0 436s 1 1 1 1 0 0 0 436s 1 1 1 1 1 0 0 436s 1 1 1 1 1 1 0 436s 1 1 1 1 1 1 1]); 436s out = bwmorph (bw, "thicken", 6); 436s assert (out, expected) 436s ***** test 436s bw = false (8, 7); 436s bw(2, 4) = true; 436s expected = logical ([ 436s 0 0 1 1 1 0 0 436s 0 1 1 1 1 1 0 436s 0 0 1 1 1 0 0 436s 0 0 0 1 0 0 0 436s 0 0 0 0 0 0 0 436s 0 0 0 0 0 0 0 436s 0 0 0 0 0 0 0 436s 0 0 0 0 0 0 0]); 436s out = bwmorph (bw, "thicken", 2); 436s assert (out, expected) 436s ***** test 436s bw = false (8, 7); 436s bw (6, 3) = true ; 436s expected1 = logical ([ 436s 0 0 0 0 0 0 0 436s 0 0 0 0 0 0 0 436s 0 0 0 0 0 0 0 436s 0 0 0 0 0 0 0 436s 0 0 1 0 0 0 0 436s 0 1 1 1 0 0 0 436s 0 0 1 0 0 0 0 436s 0 0 0 0 0 0 0]); 436s expected3 = logical ([ 436s 0 0 0 0 0 0 0 436s 0 0 0 0 0 0 0 436s 0 0 1 0 0 0 0 436s 0 1 1 1 0 0 0 436s 1 1 1 1 1 0 0 436s 1 1 1 1 1 1 0 436s 1 1 1 1 1 0 0 436s 0 1 1 1 0 0 0]); 436s out1 = bwmorph (bw, "thicken", 1); 436s out3 = bwmorph (bw, "thicken", 3); 436s assert (out1, expected1) 436s assert (out3, expected3) 436s ***** test 436s bw = false (10, 10); 436s bw(2, 3) = true; 436s bw(7, 7) = true; 436s out_inf = bwmorph (bw, "thicken", Inf); 436s assert (out_inf(1, 9), false) 436s ***** test 436s bw = false (3, 3); 436s bw(3, 1) = true; 436s out = bwmorph (bw, "thicken", 4); 436s assert (out, true (3, 3)) 436s ***** xtest 436s ## bug #44396 436s in = [ 436s 0 0 0 1 0 436s 1 1 1 1 0 436s 0 0 1 1 0 436s 0 0 1 1 0 436s 0 0 0 1 0]; 436s out = [ 436s 0 0 0 0 0 436s 0 1 1 0 0 436s 0 0 0 1 0 436s 0 0 0 0 0 436s 0 0 0 0 0]; 436s assert (bwmorph (in, "shrink"), logical (out)); 436s !!!!! known failure 436s ASSERT errors for: assert (bwmorph (in, "shrink"),logical (out)) 436s 436s Location | Observed | Expected | Reason 436s (2,4) 1 0 Abs err 1 exceeds tol 0 by 1 436s (3,4) 0 1 Abs err 1 exceeds tol 0 by 1 436s (4,4) 1 0 Abs err 1 exceeds tol 0 by 1 436s (5,4) 1 0 Abs err 1 exceeds tol 0 by 1 436s ***** test 436s H = false (7,7); 436s H(2:3,2:3) = 1; 436s H(5:6,5:6) = 1; 436s T = logical([0 0 0 0 0 0 0; 436s 0 0 0 0 0 0 0; 436s 0 1 0 0 0 0 0; 436s 0 0 0 0 0 0 0; 436s 0 0 0 0 0 0 0; 436s 0 0 0 0 1 0 0; 436s 0 0 0 0 0 0 0]); 436s out = bwmorph (H, "thin", 1); 436s assert (T, out) 436s 436s H(4:6,4:6) = 1; 436s T = logical([0 0 0 0 0 0 0; 436s 0 0 0 0 0 0 0; 436s 0 1 1 0 0 0 0; 436s 0 0 0 1 0 0 0; 436s 0 0 0 0 1 0 0; 436s 0 0 0 0 0 0 0; 436s 0 0 0 0 0 0 0]); 436s out = bwmorph (H, "thin", 1); 436s assert (T, out) 436s 436s H3 = [0 0 0 0 0 0; 436s 0 1 1 1 0 0; 436s 0 1 1 1 0 0; 436s 0 0 0 1 0 1; 436s 0 0 0 0 1 1; 436s 0 0 0 1 1 1]; 436s out3 = bwmorph (H3, "thin", 1); 436s expected3 = logical( 436s [0 0 0 0 0 0; 436s 0 0 0 0 0 0; 436s 0 1 1 0 0 0; 436s 0 0 0 1 0 1; 436s 0 0 0 0 1 0; 436s 0 0 0 1 1 0]); 436s assert (out3, expected3) 436s 436s out33 = bwmorph (H3, "thin", 2); 436s expected33 = logical( 436s [0 0 0 0 0 0; 436s 0 0 0 0 0 0; 436s 0 1 1 0 0 0; 436s 0 0 0 1 0 1; 436s 0 0 0 0 1 0; 436s 0 0 0 1 0 0]); 436s assert (out33, expected33) 436s 436s out333 = bwmorph (H3, "thin", inf); 436s assert (out333, expected33) 436s ***** test 436s in = logical ([ 436s 1 0 0 0 436s 0 1 0 0 436s 0 0 1 0 436s 0 0 0 0]); 436s out = logical ([ 436s 1 0 0 0 436s 0 0 0 0 436s 0 0 1 0 436s 0 0 0 0]); 436s assert (bwmorph (in, "endpoints"), out); 436s 436s A = logical ([0 0 0 0 0; 0 0 1 0 0; 0 1 1 1 0; 0 0 1 0 0; 0 0 0 0 0]); 436s B = logical ([0 0 0 0 0; 0 0 1 0 0; 0 1 0 1 0; 0 0 1 0 0; 0 0 0 0 0]); 436s assert (bwmorph (A, "endpoints"), B); 436s 436s A = logical ([0 0 0 0 0 0 0 0 436s 1 1 0 0 0 0 1 1 436s 0 0 1 1 1 1 0 0 436s 0 0 0 1 1 0 0 0 436s 0 0 1 1 1 1 0 0 436s 0 1 0 0 0 0 1 0 436s 1 0 0 0 0 0 0 1]); 436s B = logical ([0 0 0 0 0 0 0 0 436s 1 0 0 0 0 0 0 1 436s 0 0 0 0 0 0 0 0 436s 0 0 0 1 1 0 0 0 436s 0 0 0 0 0 0 0 0 436s 0 0 0 0 0 0 0 0 436s 1 0 0 0 0 0 0 1]); 436s assert (bwmorph (A, "endpoints"), B); 436s 436s A = logical([0 0 0 0 0; 0 1 1 1 0; 0 1 1 1 0; 0 1 1 1 0; 0 0 0 0 0]); 436s B = logical([0 0 0 0 0; 0 1 1 1 0; 0 1 0 1 0; 0 1 1 1 0; 0 0 0 0 0]); 436s assert (bwmorph (A, "endpoints"), B); 436s assert (bwmorph (B, "endpoints"), zeros (5, "logical")); 436s 436s A = logical([0,0,0,0,0,0,0,0,0,0,0,0,0,0 436s 0,0,1,1,1,1,1,1,1,1,1,1,0,0 436s 0,0,0,0,0,0,0,0,0,0,0,0,0,0]); 436s B = logical([0,0,0,0,0,0,0,0,0,0,0,0,0,0 436s 0,0,1,0,0,0,0,0,0,0,0,1,0,0 436s 0,0,0,0,0,0,0,0,0,0,0,0,0,0]); 436s C = logical([1,0,0,0,0,0,0,0,0,0,0,0,0,1 436s 1,1,0,0,0,0,0,0,0,0,0,0,1,1 436s 1,0,0,0,0,0,0,0,0,0,0,0,0,1]); 436s assert (bwmorph (!A, "endpoints"), C); 436s 22 tests, 20 passed, 2 known failures, 0 skipped 436s [inst/qtdecomp.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/qtdecomp.m 436s ***** demo 436s full(qtdecomp(eye(8))) 436s %It finds 2 big blocks of 0 and it decomposes further where 0 and 1 are mixed. 436s ***** # Test if odd-sized limits split 436s ***** assert(full(qtdecomp(eye(5))), reshape([5,zeros(1,24)],5,5)); 436s ***** assert(full(qtdecomp(eye(6))), repmat(reshape([3,zeros(1,8)],3,3),2,2)); 436s ***** # Test 'equal' method 436s ***** test 436s a=ones(2,2); 436s b=[2,0;0,0]; 436s assert(full(qtdecomp(eye(4))), [a,b;b,a]); 436s ***** shared A, B2, B4 436s A=[ 1, 4, 2, 5,54,55,61,62; 436s 3, 6, 3, 1,58,53,67,65; 436s 3, 6, 3, 1,58,53,67,65; 436s 3, 6, 3, 1,58,53,67,65; 436s 23,42,42,42,99,99,99,99; 436s 27,42,42,42,99,99,99,99; 436s 23,22,26,25,99,99,99,99; 436s 22,22,24,22,99,99,99,99]; 436s B2=[2,0;0,0]; 436s B4=zeros(4); B4(1,1)=4; 436s ***** test 436s R=[ones(4,8); [ones(2),B2;ones(2,4)], B4]; 436s assert(full(qtdecomp(A)), R); 436s assert(full(qtdecomp(A,0)), R); 436s ***** # Test 'threshold' method 436s ***** test 436s R=[ones(4,8); [ones(2),B2;B2,ones(2)],B4]; 436s assert(full(qtdecomp(A,1)), R); 436s ***** test 436s R=[[B4,[B2,B2;B2,B2]]; [[ones(2),B2;B2,B2],B4]]; 436s assert(full(qtdecomp(A,10)), R); 436s ***** test 436s R=[[B4,[B2,B2;B2,B2]]; [[B2,B2;B2,B2],B4]]; 436s assert(full(qtdecomp(A,10,2)), R); 436s 436s assert(full(qtdecomp(A,100,[2, 4])), [B4,B4;B4,B4]); 436s ***** test 436s f = @(A, c1 = 54, c2 = 0, c3 = 0) (A (1, 1, :) != ((c1+c2+c3) * ones (1, 1, size (A, 3))))(:); 436s 436s assert(full(qtdecomp(A,f)),[ones(4),B4;ones(4,8)]); 436s assert(full(qtdecomp(A,f,54)),[ones(4),B4;ones(4,8)]); 436s assert(full(qtdecomp(A,f,4,40,10)),[ones(4),B4;ones(4,8)]); 436s ***** test 436s ***** # no params 436s first_eq=inline("(A(1,1,:)!=(54*ones(1,1,size(A,3))))(:)","A"); 436s assert(full(qtdecomp(A,first_eq)),[ones(4),B4;ones(4,8)]); 436s ***** test 436s ***** # 1 param 436s first_eq=inline("(A(1,1,:)!=(c*ones(1,1,size(A,3))))(:)","A","c"); 436s assert(full(qtdecomp(A,first_eq,54)),[ones(4),B4;ones(4,8)]); 436s ***** test 436s ***** # 3 params 436s first_eq=inline("(A(1,1,:)!=((c1+c2+c3)*ones(1,1,size(A,3))))(:)","A","c1","c2","c3"); 436s assert(full(qtdecomp(A,first_eq,4,40,10)),[ones(4),B4;ones(4,8)]); 436s 11 tests, 11 passed, 0 known failure, 0 skipped 436s [inst/imgradientxy.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imgradientxy.m 436s ***** test 436s A = [0 1 0 436s 1 1 1 436s 0 1 0]; 436s 436s [gxSobel, gySobel] = imgradientxy (A); 436s [gxSobel2, gySobel2] = imgradientxy (A, "Sobel"); 436s assert (gxSobel, 436s [ 3 0 -3 436s 4 0 -4 436s 3 0 -3]); 436s assert (gySobel, 436s [ 3 4 3 436s 0 0 0 436s -3 -4 -3]); 436s 436s ## test default method 436s assert(gxSobel, gxSobel2); 436s assert(gySobel, gySobel2); 436s 436s [gxPrewitt, gyPrewitt] = imgradientxy (A, "Prewitt"); 436s assert (gxPrewitt, 436s [ 2 0 -2 436s 3 0 -3 436s 2 0 -2]); 436s assert (gyPrewitt, 436s [ 2 3 2 436s 0 0 0 436s -2 -3 -2]); 436s 436s [gxCd, gyCd] = imgradientxy (A, "CentralDifference"); 436s assert (gxCd, 436s [ 0.5 0.0 -0.5 436s 0.5 0.0 -0.5 436s 0.5 0.0 -0.5]); 436s assert (gyCd, 436s [ 0.5 0.5 0.5 436s 0 0 0 436s -0.5 -0.5 -0.5]); 436s 436s [gxCd, gyCd] = imgradientxy (A, "Central"); 436s assert (gxCd, 436s [ 0.5 0.0 -0.5 436s 0.5 0.0 -0.5 436s 0.5 0.0 -0.5]); 436s assert (gyCd, 436s [ 0.5 0.5 0.5 436s 0 0 0 436s -0.5 -0.5 -0.5]); 436s 436s [gxId, gyId] = imgradientxy(A, "IntermediateDifference"); 436s assert (gxId, 436s [ 1 -1 0 436s 0 0 -1 436s 1 -1 0]); 436s assert (gyId, 436s [ 1 0 1 436s -1 0 -1 436s 0 -1 0]); 436s 436s [gxId, gyId] = imgradientxy(A, "Intermediate"); 436s assert (gxId, 436s [ 1 -1 0 436s 0 0 -1 436s 1 -1 0]); 436s assert (gyId, 436s [ 1 0 1 436s -1 0 -1 436s 0 -1 0]); 436s 1 test, 1 passed, 0 known failure, 0 skipped 436s [inst/psf2otf.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/psf2otf.m 436s ***** test 436s psf = rand (6, 1); 436s assert (psf2otf (psf), fft (circshift (psf, [-3])), eps); 436s ***** test 436s psf = rand (6, 6); 436s assert (psf2otf (psf), fft2 (circshift (psf, [-3 -3])), eps); 436s ***** test 436s psf = rand (6, 6, 6); 436s assert (psf2otf (psf), fftn (circshift (psf, [-3 -3 -3])), eps); 436s ***** test 436s psf = rand (7, 1); 436s assert (psf2otf (psf), fft (circshift (psf, [-3])), eps); 436s ***** test 436s psf = rand (7, 7); 436s assert (psf2otf (psf), fft2 (circshift (psf, [-3 -3])), eps); 436s ***** test 436s psf = rand (6, 7, 8); 436s assert (psf2otf (psf), fftn (circshift (psf, [-3 -3 -4])), eps); 436s ***** test 436s psf = rand (6, 1); 436s ppsf = [psf; 0]; 436s assert (psf2otf (psf, 7), fft (circshift (ppsf, [-3])), eps); 436s ***** test 436s psf = rand (6, 1); 436s ppsf = [[psf; 0] zeros(7, 6)]; 436s assert (psf2otf (psf, [7 7]), fft2 (circshift (ppsf, [-3 0])), eps); 436s ***** test 436s psf = rand (6, 6); 436s ppsf = [psf zeros(6, 1)]; 436s assert (psf2otf (psf, [6 7]), fft2 (circshift (ppsf, [-3 -3])), eps); 436s ***** error psf2otf ('foo') 436s ***** error psf2otf (rand (16), 14) 436s ***** error psf2otf (rand (16), [14 14]) 436s ***** error psf2otf (rand (16), [18]) 436s ***** error psf2otf (rand (16), [18 14]) 436s ***** test 436s psf = fspecial ("gaussian", 16) + 1i; 436s otf = psf2otf (psf); 436s assert (otf2psf (otf), psf, eps); 436s 15 tests, 15 passed, 0 known failure, 0 skipped 436s [inst/houghlines.m] 436s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/houghlines.m 436s ***** shared BW0, theta0, rho0, peaks0_1, peaks0_2, lines0_1, lines0_2, BW1, theta1, rho1, peaks1, lines1 436s BW0 = logical([0 0 0 0 1; 0 0 0 1 0; 1 0 1 0 0; 0 1 0 0 0; 1 1 1 1 1]); 436s theta0 = [-90:89]; 436s rho0 = [-7:7]; 436s peaks0_1 = [11 130]; 436s peaks0_2 = [11 130; 4 1]; 436s lines0_1 = struct ("point1", {[1,5]}, "point2", {[5,1]}, "theta", {39}, "rho", {3}); 436s lines0_2 = struct ("point1", {[1,5], [1,5]}, "point2", {[5,1],[5,5]}, "theta", {39,-90}, "rho", {3, -4}); 436s BW1 = diag(ones(50,1)); 436s theta1 = [-90:89]; 436s rho1 = -70:70; 436s peaks1 = [71 46]; 436s lines1 = struct ("point1", {[1 1]}, "point2", {[50 50]}, "theta", {-45}, "rho", {0}); 436s ***** error houghlines () 436s ***** error houghlines (BW1) 436s ***** error houghlines (BW1, theta1) 437s ***** error houghlines (BW1, theta1, rho1) 437s ***** assert (houghlines (BW1, theta1, rho1, peaks1), lines1) 437s ***** error (houghlines (BW1, theta1, rho1, peaks1, [1 2 3])) 437s ***** assert (houghlines (BW1, theta1, rho1, peaks1, "FillGap", 5), lines1) 437s ***** assert (houghlines (BW1, theta1, rho1, peaks1, "MinLength", 2), lines1) 437s ***** assert (houghlines (BW1, theta1, rho1, peaks1, "FillGap", 5, "MinLength", 2), lines1) 437s ***** assert (houghlines (BW1, theta1, rho1, peaks1, "MinLength", 2, "FillGap", 5), lines1) 437s ***** error houghlines (BW1, theta1, rho1, peaks1, "MinLength", 2, [1 2 3]) 437s ***** error houghlines (BW1, theta1, rho1, peaks1, "MinLength", 2, "FillGap", 5, [1 2 3]) 437s ***** assert (houghlines (double (BW1), theta1, rho1, peaks1), lines1) 437s ***** error houghlines (ones(5, 5, 5), theta1, rho1, peaks1) 437s ***** error houghlines ("nonsense", theta1, rho1, peaks1) 437s ***** error houghlines (BW1, ones(5), rho1, peaks1) 437s ***** error houghlines (BW1, "nonsense", rho1, peaks1) 437s ***** error houghlines (BW1, theta1, ones(5), peaks1) 437s ***** error houghlines (BW1, theta1, "nonsense", peaks1) 437s ***** error houghlines (BW1, theta1, rho1, ones(5)) 437s ***** error houghlines (BW1, theta1, rho1, ones(2,2,2)) 437s ***** error houghlines (BW1, theta1, rho1, "nonsense") 437s ***** error houghlines (BW1, theta1, rho1, peaks1, "nonsense", 5) 437s ***** error houghlines (BW1, theta1, rho1, peaks1, "MinLength", -5) 437s ***** error houghlines (BW1, theta1, rho1, peaks1, "MinLength", [3 4]) 437s ***** error houghlines (BW1, theta1, rho1, peaks1, "MinLength", "nonsense") 437s ***** error houghlines (BW1, theta1, rho1, peaks1, "FillGap", -5) 437s ***** error houghlines (BW1, theta1, rho1, peaks1, "FillGap", [3 4]) 437s ***** error houghlines (BW1, theta1, rho1, peaks1, "FillGap", "nonsense") 437s ***** test 437s out = houghlines(BW0, theta0, rho0, peaks0_2, "MinLength", 1); 437s assert (out, lines0_2) # includes class = struct, size = [1,2] 437s ***** test # for empty output 437s n = 100; 437s BW = false (n); 437s a = 50; % line starts at left side at row a 437s b = 3; % slope of line is 1:b 437s for column = 1:n 437s if (rem (column, b) == 0) 437s row = a - column/b; 437s BW(row, column) = true; 437s BW(row, column+1) = true; 437s end 437s end 437s theta = [-90: 89]; 437s rho = [-141:141]; 437s peaks = [188, 163]; 437s out = houghlines(BW, theta, rho, peaks, 'FillGap', 1, 'MinLength', 5); 437s assert (out, struct([])) 437s ***** test 437s out0_1 = houghlines(BW0, theta0, rho0, peaks0_1, 'MinLength', 1); 437s out0_2 = houghlines(BW0, theta0, rho0, peaks0_2, 'MinLength', 1); 437s assert (out0_1, lines0_1); 437s assert (out0_2, lines0_2); 437s ***** test 437s out = houghlines(BW1, theta1, rho1, peaks1); 437s assert (out, lines1); 437s ***** test 437s n = 100; 437s BW = false (n); 437s a = 50; % line starts at left side at row a 437s b = 3; % slope of line is 1:b 437s for column = 1:n 437s if (rem (column, b) == 0) 437s row = a - column/b; 437s BW(row, column) = true; 437s BW(row, column+1) = true; 437s end 437s end 437s theta = [-90:89]; 437s rho = [-141:141]; 437s peaks = [188, 163]; 437s lines_1 = struct ("point1", {[99 17]}, "point2", {[3 49]}, "theta", {72}, "rho", {46}); 437s out_1 = houghlines(BW, theta, rho, peaks); 437s out_n = houghlines(BW, theta, rho, peaks, 'FillGap', 1, 'MinLength', 1); 437s assert (out_1, lines_1) 437s assert (size (out_n), [1, 29]) 437s ***** demo 437s I = checkerboard (30, 1, 1); 437s I = imnoise(I, "salt & pepper", 0.2); 437s figure, imshow (I); 437s title ("noisy image with some lines"); 437s BW = edge (I, "canny"); 437s figure, imshow(BW); 437s title ("edge image"); 437s [H, theta, rho] = hough (BW); 437s figure, imshow (mat2gray (H), [], "XData", theta, "YData", rho); 437s title ("Hough transform of edge image \n 2 peaks marked"); 437s axis on; xlabel("theta [degrees]"); ylabel("rho [pixels]"); 437s peaks = houghpeaks (H, 2); 437s peaks_rho = rho(peaks(:,1)); 437s peaks_theta = theta(peaks(:,2)); 437s hold on; plot (peaks_theta, peaks_rho, "sr"); hold off; 437s lines = houghlines (BW, theta, rho, peaks); 437s figure, imshow (I), hold on; 437s for n = 1:length (lines) 437s points = [lines(n).point1; lines(n).point2]; 437s plot (points(:,1), points(:,2), "r"); 437s endfor 437s title ("the two strongest lines (edges) in the image"), hold off; 437s 34 tests, 34 passed, 0 known failure, 0 skipped 437s [inst/label2rgb.m] 437s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/label2rgb.m 437s ***** function map = test_colormap (unused) 437s map = [0 0 0; 0.5 0.5 0.5; 0.125 0.125 0.125]; 437s ***** endfunction 437s ***** shared in, out, cmap 437s in = [ 0 1 1 0 2 2 0 3 3 437s 0 1 1 0 2 2 0 3 3]; 437s 437s out = [255 0 0 255 128 128 255 32 32 437s 255 0 0 255 128 128 255 32 32]; 437s out(:,:,2) = out(:,:,3) = out(:,:,1); 437s out = uint8(out); 437s 437s cmap = [0 0 0; 0.5 0.5 0.5; 0.125 0.125 0.125]; 437s ***** assert (label2rgb (in, cmap), out); 437s ***** assert (label2rgb (uint8 (in), cmap), out); 437s ***** assert (label2rgb (in, "test_colormap"), out); 437s ***** assert (label2rgb (in, @test_colormap), out); 437s 437s out(find (in == 0)) = 0; 437s ***** assert (label2rgb (in, cmap, "cyan"), out); 437s ***** assert (label2rgb (in, cmap, [0 1 1]), out); 437s 437s in(1) = 10; 437s ***** error label2rgb (in, cmap); 437s ***** error label2rgb (in, cmap, 89); 437s ***** error label2rgb (in, cmap, "g", "wrong"); 437s 9 tests, 9 passed, 0 known failure, 0 skipped 437s [inst/immse.m] 437s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/immse.m 437s ***** error immse (rand (10), rand (12)) 437s ***** error immse (uint8 ([0 1 2 3]), uint16 ([0 1 2 3])) 437s ***** error immse (double ([0 1 2 3]), single ([0 1 2 3])) 437s ***** assert (immse (magic (5), magic (5)), 0) 437s ***** assert (immse (single (magic (5)), single (magic (5))), single (0)) 437s ***** assert (immse (uint8 (magic (5)), uint8 (magic (5))), 0) 437s 6 tests, 6 passed, 0 known failure, 0 skipped 437s [inst/isrgb.m] 437s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/isrgb.m 437s ***** assert (isrgb ("this is not a RGB image"), false); 437s ***** assert (isrgb (rand (5, 5)), false); 437s ***** assert (isrgb (rand (5, 5, 1, 5)), false); 437s ***** assert (isrgb (rand (5, 5, 3, 5)), true); 437s ***** assert (isrgb (rand (5, 5, 3)), true); 437s ***** assert (isrgb (ones (5, 5, 3)), true); 437s ***** assert (isrgb (ones (5, 5, 3) + eps), false); 437s ***** assert (isrgb (zeros (5, 5, 3) - eps), false); 437s ***** assert (isrgb (rand (5, 5, 3) > 0.5), false); 437s ***** assert (isrgb (randi ([-100 100], 5, 5, 3, "int16")), true) 437s 10 tests, 10 passed, 0 known failure, 0 skipped 437s [inst/bwunpack.m] 437s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/bwunpack.m 437s ***** error id=Octave:invalid-fun-call bwunpack () 437s ***** error bwunpack (uint8 (1)) 437s ***** error bwunpack (uint32 (1), -1) 437s ***** error bwunpack (uint32 (1), 4.2) 437s ***** xtest 437s ## bug #55521 437s assert (bwunpack (uint32 (2.^[0:31])), logical (eye (32))) 437s !!!!! known failure 437s ASSERT errors for: assert (bwunpack (uint32 (2 .^ [0:31])),logical (eye (32))) 437s 437s Location | Observed | Expected | Reason 437s (1,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (25,1) 1 0 Abs err 1 exceeds tol 0 by 1 437s (2,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (26,2) 1 0 Abs err 1 exceeds tol 0 by 1 437s (3,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (27,3) 1 0 Abs err 1 exceeds tol 0 by 1 437s (4,4) 0 1 Abs err 1 exceeds tol 0 by 1 437s (28,4) 1 0 Abs err 1 exceeds tol 0 by 1 437s (5,5) 0 1 Abs err 1 exceeds tol 0 by 1 437s (29,5) 1 0 Abs err 1 exceeds tol 0 by 1 437s (6,6) 0 1 Abs err 1 exceeds tol 0 by 1 437s (30,6) 1 0 Abs err 1 exceeds tol 0 by 1 437s (7,7) 0 1 Abs err 1 exceeds tol 0 by 1 437s (31,7) 1 0 Abs err 1 exceeds tol 0 by 1 437s (8,8) 0 1 Abs err 1 exceeds tol 0 by 1 437s (32,8) 1 0 Abs err 1 exceeds tol 0 by 1 437s (9,9) 0 1 Abs err 1 exceeds tol 0 by 1 437s (17,9) 1 0 Abs err 1 exceeds tol 0 by 1 437s (10,10) 0 1 Abs err 1 exceeds tol 0 by 1 437s (18,10) 1 0 Abs err 1 exceeds tol 0 by 1 437s (11,11) 0 1 Abs err 1 exceeds tol 0 by 1 437s (19,11) 1 0 Abs err 1 exceeds tol 0 by 1 437s (12,12) 0 1 Abs err 1 exceeds tol 0 by 1 437s (20,12) 1 0 Abs err 1 exceeds tol 0 by 1 437s (13,13) 0 1 Abs err 1 exceeds tol 0 by 1 437s (21,13) 1 0 Abs err 1 exceeds tol 0 by 1 437s (14,14) 0 1 Abs err 1 exceeds tol 0 by 1 437s (22,14) 1 0 Abs err 1 exceeds tol 0 by 1 437s (15,15) 0 1 Abs err 1 exceeds tol 0 by 1 437s (23,15) 1 0 Abs err 1 exceeds tol 0 by 1 437s (16,16) 0 1 Abs err 1 exceeds tol 0 by 1 437s (24,16) 1 0 Abs err 1 exceeds tol 0 by 1 437s (9,17) 1 0 Abs err 1 exceeds tol 0 by 1 437s (17,17) 0 1 Abs err 1 exceeds tol 0 by 1 437s (10,18) 1 0 Abs err 1 exceeds tol 0 by 1 437s (18,18) 0 1 Abs err 1 exceeds tol 0 by 1 437s (11,19) 1 0 Abs err 1 exceeds tol 0 by 1 437s (19,19) 0 1 Abs err 1 exceeds tol 0 by 1 437s (12,20) 1 0 Abs err 1 exceeds tol 0 by 1 437s (20,20) 0 1 Abs err 1 exceeds tol 0 by 1 437s (13,21) 1 0 Abs err 1 exceeds tol 0 by 1 437s (21,21) 0 1 Abs err 1 exceeds tol 0 by 1 437s (14,22) 1 0 Abs err 1 exceeds tol 0 by 1 437s (22,22) 0 1 Abs err 1 exceeds tol 0 by 1 437s (15,23) 1 0 Abs err 1 exceeds tol 0 by 1 437s (23,23) 0 1 Abs err 1 exceeds tol 0 by 1 437s (16,24) 1 0 Abs err 1 exceeds tol 0 by 1 437s (24,24) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,25) 1 0 Abs err 1 exceeds tol 0 by 1 437s (25,25) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,26) 1 0 Abs err 1 exceeds tol 0 by 1 437s (26,26) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,27) 1 0 Abs err 1 exceeds tol 0 by 1 437s (27,27) 0 1 Abs err 1 exceeds tol 0 by 1 437s (4,28) 1 0 Abs err 1 exceeds tol 0 by 1 437s (28,28) 0 1 Abs err 1 exceeds tol 0 by 1 437s (5,29) 1 0 Abs err 1 exceeds tol 0 by 1 437s (29,29) 0 1 Abs err 1 exceeds tol 0 by 1 437s (6,30) 1 0 Abs err 1 exceeds tol 0 by 1 437s (30,30) 0 1 Abs err 1 exceeds tol 0 by 1 437s (7,31) 1 0 Abs err 1 exceeds tol 0 by 1 437s (31,31) 0 1 Abs err 1 exceeds tol 0 by 1 437s (8,32) 1 0 Abs err 1 exceeds tol 0 by 1 437s (32,32) 0 1 Abs err 1 exceeds tol 0 by 1 437s ***** xtest 437s ## bug #55521 437s assert (bwunpack (uint32 (repmat (7, [1 3 3 3])), 3), true (3, 3, 3, 3)) 437s !!!!! known failure 437s ASSERT errors for: assert (bwunpack (uint32 (repmat (7, [1, 3, 3, 3])), 3),true (3, 3, 3, 3)) 437s 437s Location | Observed | Expected | Reason 437s (1,1,1,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,1,1,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,1,1,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,2,1,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,2,1,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,2,1,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,3,1,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,3,1,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,3,1,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,1,2,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,1,2,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,1,2,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,2,2,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,2,2,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,2,2,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,3,2,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,3,2,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,3,2,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,1,3,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,1,3,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,1,3,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,2,3,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,2,3,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,2,3,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,3,3,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,3,3,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,3,3,1) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,1,1,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,1,1,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,1,1,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,2,1,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,2,1,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,2,1,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,3,1,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,3,1,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,3,1,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,1,2,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,1,2,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,1,2,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,2,2,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,2,2,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,2,2,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,3,2,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,3,2,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,3,2,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,1,3,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,1,3,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,1,3,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,2,3,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,2,3,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,2,3,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,3,3,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,3,3,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,3,3,2) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,1,1,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,1,1,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,1,1,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,2,1,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,2,1,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,2,1,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,3,1,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,3,1,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,3,1,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,1,2,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,1,2,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,1,2,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,2,2,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,2,2,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,2,2,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,3,2,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,3,2,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,3,2,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,1,3,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,1,3,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,1,3,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,2,3,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,2,3,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,2,3,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (1,3,3,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (2,3,3,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s (3,3,3,3) 0 1 Abs err 1 exceeds tol 0 by 1 437s ***** assert (bwunpack (uint32 (zeros (0, 0))), false (0, 0)) 437s ***** assert (bwunpack (uint32 (zeros (0, 0)), 0), false (0, 0)) 437s ***** assert (bwunpack (uint32 (zeros (0, 5)), 0), false (0, 5)) 437s ***** assert (bwunpack (uint32 (zeros (0, 5, 7)), 0), false (0, 5, 7)) 437s ***** assert (bwunpack (uint32 (zeros (1, 0))), false (32, 0)) 437s ***** assert (bwunpack (uint32 (zeros (2, 0, 7))), false (64, 0, 7)) 437s ***** assert (bwunpack (uint32 (zeros (2, 0, 7))), false (64, 0, 7)) 437s ***** assert (bwunpack (uint32 (zeros (2, 0, 7)), 60), false (60, 0, 7)) 437s ***** error 437s bwunpack (uint32 (1), 1042) 437s 15 tests, 13 passed, 2 known failures, 0 skipped 437s [inst/rgb2lab.m] 437s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/rgb2lab.m 437s ***** assert (rgb2lab ([0 0 0]), [0, 0, 0], 1e-2) 437s ***** assert (rgb2lab ([1 0 0]), [53.24, 80.09, 67.20], 1e-2) 437s ***** assert (rgb2lab ([1 1 0]), [97.14, -21.55, 94.48], 1e-2) 437s ***** assert (rgb2lab ([0 1 0]), [87.74, -86.18, 83.18], 1e-2) 437s ***** assert (rgb2lab ([0 1 1]), [91.11, -48.09, -14.13], 1e-2) 437s ***** assert (rgb2lab ([0 0 1]), [32.30, 79.19, -107.86], 1e-2) 437s ***** assert (rgb2lab ([1 0 1]), [60.32, 98.24, -60.83], 1e-2) 437s ***** assert (rgb2lab ([1 1 1]), [100, 0.00, 0.00], 1e-2) 437s ***** assert (rgb2lab ([0.5 0.5 0.5]), [53.39, 0.00, 0.00], 1e-2) 437s ***** assert (rgb2lab ([0.75 0 0]), [39.77, 64.51, 54.13], 1e-2) 437s ***** assert (rgb2lab ([0.5 0 0]), [25.42, 47.91, 37.91], 1e-2) 437s ***** assert (rgb2lab ([0.25 0 0]), [9.66, 29.68, 15.24], 1e-2) 437s ***** assert (rgb2lab ([1 0.5 0.5]), [68.11, 48.39, 22.83], 1e-2) 437s ***** assert (rgb2lab ([1.5 1 1]), [111.47, 43.42, 17.98], 1e-2) 437s ***** test 437s rgb_map = rand (64, 3); 437s assert (lab2rgb (rgb2lab (rgb_map)), rgb_map, 2e-5); 437s ***** test 437s rgb_img = rand (64, 64, 3); 437s assert (lab2rgb (rgb2lab (rgb_img)), rgb_img, 2e-5); 437s ***** assert (rgb2lab (sparse ([0 0 1])), sparse ([32.30, 79.19, -107.86]), 1e-2) 437s ***** assert (rgb2lab (sparse ([0 1 1])), sparse ([91.11, -48.09, -14.13]), 1e-2) 437s ***** assert (rgb2lab (sparse ([1 1 1])), sparse ([100, 0.00, 0.00]), 1e-2) 437s ***** assert (rgb2lab (uint8([255 255 255])), [100, 0.00, 0.00], 1e-2) 437s ***** assert (class (rgb2lab (single([1 1 1]))), 'single') 437s ***** error rgb2lab () 437s ***** error rgb2lab (1,2) 437s ***** error rgb2lab ({1}) 437s ***** error rgb2lab (ones (2,2)) 437s ***** test 437s rgb = rand (16, 16, 3, 5); 437s lab = zeros (size (rgb)); 437s for i = 1:5 437s lab(:,:,:,i) = rgb2lab (rgb(:,:,:,i)); 437s endfor 437s assert (rgb2lab (rgb), lab) 437s 26 tests, 26 passed, 0 known failure, 0 skipped 437s [inst/imfindcircles.m] 437s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imfindcircles.m 437s ***** shared im0, rgb0, im1 437s im0 = [0 0 0 0 0; 437s 0 1 2 1 0; 437s 0 2 5 2 0; 437s 0 1 2 1 0; 437s 0 0 0 0 0]; 437s rgb0 = cat (3, im0, 3.*im0, 2.*im0); 437s im1 = zeros (20); 437s im1(2:6, 5:9) = 1; 437s im1(13:19, 13:19) = 1; 437s ***** function image = circlesimage (numx, numy, centersx, centersy, rs, values) 437s ## create an image with circles of given parameters 437s num = length (centersx); 437s image = zeros (numy, numx); 437s [indy, indx] = meshgrid (1:numx, 1:numy); 437s for n = 1:num 437s centerx = centersx(n); 437s centery = centersy(n); 437s r = rs(n); 437s value = values(n); 437s dist_squared = (indx - centerx).^ 2 + (indy - centery).^ 2; 437s image(dist_squared <= (r-0.5)^2) = value; 437s endfor 437s ***** endfunction 437s ***** error imfindcircles () 438s ***** error imfindcircles (im0) 438s ***** error imfindcircles (im0, [1 2 3]) 438s ***** error imfindcircles (im0, -3) 438s ***** error imfindcircles (im0, 4+2*i) 438s ***** error imfindcircles (ones (5,5,4), 2) 438s ***** error imfindcircles (ones (5,5,5,5), 2) 438s ***** error imfindcircles (im0, [2 1]) 438s ***** error imfindcircles (im0, 2, "rubbish") 438s ***** error imfindcircles (im0, 2, "more", "rubbish") 438s ***** error imfindcircles (im0, 2, "ObjectPolarity", "rubbish") 438s ***** error imfindcircles (im0, 2, "ObjectPolarity", 5) 438s ***** error imfindcircles (im0, 2, "ObjectPolarity") 438s ***** error imfindcircles (im0, 2, "Method", "rubbish") 438s ***** error imfindcircles (im0, 2, "Method", 5) 438s ***** error imfindcircles (im0, 2, "Method") 438s ***** error imfindcircles (im0, 2, "Sensitivity", "rubbish") 438s ***** error imfindcircles (im0, 2, "Sensitivity") 438s ***** error imfindcircles (im0, 2, "Sensitivity", -0.1) 438s ***** error imfindcircles (im0, 2, "Sensitivity", 1.1) 438s ***** error imfindcircles (im0, 2, "Sensitivity", [0.1 0.2]) 438s ***** error imfindcircles (im0, 2, "EdgeThreshold", "rubbish") 438s ***** error imfindcircles (im0, 2, "EdgeThreshold") 438s ***** error imfindcircles (im0, 2, "EdgeThreshold", -0.1) 438s ***** error imfindcircles (im0, 2, "EdgeThreshold", 1.1) 438s ***** error imfindcircles (im0, 2, "EdgeThreshold", [0.1 0.2]) 438s ***** error imfindcircles (im0, 2, "EdgeThreshold", 0.1, "ObjectPolarity", "bright", 438s "Sensitivity", 0.3, "Method", "PhaseCode", "more", 1) 438s ***** test # none of this should fail 438s imfindcircles (im0, 2); 438s imfindcircles (im0, [1 2]); 438s imfindcircles (logical (im0), 2); 438s imfindcircles (logical (im0), [1 2]); 438s imfindcircles (rgb0, 2); 438s imfindcircles (rgb0, [1 2]); 438s imfindcircles (uint8 (im0), 2); 438s imfindcircles (uint8 (im0), [1 2]); 438s imfindcircles (im0, 2, "ObjectPolarity", "bright"); 438s imfindcircles (im0, 2, "ObjectPolarity", "dark"); 438s imfindcircles (im0, 2, "Method", "PhaseCode"); 438s imfindcircles (im0, 2, "Sensitivity", 0.5); 438s imfindcircles (im0, 2, "EdgeThreshold", 0.5); 438s imfindcircles (im0, 2, "ObjectPolarity", "bright", "Method", "PhaseCode"); 438s imfindcircles (im0, 2, "ObjectPolarity", "bright", "Sensitivity", 0.3, 438s "Method", "PhaseCode"); 438s imfindcircles (im0, 2, "EdgeThreshold", 0.1, "ObjectPolarity", "bright", 438s "Sensitivity", 0.3, "Method", "PhaseCode"); 438s ***** test 438s centers = imfindcircles (im1, 2); 438s assert (size (centers, 2), 2) 438s assert (class (centers), "double") 438s ***** test 438s [centers, radii] = imfindcircles (im1, [1 5]); 438s assert (size (centers, 2), 2) 438s assert (size (radii, 2), 1) 438s assert (class (radii), "double") 438s ***** test 438s [centers, radii, strengths] = imfindcircles (im1, [1 5]); 438s assert (size (strengths, 2), 1) 438s assert (class (strengths), "double") 438s ***** error [a b c d] = imfindcircles (im0, 2); 438s ***** test ## sub-pixel accuracy of circle center 438s xs = [95.7]; 438s ys = [101.1]; 438s rs = [50]; 438s vals = [0.5]; 438s im = circlesimage (200, 200, xs, ys, rs, vals); 438s filt = ones (3) ./ 9; 438s im = imfilter (im, filt); 438s [centers, radii] = imfindcircles (im, [40 60]); 438s assert (centers, [101.1, 95.7], 0.1); 438s assert (radii, 50, 1); 439s ***** test 439s ## specificity to circular shapes and strengths output value 439s xs = [100 202]; 439s ys = [101, 203]; 439s rs = [40, 41]; 439s vals = [0.8, 0.9]; 439s im = circlesimage (300, 300, xs, ys, rs, vals); 439s filt = ones (3) ./ 9; 439s im = imfilter (im, filt); 439s im(30:170, 50:100) = 0; 439s im(20:120, 180:280) = 1; 439s [centers, radii, strengths] = imfindcircles (im, [30 50], "Sensitivity", 0.9); 439s assert (size (centers), [2 2]); 439s assert (centers, [203, 202; 101, 100], 1.5); 439s assert (radii, [40; 41], 2.5); 439s assert (strengths(1) / strengths(2) > 1.8, true); 439s ***** test # radius range parameter & dark circles 439s xs = [50, 420, 180]; 439s ys = [80, 100, 200]; 439s rs = [35, 30, 40]; 439s vals = [0.7, 0.8, 0.9]; 439s im = circlesimage (300, 500, xs, ys, rs, vals); 439s filt = ones (3) ./ 9; 439s im = imfilter (im, filt); 439s [centers1, radii1] = imfindcircles (im, [28 36]); 439s [centers2, radii2] = imfindcircles (im, [28 42]); 439s assert (size (centers1), [2 2]); 439s assert (centers1, [100 420; 80 50], 0.2); 439s assert (radii1, [30; 35], 2); 439s assert (size (centers2), [3 2]); 439s im_dark = 1-im; 439s [centers_dark, radii_dark, strengths_dark] = imfindcircles (im_dark, [25 42], "ObjectPolarity", "dark"); 439s assert (sortrows (centers_dark), [80 50; 100 420; 200 180], 0.2); 439s assert (sortrows (radii_dark), [30; 35; 40], 1); 439s ***** test # ability to find circles with big radius 439s xs = [111, 555, 341]; 439s ys = [222, 401, 161]; 439s rs = [45, 50, 150]; 439s vals = [0.6, 0.8, 0.7]; 439s im = circlesimage (400, 701, xs, ys, rs, vals); 439s [centers, radii] = imfindcircles (im, [140 160], "Sensitivity", 0.98); 439s assert (centers, [161, 341], 0.2); 439s assert (radii, 150, 1); 439s ***** test # overlapping circles 439s xs = [105, 155]; 439s ys = [202, 221]; 439s rs = [45, 50]; 439s vals = [0.5, 0.8]; 439s im = circlesimage(385, 422, xs, ys, rs, vals); 439s filt = ones (3) ./ 9; 439s im = imfilter (im, filt); 439s [centers, radii] = imfindcircles (im, [30 80]); 439s assert (centers, [221, 155; 202, 105], 0.5); 439s assert (radii, [50; 45], 1); 439s ***** test # overlapping circles, only 10 pixels apart 439s xs = [155, 155]; 439s ys = [175, 157]; 439s rs = [50, 50]; 439s vals = [0.7, 0.8]; 439s im = circlesimage (300, 300, xs, ys, rs, vals); 439s filt = ones (3) ./ 9; 439s im = imfilter (im, filt); 439s [centers, radii] = imfindcircles (im, [30 80], "Sensitivity", 0.95); 439s assert (centers, [157, 155; 175, 155], 1); 439s assert (radii, [50; 50], 1); 439s ***** test # edge threshold parameter 439s xs = [100 202]; 439s ys = [101, 203]; 439s rs = [40, 41]; 439s vals = [0.1, 0.9]; 439s im = circlesimage (300, 300, xs, ys, rs, vals); 439s filt = ones (3) ./ 9; 439s im= imfilter (im, filt); 439s [centers_auto, radii_auto] = imfindcircles (im, [30 50]); 439s [centers_0, radii_0] = imfindcircles (im, [30 50], "EdgeThreshold", 0); 439s [centers_05, radii_05] = imfindcircles (im, [30 50], "EdgeThreshold", 0.5); 439s assert (centers_auto, [203, 202], 0.2); 439s assert (radii_auto, 41, 1); 439s assert (centers_0, [101, 100; 203, 202], 0.2); 439s assert (radii_0, [40; 41], 1); 439s assert (centers_05, [203, 202], 0.2); 439s assert (radii_05, 41, 1); 439s ***** demo 439s ## First generate an input image: 439s model = [ 1.0 0.2 0.2 0.2 0.5 0 439s 1.0 0.3 0.3 -0.1 -0.2 0 439s -0.5 0.7 0.7 -0.5 0.5 0]; 439s im = phantom (model); 439s im(170:230,170:230) = 1; 439s im = imfilter (im, fspecial ("average", 3)); 439s im = imnoise (im, "salt & pepper"); 439s imshow (im); 439s 439s ## Find and show circles with radius between 20 and 50: 439s [centers, radii] = imfindcircles (im, [20 50]); 439s viscircles (centers, radii) 439s title ("found circles in red") 439s 39 tests, 39 passed, 0 known failure, 0 skipped 439s [inst/blockproc.m] 439s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/blockproc.m 439s ***** demo 439s blockproc (eye (6), [2, 2], @(x) any (x(:))) 439s # Returns a 3-by-3 diagonal 439s ***** assert (blockproc (eye (6), [2, 2], "sum"), 439s blockproc (eye (6), [2, 2], @sum)) 439s ***** assert (blockproc (eye (6), [2, 2], "sum"), 439s blockproc (eye (6), [2, 2], @(x) sum (x))) 439s ***** assert (blockproc (eye (6), [1,2], @sum), 439s kron (eye (3), [1; 1])) 439s ***** assert (blockproc (eye (6), [2,2], @(x) any (x(:))), 439s eye (3) != 0) 439s ***** assert (blockproc (eye (6), [1,2],[1,1], @(x) sum (x(:))), 439s [2,1,0; 3,2,0; 2,3,1; 1,3,2; 0,2,3; 0,1,2]) 439s ***** assert (blockproc (eye (6), "indexed", [1, 2], [1, 1], @(x) sum (x(:))), 439s [8,5,6; 6,2,3; 5,3,4; 4,3,5; 3,2,6; 6,5,8]) 439s ***** assert (blockproc (eye (6), [2,3],[4,3], @(x) sum (x(:))), 439s ones (3, 2) * 6) 439s ***** assert (blockproc (eye (6), [2, 2], @(x) int8 (sum (x(:)))), 439s eye (3, "int8") * 2) 439s ***** assert (blockproc (uint8 (eye (6)), [1,2], [1,1], @(x) sum (x(:))), 439s [2,1,0; 3,2,0; 2,3,1; 1,3,2; 0,2,3; 0,1,2]) 439s ***** assert (blockproc (uint8 (eye (6)), "indexed", [1,2], [1,1], @(x) sum (x(:))), 439s [2,1,0; 3,2,0; 2,3,1; 1,3,2; 0,2,3; 0,1,2]); 439s ***** assert (blockproc (uint16 (eye (6)), [1,2], [1,1], @(x) sum (x(:))), 439s [2,1,0; 3,2,0; 2,3,1; 1,3,2; 0,2,3; 0,1,2]); 439s ***** assert (blockproc (uint16 (eye (6)), "indexed", [1,2], [1,1], 439s @(x) sum (x(:))), 439s [2,1,0; 3,2,0; 2,3,1; 1,3,2; 0,2,3; 0,1,2]); 439s ***** assert (blockproc (eye (6), [2, 2], "sum"), 439s blockproc (eye (6), [2, 2], inline ("sum (x)", "x"))) 439s warning: inline is obsolete; use anonymous functions instead 439s 13 tests, 13 passed, 0 known failure, 0 skipped 439s [inst/iradon.m] 439s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/iradon.m 439s ***** assert (iradon (single ([0; 1; 1; 0]), 90)); 439s ***** assert (iradon (double ([0; 1; 1; 0]), 90)); 439s ***** assert (iradon (int8 ([0; 1; 1; 0]), 90)); 439s ***** assert (iradon (int16 ([0; 1; 1; 0]), 90)); 439s ***** assert (iradon (int32 ([0; 1; 1; 0]), 90)); 439s ***** assert (iradon (int64 ([0; 1; 1; 0]), 90)); 439s ***** assert (iradon (uint8 ([0; 1; 1; 0]), 90)); 439s ***** assert (iradon (uint16 ([0; 1; 1; 0]), 90)); 439s ***** assert (iradon (uint32 ([0; 1; 1; 0]), 90)); 439s ***** assert (iradon (uint64 ([0; 1; 1; 0]), 90)); 439s ***** assert (iradon (logical ([0; 1; 1; 0]), 90)); 439s ***** assert (iradon (ones (5), 1:5)); 439s ***** assert (iradon (ones (5), 1:5, 'nearest')); 439s ***** assert (iradon (ones (5), 1:5, 'linear')); 439s ***** assert (iradon (ones (5), 1:5, 'spline')); 439s ***** assert (iradon (ones (5), 1:5, 'pchip')); 439s ***** assert (iradon (ones (5), 1:5, 'linear', 'None')); 439s ***** assert (iradon (ones (5), 1:5, 'linear', 'Ram-Lak')); 439s ***** assert (iradon (ones (5), 1:5, 'linear', 'Shepp-Logan')); 439s ***** assert (iradon (ones (5), 1:5, 'linear', 'Cosine')); 439s ***** assert (iradon (ones (5), 1:5, 'linear', 'Hamming')); 439s ***** assert (iradon (ones (5), 1:5, 'linear', 'Hann')); 439s ***** assert (iradon (ones (5), 1:5, 'linear', 'None', 0.45)); 439s ***** assert (iradon (ones (5), 1:5, 'linear', 'None', 0.45, 5)); 439s ***** test 439s [R, F] = iradon (ones (5), 1:5); 439s assert(isvector(F)); 439s assert(ismatrix(R)); 439s ***** error iradon (); 439s ***** error iradon ('xxx'); 439s ***** error iradon (ones (2), 'xxx'); 439s ***** error iradon (ones (5), 1:5, 'foo'); 439s ***** error iradon (ones (5), 1:5, 'linear', 'foo'); 439s ***** error iradon (ones (5), 1:5, 'linear', 'none', 'foo'); 439s ***** error iradon (ones (5), 1:5, 'linear', 'none', 0.65, 'foo'); 439s ***** test 439s A = iradon([0; 1; 1; 0], 90); 439s A_matlab = 0.4671 .* ones (2); 439s assert (A, A_matlab, 0.02); # as Matlab compatible as iradon outputs currently get 439s ***** test 439s A = iradon (radon (ones (2, 2), 0:5), 0:5, "nearest", "none"); 439s A_matlab = [1, 1, 1, 1]' * [0.4264, 2.7859, 2.7152, 0.3557]; 439s assert (A, A_matlab, 0.0001); 439s ***** test 439s P = phantom (128); 439s R = radon (P, 0:179); 439s 439s IR = iradon (R, 0:179, [], [], [], 128); # (errors in Matlab because of []s) 439s D = P - IR; 439s maxdiff = max (abs (D(:))); 439s maxdiff_matlab = 0.3601; 439s assert (maxdiff, maxdiff_matlab, 0.002); 439s meandiff = mean (abs (D(:))); 439s meandiff_matlab = 0.0218; 439s assert (meandiff, meandiff_matlab, 0.001); 439s 439s filtername = "None"; 439s IR = iradon (R, 0:179, [], filtername, [], 128); 439s D = P - IR; 439s maxdiff = max (abs (D(:))); 439s maxdiff_matlab = 36.5671; 439s assert (maxdiff, maxdiff_matlab, 0.0001); 439s meandiff = mean (abs (D(:))); 439s meandiff_matlab = 24.6302; 439s assert (meandiff, meandiff_matlab, 0.0001); 439s 439s filtername = "Ram-Lak"; # is same as default 439s IR = iradon (R, 0:179, [], filtername, [], 128); 439s D = P - IR; 439s maxdiff = max (abs (D(:))); 439s maxdiff_matlab = 0.3601; 439s assert (maxdiff, maxdiff_matlab, 0.002); 439s meandiff = mean (abs (D(:))); 439s meandiff_matlab = 0.0218; 439s assert (meandiff, meandiff_matlab, 0.001); 439s 439s filtername = "Hamming"; 439s IR = iradon (R, 0:179, [], filtername, [], 128); 439s D = P - IR; 439s maxdiff = max (abs (D(:))); 439s maxdiff_matlab = 0.5171; 439s assert (maxdiff, maxdiff_matlab, 0.005); 439s meandiff = mean (abs (D(:))); 439s meandiff_matlab = 0.0278; 439s assert (meandiff, meandiff_matlab, 0.003); 439s 439s filtername = "Shepp-Logan"; 439s IR = iradon (R, 0:179, [], filtername, [], 128); 439s D = P - IR; 439s maxdiff = max (abs (D(:))); 439s maxdiff_matlab = 0.3941; 439s assert (maxdiff, maxdiff_matlab, 0.005); 439s meandiff = mean (abs (D(:))); 439s meandiff_matlab = 0.0226; 439s assert (meandiff, meandiff_matlab, 0.0015); 439s 439s filtername = "Cosine"; 439s IR = iradon (R, 0:179, [], filtername, [], 128); 439s D = P - IR; 439s maxdiff = max (abs (D(:))); 439s maxdiff_matlab = 0.4681; 439s assert (maxdiff, maxdiff_matlab, 0.005); 439s meandiff = mean (abs (D(:))); 439s meandiff_matlab = 0.0249; 439s assert (meandiff, meandiff_matlab, 0.002); 439s 439s filtername = "Hann"; 439s IR = iradon (R, 0:179, [], filtername, [], 128); 439s D = P - IR; 439s maxdiff = max (abs (D(:))); 439s maxdiff_matlab = 0.5334; 439s assert (maxdiff, maxdiff_matlab, 0.005); 439s meandiff = mean (abs (D(:))); 439s meandiff_matlab = 0.0285; 439s assert (meandiff, meandiff_matlab, 0.0025); 442s ***** demo 442s P = phantom (); 442s figure, imshow (P, []), title ("Original image") 442s projections = radon (P, 0:179); 442s reconstruction = iradon (projections, 0:179, 'Spline', 'Hann'); 442s figure, imshow (reconstruction, []), title ("Reconstructed image") 442s 35 tests, 35 passed, 0 known failure, 0 skipped 442s [inst/bweuler.m] 442s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/bweuler.m 442s ***** demo 442s A=zeros(9,10); 442s A([2,5,8],2:9)=1; 442s A(2:8,[2,9])=1 442s bweuler(A) 442s # Euler number (objects minus holes) is 1-2=-1 in an 8-like object 442s ***** test 442s A=zeros(10,10); 442s A(2:9,3:8)=1; 442s A(4,4)=0; 442s A(8,8)=0; # not a hole 442s A(6,6)=0; 442s assert(bweuler(A),-1); 442s ***** test 442s A=zeros(10,10); 442s A(2:4,2:4)=1; 442s A(5:8,5:8)=1; 442s assert(bweuler(A,4),2); 442s assert(bweuler(A,8),1); 442s assert(bweuler(A),1); 442s ***** error <2 dimensions> bweuler (true (5, 5, 1, 5)) 442s 3 tests, 3 passed, 0 known failure, 0 skipped 442s [inst/lab2xyz.m] 442s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/lab2xyz.m 442s ***** assert (lab2xyz ([0, 0, 0]), [0 0 0], 1e-3) 442s ***** assert (lab2xyz ([53.24, 80.09, 67.20]), [0.4125, 0.2127, 0.0193], 1e-3) 442s ***** assert (lab2xyz ([97.14, -21.55, 94.48]), [0.7700, 0.9278, 0.1385], 1e-3) 442s ***** assert (lab2xyz ([87.74, -86.18, 83.18]), [0.3576, 0.7152, 0.1192], 1e-3) 442s ***** assert (lab2xyz ([91.11, -48.09, -14.13]), [0.5380, 0.7873, 1.0694], 1e-3) 442s ***** assert (lab2xyz ([32.30, 79.19, -107.86]), [0.1804, 0.07217, 0.9502], 1e-3) 442s ***** assert (lab2xyz ([60.32, 98.24, -60.83]), [0.5929, 0.28484, 0.9696], 1e-3) 442s ***** assert (lab2xyz ([100, 0.00, 0.00]), [0.9505, 1.0000, 1.0888], 1e-3) 442s ***** assert (lab2xyz ([53.39, 0.00, 0.00]), [0.2034, 0.2140, 0.2330], 1e-3) 442s ***** assert (lab2xyz ([39.77, 64.51, 54.13]), [0.2155, 0.1111, 0.0101], 1e-3) 442s ***** assert (lab2xyz ([25.42, 47.91, 37.91]), [0.0883, 0.0455, 0.0041], 1e-3) 442s ***** assert (lab2xyz ([9.66, 29.68, 15.24]), [0.02094, 0.0108, 0.00098], 1e-3) 442s ***** assert (lab2xyz ([68.11, 48.39, 22.83]), [0.5276, 0.3812, 0.2482], 1e-3) 442s ***** assert (lab2xyz ([150 130 130]), [4.596, 2.931, 0.519], 1e-3) 442s ***** test 442s lab_map = rand (64, 3); 442s lab_map(:,1) = lab_map(:,1) .* 100; 442s lab_map(:,2) = lab_map(:,2) .* 254 - 127; 442s lab_map(:,3) = lab_map(:,3) .* 254 - 127; 442s assert (xyz2lab (lab2xyz (lab_map)), lab_map, 1e-5); 442s ***** test 442s lab_img = rand (64, 64, 3); 442s lab_img(:,:,1) = lab_img(:,:,1) .* 100; 442s lab_img(:,:,2) = lab_img(:,:,2) .* 254 - 127; 442s lab_img(:,:,3) = lab_img(:,:,3) .* 254 - 127; 442s assert (xyz2lab (lab2xyz (lab_img)), lab_img, 1e-5); 442s ***** assert (lab2xyz (sparse ([0 0 0])), [0 0 0], 1e-3) 442s ***** assert (lab2xyz (sparse ([100, 0.00, 0.00])), [0.9505, 1.0000, 1.0888], 1e-3) 442s ***** assert (class (lab2xyz (single([50 50 50]))), 'single') 442s ***** error lab2xyz () 442s ***** error lab2xyz (1,2) 442s ***** error lab2xyz ({1}) 442s ***** error lab2xyz (ones (2,2)) 442s ***** test 442s lab = rand (16, 16, 3, 5); 442s lab(:,:,1,:) = lab(:,:,1,:) .* 100; 442s lab(:,:,2,:) = lab(:,:,2,:) .* 254 - 127; 442s lab(:,:,3,:) = lab(:,:,3,:) .* 254 - 127; 442s xyz = zeros (size (lab)); 442s for i = 1:5 442s xyz(:,:,:,i) = lab2xyz (lab(:,:,:,i)); 442s endfor 442s assert (lab2xyz (lab), xyz) 442s 24 tests, 24 passed, 0 known failure, 0 skipped 442s [inst/imextendedmax.m] 442s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imextendedmax.m 442s ***** shared im0, bw0_h2_out 442s im0 = uint8 ([0 0 0 0 0; 442s 0 1 2 1 0; 442s 0 2 5 2 0; 442s 0 1 2 1 0; 442s 0 0 0 0 0]); 442s bw0_h2_out = false (5); 442s bw0_h2_out(3,3) = true; 442s ***** error imextendedmax () 442s ***** error imextendedmax (im0) 442s ***** error imextendedmax ("hello", 2) 442s ***** error imextendedmax (i.*im0, 2) 442s ***** error imextendedmax (sparse (im0), 2) 442s ***** error imextendedmax (im0, -2) 442s ***** error imextendedmax (im0, 'a') 442s ***** error imextendedmax (im0, ones (2)) 442s ***** error imextendedmax (im0, 2*i) 442s ***** assert (imextendedmax (im0, 2), bw0_h2_out) 442s ***** assert (imextendedmax (double (im0), 2), bw0_h2_out) 442s ***** assert (imextendedmax (im0, 2, 8), bw0_h2_out) 442s ***** assert (imextendedmax (im0, 2, 4), bw0_h2_out) 442s ***** assert (imextendedmax (im0, 2, true (3)), bw0_h2_out) 442s ***** test 442s out = imextendedmax (im0, 2); 442s assert (size (out), size (im0)) 442s assert (class (out), "logical") 442s ***** test 442s out = imextendedmax (single (im0), 2); 442s assert (size (out), size (im0)) 442s assert (class (out), "logical") 442s ***** test 442s out = imextendedmax (uint8 (im0), 2); 442s assert (size (out), size (im0)) 442s assert (class (out), "logical") 442s ***** test 442s out = imextendedmax (uint16 (im0), 2); 442s assert (size (out), size (im0)) 442s assert (class (out), "logical") 442s ***** test 442s im = cat (3, im0, im0, im0, im0); 442s out = imextendedmax (im, 2); 442s assert (size (out), size (im)) 442s ***** test 442s im = zeros (10); 442s im(2:4, 2:4) = 3; 442s im(6:8, 6:8) = 8; 442s expected_4 = false (10); 442s expected_4(6:8, 6:8) = true; 442s expected_2 = expected_4; 442s expected_2(2:4, 2:4) = true; 442s out = imextendedmax (im, 4); 442s assert (out, expected_4, eps) 442s out = imextendedmax (0.1.*im, 0.4); 442s assert (out, expected_4, eps) 442s out = imextendedmax (im, 2); 442s assert (out, expected_2, eps) 442s ***** test 442s im2 = zeros (10); 442s im2(2:4, 2:4) = 3; 442s im2(6:9, 6:9)=8; 442s im2(5, 5)=8; 442s im2(6, 7)=0; 442s im2(7, 8)=0; 442s expected_8 = false (10); 442s expected_8(6:9, 6:9) = true; 442s expected_8(5, 5) = true; 442s expected_8(6, 7) = false; 442s expected_8(7, 8) = false; 442s expected_4 = expected_8; 442s expected_4(2:4, 2:4) = true; 442s out2 = imextendedmax (im2, 2); 442s assert (out2, expected_8, eps) 442s out2 = imextendedmax (im2, 2, 4); 442s assert (out2, expected_4, eps) 442s out2 = imextendedmax (im2, 2, 8); 442s assert (out2, expected_8, eps) 442s 21 tests, 21 passed, 0 known failure, 0 skipped 442s [inst/findbounds.m] 442s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/findbounds.m 442s ***** test 442s im = checkerboard (); 442s theta = pi/6; 442s T = maketform ('affine', [cos(theta) -sin(theta); ... 442s sin(theta) cos(theta); 0 0]); 442s inbnd = [0 0; 1 1]; 442s outbnd = findbounds (T, inbnd); 442s diag = 2^.5; 442s ang = pi/4; 442s assert (diff (outbnd(:,1)), diag * abs (cos (theta - ang)), eps) 442s assert (diff (outbnd(:,2)), diag * abs (cos (theta - ang)), eps) 442s 1 test, 1 passed, 0 known failure, 0 skipped 442s [inst/imresize.m] 442s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imresize.m 442s ***** test 442s 442s in = [116 227 153 69 146 194 59 130 139 106 442s 2 47 137 249 90 75 16 24 158 44 442s 155 68 46 84 166 156 69 204 32 152 442s 71 221 137 230 210 153 192 115 30 118 442s 107 143 108 52 51 73 101 21 175 90 442s 54 158 143 77 26 168 113 229 165 225 442s 9 47 133 135 130 207 236 43 19 73]; 442s assert (imresize (uint8 (in), 1, "nearest"), uint8 (in)) 442s assert (imresize (uint8 (in), 1, "bicubic"), uint8 (in)) 442s 442s out = [116 116 227 227 153 153 69 69 146 146 194 194 59 59 130 130 139 139 106 106 442s 116 116 227 227 153 153 69 69 146 146 194 194 59 59 130 130 139 139 106 106 442s 2 2 47 47 137 137 249 249 90 90 75 75 16 16 24 24 158 158 44 44 442s 2 2 47 47 137 137 249 249 90 90 75 75 16 16 24 24 158 158 44 44 442s 155 155 68 68 46 46 84 84 166 166 156 156 69 69 204 204 32 32 152 152 442s 155 155 68 68 46 46 84 84 166 166 156 156 69 69 204 204 32 32 152 152 442s 71 71 221 221 137 137 230 230 210 210 153 153 192 192 115 115 30 30 118 118 442s 71 71 221 221 137 137 230 230 210 210 153 153 192 192 115 115 30 30 118 118 442s 107 107 143 143 108 108 52 52 51 51 73 73 101 101 21 21 175 175 90 90 442s 107 107 143 143 108 108 52 52 51 51 73 73 101 101 21 21 175 175 90 90 442s 54 54 158 158 143 143 77 77 26 26 168 168 113 113 229 229 165 165 225 225 442s 54 54 158 158 143 143 77 77 26 26 168 168 113 113 229 229 165 165 225 225 442s 9 9 47 47 133 133 135 135 130 130 207 207 236 236 43 43 19 19 73 73 442s 9 9 47 47 133 133 135 135 130 130 207 207 236 236 43 43 19 19 73 73]; 442s assert (imresize (uint8 (in), 2, "nearest"), uint8 (out)) 442s assert (imresize (uint8 (in), 2, "neAreST"), uint8 (out)) 442s assert (imresize (uint8 (in), [14 NaN], "nearest"), uint8 (out)) 442s assert (imresize (uint8 (in), [NaN 20], "nearest"), uint8 (out)) 442s 442s out = [116 116 227 227 153 153 69 69 146 146 194 194 59 59 130 130 139 139 106 106 442s 2 2 47 47 137 137 249 249 90 90 75 75 16 16 24 24 158 158 44 44 442s 155 155 68 68 46 46 84 84 166 166 156 156 69 69 204 204 32 32 152 152 442s 71 71 221 221 137 137 230 230 210 210 153 153 192 192 115 115 30 30 118 118 442s 107 107 143 143 108 108 52 52 51 51 73 73 101 101 21 21 175 175 90 90 442s 54 54 158 158 143 143 77 77 26 26 168 168 113 113 229 229 165 165 225 225 442s 9 9 47 47 133 133 135 135 130 130 207 207 236 236 43 43 19 19 73 73]; 442s assert (imresize (uint8 (in), [7 20], "nearest"), uint8 (out)) 442s 442s out = [116 227 153 69 146 194 59 130 139 106 442s 116 227 153 69 146 194 59 130 139 106 442s 2 47 137 249 90 75 16 24 158 44 442s 2 47 137 249 90 75 16 24 158 44 442s 155 68 46 84 166 156 69 204 32 152 442s 155 68 46 84 166 156 69 204 32 152 442s 71 221 137 230 210 153 192 115 30 118 442s 71 221 137 230 210 153 192 115 30 118 442s 107 143 108 52 51 73 101 21 175 90 442s 107 143 108 52 51 73 101 21 175 90 442s 54 158 143 77 26 168 113 229 165 225 442s 54 158 143 77 26 168 113 229 165 225 442s 9 47 133 135 130 207 236 43 19 73 442s 9 47 133 135 130 207 236 43 19 73]; 442s assert (imresize (uint8 (in), [14 10], "nearest"), uint8 (out)) 442s 442s assert (imresize (uint8 (in), 1.5, "box"), imresize (uint8 (in), 1.5, "MeTHoD", "nearest")) 442s assert (imresize (uint8 (in), "Scale", 1.5, "Method", "box"), imresize (uint8 (in), 1.5, {@(h) -0.5 < h & h <= 0.5, 1})) 442s assert (imresize (uint8 (in), 1.5, "bicubic"), imresize (uint8 (in), 1.5, "cubic")) 442s assert (imresize (uint8 (in), [NaN, size(in,2)*1.5], "bicubic"), imresize (uint8 (in), 1.5, "cubic")) 442s assert (imresize (uint8 (in), [size(in,1)*1.5, NaN], "bicubic"), imresize (uint8 (in), 1.5, "cubic")) 442s assert (imresize (uint8 (in), "outputsize", [size(in,1)*1.5, NaN], "method", "bicubic"), imresize (uint8 (in), 1.5, "cubic")) 442s assert (imresize (uint8 (in), 1.5, "linear"), imresize (uint8 (in), 1.5, "LIneAR")) 442s assert (imresize (uint8 (in), 1.5, "linear"), imresize (uint8 (in), 1.5, "triangle")) 442s ***** test 442s in = [116 227 153 69 146 194 59 130 139 106 442s 2 47 137 249 90 75 16 24 158 44 442s 155 68 46 84 166 156 69 204 32 152 442s 71 221 137 230 210 153 192 115 30 118 442s 107 143 108 52 51 73 101 21 175 90 442s 54 158 143 77 26 168 113 229 165 225 442s 9 47 133 135 130 207 236 43 19 73 442s 129 60 59 243 64 181 249 56 32 86]; 442s 442s out = imresize (in, 0.5, "nearest", "Antialiasing", false); 442s for x = 1:columns (out) 442s for y = 1:rows (out) 442s x_in = 2 * (x-1) + 1; 442s y_in = 2 * (y-1) + 1; 442s sub = in(y_in:y_in+1, x_in:x_in+1); 442s assert (any (any (sub == out(y, x)))) 442s endfor 442s endfor 442s 442s out = imresize (in, 0.5, "nearest", "Antialiasing", true); 442s for x = 1:columns (out) 442s for y = 1:rows (out) 442s x_in = 2 * (x-1) + 1; 442s y_in = 2 * (y-1) + 1; 442s val = mean (mean (in(y_in:y_in+1, x_in:x_in+1))); 442s assert (val, out(y, x)) 442s endfor 442s endfor 442s 442s out = imresize (in, "Scale", [0.5, 2], "Method", "nearest", "Antialiasing", true); 442s for x = 1:columns (out) 442s for y = 1:rows (out) 442s x_in = floor (0.5 * (x-1) + 1); 442s y_in = 2 * (y-1) + 1; 442s val = mean (in(y_in:y_in+1, x_in)); 442s assert (val, out(y, x)) 442s endfor 442s endfor 442s 442s out = imresize (in, "Scale", [2, 0.5], "Method", "nearest", "Antialiasing", true); 442s for x = 1:columns (out) 442s for y = 1:rows (out) 442s x_in = 2 * (x-1) + 1; 442s y_in = floor (0.5 * (y-1) + 1); 442s val = mean (in(y_in, x_in:x_in+1)); 442s assert (val, out(y, x)) 442s endfor 442s endfor 442s ***** test 442s 442s assert (imresize (repmat (5, [3 3]), 2), repmat (5, [6 6]), eps*100) 442s 442s assert (imresize (repmat (5, [3 3 2]), 2), repmat (5, [6 6 2]), eps*100) 442s ***** test 442s 442s for channels = 1:3 442s in = rand (5, 4, channels); 442s for method = {"nearest", "bilinear", "bicubic"} 442s out = imresize (in, 2, method{1}); 442s for i = 1:size (in, 3) 442s assert (out(:, :, i), imresize (in(:, :, i), 2, method{1})) 442s endfor 442s endfor 442s endfor 442s ***** test 442s 442s for channels = 1:3 442s in = rand (5, 4, channels); 442s out = imresize (in, [1, columns(in)], "nearest", "Antialiasing", true); 442s for i = 1:columns (in) 442s assert (out(1, i, :), mean (in(:, i, :), 1), 10*eps) 442s endfor 442s endfor 442s ***** test 442s 442s for channels = 1:3 442s in = rand (5, 4, channels); 442s out = imresize (in, [rows(in), 1], "nearest", "Antialiasing", true); 442s for i = 1:rows (in) 442s assert (out(i, 1, :), mean (in(i, :, :), 2), 10*eps) 442s endfor 442s endfor 442s ***** test 442s 442s for channels = 1:3 442s in = rand (5, 4, channels); 442s out = imresize (in, [1, 1], "nearest", "Antialiasing", true); 442s assert (out(1, 1, :), mean (mean (in(:, :, :))), 10*eps) 442s endfor 442s ***** test 442s 442s in = [116 227 153 69 146 194 59 130 139 106 442s 2 47 137 249 90 75 16 24 158 44 442s 155 68 46 84 166 156 69 204 32 152 442s 71 221 137 230 210 153 192 115 30 118 442s 107 143 108 52 51 73 101 21 175 90 442s 54 158 143 77 26 168 113 229 165 225 442s 9 47 133 135 130 207 236 43 19 73 442s 129 60 59 243 64 181 249 56 32 86]; 442s 442s out = [115 208 134 100 163 117 101 136 109 103 442s 26 61 149 182 95 53 41 116 73 60 442s 133 101 82 140 167 125 152 71 126 144 442s 88 184 137 164 142 145 110 81 104 108 442s 86 146 109 55 73 110 111 156 153 150 442s 33 104 131 100 130 184 147 97 133 142 442s 84 59 114 164 133 219 120 33 72 81 442s 126 60 104 181 116 218 125 38 77 86]; 442s assert (imresize (uint8 (in), 0.91, "bilinear", "Antialiasing", false), uint8 (out), 1) 442s 442s out = [116 172 215 165 111 82 133 170 171 81 95 132 138 123 106 442s 59 98 138 144 152 152 125 127 119 54 58 89 137 112 75 442s 27 39 62 110 172 202 123 96 78 36 40 68 123 100 62 442s 129 97 64 62 87 119 146 148 128 74 117 154 73 94 134 442s 113 129 136 101 125 162 183 172 151 135 146 139 53 83 135 442s 77 143 195 145 166 197 186 162 146 171 138 92 62 84 113 442s 101 129 149 120 98 81 78 82 91 111 77 56 132 123 95 442s 81 116 147 130 96 61 43 80 119 109 116 132 162 164 158 442s 46 93 139 141 114 80 50 109 168 141 166 189 151 171 200 442s 16 41 77 123 130 123 115 157 204 214 145 69 48 71 98 442s 69 62 61 89 143 174 112 146 202 235 147 46 30 53 80 442s 129 95 60 59 151 213 94 123 192 238 153 52 36 59 86]; 442s assert (imresize (uint8 (in), 1.5, "bilinear"), uint8 (out), 1) 442s 442s out = [ 98 152 126 58 112 442s 129 125 172 146 83 442s 116 96 80 116 164 442s 62 143 146 147 53]; 442s assert (imresize (uint8 (in), 0.5, "bilinear", "Antialiasing", false), uint8 (out), 1) 442s 442s out = [108 136 125 89 107 442s 111 132 143 114 99 442s 106 110 106 127 136 442s 75 124 154 142 75]; 442s assert (imresize (uint8 (in), 0.5, "bilinear", "Antialiasing", true), uint8 (out), 1) 442s 442s out = [116 185 199 143 80 117 164 177 76 103 133 135 110 106 442s 45 89 126 148 177 138 114 109 43 52 97 141 78 67 442s 59 57 73 114 177 145 114 96 45 71 99 108 88 85 442s 145 109 76 63 96 146 166 147 93 152 133 47 134 148 442s 82 157 174 137 201 208 186 156 174 145 90 42 111 122 442s 94 143 152 119 119 114 108 107 131 86 80 119 104 101 442s 87 126 139 114 69 49 67 109 106 102 126 167 145 141 442s 48 108 143 135 91 56 89 167 134 177 184 154 199 206 442s 15 44 88 133 129 121 149 204 219 124 55 44 85 92 442s 84 66 67 102 189 132 127 198 237 123 42 34 74 81 442s 129 86 60 82 220 131 108 190 241 128 47 39 79 86]; 442s assert (imresize (uint8 (in), 4/3, "bilinear"), uint8 (out), 1) 442s 442s lin = @(x) (1 - abs(x)) .* (abs(x) < 1); 442s 442s out = [ 47 90 24 44 442s 143 51 21 90 442s 60 64 56 86]; 442s assert (imresize (uint8 (in), 1/3, "bilinear", "Antialiasing", false), uint8 (out), 1) 442s assert (imresize (uint8 (in), 1/3, {lin, 2}, "Antialiasing", false), uint8 (out), 1) 442s 442s out = [115 131 101 102 442s 114 117 120 121 442s 91 147 116 76]; 442s assert (imresize (uint8 (in), 1/3, "bilinear", "Antialiasing", true), uint8 (out), 1) 442s assert (imresize (uint8 (in), 1/3, {lin, 2}, "Antialiasing", true), uint8 (out), 1) 442s ***** test 442s in = [116 227 153 69 146 194 59 130 139 106 442s 2 47 137 249 90 75 16 24 158 44 442s 155 68 46 84 166 156 69 204 32 152 442s 71 221 137 230 210 153 192 115 30 118 442s 107 143 108 52 51 73 101 21 175 90 442s 54 158 143 77 26 168 113 229 165 225 442s 9 47 133 135 130 207 236 43 19 73 442s 129 60 59 243 64 181 249 56 32 86]; 442s 442s out = [116 187 237 171 94 61 135 191 187 75 91 142 140 124 108 442s 43 92 143 149 164 163 119 123 118 44 38 80 151 118 62 442s 13 21 47 107 195 228 115 81 70 24 19 56 137 105 48 442s 146 98 49 49 71 107 148 159 132 58 124 176 61 85 146 442s 118 139 144 92 116 168 201 188 159 140 167 158 27 69 153 442s 61 151 218 145 174 219 201 164 146 187 148 84 48 76 115 442s 102 132 151 119 90 72 72 72 83 114 60 31 144 130 80 442s 81 121 154 133 87 41 19 67 116 95 108 140 183 180 163 442s 37 95 152 150 117 73 35 108 179 130 174 214 153 176 219 442s 3 29 73 131 136 120 116 162 214 229 147 54 35 62 96 442s 67 54 51 83 153 187 111 141 210 255 149 22 13 42 74 442s 142 99 53 43 164 237 77 103 197 254 159 42 31 59 91]; 442s assert (imresize (uint8 (in), 1.5, "bicubic"), uint8 (out), 1) 442s 442s out = [ 92 164 123 38 118 442s 139 116 188 167 69 442s 121 87 67 108 180 442s 54 153 141 149 42]; 442s assert (imresize (uint8 (in), 0.5, "bicubic", "Antialiasing", false), uint8 (out), 1) 442s 442s out = [105 140 126 81 109 442s 110 134 153 114 93 442s 108 108 94 127 146 442s 67 126 162 149 62]; 442s assert (imresize (uint8 (in), 0.5, "bicubic", "Antialiasing", true), uint8 (out), 1) 442s 442s out = [116 203 221 141 62 110 180 191 70 104 143 136 111 106 442s 26 78 126 156 200 139 103 103 33 28 92 158 67 46 442s 51 35 51 112 195 146 101 87 29 57 100 114 81 74 442s 159 110 63 50 82 148 179 152 83 173 147 27 143 170 442s 70 171 189 134 217 226 193 158 186 157 83 25 114 135 442s 91 152 162 116 118 114 102 98 138 65 60 127 92 84 442s 90 130 144 111 52 24 50 101 94 86 129 190 146 135 442s 41 114 157 139 89 37 82 178 125 192 203 154 213 227 442s 4 33 89 141 127 118 151 213 232 119 35 34 81 92 442s 88 61 54 97 203 129 115 203 255 119 18 24 70 81 442s 147 91 43 68 247 125 80 191 255 130 33 37 83 94]; 442s assert (imresize (uint8 (in), 4/3, "bicubic"), uint8 (out), 1) 442s 442s out = [ 47 90 24 44 442s 143 51 21 90 442s 60 64 56 86]; 442s assert (imresize (uint8 (in), 1/3, "bicubic", "Antialiasing", false), uint8 (out), 1) 442s 442s out = [115 135 97 101 442s 113 119 124 125 442s 81 157 118 64]; 442s assert (imresize (uint8 (in), 1/3, "bicubic", "Antialiasing", true), uint8 (out), 1) 442s ***** test 442s 442s in = checkerboard (1, [2 2]); 442s out = [0.5 0.35 442s 0.5 0.35]; 442s assert ( imresize (in, 0.5, "bilinear", "Antialiasing", false), out) 442s ***** test 442s 442s in = ones (2) + 1i; 442s out_nearest = imresize (in, 1.5, "nearest"); 442s assert (out_nearest, ones (3) + 1i); 442s out_linear = imresize (in, 1.5, "linear"); 442s assert (out_linear, ones (3) + 1i); 442s out_cubic = imresize (in, 1.5, "cubic"); 442s assert (out_cubic, ones (3) + 1i, 1e-14); 442s ***** test 442s 442s in = cat (3, 10, 10, 10); 442s expected = 10 * ones (2, 2, 3); # consistent with MATLAB behaviour 442s 442s out_nearest = imresize (in, [2, 2], "nearest"); 442s assert (out_nearest, expected); 442s out_linear = imresize (in, [2, 2], "linear"); 442s assert (out_linear, expected); 442s out_cubic = imresize (in, [2, 2], "cubic"); 442s assert (out_cubic, expected); 442s ***** test 442s 442s in_row = cat(3, [10,6], [10,6], [10,6]); 442s 442s plane_expected_nearest = [1; 1; 1] * [10, 10, 6, 6]; 442s out_expected = cat (3, plane_expected_nearest, plane_expected_nearest, plane_expected_nearest); 442s out_nearest = imresize (in_row, [3, 4], "nearest"); 442s assert (out_nearest, out_expected); 442s 442s plane_expected_linear = [1; 1; 1] * [10, 8, 6]; 442s out_expected = cat (3, plane_expected_linear, plane_expected_linear, plane_expected_linear); 442s out_linear = imresize (in_row, [3, 3], "linear"); 442s assert (out_linear, out_expected); 442s 442s plane_expected_cubic = [1; 1; 1] * [10.27777777777777, 8, 5.72222222222222]; # values from MATLAB 442s out_expected = cat (3, plane_expected_cubic, plane_expected_cubic, plane_expected_cubic); 442s out_cubic = imresize (in_row, [3, 3], "cubic"); 442s assert (out_cubic, out_expected, 1e-13); 442s 442s in_col = cat(3, [10;6], [10;6], [10;6]); 442s 442s plane_expected_nearest = [10; 10; 6; 6] * [1, 1, 1]; 442s out_expected = cat (3, plane_expected_nearest, plane_expected_nearest, plane_expected_nearest); 442s out_nearest = imresize (in_col, [4, 3], "nearest"); 442s assert (out_nearest, out_expected); 442s 442s plane_expected_linear = [10; 8; 6] * [1, 1, 1]; 442s out_expected = cat (3, plane_expected_linear, plane_expected_linear, plane_expected_linear); 442s out_linear = imresize (in_col, [3, 3], "linear"); 442s assert (out_linear, out_expected); 442s 442s plane_expected_cubic = [10.27777777777777; 8; 5.72222222222222] * [1, 1, 1]; # values from MATLAB 442s out_expected = cat (3, plane_expected_cubic, plane_expected_cubic, plane_expected_cubic); 442s out_cubic = imresize (in_col, [3, 3], "cubic"); 442s assert (out_cubic, out_expected, 1e-13); 442s ***** #test 442s r_big_int16 = randi(16000, 8000, 8000, "int16"); 442s r_big_double = randi(16000, 8000, 8000); 442s tic; imresize (r_big_int16, 100/8000); toc; 442s tic; imresize (r_big_double, 100/8000); toc; 442s 442s r_small_int16 = randi(16000, 100, 100, "int16"); 442s r_small_double = randi(16000, 100, 100); 442s tic; imresize (r_small_int16, 8000/100); toc; 442s tic; imresize (r_small_double, 8000/100); toc; 442s 13 tests, 13 passed, 0 known failure, 0 skipped 442s [inst/montage.m] 442s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/montage.m 442s ***** function cdata = montage_cdata (varargin) 442s h = figure (); 442s set (h, "visible", "off"); 442s mh = montage (varargin{:}); 442s cdata = get (mh, "cdata"); 442s close (h); 442s ***** endfunction 442s ***** test 442s im = uint8 (ones (2, 2, 1, 5)) .* reshape ([1 2 3 4 5], [1 1 1 5]); 442s cdata = montage_cdata (im); 442s expected = uint8 ([ 442s 1 1 2 2 3 3 442s 1 1 2 2 3 3 442s 4 4 5 5 0 0 442s 4 4 5 5 0 0 442s ]); 442s assert (cdata, expected) 442s warning: using the gnuplot graphics toolkit is discouraged 442s 442s The gnuplot graphics toolkit is not actively maintained and has a number 442s of limitations that are unlikely to be fixed. Communication with gnuplot 442s uses a one-directional pipe and limited information is passed back to the 442s Octave interpreter so most changes made interactively in the plot window 442s will not be reflected in the graphics properties managed by Octave. For 442s example, if the plot window is closed with a mouse click, Octave will not 442s be notified and will not update its internal list of open figure windows. 442s The qt toolkit is recommended instead. 442s ***** test 442s im = uint8 (ones (2, 4, 1, 6)) .* reshape ([1 2 3 4 5 6], [1 1 1 6]); 442s cdata = montage_cdata (im); 442s expected = uint8 ([ 442s 1 1 1 1 2 2 2 2 442s 1 1 1 1 2 2 2 2 442s 3 3 3 3 4 4 4 4 442s 3 3 3 3 4 4 4 4 442s 5 5 5 5 6 6 6 6 442s 5 5 5 5 6 6 6 6 442s ]); 442s assert (cdata, expected) 443s 2 tests, 2 passed, 0 known failure, 0 skipped 443s [inst/imlincomb.m] 443s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imlincomb.m 443s ***** assert (imlincomb (0.5, uint8 ([255 10]), 0.5, uint8 ([50 20])), 443s uint8 ([153 15])); # default to first class and truncate 443s ***** assert (imlincomb (0.5, uint8 ([255 10]), 0.5, uint8 ([50 20]), "uint16"), 443s uint16 ([153 15])); # defining output class works 443s ***** assert (imlincomb (0.5, uint8 ([255 10]), 0.5, uint8 ([50 20]), 10), 443s uint8 ([163 25])); # default to first class and truncate 443s ***** assert (imlincomb (0.5, uint8 ([255 10]), 0.5, uint8 ([50 20]), 1000, "uint16"), 443s uint16 ([1153 1015])); # defining output class works 443s ***** assert (imlincomb (0.5, uint8 ([255 10]), 0.5, uint8 ([50 20]), 1000), 443s uint8 ([255 255])); # defining output class works 443s 5 tests, 5 passed, 0 known failure, 0 skipped 443s [inst/bwperim.m] 443s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/bwperim.m 443s ***** test 443s in = [ 1 1 1 1 0 1 1 0 1 1 443s 1 1 0 1 1 1 1 1 1 0 443s 1 1 1 0 1 1 1 1 1 1 443s 1 1 1 1 0 1 1 1 0 1 443s 1 1 1 0 1 1 1 1 1 0 443s 1 1 1 1 1 1 0 1 0 1 443s 1 1 1 1 1 1 1 1 1 0 443s 1 1 1 1 1 1 1 1 1 1 443s 1 1 1 1 1 1 0 0 1 1 443s 1 1 1 1 0 1 0 1 1 0]; 443s 443s out = [1 1 1 1 0 1 1 0 1 1 443s 1 1 0 1 1 0 0 1 1 0 443s 1 0 1 0 1 0 0 0 1 1 443s 1 0 0 1 0 1 0 1 0 1 443s 1 0 1 0 1 0 1 0 1 0 443s 1 0 0 1 0 1 0 1 0 1 443s 1 0 0 0 0 0 1 0 1 0 443s 1 0 0 0 0 0 1 1 0 1 443s 1 0 0 0 1 1 0 0 1 1 443s 1 1 1 1 0 1 0 1 1 0]; 443s assert (bwperim (in), logical (out)) 443s assert (bwperim (in, 4), logical (out)) 443s 443s out = [1 1 1 1 0 1 1 0 1 1 443s 1 1 0 1 1 1 1 1 1 0 443s 1 1 1 0 1 1 0 1 1 1 443s 1 0 1 1 0 1 0 1 0 1 443s 1 0 1 0 1 1 1 1 1 0 443s 1 0 1 1 1 1 0 1 0 1 443s 1 0 0 0 0 1 1 1 1 0 443s 1 0 0 0 0 1 1 1 1 1 443s 1 0 0 1 1 1 0 0 1 1 443s 1 1 1 1 0 1 0 1 1 0]; 443s assert (bwperim (in, 8), logical (out)) 443s 443s out = [1 1 1 1 0 1 1 0 1 1 443s 1 0 0 0 0 1 0 0 1 0 443s 1 0 0 0 0 0 0 1 0 1 443s 1 0 1 0 0 0 0 0 0 1 443s 1 0 0 0 0 1 0 1 0 0 443s 1 0 0 0 1 0 0 0 0 1 443s 1 0 0 0 0 0 0 1 0 0 443s 1 0 0 0 0 1 1 0 0 1 443s 1 0 0 1 0 1 0 0 1 1 443s 1 1 1 1 0 1 0 1 1 0]; 443s assert (bwperim (in, [1 0 0; 0 1 0; 0 0 1]), logical (out)) 443s ***** test 443s in = [ 0 0 0 0 0 0 0 443s 0 0 5 0 0 1 9 443s 0 Inf 9 7 0 0 0 443s 0 1.5 5 7 1 0 0 443s 0 0.5 -1 89 i 0 0 443s 0 4 10 15 1 0 0 443s 0 0 0 0 0 0 0]; 443s out = [0 0 0 0 0 0 0 443s 0 0 1 0 0 1 1 443s 0 1 0 1 0 0 0 443s 0 1 0 0 1 0 0 443s 0 1 0 0 1 0 0 443s 0 1 1 1 1 0 0 443s 0 0 0 0 0 0 0]; 443s assert (bwperim (in), logical (out)) 443s ***** test 443s in = reshape (magic(16), [8 8 4]) > 50; 443s out(:,:,1) = [ 443s 1 1 0 1 0 1 1 1 443s 0 1 1 1 1 1 0 1 443s 0 1 1 1 1 1 0 1 443s 1 1 0 1 1 1 1 1 443s 1 1 1 1 1 1 1 1 443s 1 1 1 0 1 0 1 1 443s 1 1 1 0 1 0 1 1 443s 1 0 1 1 1 1 1 0]; 443s out(:,:,2) = [ 443s 1 1 0 1 0 1 1 1 443s 0 1 1 0 1 1 0 1 443s 0 1 0 0 0 1 0 1 443s 1 0 1 0 0 0 1 1 443s 1 0 0 1 0 1 0 1 443s 1 0 1 0 1 0 1 1 443s 1 1 1 0 1 0 1 1 443s 1 0 1 1 1 1 1 0]; 443s out(:,:,3) = [ 443s 1 1 0 1 0 1 1 1 443s 0 1 1 0 1 1 0 1 443s 0 1 0 0 0 1 0 1 443s 1 0 0 0 0 0 1 1 443s 1 0 0 1 0 1 0 1 443s 1 0 1 0 1 0 1 1 443s 1 1 1 0 1 0 1 1 443s 1 0 1 1 1 1 1 0]; 443s out(:,:,4) = [ 443s 1 1 0 1 0 1 1 1 443s 0 1 1 1 1 1 0 1 443s 0 1 1 1 1 1 0 1 443s 1 1 1 1 1 1 1 1 443s 1 1 1 1 1 1 1 0 443s 1 1 1 0 1 0 1 1 443s 1 1 1 0 1 0 1 1 443s 1 0 1 1 1 1 1 0]; 443s assert (bwperim (in), logical (out)) 443s 443s out(:,:,1) = [ 443s 1 1 0 1 0 1 1 1 443s 0 1 1 1 1 1 0 1 443s 0 1 1 1 1 1 0 1 443s 1 1 0 1 1 1 1 1 443s 1 1 1 1 1 1 1 1 443s 1 1 1 0 1 0 1 1 443s 1 1 1 0 1 0 1 1 443s 1 0 1 1 1 1 1 0]; 443s out(:,:,2) = [ 443s 1 1 0 1 0 1 1 1 443s 0 1 1 1 1 1 0 1 443s 0 1 1 0 0 1 0 1 443s 1 1 1 1 0 1 1 1 443s 1 0 1 1 1 1 1 1 443s 1 0 1 0 1 0 1 1 443s 1 1 1 0 1 0 1 1 443s 1 0 1 1 1 1 1 0]; 443s out(:,:,3) = [ 443s 1 1 0 1 0 1 1 1 443s 0 1 1 1 1 1 0 1 443s 0 1 0 0 0 1 0 1 443s 1 1 0 0 0 1 1 1 443s 1 0 1 1 1 1 1 1 443s 1 0 1 0 1 0 1 1 443s 1 1 1 0 1 0 1 1 443s 1 0 1 1 1 1 1 0]; 443s out(:,:,4) = [ 443s 1 1 0 1 0 1 1 1 443s 0 1 1 1 1 1 0 1 443s 0 1 1 1 1 1 0 1 443s 1 1 1 1 1 1 1 1 443s 1 1 1 1 1 1 1 0 443s 1 1 1 0 1 0 1 1 443s 1 1 1 0 1 0 1 1 443s 1 0 1 1 1 1 1 0]; 443s assert (bwperim (in, 18), logical (out)) 443s ***** error bwperim ("text") 443s ***** error bwperim (rand (10), 5) 443s ***** error bwperim (rand (10), "text") 443s ***** test 443s a = false (5); 443s a(1:4,2:4) = true; 443s 443s p = false (5); 443s p(1:4,[2 4]) = true; 443s assert (bwperim (a, [0 0 0; 1 1 1; 0 0 0]), p) 443s ***** test 443s a = false (8, 8, 5); 443s a(4:5,4:5,2:4) = true; 443s a(2:7,2:7,3) = true; 443s assert (bwperim (a, 26), a) 443s 443s ## It is easy to forget that is correct 443s b = a; 443s b(4:5, 4:5, 3) = false; 443s assert (bwperim (a), b) 443s 443s c = a; 443s c(3:6,3:6,3) = false; 443s assert (bwperim (a, 4), c) 443s ***** test 443s conn_self = logical ([0 0 0; 0 1 0; 0 0 0]); 443s assert (bwperim (true), true) 443s assert (bwperim (true, conn_self), false) 443s assert (bwperim (true (1, 6)), true (1, 6)) 443s assert (bwperim (true (1, 6), conn_self), false (1, 6)) 443s assert (bwperim (true (6, 1)), true (6, 1)) 443s 443s bw_3d = true (1, 1, 6); 443s assert (bwperim (bw_3d), bw_3d) 443s assert (bwperim (bw_3d, conn_self), false (1, 1, 6)) 443s assert (bwperim (bw_3d, true (3)), bw_3d) 443s 443s perim_3d = bw_3d; 443s perim_3d(1, 1, 2:end-1) = false; 443s conn_3d = false (3, 3, 3); 443s conn_3d(2, 2, :) = true; 443s assert (bwperim (true (1, 1, 6), conn_3d), perim_3d) 443s 9 tests, 9 passed, 0 known failure, 0 skipped 443s [inst/iptnum2ordinal.m] 443s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/iptnum2ordinal.m 443s ***** assert (strcmp (iptnum2ordinal (1), 'first')); # simple works 443s ***** assert (strcmp (iptnum2ordinal (21), '21st')); # after 20, goes stupid 443s ***** assert (strcmp (iptnum2ordinal (100), '100th')); # use th correctly 443s ***** fail ("iptnum2ordinal (inf)"); # must be real 443s ***** fail ("iptnum2ordinal (0)"); # must be positive 443s ***** fail ("iptnum2ordinal (-1)"); # must be positive 443s ***** fail ("iptnum2ordinal (3.4)"); # must be integer 443s 7 tests, 7 passed, 0 known failure, 0 skipped 443s [inst/imhmin.m] 443s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imhmin.m 443s ***** shared im0, im0_h2_out 443s im0 = uint8 ([5 5 5 5 5; 443s 5 4 3 4 5; 443s 5 3 0 3 5; 443s 5 4 3 4 5; 443s 5 5 5 5 5]); 443s im0_h2_out = uint8 ([5 5 5 5 5; 443s 5 4 3 4 5; 443s 5 3 2 3 5; 443s 5 4 3 4 5; 443s 5 5 5 5 5]); 443s ***** error imhmin () 443s ***** error imhmin (im0) 443s ***** error imhmin ("hello", 2) 443s ***** error imhmin (i.*im0, 2) 443s ***** error imhmin (sparse (im0), 2) 443s ***** error imhmin (im0, -2) 443s ***** error imhmin (im0, 'a') 443s ***** error imhmin (im0, ones (2)) 443s ***** error imhmin (im0, 2*i) 443s ***** assert (imhmin (im0, 2), im0_h2_out) 443s ***** assert (imhmin (double (im0), 2), double (im0_h2_out)) 443s ***** assert (imhmin (im0, 2, 8), im0_h2_out) 443s ***** assert (imhmin (im0, 2, 4), im0_h2_out) 443s ***** assert (imhmin (im0, 2, true (3)), im0_h2_out) 443s ***** test 443s out = imhmin (double (im0), 2); 443s assert (size (out), size (im0)) 443s assert (class (out), "double") 443s ***** test 443s out = imhmin (single (im0), 2); 443s assert (size (out), size (im0)) 443s assert (class (out), "single") 443s ***** test 443s out = imhmin (uint8 (im0), 2); 443s assert (size (out), size (im0)) 443s assert (class (out), "uint8") 443s ***** test 443s out = imhmin (uint16 (im0), 2); 443s assert (size (out), size (im0)) 443s assert (class (out), "uint16") 443s ***** test 443s im = cat (3, im0, im0, im0, im0); 443s out = imhmin (im, 2); 443s assert (size (out), size (im)) 443s ***** test 443s im = 10 .* ones (10); 443s im(2:4, 2:4) = 7; 443s im(6:8, 6:8) = 2; 443s expected_4 = 10 .* ones (10); 443s expected_4(6:8, 6:8) = 6; 443s expected_2 = 10 .* ones (10); 443s expected_2(6:8, 6:8) = 4; 443s expected_2(2:4, 2:4) = 9; 443s out = imhmin (im, 4); 443s assert (out, expected_4, eps) 443s out = imhmin (im, 2); 443s assert (out, expected_2, eps) 443s out = imhmin (0.1.*im, 0.4); 443s assert (out, 0.1 .* expected_4, eps) 443s ***** test 443s im2 = 10 .* ones (10); 443s im2(2:4, 2:4) = 7; 443s im2(6:9, 6:9)=2; 443s im2(5, 5)=2; 443s im2(6, 7)=10; 443s im2(7, 8)=10; 443s expected_4 = 10 .* ones (10); 443s expected_4(6:9, 6:9) = 6; 443s expected_4(5, 5) = 6; 443s expected_4(6, 7) = 10; 443s expected_4(7, 8) = 10; 443s expected_8 = expected_4; 443s expected_8(2:4, 2:4) = 7; 443s out2 = imhmin (im2, 4); 443s assert (out2, expected_8, eps) 443s out2 = imhmin (im2, 4, 4); 443s assert (out2, expected_4, eps) 443s out2 = imhmin (im2, 4, 8); 443s assert (out2, expected_8, eps) 443s 21 tests, 21 passed, 0 known failure, 0 skipped 443s [inst/imopen.m] 443s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imopen.m 443s ***** shared in, out 443s in = [ 0 0 0 1 1 1 0 0 1 1 443s 0 1 0 1 1 1 0 0 0 1 443s 1 1 1 1 1 0 0 0 0 0 443s 0 1 1 1 1 0 0 0 0 0 443s 0 0 0 1 0 0 0 0 1 0 443s 0 0 0 0 0 0 0 1 1 1 443s 0 0 0 0 1 0 1 0 1 0 443s 0 0 0 1 1 1 1 1 0 0 443s 0 0 0 0 1 1 1 0 0 0 443s 0 0 0 1 1 1 0 0 0 0]; 443s 443s out = [ 0 0 0 1 1 1 0 0 0 0 443s 0 0 0 1 1 1 0 0 0 0 443s 0 0 0 0 0 0 0 0 0 0 443s 0 0 0 0 0 0 0 0 0 0 443s 0 0 0 0 0 0 0 0 0 0 443s 0 0 0 0 0 0 0 0 0 0 443s 0 0 0 0 0 0 0 0 0 0 443s 0 0 0 0 0 0 0 0 0 0 443s 0 0 0 0 0 0 0 0 0 0 443s 0 0 0 0 0 0 0 0 0 0]; 443s ***** assert (imopen (logical (in), ones (3)), logical (out)); 443s 443s out = [80 80 1 8 15 51 51 51 51 40 443s 80 80 7 8 15 54 55 55 55 40 443s 4 7 7 8 15 54 55 55 55 40 443s 17 17 17 7 3 54 55 55 55 28 443s 17 17 17 2 9 54 54 54 52 33 443s 17 17 17 29 29 29 29 26 33 33 443s 5 5 13 29 29 29 30 32 39 39 443s 6 6 13 29 29 29 30 32 39 39 443s 10 12 77 77 77 35 35 35 39 39 443s 10 12 77 77 77 35 35 35 27 27]; 443s ***** assert (imopen (magic (10), ones (3)), out); 443s ***** assert (imopen (uint8 (magic (10)), strel ("square", 3)), uint8 (out)); 443s 443s ## using a se that will be decomposed in 2 pieces 443s out =[ 1 1 1 8 15 40 40 40 40 40 443s 4 4 4 8 15 40 40 40 40 40 443s 4 4 4 8 15 40 40 40 40 40 443s 5 5 5 3 3 28 28 28 28 28 443s 5 5 5 2 9 28 28 28 28 28 443s 5 5 13 26 26 26 26 26 26 26 443s 5 5 13 29 29 29 29 29 27 27 443s 6 6 13 29 29 29 29 29 27 27 443s 6 6 13 29 29 29 29 29 27 27 443s 6 6 13 29 29 29 29 29 27 27]; 443s ***** assert (imopen (magic (10), ones(5)), out); 443s 443s ## using a weird non-symmetric and even-size se 443s out =[ 7 7 1 8 15 55 51 51 41 40 443s 7 7 7 8 16 55 55 55 51 41 443s 4 9 7 7 16 54 55 54 55 47 443s 25 25 9 9 3 52 54 52 54 28 443s 25 24 25 2 9 33 52 34 52 34 443s 17 24 29 31 29 30 33 26 33 34 443s 17 5 29 31 31 31 30 32 39 33 443s 10 6 13 35 35 29 31 32 45 39 443s 10 12 77 36 36 35 35 31 45 45 443s 11 12 77 77 77 36 36 35 27 45]; 443s ***** assert (imopen (magic (10), [1 0 0 0; 1 1 1 0; 0 1 0 1]), out); 443s 5 tests, 5 passed, 0 known failure, 0 skipped 443s [inst/edgetaper.m] 443s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/edgetaper.m 443s ***** assert (class (edgetaper (rand (100), rand (16))), "double") 443s ***** assert (class (edgetaper (randi (255, 100, "uint8"), rand (16))), "uint8") 443s 2 tests, 2 passed, 0 known failure, 0 skipped 443s [inst/imregionalmax.m] 443s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imregionalmax.m 443s ***** test 443s a = [ 443s 7 3 9 3 10 3 443s 4 2 3 10 1 3 443s 1 4 6 9 4 10 443s 8 7 9 3 4 8 443s 5 9 3 3 8 9 443s 3 6 9 4 1 10]; 443s 443s a4 = [ 443s 1 0 1 0 1 0 443s 0 0 0 1 0 0 443s 0 0 0 0 0 1 443s 1 0 1 0 0 0 443s 0 1 0 0 0 0 443s 0 0 1 0 0 1]; 443s assert (imregionalmax (a, 4), logical (a4)) 443s a8 = [ 443s 1 0 0 0 1 0 443s 0 0 0 1 0 0 443s 0 0 0 0 0 1 443s 0 0 0 0 0 0 443s 0 0 0 0 0 0 443s 0 0 0 0 0 1]; 443s assert (imregionalmax (a, 8), logical (a8)) 443s assert (imregionalmax (a), logical (a8)) 443s ***** test 443s ## test float input images 443s im0 = peaks (); 443s im1 = im0 ./ 100; 443s max_pos_expected = [1000; 1214; 1691; 2353]; 443s max0 = imregionalmax (im0); 443s max0_pos = find (max0); 443s max1 = imregionalmax (im1); 443s assert (max1, max0) 443s assert (max0_pos, max_pos_expected) 443s 2 tests, 2 passed, 0 known failure, 0 skipped 443s [inst/graythresh.m] 443s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/graythresh.m 443s ***** shared img, histo 443s ## this is the old default.img that came with GNU Octave. While the current 443s ## is very very similar, is off just enough for us to get precision errors 443s img = uint8 (reshape ([138 138 138 142 142 138 142 138 138 117 105 81 69 61 53 40 49 45 40 36 40 45 53 49 65 73 121 166 210 243 247 247 247 239 235 178 154 170 150 150 162 174 190 190 194 186 178 170 154 182 198 174 117 138 138 142 138 142 142 146 142 138 138 130 109 97 81 73 69 57 53 53 57 61 61 69 73 77 105 121 158 219 243 243 247 243 243 243 206 150 158 158 158 150 158 182 186 190 194 186 174 190 206 198 162 138 142 138 142 146 138 142 142 138 146 142 134 142 130 121 101 97 85 85 81 81 81 85 93 85 73 57 61 93 150 194 215 239 243 243 243 223 166 138 158 158 154 142 162 178 190 190 198 186 182 186 174 162 182 146 142 138 142 142 146 142 146 146 146 146 142 142 142 134 125 101 85 73 65 69 73 73 57 40 53 49 57 69 85 125 166 182 178 178 174 150 130 121 146 146 150 142 166 182 190 182 174 166 162 170 194 198 138 138 146 146 138 146 146 146 146 142 150 146 146 142 130 93 65 45 45 49 45 40 49 40 49 49 49 49 61 81 113 142 150 154 154 146 142 134 125 125 138 134 125 146 162 178 178 178 166 186 202 206 186 142 142 142 134 142 146 142 150 142 146 142 146 146 130 81 53 49 49 45 49 40 36 36 32 36 36 36 53 73 89 125 150 146 134 138 146 138 146 138 142 117 117 113 117 146 166 174 178 182 178 178 170 146 142 142 138 142 146 142 142 146 150 138 146 142 130 73 49 40 49 57 65 69 73 61 61 53 57 53 61 77 77 97 113 138 134 130 138 142 150 146 150 134 138 121 121 101 121 150 158 154 142 150 162 166 178 138 138 146 142 142 142 142 146 146 142 142 130 73 57 49 36 49 65 77 85 89 85 81 81 81 85 93 93 97 105 117 125 150 158 154 162 162 166 154 134 150 130 125 113 138 182 174 154 130 178 227 239 239 134 138 142 138 142 142 146 146 138 150 125 61 49 32 32 45 49 57 65 85 101 105 101 101 109 125 117 113 109 138 134 125 166 178 170 162 150 170 162 170 150 146 150 138 125 162 186 182 142 206 247 247 243 138 138 138 138 142 142 146 146 146 130 85 45 45 36 40 53 45 57 69 97 125 130 130 134 138 146 142 134 142 158 138 117 146 174 170 174 178 170 174 170 166 154 162 158 130 134 170 178 158 190 243 247 247 142 142 142 142 142 146 146 142 138 89 53 45 40 45 45 49 57 77 93 125 138 150 154 158 158 162 154 150 166 174 142 73 125 174 178 174 182 182 178 178 174 166 174 174 162 125 154 170 174 170 227 247 251 142 138 142 142 142 142 142 138 105 61 40 40 32 40 40 49 61 89 117 146 154 158 162 170 170 174 162 166 174 182 150 65 146 166 174 186 198 198 198 190 178 178 174 174 158 134 154 198 194 174 202 251 251 146 142 142 142 146 150 138 134 69 40 40 36 32 40 45 45 65 101 134 150 158 166 174 178 174 174 174 170 170 174 142 73 150 162 178 194 202 202 194 194 178 178 154 134 125 138 154 198 194 186 190 243 251 150 146 146 146 146 150 130 109 53 45 28 40 40 36 32 49 73 101 130 154 162 170 170 170 178 182 178 178 174 158 142 121 146 158 178 174 186 190 186 186 174 146 105 109 113 130 150 178 202 190 186 243 251 146 146 146 146 150 142 109 73 49 40 32 40 40 45 40 53 69 93 130 154 162 170 174 178 182 182 186 182 178 154 146 130 138 142 150 170 182 178 174 166 150 117 97 105 113 130 150 150 174 182 190 243 251 146 146 154 146 150 134 105 53 40 45 45 40 40 36 36 40 69 105 134 162 170 174 178 182 182 182 186 190 186 178 170 158 154 150 162 182 182 174 174 174 150 113 109 113 113 130 150 162 186 186 190 239 251 154 150 146 150 146 125 77 49 36 40 36 40 36 28 40 36 77 113 138 150 170 170 174 186 190 190 190 194 190 186 194 190 170 162 174 194 174 182 170 170 158 121 113 113 113 146 158 170 210 215 215 206 243 150 146 150 150 150 113 57 49 40 45 45 49 49 40 32 45 85 113 142 170 178 174 182 194 190 194 194 198 198 198 210 210 182 162 170 190 182 186 170 170 162 130 121 113 121 146 154 150 198 215 206 210 215 150 150 150 150 150 105 49 45 40 49 49 57 40 49 49 53 85 121 158 182 178 174 182 198 194 194 194 194 202 202 194 186 174 154 162 166 178 174 170 170 170 158 117 113 130 150 154 121 182 194 206 215 206 158 150 150 150 146 97 45 36 49 49 49 40 40 49 49 65 97 130 154 174 174 174 186 194 194 194 194 198 198 186 170 158 154 158 138 158 162 170 190 182 174 170 138 138 142 154 134 142 146 170 206 219 215 150 150 158 158 150 85 36 40 40 40 40 45 45 49 49 65 97 130 146 166 166 174 182 190 194 194 194 194 190 182 162 158 150 158 182 186 178 198 206 198 190 174 154 174 174 142 142 170 170 166 202 223 219 158 150 150 150 146 85 40 45 40 40 36 45 53 45 49 53 93 117 130 154 162 174 190 186 194 194 194 190 186 178 162 162 170 174 182 198 210 206 210 198 198 182 170 178 174 158 154 194 194 174 198 210 215 150 154 158 150 150 85 49 45 40 40 32 36 53 40 45 53 81 109 142 158 158 174 178 182 190 190 194 190 190 178 170 174 178 186 190 190 206 215 202 206 194 186 178 182 174 154 170 198 210 186 186 202 215 150 154 150 154 150 97 45 40 40 40 36 36 45 40 45 73 89 113 142 158 158 174 174 182 186 186 194 186 182 178 174 170 105 166 206 186 190 202 198 194 190 182 182 174 166 154 162 198 215 202 182 202 219 154 150 154 150 146 117 61 45 45 45 36 53 53 49 53 77 93 101 125 158 162 174 174 178 174 186 190 182 182 186 182 182 77 125 198 194 186 190 190 178 178 178 162 162 162 154 186 210 227 210 190 206 223 154 150 154 150 154 138 65 45 45 45 40 49 49 40 53 65 77 89 113 150 158 166 166 170 178 182 186 182 170 170 170 162 81 117 186 190 186 182 178 186 174 166 162 150 130 154 194 227 227 219 202 202 219 154 154 150 154 146 146 89 45 40 45 40 49 49 36 40 57 65 89 109 138 146 158 158 170 170 178 182 178 162 150 158 154 113 146 186 182 178 182 178 170 170 162 146 138 138 146 202 223 231 219 210 190 215 130 130 130 130 130 130 109 45 53 40 32 36 40 45 53 61 65 81 97 117 130 138 150 158 158 178 170 162 158 138 142 150 146 166 178 174 174 170 170 170 162 158 138 117 117 142 202 223 239 223 215 186 206 61 61 65 69 69 65 57 36 40 36 32 40 40 53 57 53 57 69 93 105 109 130 138 142 154 162 150 138 142 125 121 150 162 170 170 166 170 170 170 166 162 138 121 113 130 170 202 223 227 231 202 178 182 45 49 45 40 40 40 45 45 45 45 36 40 32 49 61 61 57 65 73 81 101 109 121 130 142 146 121 89 93 117 113 134 154 174 166 162 166 170 170 162 154 150 142 150 223 186 194 215 231 227 206 182 174 49 40 45 45 49 49 45 49 49 49 49 40 36 45 57 69 65 61 65 69 85 93 109 109 117 109 89 57 57 81 97 113 154 162 166 162 170 158 158 162 154 162 174 231 239 178 186 210 231 239 210 194 178 49 36 49 45 49 49 49 45 45 49 49 36 40 40 45 36 53 53 53 57 57 69 69 73 69 61 57 45 45 65 89 105 125 142 146 150 150 154 162 170 174 223 235 247 231 178 178 206 227 227 223 198 190 40 53 36 45 40 40 40 40 45 40 40 45 45 45 45 40 53 49 49 45 53 45 32 36 36 36 36 40 49 45 61 73 89 93 97 113 125 142 186 202 239 239 243 251 239 198 166 194 215 235 227 215 202 40 45 36 32 36 40 40 45 40 40 45 49 45 49 45 49 40 40 45 49 40 45 45 45 49 49 32 40 49 40 49 57 69 81 101 134 170 206 235 243 243 239 247 251 247 210 170 186 202 231 231 227 210 49 45 49 40 40 40 49 45 40 40 45 45 45 40 45 45 45 49 40 49 40 49 45 45 36 40 40 45 45 45 45 65 121 150 210 239 243 243 247 243 243 247 251 251 239 223 178 174 194 219 239 231 219 36 45 45 40 40 49 40 45 49 49 40 40 45 49 40 40 45 49 45 40 49 45 40 40 40 49 40 45 40 49 49 121 162 215 247 247 247 247 247 243 247 251 251 251 247 239 223 194 186 202 215 210 210 36 45 45 40 40 49 40 45 32 36 49 36 45 49 40 40 45 40 36 40 45 45 40 40 40 36 45 32 40 49 57 121 142 215 243 247 243 247 243 247 251 251 251 251 247 247 247 227 186 194 190 190 182 40 32 45 32 45 40 45 45 49 45 40 45 49 36 40 45 32 40 45 45 49 45 45 45 45 53 49 53 45 45 40 69 97 186 239 243 247 247 247 251 251 251 251 251 243 243 231 202 202 206 206 186 170 53 40 40 40 40 40 36 32 32 36 45 53 49 32 36 32 36 32 40 49 40 40 45 40 40 53 45 49 49 40 32 40 49 138 219 235 247 247 251 251 251 251 251 247 243 235 198 206 210 198 190 186 186 73 69 61 57 61 49 53 40 49 45 40 49 49 49 57 57 53 49 53 53 45 40 45 40 45 49 45 49 45 40 32 53 69 101 215 231 247 247 247 247 251 251 251 243 235 219 194 202 202 186 186 190 194], [53 40])); 443s ***** assert (graythresh (img, "percentile"), 142/255); 443s ***** assert (graythresh (img, "percentile", 0.5), 142/255); 443s ***** assert (graythresh (img, "moments"), 142/255); 443s ***** assert (graythresh (img, "minimum"), 93/255); 443s ***** assert (graythresh (img, "maxentropy"), 150/255); 443s ***** assert (graythresh (img, "intermodes"), 99/255); 443s ***** assert (graythresh (img, "otsu"), 114.5/255); 443s histo = hist (img(:), 0:255); 443s ***** assert (graythresh (histo, "otsu"), 114.5/255); 443s ***** assert (graythresh (img, "mean"), 0.51445615982, 0.000000001); # here our results differ from ImageJ 443s ***** test 443s im = repmat (0.5, 100, 100); 443s [t, g] = graythresh (im); 443s assert (t, 0) 443s assert (g, 0) 443s ***** test 443s im = [-2 1 0; 43 .5 .2]; 443s clip_im = [ 0 1 0; 1 .5 .2]; 443s t = graythresh (clip_im); 443s assert (graythresh (im), t) 443s assert (graythresh (single (im)), t) 443s ***** test 443s H(1) = 100; 443s assert (graythresh (H), 0) 443s 12 tests, 12 passed, 0 known failure, 0 skipped 443s [inst/isbw.m] 443s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/isbw.m 443s ***** shared img 443s img = round (rand (10)); 443s ***** assert (isbw (img, "non-logical"), true); 443s ***** assert (isbw (img, "logical"), false); 443s ***** assert (isbw (logical (img), "logical"), true); 443s ***** assert (isbw (logical (img), "non-logical"), true); 443s ***** test 443s img(1, 1) = 2; 443s assert (isbw (img, "non-logical"), false); 443s ***** test 443s a( 1, 1) = 1; 443s a(50, 50) = 2; 443s assert (isbw (a, "non-logical"), false); 443s ***** assert (isbw (rand (5, 5, 1, 4) > 0.5), true) 443s ***** assert (isbw (rand (5, 5, 3, 4) > 0.5), false) 443s ***** assert (isbw (rand (5, 5, 3) > 0.5), false) 443s ***** assert (isbw (rand (5, 5, 1, 3, 4) > 0.5), false) 443s ***** assert (isbw (randi ([0 1], 5, 5, 1, 4), "non-logical"), true) 443s ***** assert (isbw (randi ([0 1], 5, 5, 3, 4), "non-logical"), false) 443s ***** assert (isbw (randi ([0 1], 5, 5, 3), "non-logical"), false) 443s ***** assert (isbw (randi ([0 1], 5, 5, 1, 3, 4), "non-logical"), false) 443s ***** assert (isbw (single ([0 0 1]), "non-logical"), true) 443s ***** assert (isbw ([0 NaN 1], "non-logical"), false) 443s 16 tests, 16 passed, 0 known failure, 0 skipped 443s [inst/integralImage3.m] 443s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/integralImage3.m 443s ***** test 443s assert (integralImage3 (zeros (4)), zeros (5, 5, 2)); 443s ***** test 443s J_res = zeros (2, 2, 2); 443s J_res(2, 2, 2) = 10; 443s assert (integralImage3 (10), J_res); 443s ***** test 443s J = integralImage3 (10); 443s assert (class (J), "double"); 443s J = integralImage3 (uint8 (10)); 443s assert (class (J), "double"); 443s ***** test 443s I = [1, 2; 3, 4]; 443s J = integralImage3 (I); 443s J_res = zeros (3, 3, 2); 443s J_res(2:3, 2:3, 2) = [1 3; 4 10]; 443s assert (J, J_res) 443s ***** test 443s I1 = [1, 2; 3, 4]; 443s I2 = [5, 6; 7, 8]; 443s I3 = [9, 10; 11, 12]; 443s I = cat (3, I1, I2, I3); 443s J = integralImage3 (I); 443s J2 = [0 0 0; 0 1 3; 0 4 10]; 443s J3 = [0 0 0; 0 6 14; 0 16 36]; 443s J4 = [0 0 0; 0 15 33; 0 36 78]; 443s J_res = cat (3, zeros (3), J2, J3, J4); 443s assert (J, J_res) 443s ***** test 443s I = magic (5); 443s J = integralImage3 (I); 443s J_res = zeros (6, 6, 2); 443s J_res(:, :, 2) = [0 0 0 0 0 0; 443s 0 17 41 42 50 65; 443s 0 40 69 77 99 130; 443s 0 44 79 100 142 195; 443s 0 54 101 141 204 260; 443s 0 65 130 195 260 325]; 443s assert (J, J_res) 443s ***** # test of 3d input image: 443s ***** test 443s K = magic (8); 443s K = reshape (K, [4 4 4]); 443s L = integralImage3 (K); 443s L1_ML = zeros (5); 443s L2_ML = [0 0 0 0 0; 443s 0 64 96 98 132; 443s 0 73 146 203 260; 443s 0 90 212 316 388; 443s 0 130 260 390 520]; 443s L3_ML = [0 0 0 0 0; 443s 0 67 134 197 260; 443s 0 130 260 390 520; 443s 0 193 386 583 780; 443s 0 260 520 780 1040]; 443s L4_ML = [0 0 0 0 0; 443s 0 127 222 291 392; 443s 0 203 406 593 780; 443s 0 287 606 903 1168; 443s 0 390 780 1170 1560]; 443s L5_ML = [0 0 0 0 0; 443s 0 134 268 394 520; 443s 0 260 520 780 1040; 443s 0 386 772 1166 1560; 443s 0 520 1040 1560 2080]; 443s L_ML = cat (3, L1_ML, L2_ML, L3_ML, L4_ML, L5_ML); 443s assert (L, L_ML) 443s ***** # test of 2d input image: 443s ***** test 443s X = ones (3); 443s Y = integralImage3 (X); 443s Y_ML = zeros (4, 4, 2); 443s Y_ML(:, :, 2) = [0 0 0 0; 0 1 2 3; 0 2 4 6; 0 3 6 9]; 443s assert(Y, Y_ML); 443s ***** error id=Octave:invalid-fun-call 443s integralImage3 (); 443s ***** error id=Octave:invalid-fun-call 443s integralImage3 (zeros (3), zeros (3)); 443s ***** error 443s integralImage3 ("abcd"); 443s ***** error 443s integralImage3 (1+i); 443s ***** error 443s integralImage3 (reshape (1:81, 3, 3, 3, 3)); 444s 13 tests, 13 passed, 0 known failure, 0 skipped 444s [inst/affine2d.m] 444s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/affine2d.m 444s ***** test 444s theta = 10; 444s A = [cosd(theta) -sind(theta) 0 444s sind(theta) cosd(theta) 0 444s 0 0 1]; 444s tform = affine2d (A); 444s [X, Y] = transformPointsForward (tform, 5, 10); 444s assert (X, 6.6605, 1.e-4) 444s assert (Y, 8.9798, 1.e-4) 444s 444s [U, V] = transformPointsInverse (tform, X, Y); 444s assert (U, 5, 5*eps) 444s assert (V, 10, 9*eps) 444s assert (isRigid (tform)) 444s assert (! isTranslation (tform)) 444s assert (isSimilarity (tform)) 444s ***** test 444s theta = 30; 444s tform = affine2d([ cosd(theta) sind(theta) 0 444s -sind(theta) cosd(theta) 0 444s 0 0 1]); 444s assert (tform.T, [ 0.86603 0.5 0 444s -0.5 0.86603 0 444s 0 0 1], 1.e-5); 444s invtform = invert(tform); 444s assert (invtform.T, [ 0.86603 -0.5 0 444s 0.5 0.86603 0 444s 0 0 1], 1.e-5); 444s assert (isRigid (tform)) 444s assert (! isTranslation (tform)) 444s assert (isSimilarity (tform)) 444s ***** test 444s tform = affine2d ([1 0 0; 0 1 0; 5 10 1]); 444s [X, Y] = transformPointsForward (tform, [1 2; 3 4; 5 6; 7 8]); 444s assert (round (X), [6; 8; 10; 12]) 444s assert (round (Y), [12; 14; 16; 18]) 444s 444s [U, V] = transformPointsInverse (tform, X, Y); 444s assert (round (U), [1; 3; 5; 7]) 444s assert (round (V), [2; 4; 6; 8]) 444s assert (isRigid (tform)) 444s assert (isTranslation (tform)) 444s assert (isSimilarity (tform)) 444s ***** test 444s tform = affine2d ([1 1e-16 0; 1e-16 1 0; 5 10 1]); 444s assert (isRigid (tform)) 444s tform = affine2d ([2 1e-16 0; 1e-16 1 0; 5 10 1]); 444s assert (! isRigid (tform)) 444s ***** test 444s theta = 10; 444s A = [cosd(theta) -sind(theta) 0 444s sind(theta) cosd(theta) 0 444s 0 0 1]; 444s tform = affine2d (A); 444s [xlim, ylim] = outputLimits (tform, [1 240], [1 291]); 444s assert (xlim, [1.1585 286.8855], 1.e-4) 444s assert (ylim, [-40.6908 286.4054], 1.e-4) 444s ***** test 444s A = [1 0 0 444s 0 1 0 444s 40 40 1]; 444s tform = affine2d (A); 444s assert (isRigid (tform)); 444s assert (isSimilarity (tform)); 444s assert (isTranslation (tform)); 444s ***** test 444s a = invert (affine2d ([1 2 0; 3 4 0; 10 20 1])); 444s b = affine2d(a.T); 444s assert (b.T, [-2, 1, 0; 1.5, -0.5, 0; -10, 0, 1], 5*eps) 444s ***** assert (isTranslation (affine2d ([1, 0, 0; 0, 1, 0; 40, 40, 1]))) 444s ***** assert (! isTranslation (affine2d ([1 0 0; 0 -1 0; 0 0 1]))) 444s ***** assert (! isRigid (affine2d ([1 0 0; 0 -1 0; 0 0 1]))) 444s ***** error affine2d ([0 0 0; 0 0 0]) 444s ***** error affine2d ([0 0 0 0 0 0 0 0 1]) 444s ***** error affine2d ([0 0 0; 0 0 0; 0 0 0]) 444s ***** error affine2d ([1 0 0; 0 1 1; 0 0 1]) 444s ***** error affine2d ([0 0 0; 0 0 0; 0 0 1]) 444s ***** error affine2d (1, 2) 444s ***** error outputLimits (affine2d()) 444s ***** test 444s tform = affine2d; 444s assert (tform.T, eye (3)) 444s assert (tform.Dimensionality, 2) 444s 18 tests, 18 passed, 0 known failure, 0 skipped 444s [inst/fspecial.m] 444s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/fspecial.m 444s ***** test 444s for i = 1:9 444s n = 2^i; 444s assert (sum (fspecial ("disk", n)(:)), 1, eps*n*n); 444s endfor 444s ***** test 444s for r = [3 5 9 17] 444s f = fspecial ("disk", r); 444s [X, Y] = meshgrid (-r:r, -r:r); 444s rhi = (abs (X) + 0.5).^2 + (abs (Y) + 0.5).^2; 444s rlo = (abs (X) - 0.5).^2 + (abs (Y) - 0.5).^2; 444s fhi = (rhi <= (r^2)); 444s flo = (rlo >= (r^2)); 444s for i = 1:(2*r+1) 444s for j = 1:(2*r+1) 444s if (fhi(i,j)) 444s assert (f(i,j), 1/(pi*r^2), eps); 444s endif 444s if (flo(i,j)) 444s assert (f(i,j), 0); 444s endif 444s endfor 444s endfor 444s endfor 445s ***** error 445s fspecial ("gaussian", 0) 445s ***** error 445s fspecial ("gaussian", 3.9) 445s ***** assert (fspecial ("gaussian"), fspecial ("gaussian", 3, 0.5)) 445s ***** assert (fspecial ("gaussian"), fspecial ("gaussian", [3 3], 0.5)) 445s ***** test 445s c = ([-1:1].^2) + ([-1:1]'.^2); 445s gauss = exp (- (c / (2 * (0.5 ^ 2)))); 445s f = gauss / sum (gauss(:)); 445s assert (fspecial ("gaussian"), f) 445s 445s expected = [ 445s 0.01134373655849507 0.08381950580221061 0.01134373655849507 445s 0.08381950580221061 0.61934703055717721 0.08381950580221061 445s 0.01134373655849507 0.08381950580221061 0.01134373655849507]; 445s assert (f, expected, eps) 445s ***** function f = f_gaussian_2d (hsize, sigma) 445s c = ([(-hsize(1)):(hsize(1))]'.^2) + ([(-hsize(2)):(hsize(2))].^2); 445s gauss = exp (- (c ./ (2 * (sigma .^ 2)))); 445s f = gauss ./ sum (gauss(:)); 445s ***** endfunction 445s ***** test 445s f = fspecial ("gaussian"); 445s assert (f, f_gaussian_2d ([1 1], .5)) 445s expected = [ 445s 0.01134373655849507 0.08381950580221061 0.01134373655849507 445s 0.08381950580221061 0.61934703055717721 0.08381950580221061 445s 0.01134373655849507 0.08381950580221061 0.01134373655849507]; 445s assert (f, expected, eps) 445s ***** test 445s f = fspecial ("gaussian", 7, 2); 445s assert (f, f_gaussian_2d ([3 3], 2)) 445s expected = [ 445s 0.00492233115934352 445s 0.00919612528958620 445s 0.01338028334410124 445s 0.01516184737296414 445s 0.01338028334410124 445s 0.00919612528958620 445s 0.00492233115934352 445s 0.00919612528958620 445s 0.01718062389630964 445s 0.02499766026691484 445s 0.02832606006174462 445s 0.02499766026691484 445s 0.01718062389630964 445s 0.00919612528958620 445s 0.01338028334410124 445s 0.02499766026691484 445s 0.03637138107390363 445s 0.04121417419979795 445s 0.03637138107390363 445s 0.02499766026691484 445s 0.01338028334410124 445s 0.01516184737296414 445s 0.02832606006174462 445s 0.04121417419979795 445s 0.04670177773892775]; 445s expected = reshape ([expected; expected((end-1):-1:1)], [7 7]); 445s assert (f, expected, eps) 445s ***** test 445s f = fspecial ("gaussian", [7 5], 2); 445s assert (f, f_gaussian_2d ([3 2], 2)) 445s expected = [ 445s 0.01069713252648568 445s 0.01998487459872362 445s 0.02907782096336423 445s 0.03294948784319031 445s 0.02907782096336423 445s 0.01998487459872362 445s 0.01069713252648568 445s 0.01556423598706978 445s 0.02907782096336423 445s 0.04230797985750011 445s 0.04794122192790870 445s 0.04230797985750011 445s 0.02907782096336423 445s 0.01556423598706978 445s 0.01763658993191515 445s 0.03294948784319031 445s 0.04794122192790870 445s 0.05432452146574315]; 445s expected = reshape ([expected; expected((end-1):-1:1)], [7 5]); 445s assert (f, expected, eps) 445s ***** test 445s f = fspecial ("gaussian", [4 2], 2); 445s expected = [0.10945587477855045 0.14054412522144952]; 445s expected = expected([1 1; 2 2; 2 2; 1 1]); 445s assert (f, expected, eps) 445s ***** test 445s expected =[0.04792235409415088 0.06153352068439959 0.07901060453704994]; 445s expected = expected([1 2 2 1; 2 3 3 2; 2 3 3 2; 1 2 2 1]); 445s assert (fspecial ("gaussian", 4, 2), expected) 445s ***** function f = f_gaussian_3d (lengths, sigma) 445s [x, y, z] = ndgrid (-lengths(1):lengths(1), -lengths(2):lengths(2), 445s -lengths(3):lengths(3)); 445s sig_22 = 2 * (sigma.^2); 445s f = exp (-((x.^2)/sig_22 + (y.^2)/sig_22 + (z.^2)/sig_22)); 445s f = f / sum (f(:)); 445s ***** endfunction 445s ***** test 445s obs = fspecial ("gaussian", [5 5 5]); 445s assert (obs, f_gaussian_3d ([2 2 2], .5)) 445s 445s u_values = [ 445s 0.00000000001837155 445s 0.00000000741161178 445s 0.00000005476481523 445s 0.00000299005759843 445s 0.00002209370333384 445s 0.00016325161336690 445s 0.00120627532940896 445s 0.00891323607975882 445s 0.06586040141635063 445s 0.48664620076350640]; 445s expected = zeros (5, 5, 5); 445s expected([1 5 21 25 101 105 121 125]) = u_values(1); 445s expected([2 4 6 10 16 20 22 24 26 30 46 50 76 80 96 100 102 104 106 110 116 120 122 124]) = u_values(2); 445s expected([3 11 15 23 51 55 71 75 103 111 115 123]) = u_values(3); 445s expected([7 9 17 19 27 29 31 35 41 45 47 49 77 79 81 85 91 95 97 99 107 109 117 119]) = u_values(4); 445s expected([8 12 14 18 28 36 40 48 52 54 56 60 66 70 72 74 78 86 90 98 108 112 114 118]) = u_values(5); 445s expected([13 53 61 65 73 113]) = u_values(6); 445s expected([32 34 42 44 82 84 92 94]) = u_values(7); 445s expected([33 37 39 43 57 59 67 69 83 87 89 93]) = u_values(8); 445s expected([38 58 62 64 68 88]) = u_values(9); 445s expected([63]) = u_values(10); 445s assert (obs, expected, 4 * eps) 445s ***** test 445s obs = fspecial ("gaussian", [5 5 5], 1); 445s assert (obs, f_gaussian_3d ([2 2 2], 1)) 445s 445s u_values = [ 445s 0.00016177781678373 445s 0.00072503787330278 445s 0.00119538536377748 445s 0.00324939431236223 445s 0.00535734551968363 445s 0.00883276951279243 445s 0.01456277497493249 445s 0.02400995686159072 445s 0.03958572658629712 445s 0.06526582943894763]; 445s expected = zeros (5, 5, 5); 445s expected([1 5 21 25 101 105 121 125]) = u_values(1); 445s expected([2 4 6 10 16 20 22 24 26 30 46 50 76 80 96 100 102 104 106 110 116 120 122 124]) = u_values(2); 445s expected([3 11 15 23 51 55 71 75 103 111 115 123]) = u_values(3); 445s expected([7 9 17 19 27 29 31 35 41 45 47 49 77 79 81 85 91 95 97 99 107 109 117 119]) = u_values(4); 445s expected([8 12 14 18 28 36 40 48 52 54 56 60 66 70 72 74 78 86 90 98 108 112 114 118]) = u_values(5); 445s expected([13 53 61 65 73 113]) = u_values(6); 445s expected([32 34 42 44 82 84 92 94]) = u_values(7); 445s expected([33 37 39 43 57 59 67 69 83 87 89 93]) = u_values(8); 445s expected([38 58 62 64 68 88]) = u_values(9); 445s expected([63]) = u_values(10); 445s assert (obs, expected, eps) 445s ***** test 445s obs = fspecial ("gaussian", [3 4 1 5], 3); 445s assert (find (obs == max (obs(:))), [29; 32]) 445s assert (size (obs), [3 4 1 5]) 445s assert (obs(:)(1:30), obs(:)(end:-1:31)) 445s ***** test 445s f = repmat (1/9, [3 3]); 445s assert (fspecial ("average", [3 3]), f) 445s 445s ## Test default 445s assert (fspecial ("average"), fspecial ("average", [3 3])) 445s assert (fspecial ("average"), fspecial ("average", [3])) 445s 445s f = repmat (1/21, [3 7]); 445s assert (fspecial ("average", [3 7]), f) 445s 445s f = repmat (1/40, [4 5 1 2]); 445s assert (fspecial ("average", [4 5 1 2]), f) 445s ## Behave even if it's a column vector 445s assert (fspecial ("average", [4 5 1 2]'), f) 445s 16 tests, 16 passed, 0 known failure, 0 skipped 445s [inst/im2uint16.m] 445s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/im2uint16.m 445s ***** assert (im2uint16 (uint16 ([1 2 3])), uint16 ([1 2 3])); 445s ***** assert (im2uint16 (uint8 ([0 127 128 255])), uint16 ([0 32639 32896 65535])); 445s ***** assert (im2uint16 ([0 0.5 1]), uint16 ([0 32768 65535])); 445s ***** assert (im2uint16 ([0 1/65535 1.4/65535 1.5/65535 1]), uint16 ([0 1 1 2 65535])); 445s ***** assert (im2uint16 ([1 2]), uint16 ([65535 65535])); 445s ***** assert (im2uint16 ([-1 0 0.5 1]), uint16 ([0 0 32768 65535])); 445s ***** assert (im2uint16 (int16 ([-32768 -1 0 32768])), uint16 ([0 32767 32768 65535])); 445s ***** assert (im2uint16 ([false true]), uint16 ([0 65535])); 445s ***** assert (im2uint16 ([true false]), uint16 ([65535 0])); 445s ***** assert (im2uint16 (uint8 ([3 25]), "indexed"), uint16 ([3 25])); 445s ***** assert (im2uint16 ([1 3 25], "indexed"), uint16 ([0 2 24])); 445s ***** error im2uint16 ([0 1 2], "indexed"); 445s ***** error im2uint16 (int16 ([17 8]), "indexed"); 445s ***** error im2uint16 (int16 ([-7 8]), "indexed"); 445s ***** error im2uint16 ([false true], "indexed"); 445s ***** error im2uint16 (65537, "indexed"); 445s 16 tests, 16 passed, 0 known failure, 0 skipped 445s [inst/ordfilt2.m] 445s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/ordfilt2.m 445s ***** test 445s order = 3; 445s domain = ones (3); 445s A = zeros (3,3); 445s B = ones (3,3); 445s C = [1 1 1; 2 2 2; 3 3 3]; 445s D = C'; 445s E = ones (3,3); 445s E(2,2) = 2; 445s F = 3 .* ones (3,3); 445s F(2,2) = 1; 445s G = [-1 2 7; -5 2 8; -7 pi 9]; 445s H = [5 2 8; 1 -3 1; 5 1 0]; 445s A_out = [0 0 0; 0 0 0; 0 0 0]; 445s B_out = [0 0 0; 0 1 0; 0 0 0]; 445s C_out = [0 0 0; 0 1 0; 0 0 0]; 445s D_out = [0 0 0; 0 1 0; 0 0 0]; 445s E_out = [0 0 0; 0 1 0; 0 0 0]; 445s F_out = [0 0 0; 0 3 0; 0 0 0]; 445s G_out = [0 0 0; -1 -1 0; 0 0 0]; 445s H_out = [0 0 0; 0 1 0; 0 0 0]; 445s assert (ordfilt2 (A, order, domain), A_out); 445s assert (ordfilt2 (B, order, domain), B_out); 445s assert (ordfilt2 (C, order, domain), C_out); 445s assert (ordfilt2 (D, order, domain), D_out); 445s assert (ordfilt2 (E, order, domain), E_out); 445s assert (ordfilt2 (F, order, domain), F_out); 445s assert (ordfilt2 (G, order, domain), G_out); 445s assert (ordfilt2 (H, order, domain), H_out); 445s 1 test, 1 passed, 0 known failure, 0 skipped 445s [inst/rgb2ycbcr.m] 445s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/rgb2ycbcr.m 445s ***** test 445s in(:,:,1) = magic (5); 445s in(:,:,2) = magic (5); 445s in(:,:,3) = magic (5); 445s out(:,:,1) = [31 37 17 23 29 445s 36 20 22 28 30 445s 19 21 27 33 35 445s 25 26 32 34 19 445s 25 31 37 18 24]; 445s out(:,:,2) = 128; 445s out(:,:,3) = 128; 445s assert (rgb2ycbcr (uint8 (in)), uint8 (out)); 445s ***** shared cbcr 445s cbcr = 0.5019607843137255; 445s out(1:10, 1) = linspace (16/255, 235/255, 10); 445s out(:, [2 3]) = cbcr; 445s assert (rgb2ycbcr (gray (10)), out, 0.00001); 445s ***** assert (rgb2ycbcr ([1 1 1]), [0.92157 cbcr cbcr], 0.0001); 445s ***** assert (class (rgb2ycbcr (single (rand (5, 5, 3)))), "single") 445s 3 tests, 3 passed, 0 known failure, 0 skipped 445s [inst/impixel.m] 445s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/impixel.m 445s ***** shared img2d, img3d 445s img2d = uint8 (magic (10)); 445s img3d(:,:,1) = img2d; 445s img3d(:,:,2) = img2d + 1; 445s img3d(:,:,3) = img2d + 2; 445s img3d = uint8 (img3d); 445s 445s ***** assert (impixel (img2d, 2, 2), single ([80 80 80])); 445s ***** assert (impixel (img2d, -2, 2), single ([NA NA NA])); 445s 445s ***** assert (impixel (img2d, [1 10], [1 10]), single ([92 92 92; 59 59 59])); 445s ***** assert (impixel (img3d, [1 10], [1 10]), single ([92 93 94; 59 60 61])); 445s ***** assert (impixel (double (img2d), [1 10], [1 10]), [92 92 92; 59 59 59]); 445s 445s ***** assert (impixel ([1 10], [1 10], img2d, [1 10], [1 10]), single ([92 92 92; 59 59 59])); 445s ***** assert (impixel ([3 12], [-4 12], img2d, [1 10], [1 10]), single ([NA NA NA; 44 44 44])); 445s ***** assert (impixel ([3 5], [-4 3], img2d, [1 10], [1 10]), single ([NA NA NA; NA NA NA])); 445s 445s ## the following returns double because it's an indexed image 445s ***** assert (impixel ([3 12], [-4 12], img2d, gray (100), [1 10], [1 10]), [NA NA NA; 4/9 4/9 4/9]); 445s 9 tests, 9 passed, 0 known failure, 0 skipped 445s [inst/fftconv2.m] 445s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/fftconv2.m 445s ***** xtest 445s a = repmat (1:10, 5); 445s b = repmat (10:-1:3, 7); 445s assert (fftconv2 (a, b), conv2 (a, b), 1.8e4*eps) 445s assert (fftconv2 (b, a), conv2 (b, a), 1.8e4*eps) 445s assert (fftconv2 (a, b, "full"), conv2 (a, b, "full"), 1.8e4*eps) 445s assert (fftconv2 (b, a, "full"), conv2 (b, a, "full"), 1.8e4*eps) 445s assert (fftconv2 (a, b, "same"), conv2 (a, b, "same"), 1.8e4*eps) 445s assert (fftconv2 (b, a, "same"), conv2 (b, a, "same"), 1.8e4*eps) 445s assert (isempty (fftconv2 (a, b, "valid"))); 445s assert (fftconv2 (b, a, "valid"), conv2 (b, a, "valid"), 1e4*eps) 445s ***** test 445s x = 1:4; 445s y = 4:-1:1; 445s a = repmat(1:10, 5); 445s assert (fftconv2 (x, y, a), conv2 (x, y, a), 1e4*eps) 445s assert (fftconv2 (x, y, a, "full"), conv2 (x, y, a, "full"), 1e4*eps) 445s assert (fftconv2 (x, y, a, "same"), conv2 (x, y, a, "same"), 1e4*eps) 445s assert (fftconv2 (x, y, a, "valid"), conv2 (x, y, a, "valid"), 1e4*eps) 445s ***** demo 445s ## Draw a cross 445s z = zeros (101, 101); 445s z(50, :) = 1; 445s z(:, 50) = 1; 445s subplot (1, 3, 1) 445s imshow (z); 445s title ("Original thin cross") 445s 445s ## Draw a sinc blob 445s b = getheight (strel ("ball", 10, 1)); 445s subplot (1, 3, 2) 445s imshow (b); 445s title ("Sync blob") 445s 445s ## Convolve the cross with the blob 445s fc = real (fftconv2 (z, b, "same")); 445s subplot (1, 3, 3) 445s imshow (fc, [min(fc(:)) max(fc(:))]) 445s title ("Convolution in the frequency domain") 445s 2 tests, 2 passed, 0 known failure, 0 skipped 445s [inst/imquantize.m] 445s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imquantize.m 445s ***** error 445s imquantize (rand (5), [3 4 2 5]) 445s ***** error 445s imquantize (rand (5), [1 2 3], "foo") 445s ***** error 445s imquantize (rand (5), [1 2 3 4], 1:6) 445s ***** error 445s imquantize (rand (5), [1 2 3 4], 1:2) 445s ***** test 445s img = [-inf 0 10000000; -100000 -3 1/1000000; 5 5 10]; 445s [q, q_idx] = imquantize (img, 5); 445s assert (q, [1 1 2; 1 1 1; 1 1 2]) 445s assert (q_idx, q) 445s ***** test 445s img = [1:10; 11:20; 21:30; 31:40; 41:50; 51:60; 61:70]; 445s 445s expected_q = [ 445s 0 0 0 0 0 1 1 1 1 1 445s 1 1 1 1 1 5 5 5 5 5 445s 5 5 5 5 5 10 10 10 10 10 445s 20 20 20 20 20 20 20 20 20 20 445s 30 30 30 30 30 30 30 30 30 30 445s 30 30 30 30 30 30 30 30 30 30 445s 15 15 15 15 15 15 15 15 15 15]; 445s 445s expected_q_idx = [ 445s 1 1 1 1 1 2 2 2 2 2 445s 2 2 2 2 2 3 3 3 3 3 445s 3 3 3 3 3 4 4 4 4 4 445s 5 5 5 5 5 5 5 5 5 5 445s 6 6 6 6 6 6 6 6 6 6 445s 6 6 6 6 6 6 6 6 6 6 445s 7 7 7 7 7 7 7 7 7 7]; 445s 445s [q, q_idx] = imquantize (img, [5 15 25 30 40 60], [0 1 5 10 20 30 15]); 445s assert (q, expected_q) 445s assert (q_idx, expected_q_idx) 445s 445s [q, q_idx] = imquantize (single (img), [5 15 25 30 40 60], 445s [0 1 5 10 20 30 15]); 445s assert (q, expected_q) 445s assert (q_idx, expected_q_idx) 445s 445s [q, q_idx] = imquantize (uint8 (img), [5 15 25 30 40 60], 445s [0 1 5 10 20 30 15]); 445s assert (q, expected_q) 445s assert (q_idx, expected_q_idx) 445s 445s [q, q_idx] = imquantize (uint8 (img), uint8 ([5 15 25 30 40 60]), 445s [0 1 5 10 20 30 15]); 445s assert (q, expected_q) 445s assert (q_idx, expected_q_idx) 445s 445s [q, q_idx] = imquantize (uint8 (img), uint8 ([5 15 25 30 40 60]), 445s uint8 ([0 1 5 10 20 30 15])); 445s assert (q, uint8 (expected_q)) 445s assert (q_idx, expected_q_idx) 445s ***** test 445s img = randi ([0 255], 10, "uint8"); 445s [q, q_idx] = imquantize (img, [50 100 150 200]); 445s assert (class (q), "double") 445s assert (class (q_idx), "double") 445s 445s [q, q_idx] = imquantize (img, [50 100 150 200], uint16 ([5 7 8 9 2])); 445s assert (class (q), "uint16") 445s assert (class (q_idx), "double") 445s 445s [q, q_idx] = imquantize (img, [50 100 150 200], uint8 ([5 7 8 9 2])); 445s assert (class (q), "uint8") 445s assert (class (q_idx), "double") 445s ***** test 445s img = [1:10; 11:20; 21:30; 31:40; 41:50; 51:60; 61:70].'; 445s r_idx = reshape (randperm (numel (img)), size (img)); 445s 445s [quant, quant_idx] = imquantize (img, [5 15 25 30 40 60]); 445s [quant_r, quant_r_idx] = imquantize (img(r_idx), [5 15 25 30 40 60]); 445s 445s assert (imquantize (img(r_idx), [5 15 25 30 40 60]), quant(r_idx)) 445s assert (quant_r, quant_r_idx) 445s 8 tests, 8 passed, 0 known failure, 0 skipped 445s [inst/regionprops.m] 445s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/regionprops.m 445s ***** shared bw2d, gray2d, bw2d_over_bb, bw2d_insides 445s bw2d = logical ([ 445s 0 1 0 1 1 0 445s 0 1 1 0 1 1 445s 0 1 0 0 0 0 445s 0 0 0 1 1 1 445s 0 0 1 1 0 1]); 445s 445s gray2d = [ 445s 2 4 0 7 5 2 445s 3 0 4 9 3 7 445s 0 5 3 4 8 1 445s 9 2 0 5 8 6 445s 8 9 7 2 2 5]; 445s 445s ## For testing overlapping bounding boxes 445s bw2d_over_bb = logical ([ 445s 0 1 1 1 0 1 1 445s 1 1 0 0 0 0 1 445s 1 0 0 1 1 0 1 445s 1 0 0 1 1 0 0 445s 0 0 0 1 1 1 1]); 445s 445s ## For testing when there's regions inside regions 445s bw2d_insides = logical ([ 445s 0 0 0 0 0 0 0 0 445s 0 1 1 1 1 1 1 0 445s 0 1 0 0 0 0 1 0 445s 0 1 0 1 1 0 1 0 445s 0 1 0 1 1 0 1 0 445s 0 1 0 0 0 0 1 0 445s 0 1 1 1 1 1 1 0 445s 0 0 0 0 0 0 0 0]); 445s ***** function c = get_2d_centroid_for (idx) 445s subs = ind2sub ([5 6], idx); 445s m = false ([5 6]); 445s m(idx) = true; 445s y = sum ((1:5)' .* sum (m, 2) /sum (m(:))); 445s x = sum ((1:6) .* sum (m, 1) /sum (m(:))); 445s c = [x y]; 445s ***** endfunction 445s ***** assert (regionprops (bw2d, "Area"), struct ("Area", {8; 6})) 445s ***** assert (regionprops (double (bw2d), "Area"), struct ("Area", {14})) 445s ***** assert (regionprops (bwlabel (bw2d, 4), "Area"), struct ("Area", {4; 6; 4})) 445s ***** assert (regionprops (bw2d, "PixelIdxList"), 445s struct ("PixelIdxList", {[6; 7; 12; 8; 16; 21; 22; 27] 445s [15; 19; 20; 24; 29; 30]})) 445s ***** assert (regionprops (bwlabel (bw2d, 4), "PixelIdxList"), 445s struct ("PixelIdxList", {[6; 7; 8; 12] 445s [15; 19; 20; 24; 29; 30] 445s [16; 21; 22; 27]})) 445s ***** assert (regionprops (bw2d, "PixelList"), 445s struct ("PixelList", {[2 1; 2 2; 3 2; 2 3; 4 1; 5 1; 5 2; 6 2] 445s [3 5; 4 4; 4 5; 5 4; 6 4; 6 5]})) 445s ***** assert (regionprops (bwlabel (bw2d, 4), "PixelList"), 445s struct ("PixelList", {[2 1; 2 2; 2 3; 3 2] 445s [3 5; 4 4; 4 5; 5 4; 6 4; 6 5] 445s [4 1; 5 1; 5 2; 6 2]})) 445s ***** assert (regionprops (bw2d, gray2d, "PixelValues"), 445s struct ("PixelValues", {[4; 0; 4; 5; 7; 5; 3; 7] 445s [7; 5; 2; 8; 6; 5]})) 445s ***** assert (regionprops (bw2d, gray2d, "MaxIntensity"), 445s struct ("MaxIntensity", {7; 8})) 445s ***** assert (regionprops (bw2d, gray2d, "MinIntensity"), 445s struct ("MinIntensity", {0; 2})) 445s ***** assert (regionprops (bw2d, "BoundingBox"), 445s struct ("BoundingBox", {[1.5 0.5 5 3]; [2.5 3.5 4 2]})) 445s ***** assert (regionprops (bw2d, "Centroid"), 445s struct ("Centroid", {get_2d_centroid_for([6 7 8 12 16 21 22 27]) 445s get_2d_centroid_for([15 19 20 24 29 30])}), 445s 5 * eps) 445s ***** test 445s props = struct ("Area", {8; 6}, 445s "Centroid", {get_2d_centroid_for([6 7 8 12 16 21 22 27]) 445s get_2d_centroid_for([15 19 20 24 29 30])}, 445s "BoundingBox", {[1.5 0.5 5 3]; [2.5 3.5 4 2]}); 445s assert (regionprops (bw2d, "basic"), props, 5 * eps) 445s assert (regionprops (bwconncomp (bw2d, 8), "basic"), props, 5 * eps) 445s assert (regionprops (bwlabeln (bw2d, 8), "basic"), props, 5 * eps) 445s ***** test 445s props = struct ("Area", {4; 6; 4}, 445s "Centroid", {get_2d_centroid_for([6 7 8 12]) 445s get_2d_centroid_for([15 19 20 24 29 30]) 445s get_2d_centroid_for([16 21 22 27])}, 445s "BoundingBox", {[1.5 0.5 2 3]; [2.5 3.5 4 2]; [3.5 0.5 3 2]}); 445s assert (regionprops (bwconncomp (bw2d, 4), "basic"), props, 5 * eps) 445s assert (regionprops (bwlabeln (bw2d, 4), "basic"), props, 5 * eps) 445s ***** assert (regionprops (double (bw2d), "basic"), 445s struct ("Area", 14, 445s "Centroid", get_2d_centroid_for (find (bw2d)), 445s "BoundingBox", [1.5 0.5 5 5]), eps*1000) 445s ***** assert (regionprops ([0 0 1], "Centroid").Centroid, [3 1]) 445s ***** assert (regionprops ([0 0 1; 0 0 0], "Centroid").Centroid, [3 1]) 445s ***** assert (regionprops ([0 1 1], "Centroid").Centroid, [2.5 1]) 445s ***** assert (regionprops ([0 1 1; 0 0 0], "Centroid").Centroid, [2.5 1]) 445s ***** test 445s a = zeros (2, 3, 3); 445s a(:, :, 1) = [0 1 0; 0 0 0]; 445s a(:, :, 3) = a(:, :, 1); 445s c = regionprops (a, "centroid"); 445s assert (c.Centroid, [2 1 2]) 445s ***** test 445s d1=2; d2=4; d3=6; 445s a = ones (d1, d2, d3); 445s c = regionprops (a, "centroid"); 445s assert (c.Centroid, [mean(1:d2), mean(1:d1), mean(1:d3)], eps*1000) 445s ***** test 445s a = [0 0 2 2; 3 3 0 0; 0 1 0 1]; 445s c = regionprops (a, "centroid"); 445s assert (c(1).Centroid, [3 3]) 445s assert (c(2).Centroid, [3.5 1]) 445s assert (c(3).Centroid, [1.5 2]) 445s ***** test 445s ***** assert (regionprops (bw2d, gray2d, "WeightedCentroid"), 445s struct ("WeightedCentroid", 445s {sum([2 1; 2 2; 3 2; 2 3; 4 1; 5 1; 5 2; 6 2] 445s .* ([4; 0; 4; 5; 7; 5; 3; 7] / 35)) 445s sum([3 5; 4 4; 4 5; 5 4; 6 4; 6 5] 445s .* ([7; 5; 2; 8; 6; 5] / 33))}), 5 * eps) 445s ***** test 445s img = zeros (3, 9); 445s img(2, 1:9) = 0:0.1:0.8; 445s bw = im2bw (img, 0.5); 445s props = regionprops (bw, img, "WeightedCentroid"); 445s ix = 7:9; 445s x = sum (img(2,ix) .* (ix)) / sum (img(2,ix)); 445s assert (props(1).WeightedCentroid(1), x, 10*eps) 445s assert (props(1).WeightedCentroid(2), 2, 10*eps) 445s ***** assert (regionprops (bw2d, gray2d, "MeanIntensity"), 445s struct ("MeanIntensity", {mean([4 0 5 4 7 5 3 7]) 445s mean([7 5 2 8 6 5])})) 445s ***** assert (regionprops (bwlabel (bw2d, 4), gray2d, "MeanIntensity"), 445s struct ("MeanIntensity", {mean([4 0 5 4]) 445s mean([7 5 2 8 6 5]) 445s mean([7 5 3 7])})) 445s ***** assert (regionprops (bw2d, "SubarrayIdx"), 445s struct ("SubarrayIdx", {{[1 2 3], [2 3 4 5 6]} 445s {[4 5], [3 4 5 6]}})) 445s ***** assert (regionprops (bwlabel (bw2d, 4), "SubarrayIdx"), 445s struct ("SubarrayIdx", {{[1 2 3], [2 3]} 445s {[4 5], [3 4 5 6]} 445s {[1 2], [4 5 6]}})) 445s ***** test 445s out = struct ("Image", {logical([1 0 1 1 0; 1 1 0 1 1; 1 0 0 0 0]) 445s logical([0 1 1 1; 1 1 0 1])}); 445s assert (regionprops (bw2d, "Image"), out) 445s assert (regionprops (bw2d, gray2d, "Image"), out) 445s assert (regionprops (bwlabel (bw2d), "Image"), out) 445s ***** assert (regionprops (bwlabel (bw2d, 4), "Image"), 445s struct ("Image", {logical([1 0; 1 1; 1 0]) 445s logical([0 1 1 1; 1 1 0 1]) 445s logical([1 1 0; 0 1 1])})) 445s ***** test 445s out = struct ("Image", {logical([0 1 1 1; 1 1 0 0; 1 0 0 0; 1 0 0 0]) 445s logical([1 1 0 0; 1 1 0 0; 1 1 1 1]) 445s logical([1 1; 0 1; 0 1])}); 445s assert (regionprops (bw2d_over_bb, "Image"), out) 445s assert (regionprops (bwlabel (bw2d_over_bb), "Image"), out) 445s ***** test 445s out = struct ("Image", {logical([1 1 1 1 1 1 445s 1 0 0 0 0 1 445s 1 0 0 0 0 1 445s 1 0 0 0 0 1 445s 1 0 0 0 0 1 445s 1 1 1 1 1 1]) 445s logical([1 1; 1 1])}); 445s assert (regionprops (bw2d_insides, "Image"), out) 445s assert (regionprops (bwlabel (bw2d_insides), "Image"), out) 446s ***** test 446s l = uint8 ([ 446s 0 0 0 0 0 0 446s 0 1 1 1 1 0 446s 0 1 2 2 1 0 446s 0 1 2 2 1 0 446s 0 1 1 1 1 0 446s 0 0 0 0 0 0 446s ]); 446s assert (regionprops (l, "EulerNumber"), 446s struct ("EulerNumber", {0; 1})) 446s 446s l = uint8 ([ 446s 0 0 0 0 0 0 0 446s 0 1 1 1 1 1 0 446s 0 1 2 2 2 1 0 446s 0 1 2 3 2 1 0 446s 0 1 2 2 2 1 0 446s 0 1 1 1 1 1 0 446s 0 0 0 0 0 0 0 446s ]); 446s assert (regionprops (l, "EulerNumber"), 446s struct ("EulerNumber", {0; 0; 1})) 446s ***** test 446s l = uint8 ([ 446s 0 0 0 0 0 0 0 446s 0 1 1 1 1 1 0 446s 0 1 0 0 0 1 0 446s 0 1 0 1 0 1 0 446s 0 1 0 0 0 1 0 446s 0 1 1 1 1 1 0 446s 0 0 0 0 0 0 0 446s ]); 446s assert (regionprops (l, "EulerNumber"), 446s struct ("EulerNumber", 1)) 446s ***** test 446s l = uint8 ([ 446s 1 1 1 1 1 1 1 446s 1 1 2 1 2 2 1 446s 1 2 1 2 1 2 1 446s 1 1 2 1 2 1 1 446s 1 2 1 2 1 2 1 446s 1 2 2 1 2 1 1 446s 1 1 1 1 1 1 1 446s ]); 446s assert (regionprops (l, "EulerNumber"), 446s struct ("EulerNumber", {-9; -4})) 446s ***** test 446s l = uint8 ([ 446s 1 1 1 1 1 1 1 446s 1 1 4 1 5 5 1 446s 1 3 1 4 1 5 1 446s 1 1 3 1 4 1 1 446s 1 2 1 3 1 4 1 446s 1 2 2 1 3 1 1 446s 1 1 1 1 1 1 1 446s ]); 446s assert (regionprops (l, "EulerNumber"), 446s struct ("EulerNumber", {-9; 1; 1; 1; 1})) 446s ***** test 446s l = uint8 ([ 446s 1 1 1 1 1 1 1 446s 0 1 2 1 2 2 1 446s 1 2 1 2 1 2 1 446s 1 1 2 1 2 1 1 446s 1 2 1 2 1 2 1 446s 1 2 2 1 2 1 1 446s 1 1 1 1 1 1 1 446s ]); 446s filled = { 446s logical([ 446s 1 1 1 1 1 1 1 446s 0 1 1 1 1 1 1 446s 1 1 1 1 1 1 1 446s 1 1 1 1 1 1 1 446s 1 1 1 1 1 1 1 446s 1 1 1 1 1 1 1 446s 1 1 1 1 1 1 1 446s ]); 446s logical([ 446s 0 1 0 1 1 446s 1 1 1 1 1 446s 0 1 1 1 0 446s 1 1 1 1 1 446s 1 1 0 1 0 446s ]); 446s }; 446s assert (regionprops (l, {"FilledImage", "FilledArea"}), 446s struct ("FilledImage", filled, "FilledArea", {48; 19})) 446s ***** test 446s l = uint8 ([ 446s 0 0 0 0 0 0 0 446s 0 1 0 1 0 1 0 446s 0 1 0 1 0 1 0 446s 0 0 0 0 0 0 0 446s ]); 446s filled = logical ([ 446s 1 0 1 0 1 446s 1 0 1 0 1 446s ]); 446s assert (regionprops (l, {"FilledImage", "FilledArea"}), 446s struct ("FilledImage", filled, "FilledArea", 6)) 446s 446s l = uint8 ([ 446s 2 2 2 2 2 2 2 446s 2 1 2 1 2 1 2 446s 2 1 2 1 2 1 2 446s 2 2 2 2 2 2 2 446s ]); 446s filled = { 446s logical([ 446s 1 0 1 0 1 446s 1 0 1 0 1 446s ]); 446s true(4, 7) 446s }; 446s assert (regionprops (l, {"FilledImage", "FilledArea"}), 446s struct ("FilledImage", filled, "FilledArea", {6; 28})) 446s ***** test 446s l = uint8 ([ 446s 0 0 0 0 0 0 0 446s 0 1 1 1 1 1 0 446s 0 1 2 2 2 1 0 446s 0 1 2 3 2 1 0 446s 0 1 2 2 2 1 0 446s 0 1 1 1 1 1 0 446s 0 0 0 0 0 0 0 446s ]); 446s filled = {true(5, 5); true(3, 3); true}; 446s assert (regionprops (l, {"FilledImage", "FilledArea"}), 446s struct ("FilledImage", filled, "FilledArea", {25; 9; 1})) 446s ***** test 446s l = uint8 ([ 446s 1 1 1 2 0 0 446s 1 0 2 1 2 0 446s 1 2 0 1 0 2 446s 1 2 1 1 0 2 446s 0 1 2 2 2 2 446s ]); 446s filled = { 446s logical([ 446s 1 1 1 0 446s 1 1 1 1 446s 1 1 1 1 446s 1 1 1 1 446s 0 1 0 0 446s ]); 446s logical([ 446s 0 0 1 0 0 446s 0 1 1 1 0 446s 1 1 1 1 1 446s 1 1 1 1 1 446s 0 1 1 1 1 446s ]) 446s }; 446s assert (regionprops (l, {"FilledImage", "FilledArea"}), 446s struct ("FilledImage", filled, "FilledArea", {16; 18})) 446s ***** test 446s bw = false (5, 5, 5); 446s bw(2:4, 2:4, [1 5]) = true; 446s bw(2:4, [1 5], 2:4) = true; 446s bw([1 5], 2:4, 2:4) = true; 446s filled = bw; 446s filled(2:4, 2:4, 2:4) = true; 446s assert (regionprops (bw, {"FilledImage", "FilledArea"}), 446s struct ("FilledImage", filled, "FilledArea", 81)) 446s ***** test 446s l = uint8 ([ 446s 1 1 1 2 0 0 446s 1 0 2 1 2 0 446s 1 2 0 1 0 2 446s 1 2 1 1 0 2 446s 0 1 2 2 2 2 446s ]); 446s assert (regionprops (l, {"Extent"}), struct ("Extent", {0.55; 0.44})) 446s ***** test 446s bw = logical ([0 0 0; 0 1 0; 0 0 0]); 446s assert (regionprops (bw, {"MinorAxisLength", "MajorAxisLength", ... 446s "Eccentricity", "Orientation"}), 446s struct ("MajorAxisLength", 4 .* sqrt (1/12), 446s "MinorAxisLength", 4 .* sqrt (1/12), 446s "Eccentricity", 0, 446s "Orientation", 0)) 446s ***** test 446s a = eye (4); 446s t = regionprops (a, "majoraxislength"); 446s assert (t.MajorAxisLength, 6.4291, 1e-3); 446s t = regionprops (a, "minoraxislength"); 446s assert(t.MinorAxisLength, 1.1547 , 1e-3); 446s t = regionprops (a, "eccentricity"); 446s assert (t.Eccentricity, 0.98374 , 1e-3); 446s t = regionprops (a, "orientation"); 446s assert (t.Orientation, -45); 446s t = regionprops (a, "equivdiameter"); 446s assert (t.EquivDiameter, 2.2568, 1e-3); 446s ***** test 446s b = ones (5); 446s t = regionprops (b, "majoraxislength"); 446s assert (t.MajorAxisLength, 5.7735 , 1e-3); 446s t = regionprops (b, "minoraxislength"); 446s assert (t.MinorAxisLength, 5.7735 , 1e-3); 446s t = regionprops (b, "eccentricity"); 446s assert (t.Eccentricity, 0); 446s t = regionprops (b, "orientation"); 446s assert (t.Orientation, 0); 446s t = regionprops (b, "equivdiameter"); 446s assert (t.EquivDiameter, 5.6419, 1e-3); 446s ***** test 446s c = [0 0 1; 0 1 1; 1 1 0]; 446s t = regionprops (c, "minoraxislength"); 446s assert (t.MinorAxisLength, 1.8037 , 1e-3); 446s t = regionprops (c, "majoraxislength"); 446s assert (t.MajorAxisLength, 4.1633 , 1e-3); 446s t = regionprops (c, "eccentricity"); 446s assert (t.Eccentricity, 0.90128 , 1e-3); 446s t = regionprops (c, "orientation"); 446s assert (t.Orientation, 45); 446s t = regionprops (c, "equivdiameter"); 446s assert (t.EquivDiameter, 2.5231, 1e-3); 446s ***** test 446s bw = logical ([0 0 0 0; 0 1 1 0; 0 0 0 0]); 446s props = regionprops (bw, "Orientation"); 446s assert ([props.Orientation], 0, 0) 446s 446s props = regionprops (bw', "Orientation"); 446s assert ([props.Orientation], 90, 0) 446s 446s bw = logical ([0 0 0 0; 0 1 1 0; 0 1 1 0; 0 0 0 0]); 446s props = regionprops (bw, "Orientation"); 446s assert ([props.Orientation], 0, 0) 446s 446s bw = logical ([1 1 0 0 0 ; 0 0 1 1 0 ; 0 0 0 0 0; 0 0 0 0 0]); 446s props = regionprops (bw, "Orientation"); 446s assert ([props.Orientation], -22.5, eps (22.5)) 446s 446s bw = logical ([ 446s 1 1 0 0 1 446s 0 0 0 0 1 446s 0 0 0 0 0 446s 0 0 1 1 0 446s 1 0 1 1 0 446s 1 0 0 0 0 446s 0 1 0 0 0 446s 0 1 0 0 0]); 446s props = regionprops (bw, "Orientation"); 446s assert ([props.Orientation], [0 -67.5 0 90]) 446s ***** test 446s f = [0 0 0 0; 1 1 1 1; 0 1 1 1; 0 0 0 0]; 446s t = regionprops (f, "Extrema"); 446s shouldbe = [0.5 1.5; 4.5 1.5; 4.5 1.5; 4.5 3.5; 4.5 3.5; 1.5 3.5; 0.5 2.5; 0.5 1.5]; 446s assert (t.Extrema, shouldbe, eps); 446s ***** test 446s bw = false (5); 446s bw([8 12 13 14 18]) = true; 446s extrema = [2 1; 3 1; 4 2; 4 3; 3 4; 2 4; 1 3; 1 2] + 0.5; 446s assert (regionprops (bw, "extrema"), struct ("Extrema", extrema)) 446s ***** test 446s ext1 = [1 0; 5 0; 6 1; 6 2; 2 3; 1 3; 1 3; 1 0] + 0.5; 446s ext2 = [3 3; 6 3; 6 3; 6 5; 6 5; 2 5; 2 5; 2 4] + 0.5; 446s assert (regionprops (bw2d, "extrema"), struct ("Extrema", {ext1; ext2})) 446s ***** assert (regionprops (bw2d, "equivDiameter"), 446s struct ("EquivDiameter", {sqrt(4*8/pi); sqrt(4*6/pi)})) 446s ***** assert (regionprops (bw2d_over_bb, "equivDiameter"), 446s struct ("EquivDiameter", {sqrt(4*7/pi); sqrt(4*8/pi); sqrt(4*4/pi)})) 446s ***** assert (regionprops (bw2d_insides, "equivDiameter"), 446s struct ("EquivDiameter", {sqrt(4*20/pi); sqrt(4*4/pi)})) 446s ***** test 446s I = zeros (40); 446s disk = fspecial ("disk",10); 446s disk = disk ./ max (disk(:)); 446s I(10:30, 10:30) = disk; 446s bw = im2bw (I, 0.5); 446s props = regionprops (bw, "PerimeterOld"); 446s assert (props.PerimeterOld, 10*4 + (sqrt (2) * 4)*4, eps*100) 446s props = regionprops (bw, "Perimeter"); 446s assert (props.Perimeter, 59.876) 446s 446s props = regionprops (bwconncomp (bw), "PerimeterOld"); 446s assert (props.PerimeterOld, 10*4 + (sqrt (2) * 4)*4, eps*100) 446s props = regionprops (bwconncomp (bw), "Perimeter"); 446s assert (props.Perimeter, 59.876) 446s ***** assert (regionprops (bw2d, "PerimeterOld"), 446s struct ("PerimeterOld", {(sqrt (2)*6 + 4); (sqrt (2)*3 + 4)}), eps*10) 446s ***** assert (regionprops (bw2d, "Perimeter"), 446s struct ("Perimeter", {11.81; 7.683})) 446s ***** assert (regionprops (bw2d_insides, "PerimeterOld"), 446s struct ("PerimeterOld", {20; 4})) 446s ***** assert (regionprops (bw2d_insides, "Perimeter"), 446s struct ("Perimeter", {19.236; 3.556})) 446s ***** assert (regionprops (bwconncomp (bw2d_insides), "PerimeterOld"), 446s struct ("PerimeterOld", {20; 4})) 446s ***** assert (regionprops (bwconncomp (bw2d_insides), "Perimeter"), 446s struct ("Perimeter", {19.236; 3.556})) 446s ***** test 446s BW = false (5); 446s BW(2:4, 2:4) = true; # region with simple shape 446s hull_test = [4.5 4; 4.5 2; 4 1.5; 2 1.5; 1.5 2; 1.5 4; 2 4.5; 4 4.5]; 446s cimage_test = true(3); 446s carea_test = 9; 446s csolid_test = 1; 446s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 446s hull = props.ConvexHull; 446s # test only for existence of the correct corner points 446s # because Matlab returns more points (than necessary) 446s # (The correct shape of the ConvexHull results will only 446s # be tested indirectly via the tests of ConvexArea.) 446s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 446s assert (all (hull(1,:) == hull(end,:))) 446s cimage = props.ConvexImage; 446s assert (cimage, cimage_test); 446s carea = props.ConvexArea; 446s assert (carea, carea_test); 446s csolid = props.Solidity; 446s assert (csolid, csolid_test); 446s ***** test 446s BW = logical ([... # region with non-trivial shape 446s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 446s 0 0 0 1 1 1 1 0 0 0 0 0 0 0 446s 0 0 1 1 1 1 1 0 0 0 0 0 0 0 446s 0 1 1 1 1 1 1 0 0 0 0 0 0 0 446s 0 0 1 1 1 1 1 1 1 1 1 0 0 0 446s 0 0 0 1 1 1 1 1 1 1 1 1 0 0 446s 0 0 0 0 1 1 1 1 1 1 1 1 1 0 446s 0 0 0 0 0 1 1 1 0 1 1 1 1 0 446s 0 0 0 0 0 0 1 0 0 0 1 1 1 0 446s 0 0 0 0 0 0 0 0 0 0 0 0 0 0]); 446s hull_test = [4 1.5; 1.5 4; 7 9.5; 13 9.5; 13.5 9; 13.5 7; 11 4.5; 7 1.5]; 446s cimage_test = logical ([... 446s 0 0 1 1 1 1 0 0 0 0 0 0 446s 0 1 1 1 1 1 1 1 0 0 0 0 446s 1 1 1 1 1 1 1 1 1 0 0 0 446s 0 1 1 1 1 1 1 1 1 1 0 0 446s 0 0 1 1 1 1 1 1 1 1 1 0 446s 0 0 0 1 1 1 1 1 1 1 1 1 446s 0 0 0 0 1 1 1 1 1 1 1 1 446s 0 0 0 0 0 1 1 1 1 1 1 1]); 446s carea_test = 62; 446s csolid_test = 0.8548; 446s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 446s hull = props.ConvexHull; 446s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 446s assert (all (hull(1,:) == hull(end,:))) 446s cimage = props.ConvexImage; 446s assert (cimage, cimage_test); 446s carea = props.ConvexArea; 446s assert (carea, carea_test); 446s csolid = props.Solidity; 446s assert (csolid, csolid_test, 1e-4); 446s ***** test 446s BW = false (7); 446s BW(2:6, 2:6) = true; 446s BW(4,4) = false; # region with hole 446s hull_test = [6.5 6; 6.5 2; 6 1.5; 2 1.5; 1.5 2; 1.5 6; 2 6.5; 6 6.5]; 446s cimage_test = true(5); 446s carea_test = 25; 446s csolid_test = 0.96; 446s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 446s hull = props.ConvexHull; 446s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 446s assert (all (hull(1,:) == hull(end,:))) 446s cimage = props.ConvexImage; 446s assert (cimage, cimage_test); 446s carea = props.ConvexArea; 446s assert (carea, carea_test); 446s csolid = props.Solidity; 446s assert (csolid, csolid_test, 1e-4); 446s ***** test 446s BW = false (5); 446s BW(3, 3) = true; # region with single pixel 446s hull_test = [3.5 3; 3 2.5; 2.5 3]; 446s cimage_test = true; 446s carea_test = 1; 446s csolid_test = 1; 446s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 446s hull = props.ConvexHull; 446s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 446s assert (all (hull(1,:) == hull(end,:))) 446s cimage = props.ConvexImage; 446s assert (cimage, cimage_test); 446s carea = props.ConvexArea; 446s assert (carea, carea_test); 446s csolid = props.Solidity; 446s assert (csolid, csolid_test); 446s ***** test 446s BW = false (5); 446s BW(3, 2:4) = true; # regions with pixel line 446s BW2 = BW'; 446s hull_test = [2 2.5; 1.5 3; 2 3.5; 4 3.5; 4.5 3; 4 2.5]; 446s hull_test2 = fliplr (hull_test); 446s cimage_test = true(1,3); 446s cimage_test2 = cimage_test'; 446s carea_test = 3; 446s csolid_test = 1; 446s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 446s hull = props.ConvexHull; 446s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 446s assert (all (hull(1,:) == hull(end,:))) 446s cimage = props.ConvexImage; 446s assert (cimage, cimage_test); 446s carea = props.ConvexArea; 446s assert (carea, carea_test); 446s csolid = props.Solidity; 446s assert (csolid, csolid_test); 446s props2 = regionprops (BW2, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 446s hull2 = props2.ConvexHull; 446s assert (sum (ismember (hull_test2, hull2, "rows")), rows (hull_test2)) 446s assert (all (hull2(1,:) == hull2(end,:))) 446s cimage2 = props2.ConvexImage; 446s assert (cimage2, cimage_test2); 446s carea2 = props2.ConvexArea; 446s assert (carea2, carea_test); 446s csolid2 = props2.Solidity; 446s assert (csolid2, csolid_test); 446s ***** test 446s BW = logical ([ ... 446s 1 0 1 0 446s 1 0 1 0 446s 1 0 1 0 446s 1 0 1 0]); # two seperate regions 446s hull_test_1 = [1.5 1; 1 0.5; 0.5 1; 0.5 4; 1 4.5; 1.5 4]; 446s hull_test_2 = [3.5 1; 3 0.5; 2.5 1; 2.5 4; 3 4.5; 3.5 4]; 446s cimage_test_1 = true(4,1); 446s cimage_test_2 = true(4,1); 446s carea_test1 = 4; 446s carea_test2 = 4; 446s csolid_test1 = 1; 446s csolid_test2 = 1; 446s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 446s hull1 = {props.ConvexHull}{1}; 446s assert (sum (ismember (hull_test_1, hull1, "rows")), rows (hull_test_1)) 446s assert (all (hull1(1,:) == hull1(end,:))) 446s hull2 = {props.ConvexHull}{2}; 446s assert (sum (ismember (hull_test_2, hull2, "rows")), rows (hull_test_2)) 446s assert (all (hull2(1,:) == hull2(end,:))) 446s cimage1 = {props.ConvexImage}{1}; 446s assert (cimage1, cimage_test_1); 446s cimage2 = {props.ConvexImage}{2}; 446s assert (cimage2, cimage_test_2); 446s carea1 = {props.ConvexArea}{1}; 446s assert (carea1, carea_test1); 446s carea2 = {props.ConvexArea}{2}; 446s assert (carea2, carea_test2); 446s csolid1 = {props.Solidity}{1}; 446s assert (csolid1, csolid_test1); 446s csolid2 = {props.Solidity}{2}; 446s assert (csolid2, csolid_test2); 446s ***** test 446s L = zeros (5); 446s L(1:2:5, :) = 1; # labelled region with 3 disconnected parts 446s hull_test = [5.5 5; 5.5 1; 5 0.5; 1 0.5; 0.5 1; 0.5 5; 1 5.5; 5 5.5]; 446s cimage_test = true(5); 446s carea_test = 25; 446s csolid_test = 0.6; 446s props = regionprops (L, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 446s hull = props.ConvexHull; 446s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 446s assert (all (hull(1,:) == hull(end,:))) 446s cimage = props.ConvexImage; 446s assert (cimage, cimage_test); 446s carea = props.ConvexArea; 446s assert (carea, carea_test); 446s csolid = props.Solidity; 446s assert (csolid, csolid_test); 446s ***** xtest 446s ## Matlab compatible, currently fails because of bug #50188 446s BW = false(4,16); 446s BW(2,2) = true; 446s BW(3,2:end-1) = true; # L-shaped region (small angle) 446s hull_test = [2 1.5; 1.5 2; 1.5 3; 2 3.5; 15 3.5; 15.5 3; 15 2.5]; 446s cimage_test = true (2,14); 446s cimage_test(1, 8:end) = false; # this is the Matlab result 446s carea_test = 21; 446s csolid_test = 0.7143; 446s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 446s hull = props.ConvexHull; 446s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 446s assert (all (hull(1,:) == hull(end,:))) 446s cimage = props.ConvexImage; 446s assert (cimage, cimage_test); 446s carea = props.ConvexArea; 446s assert (carea, carea_test); 446s csolid = props.Solidity; 446s assert (csolid, csolid_test, 1e-4); 446s !!!!! known failure 446s ASSERT errors for: assert (cimage,cimage_test) 446s 446s Location | Observed | Expected | Reason 446s (1,8) 1 0 Abs err 1 exceeds tol 0 by 1 446s ***** assert (regionprops ([1 0 1; 1 0 1], "Area"), struct ("Area", 4)) 446s ***** assert (regionprops ([1 0 2; 1 1 2], "Area"), struct ("Area", {3; 2})) 446s ***** assert (regionprops ([1 0 3; 1 1 3], "Area"), struct ("Area", {3; 0; 2})) 446s ***** assert (size (regionprops ([1 0 0; 0 0 2], "Area")), [2, 1]) 446s ***** error regionprops ([1 -2 0 3]) 446s ***** error regionprops ([1 1.5 0 3]) 446s ***** test 446s im = rand (5); 446s 446s ## First do this so we get a list of all supported properties and don't 446s ## have to update the list each time. 446s bw = false (5); 446s bw(13) = true; 446s props = regionprops (bw, im, "all"); 446s all_props = fieldnames (props); 446s 446s bw = false (5); 446s props = regionprops (bw, im, "all"); 446s assert (size (props), [0 1]) 446s assert (sort (all_props), sort (fieldnames (props))) 446s ***** test 446s im = rand (5); 446s 446s ## First do this so we get a list of all supported properties and don't 446s ## have to update the list each time. 446s labeled = zeros (5); 446s labeled(13) = 1; 446s props = regionprops (labeled, im, "all"); 446s all_props = fieldnames (props); 446s 446s labeled = zeros (5); 446s props = regionprops (labeled, im, "all"); 446s assert (size (props), [0 1]) 446s assert (sort (all_props), sort (fieldnames (props))) 446s ***** test 446s im = rand (5); 446s 446s ## First do this so we get a list of all supported properties and don't 446s ## have to update the list each time. 446s bw = false (5); 446s bw(13) = true; 446s props = regionprops (bwconncomp (bw), im, "all"); 446s all_props = fieldnames (props); 446s 446s bw = false (5); 446s props = regionprops (bwconncomp (bw), im, "all"); 446s assert (size (props), [0 1]) 446s assert (sort (all_props), sort (fieldnames (props))) 446s ***** test 446s bw = logical ([ 446s 0 1 1 1 1 446s 0 1 1 0 0 446s 0 0 0 0 0 446s 0 0 0 1 0 446s 0 1 1 1 0]); 446s props = regionprops (bw, "MajorAxisLength", "MinorAxisLength", 446s "Orientation"); 446s assert ([props.MajorAxisLength] ,[4.51354115 3.65148372], 1.e-8) 446s assert ([props.MinorAxisLength], [2.01801654 1.82574186], 1.e-8) 446s assert ([props.Orientation], [12.93317840 18.43494882], 1.e-8) 446s ***** warning 446s regionprops (rand (5, 5, 5) > 0.5, {"perimeter", "extrema"}); 446s ***** warning 446s regionprops (rand (5, 5) > 0.5, {"minintensity", "weightedcentroid"}); 446s ***** error 446s regionprops ([0 -1 3 4; 0 -1 3 4]) 446s ***** error 446s regionprops ([0 1.5 3 4; 0 1.5 3 4]) 446s ***** error 446s regionprops (int8 ([0 -1 3 4; 0 -1 3 4])) 446s ***** test # bug #52926 446s ## Perimeter of objects that would be connected with connectivity 8 446s ## but have been labeled with connectivity 4. 446s BW = logical ([1 1 1 0 0 0 0 0 446s 1 1 1 0 1 1 0 0 446s 1 1 1 0 1 1 0 0 446s 1 1 1 0 0 0 1 0 446s 1 1 1 0 0 0 1 0 446s 1 1 1 0 0 0 1 0 446s 1 1 1 0 0 1 1 0 446s 1 1 1 0 0 0 0 0]); 446s 446s L = bwlabel (BW, 4); 446s props = regionprops(L, "PerimeterOld"); 446s assert ([props.PerimeterOld], [18 4 6+sqrt(2)]) 446s props = regionprops(L, "Perimeter"); 446s assert ([props.Perimeter], [17.276 3.556 7.013]) 446s L = bwlabel (BW, 8); 446s props = regionprops(L, "PerimeterOld"); 446s assert ([props.PerimeterOld], [18 10+3*sqrt(2)]) 446s props = regionprops(L, "Perimeter"); 446s assert ([props.Perimeter], [17.276 13.108]) 446s ***** test 446s I = zeros(5); 446s I(3,3) = 1; 446s props = regionprops(I, "Perimeter"); 446s assert ([props.Perimeter], [0]) 446s I = zeros(5); 446s I(3,3:4) = 1; 446s props = regionprops (I, "Perimeter"); 446s assert ([props.Perimeter], [1.96]) 446s I = zeros(5); 446s I(3:4,3) = 1; 446s props = regionprops (I, "Perimeter"); 446s assert ([props.Perimeter], [1.96]) 446s I = zeros(5); 446s I(3,3) = 1; 446s I(4,4) = 1; 446s props = regionprops (I, "Perimeter"); 446s assert ([props.Perimeter], [2.812]) 446s I = zeros(5); 446s I(3,4) = 1; 446s I(4,3) = 1; 446s props = regionprops (I, "Perimeter"); 446s assert ([props.Perimeter], [2.812]) 446s I = zeros(5); 446s I(3:4,3:4) = 1; 446s props = regionprops (I, "Perimeter"); 446s assert ([props.Perimeter], [3.556]) 446s I = zeros(5); 446s I(3:4,3:4) = 1; 446s I(4,5) = 1; 446s props=regionprops (I, "Perimeter"); 446s assert ([props.Perimeter], [4.962]) 446s I = zeros(5); 446s I(3:4,3:4) = 1; 446s I(5,5) = 1; 446s props = regionprops (I, "Perimeter"); 446s assert ([props.Perimeter], [6.277], 4*eps) 446s I = zeros(5); 446s I(2,3) = 1; 446s I(3,2:4) = 1; 446s I(4,3) = 1; 446s props = regionprops (I, "Perimeter"); 446s assert ([props.Perimeter], [5.624]) 446s I = zeros(5); 446s I(2,3) = 1; 446s I(3,2:4) = 1; 446s I(4,3) = 1; 446s I(5,3) = 1; 446s props = regionprops (I, "Perimeter"); 446s assert ([props.Perimeter], [7.402], 4*eps) 446s I = zeros(5); 446s I(2,3) = 1; 446s I(3,2:4) = 1; 446s I(4,3) = 1; 446s I(5,4) = 1; 446s props = regionprops (I, "Perimeter"); 446s assert ([props.Perimeter], [8.436]) 446s I = zeros(5); 446s I(2,1:4) = 1; 446s I(3,4) = 1; 446s props = regionprops (I, "Perimeter"); 446s assert ([props.Perimeter], [7.013]) 446s ***** test # bug #61827 446s L = uint8 (checkerboard); 446s props = regionprops (L, "Centroid"); 446s assert ([props.Centroid], [40.5, 40.5], 1e-10) 446s 87 tests, 86 passed, 1 known failure, 0 skipped 446s [inst/entropy.m] 446s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/entropy.m 446s ***** assert (entropy ([0 1]), 1) 446s ***** assert (entropy (uint8 ([0 1])), 1) 446s ***** assert (entropy ([0 0]), 0) 446s ***** assert (entropy ([0]), 0) 446s ***** assert (entropy ([1]), 0) 446s ***** assert (entropy ([0 .5; 2 0]), 1.5) 446s ***** assert (entropy (repmat ([0 .5; 2 0], 1, 1, 3)), 446s entropy ([0 .5; 2 0])) 446s ***** test 446s A = zeros (3,3); 446s B = ones (3,3); 446s C = [1 1 1; 2 2 2; 3 3 3]; 446s D = C'; 446s E = ones (3,3); 446s E(2,2)=2; 446s F = 3 .* ones (3,3); 446s F(2,2)=1; 446s G = [-1 2 7; -5 2 8; -7 pi 9]; 446s H = [5 2 8; 1 -3 1; 5 1 0]; 446s pG = [1 2] ./ 3; 446s G_out = -sum (pG.*log2 (pG)); 446s pH = [2 7] ./ 9; 446s H_out = -sum (pH.*log2 (pH)); 446s assert (entropy (A), 0, eps); 446s assert (entropy (B), 0, eps); 446s assert (entropy (C), 0, eps); 446s assert (entropy (D), 0, eps); 446s assert (entropy (E), 0, eps); 446s assert (entropy (F), 0, eps); 446s assert (entropy (G), G_out, eps); 446s assert (entropy (H), H_out, eps); 446s ***** test 446s A = uint8 (zeros (3,3)); 446s B = uint8 (ones (3,3)); 446s C = uint8 ([1 1 1; 2 2 2; 3 3 3]); 446s D = C'; 446s E = uint8 (ones (3,3)); 446s E(2,2)=2; 446s F = 3 .* uint8 (ones (3,3)); 446s F(2,2)=1; 446s G = uint8 ([0 2 7; 0 2 8; 0 3 9]); 446s H = uint8 ([5 2 8; 1 0 1; 5 1 0]); 446s pC = [1 1 1] ./ 3; 446s C_out = -sum (pC.*log2 (pC)); 446s D_out = C_out; 446s pE = [8 1] ./ 9; 446s E_out = -sum (pE.*log2 (pE)); 446s F_out = E_out; 446s pG = [3 2 1 1 1 1] ./ 9; 446s G_out = -sum (pG.*log2 (pG)); 446s pH = [2 3 1 2 1] ./ 9; 446s H_out = -sum (pH.*log2 (pH)); 446s assert (entropy (A), 0); 446s assert (entropy (B), 0); 446s assert (entropy (C), C_out, eps); 446s assert (entropy (D), D_out, eps); 446s assert (entropy (E), E_out, eps); 446s assert (entropy (F), F_out, eps); 446s assert (entropy (G), G_out, eps); 446s assert (entropy (H), H_out, eps); 446s ***** test 446s L1 = false (3,3); 446s L1(2,2)=true; 446s L2 = true (3,3); 446s L2(2,2)=false; 446s L3 = logical ([0 1 1; 0 1 1; 0 0 1]); 446s p12 = [1 8] ./ 9; 446s out12 = -sum (p12.*log2 (p12)); 446s p3 = [5 4] ./9; 446s out3 = -sum (p3.*log2 (p3)); 446s assert (entropy (L1), out12, eps); 446s assert (entropy (L2), out12, eps); 446s assert (entropy (L3), out3, eps); 446s 10 tests, 10 passed, 0 known failure, 0 skipped 446s [inst/bestblk.m] 446s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/bestblk.m 446s ***** demo 446s siz = bestblk ([200; 10], 50); 446s disp (siz) 446s ***** error bestblk ("string") 446s ***** error bestblk ([100 200], "string") 446s ***** error <2 elements> bestblk ([100], 5) 446s ***** assert (bestblk ([ 10 12], 2), [ 2 2]); 446s ***** assert (bestblk ([ 10 12], 3), [ 2 3]); 446s ***** assert (bestblk ([300 100], 150), [150 100]); 446s ***** assert (bestblk ([256 128], 17), [ 16 16]); 446s ***** assert (bestblk ([ 17 17], 3), [ 3 3]); 446s ***** assert (bestblk ([230 470]), bestblk ([230 470], 100)) 446s ***** assert (bestblk ([10 12 10], 3), [2 3 2]); 446s ***** assert (bestblk ([ 9 12 9], 3), [3 3 3]); 446s ***** assert (bestblk ([10 12 10 11], 5), [5 4 5 4]); 446s 12 tests, 12 passed, 0 known failure, 0 skipped 446s [inst/imnoise.m] 446s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imnoise.m 446s ***** assert(var(imnoise(ones(10)/2,'gaussian')(:)),0.01,0.005) # probabilistic 446s ***** assert(length(find(imnoise(ones(10)/2,'salt & pepper')~=0.5)),5,10) # probabilistic 446s ***** assert(var(imnoise(ones(10)/2,'speckle')(:)),0.01,0.005) # probabilistic 446s ***** test 446s A = imnoise (.5 * ones (100), 'poisson'); 446s assert (class (A), 'double') 446s ***** test 446s A = imnoise (.5 * ones (100, 'single'), 'poisson'); 446s assert (class (A), 'single') 446s ***** test 446s A = imnoise (128 * ones (100, 'uint8'), 'poisson'); 446s assert (class (A), 'uint8') 446s ***** test 446s A = imnoise (256 * ones (100, 'uint16'), 'poisson'); 446s assert (class (A), 'uint16') 446s ***** demo 446s A = imnoise (2^7 * ones (100, 'uint8'), 'poisson'); 446s subplot (2, 2, 1) 446s imshow (A) 446s title ('uint8 image with poisson noise') 446s A = imnoise (2^15 * ones (100, 'uint16'), 'poisson'); 446s subplot (2, 2, 2) 446s imshow (A) 446s title ('uint16 image with poisson noise') 446s A = imnoise (.5 * ones (100), 'poisson'); 446s subplot (2, 2, 3) 446s imshow (A) 446s title ('double image with poisson noise') 446s A = imnoise (.5 * ones (100, 'single'), 'poisson'); 446s subplot (2, 2, 4) 446s imshow (A) 446s title ('single image with poisson noise') 446s 7 tests, 7 passed, 0 known failure, 0 skipped 446s [inst/grayslice.m] 446s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/grayslice.m 446s ***** test 446s expected = uint8 ([0 4 5 5 9]); 446s im = [0 0.45 0.5 0.55 1]; 446s assert (grayslice (im), expected) 446s assert (grayslice (im, 10), expected) 446s assert (grayslice (im, uint8 (10)), expected) 446s assert (grayslice (im, [.1 .2 .3 .4 .5 .6 .7 .8 .9]), expected) 446s ***** test 446s im = [0 0.45 0.5 0.55 1]; 446s assert (grayslice (im, 2), uint8 ([0 0 1 1 1])) 446s assert (grayslice (im, 3), uint8 ([0 1 1 1 2])) 446s assert (grayslice (im, 4), uint8 ([0 1 2 2 3])) 446s assert (grayslice (im, [0 0.5 1]), uint8 ([1 1 2 2 3])) 446s assert (grayslice (im, [0.5 1]), uint8 ([0 0 1 1 2])) 446s assert (grayslice (im, [0.6 1]), uint8 ([0 0 0 0 2])) 446s ***** test 446s im = [0 .55 1]; 446s assert (grayslice (im, 9), uint8 ([0 4 8])) 446s assert (grayslice (im, 9.1), uint8 ([0 5 8])) 446s assert (grayslice (im, 10), uint8 ([0 5 9])) 446s ***** assert (grayslice ([0 .5 1], [0 1 .5]), uint8 ([1 2 3])) 446s ***** test 446s ## 0 > N > 1 values are treated as if they are V and N=2 446s im = [0 .5 .55 .7 1]; 446s assert (grayslice (im, .5), uint8 ([0 1 1 1 1])) 446s assert (grayslice (im, .51), uint8 ([0 0 1 1 1])) 446s assert (grayslice (im, .7), uint8 ([0 0 0 1 1])) 446s assert (grayslice (im, 1), uint8 ([0 0 0 0 0])) 446s assert (grayslice (im, 1.2), uint8 ([0 0 0 0 0])) 446s ***** assert (grayslice ([0 .5 .7 1], [0 .5 1 2]), uint8 ([1 2 2 4])) 446s ***** assert (grayslice ([0 .45 .5 .65 .7 1], [.4 .5 .5 .7 .7 1]), 446s uint8 ([0 1 3 3 5 6])) 446s ***** assert (grayslice ([-.5 .1 .8 1.2], [-1 -.4 .05 .6 .9 1.1 2]), 446s uint8 ([1 3 4 7])) 446s ***** assert (grayslice ([0 .5 1], [-1 .5 1 2]), uint8 ([1 2 4])) 446s ***** assert (grayslice ([-2 -1 .5 1], [-1 .5 1]), uint8 ([0 1 2 3])) 446s ***** test 446s sliced = [ 446s repmat(0, [26 1]) 446s repmat(1, [25 1]) 446s repmat(2, [26 1]) 446s repmat(3, [25 1]) 446s repmat(4, [26 1]) 446s repmat(5, [25 1]) 446s repmat(6, [26 1]) 446s repmat(7, [25 1]) 446s repmat(8, [26 1]) 446s repmat(9, [26 1]) 446s ]; 446s sliced = uint8 (sliced(:).'); 446s assert (grayslice (uint8 (0:255)), sliced) 446s ***** assert (grayslice (uint8 (0:255), 255), uint8 ([0:254 254])) 446s ***** assert (class (grayslice (uint8 (0:255), 256)), "double") 446s ***** xtest 446s assert (grayslice (uint8 (0:255), 256), [1:256]) 446s 446s ## While the above fails, this passes and should continue to do so 446s ## since it's the actual formula in the documentation. 446s assert (grayslice (uint8 (0:255), 256), 446s grayslice (uint8 (0:255), (1:255)./256)) 446s !!!!! known failure 446s ASSERT errors for: assert (grayslice (uint8 (0:255), 256),[1:256]) 446s 446s Location | Observed | Expected | Reason 446s (129) 130 129 Abs err 1 exceeds tol 0 by 1 446s (130) 131 130 Abs err 1 exceeds tol 0 by 1 446s (131) 132 131 Abs err 1 exceeds tol 0 by 1 446s (132) 133 132 Abs err 1 exceeds tol 0 by 1 446s (133) 134 133 Abs err 1 exceeds tol 0 by 1 446s (134) 135 134 Abs err 1 exceeds tol 0 by 1 446s (135) 136 135 Abs err 1 exceeds tol 0 by 1 446s (136) 137 136 Abs err 1 exceeds tol 0 by 1 446s (137) 138 137 Abs err 1 exceeds tol 0 by 1 446s (138) 139 138 Abs err 1 exceeds tol 0 by 1 446s (139) 140 139 Abs err 1 exceeds tol 0 by 1 446s (140) 141 140 Abs err 1 exceeds tol 0 by 1 446s (141) 142 141 Abs err 1 exceeds tol 0 by 1 446s (142) 143 142 Abs err 1 exceeds tol 0 by 1 446s (143) 144 143 Abs err 1 exceeds tol 0 by 1 446s (144) 145 144 Abs err 1 exceeds tol 0 by 1 446s (145) 146 145 Abs err 1 exceeds tol 0 by 1 446s (146) 147 146 Abs err 1 exceeds tol 0 by 1 446s (147) 148 147 Abs err 1 exceeds tol 0 by 1 446s (148) 149 148 Abs err 1 exceeds tol 0 by 1 446s (149) 150 149 Abs err 1 exceeds tol 0 by 1 446s (150) 151 150 Abs err 1 exceeds tol 0 by 1 446s (151) 152 151 Abs err 1 exceeds tol 0 by 1 446s (152) 153 152 Abs err 1 exceeds tol 0 by 1 446s (153) 154 153 Abs err 1 exceeds tol 0 by 1 446s (154) 155 154 Abs err 1 exceeds tol 0 by 1 446s (155) 156 155 Abs err 1 exceeds tol 0 by 1 446s (156) 157 156 Abs err 1 exceeds tol 0 by 1 446s (157) 158 157 Abs err 1 exceeds tol 0 by 1 446s (158) 159 158 Abs err 1 exceeds tol 0 by 1 446s (159) 160 159 Abs err 1 exceeds tol 0 by 1 446s (160) 161 160 Abs err 1 exceeds tol 0 by 1 446s (161) 162 161 Abs err 1 exceeds tol 0 by 1 446s (162) 163 162 Abs err 1 exceeds tol 0 by 1 446s (163) 164 163 Abs err 1 exceeds tol 0 by 1 446s (164) 165 164 Abs err 1 exceeds tol 0 by 1 446s (165) 166 165 Abs err 1 exceeds tol 0 by 1 446s (166) 167 166 Abs err 1 exceeds tol 0 by 1 446s (167) 168 167 Abs err 1 exceeds tol 0 by 1 446s (168) 169 168 Abs err 1 exceeds tol 0 by 1 446s (169) 170 169 Abs err 1 exceeds tol 0 by 1 446s (170) 171 170 Abs err 1 exceeds tol 0 by 1 446s (171) 172 171 Abs err 1 exceeds tol 0 by 1 446s (172) 173 172 Abs err 1 exceeds tol 0 by 1 446s (173) 174 173 Abs err 1 exceeds tol 0 by 1 446s (174) 175 174 Abs err 1 exceeds tol 0 by 1 446s (175) 176 175 Abs err 1 exceeds tol 0 by 1 446s (176) 177 176 Abs err 1 exceeds tol 0 by 1 446s (177) 178 177 Abs err 1 exceeds tol 0 by 1 446s (178) 179 178 Abs err 1 exceeds tol 0 by 1 446s (179) 180 179 Abs err 1 exceeds tol 0 by 1 446s (180) 181 180 Abs err 1 exceeds tol 0 by 1 446s (181) 182 181 Abs err 1 exceeds tol 0 by 1 446s (182) 183 182 Abs err 1 exceeds tol 0 by 1 446s (183) 184 183 Abs err 1 exceeds tol 0 by 1 446s (184) 185 184 Abs err 1 exceeds tol 0 by 1 446s (185) 186 185 Abs err 1 exceeds tol 0 by 1 446s (186) 187 186 Abs err 1 exceeds tol 0 by 1 446s (187) 188 187 Abs err 1 exceeds tol 0 by 1 446s (188) 189 188 Abs err 1 exceeds tol 0 by 1 446s (189) 190 189 Abs err 1 exceeds tol 0 by 1 446s (190) 191 190 Abs err 1 exceeds tol 0 by 1 446s (191) 192 191 Abs err 1 exceeds tol 0 by 1 446s (192) 193 192 Abs err 1 exceeds tol 0 by 1 446s (193) 194 193 Abs err 1 exceeds tol 0 by 1 446s (194) 195 194 Abs err 1 exceeds tol 0 by 1 446s (195) 196 195 Abs err 1 exceeds tol 0 by 1 446s (196) 197 196 Abs err 1 exceeds tol 0 by 1 446s (197) 198 197 Abs err 1 exceeds tol 0 by 1 446s (198) 199 198 Abs err 1 exceeds tol 0 by 1 446s (199) 200 199 Abs err 1 exceeds tol 0 by 1 446s (200) 201 200 Abs err 1 exceeds tol 0 by 1 446s (201) 202 201 Abs err 1 exceeds tol 0 by 1 446s (202) 203 202 Abs err 1 exceeds tol 0 by 1 446s (203) 204 203 Abs err 1 exceeds tol 0 by 1 446s (204) 205 204 Abs err 1 exceeds tol 0 by 1 446s (205) 206 205 Abs err 1 exceeds tol 0 by 1 446s (206) 207 206 Abs err 1 exceeds tol 0 by 1 446s (207) 208 207 Abs err 1 exceeds tol 0 by 1 446s (208) 209 208 Abs err 1 exceeds tol 0 by 1 446s (209) 210 209 Abs err 1 exceeds tol 0 by 1 446s (210) 211 210 Abs err 1 exceeds tol 0 by 1 446s (211) 212 211 Abs err 1 exceeds tol 0 by 1 446s (212) 213 212 Abs err 1 exceeds tol 0 by 1 446s (213) 214 213 Abs err 1 exceeds tol 0 by 1 446s (214) 215 214 Abs err 1 exceeds tol 0 by 1 446s (215) 216 215 Abs err 1 exceeds tol 0 by 1 446s (216) 217 216 Abs err 1 exceeds tol 0 by 1 446s (217) 218 217 Abs err 1 exceeds tol 0 by 1 446s (218) 219 218 Abs err 1 exceeds tol 0 by 1 446s (219) 220 219 Abs err 1 exceeds tol 0 by 1 446s (220) 221 220 Abs err 1 exceeds tol 0 by 1 446s (221) 222 221 Abs err 1 exceeds tol 0 by 1 446s (222) 223 222 Abs err 1 exceeds tol 0 by 1 446s (223) 224 223 Abs err 1 exceeds tol 0 by 1 446s (224) 225 224 Abs err 1 exceeds tol 0 by 1 446s (225) 226 225 Abs err 1 exceeds tol 0 by 1 446s (226) 227 226 Abs err 1 exceeds tol 0 by 1 446s (227) 228 227 Abs err 1 exceeds tol 0 by 1 446s (228) 229 228 Abs err 1 exceeds tol 0 by 1 446s (229) 230 229 Abs err 1 exceeds tol 0 by 1 446s (230) 231 230 Abs err 1 exceeds tol 0 by 1 446s (231) 232 231 Abs err 1 exceeds tol 0 by 1 446s (232) 233 232 Abs err 1 exceeds tol 0 by 1 446s (233) 234 233 Abs err 1 exceeds tol 0 by 1 446s (234) 235 234 Abs err 1 exceeds tol 0 by 1 446s (235) 236 235 Abs err 1 exceeds tol 0 by 1 446s (236) 237 236 Abs err 1 exceeds tol 0 by 1 446s (237) 238 237 Abs err 1 exceeds tol 0 by 1 446s (238) 239 238 Abs err 1 exceeds tol 0 by 1 446s (239) 240 239 Abs err 1 exceeds tol 0 by 1 446s (240) 241 240 Abs err 1 exceeds tol 0 by 1 446s (241) 242 241 Abs err 1 exceeds tol 0 by 1 446s (242) 243 242 Abs err 1 exceeds tol 0 by 1 446s (243) 244 243 Abs err 1 exceeds tol 0 by 1 446s (244) 245 244 Abs err 1 exceeds tol 0 by 1 446s (245) 246 245 Abs err 1 exceeds tol 0 by 1 446s (246) 247 246 Abs err 1 exceeds tol 0 by 1 446s (247) 248 247 Abs err 1 exceeds tol 0 by 1 446s (248) 249 248 Abs err 1 exceeds tol 0 by 1 446s (249) 250 249 Abs err 1 exceeds tol 0 by 1 446s (250) 251 250 Abs err 1 exceeds tol 0 by 1 446s (251) 252 251 Abs err 1 exceeds tol 0 by 1 446s (252) 253 252 Abs err 1 exceeds tol 0 by 1 446s (253) 254 253 Abs err 1 exceeds tol 0 by 1 446s (254) 255 254 Abs err 1 exceeds tol 0 by 1 446s (255) 256 255 Abs err 1 exceeds tol 0 by 1 446s ***** test 446s ## Use of threshold in the [0 1] range for images of integer type does 446s ## not really work despite the Matlab documentation. It's Matlab 446s ## documentation that is wrong, see bug #55059 446s 446s assert (grayslice (uint8([0 100 200 255]), [.1 .4 .5]), 446s uint8 ([0 3 3 3])) 446s assert (grayslice (uint8([0 100 200 255]), [100 199 200 210]), 446s uint8 ([0 1 3 4])) 446s 446s ## P (penny) is a 2d image of class double in [1 255] range 446s q = warning ("query", "Octave:data-file-in-path"); 446s warning ("off", "Octave:data-file-in-path"); 446s load ("penny.mat"); 446s warning (q.state, "Octave:data-file-in-path"); 446s assert (grayslice (P), repmat (uint8 (9), size (P))) 446s ***** function gs = test_grayslice_v (I, v) 446s ## This is effectively what grayslice does but slower with a for 446s ## loop internally. 446s gs = zeros (size (I)); 446s for idx = 1:numel (v) 446s gs(I >= v(idx)) = idx; 446s endfor 446s if (numel (v) >= 256) 446s gs = gs +1; 446s else 446s gs = uint8 (gs); 446s endif 446s ***** endfunction 446s ***** test 446s q = warning ("query", "Octave:data-file-in-path"); 446s warning ("off", "Octave:data-file-in-path"); 446s load ("penny.mat"); 446s warning (q.state, "Octave:data-file-in-path"); 446s 446s ## The loaded P in penny.mat is of size 128x128, class double, and 446s ## with values in the [1 255] range 446s penny_uint8 = uint8 (P); 446s penny_double = im2double (penny_uint8); # rescales to [0 1] range] 446s 446s ## default of N = 10 446s expected = test_grayslice_v (penny_uint8, 446s [26 51 77 102 128 153 179 204 230]); 446s assert (grayslice (penny_uint8, 10), expected) 446s assert (grayslice (penny_uint8), expected) 446s 446s expected = test_grayslice_v (penny_double, 446s [.1 .2 .3 .4 .5 .6 .7 .8 .9]); 446s assert (grayslice (penny_double, 10), expected) 446s assert (grayslice (penny_double), expected) 446s ***** test 446s ## For images with more than 2d 446s q = warning ("query", "Octave:data-file-in-path"); 446s warning ("off", "Octave:data-file-in-path"); 446s load ("penny.mat"); 446s warning (q.state, "Octave:data-file-in-path"); 446s penny_double = im2double (uint8 (P)); 446s P_3d = repmat (penny_double, [1 1 3]); 446s P_5d = repmat (penny_double, [1 1 3 2 3]); 446s 446s v = [.3 .5 .7]; 446s expected_2d = test_grayslice_v (penny_double, v); 446s assert (grayslice (P_3d, v), repmat (expected_2d, [1 1 3])) 446s assert (grayslice (P_5d, v), repmat (expected_2d, [1 1 3 2 3])) 446s ***** test 446s q = warning ("query", "Octave:data-file-in-path"); 446s warning ("off", "Octave:data-file-in-path"); 446s load ("penny.mat"); 446s warning (q.state, "Octave:data-file-in-path"); 446s penny_double = uint8 (P); 446s 446s ## Test that change from uint8 to double happens at 256 exactly 446s assert (class (grayslice (penny_double, 255)), "uint8") 446s assert (class (grayslice (penny_double, 256)), "double") 446s 446s ## If returns in class double, it's +1. 446s v = [10 150 200]; 446s v_long = [v 256:600]; 446s assert (double (grayslice (penny_double, v)) +1, 446s grayslice (penny_double, v_long)) 446s ***** test 446s ## If there's a vector for floating point and goes outside the 446s ## range, it uses the last index of the vector. 446s q = warning ("query", "Octave:data-file-in-path"); 446s warning ("off", "Octave:data-file-in-path"); 446s load ("penny.mat"); 446s warning (q.state, "Octave:data-file-in-path"); 446s penny_double = im2double (uint8 (P)); 446s v = [.3 .5 .7 2:10]; 446s idx_1 = find (penny_double == 1); 446s assert (grayslice (penny_double, v)(idx_1), uint8 ([12; 12])) 446s ***** error x = grayslice ([1 2; 3 4], 0) 446s ***** error x = grayslice ([1 2; 3 4], -1) 446s ***** error x = grayslice ([1 2; 3 4], "foo") 446s ***** test 446s ## test output values for all input classes 446s 446s klasse = "uint8"; 446s im = cast ([intmin(klasse): intmax(klasse)], klasse); 446s erg05 = grayslice (im, 0.5); 446s first1_erg05 = im(find (erg05)(1)); 446s assert (first1_erg05, cast (1, klasse)); 446s erg5 = grayslice (im, 5); 446s first1_erg5 = im(find (erg5)(1)); 446s assert (first1_erg5, cast (51, klasse)); 446s ergint5 = grayslice (im, uint8 (5)); 446s first1_ergint5 = im(find (ergint5)(1)); 446s assert (first1_ergint5, cast (51, klasse)); 446s 446s klasse = "uint16"; 446s im = cast ([intmin(klasse): intmax(klasse)], klasse); 446s erg05 = grayslice (im, 0.5); 446s first1_erg05 = im(find (erg05)(1)); 446s assert (first1_erg05, cast (1, klasse)); 446s erg5 = grayslice (im, 5); 446s first1_erg5 = im(find (erg5)(1)); 446s assert (first1_erg5, cast (13107, klasse)); 446s ergint5 = grayslice (im, uint8 (5)); 446s first1_ergint5 = im(find (ergint5)(1)); 446s assert (first1_ergint5, cast (13107, klasse)); 446s 446s klasse = "int16"; 446s im = cast ([intmin(klasse): intmax(klasse)], klasse); 446s erg05 = grayslice (im, 0.5); 446s first1_erg05 = im(find (erg05)(1)); 446s assert (first1_erg05, cast (-32767, klasse)); 446s erg5 = grayslice (im, 5); 446s first1_erg5 = im(find (erg5)(1)); 446s assert (first1_erg5, cast (-19661, klasse)); 446s ergint5 = grayslice (im, uint8 (5)); 446s first1_ergint5 = im(find (ergint5)(1)); 446s assert (first1_ergint5, cast (-19661, klasse)); 446s 446s klasse = "single"; 446s im = cast ([0:0.001:1], klasse); 446s erg05 = grayslice (im, 0.5); 446s first1_erg05 = im(find (erg05)(1)); 446s assert (first1_erg05, cast (0.5, klasse)); 446s erg5 = grayslice (im, 5); 446s first1_erg5 = im(find (erg5)(1)); 446s assert (first1_erg5, cast (0.2, klasse)); 446s ergint5 = grayslice (im, uint8 (5)); 446s first1_ergint5 = im(find (ergint5)(1)); 446s assert (first1_ergint5, cast (0.2, klasse)); 446s 446s klasse = "double"; 446s im = cast ([0:0.001:1], klasse); 446s erg05 = grayslice (im, 0.5); 446s first1_erg05 = im(find (erg05)(1)); 446s assert (first1_erg05, cast (0.5, klasse)); 446s erg5 = grayslice (im, 5); 446s first1_erg5 = im(find (erg5)(1)); 446s assert (first1_erg5, cast (0.2, klasse)); 446s ergint5 = grayslice (im, uint8 (5)); 446s first1_ergint5 = im(find (ergint5)(1)); 446s assert (first1_ergint5, cast (0.2, klasse)); 446s 23 tests, 22 passed, 1 known failure, 0 skipped 446s [inst/otsuthresh.m] 446s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/otsuthresh.m 446s ***** test 446s histo = zeros (1, 256); 446s histo([ 29 33 37 41 46 50 54 58 62 66 70 74 78 82 ... 446s 86 90 94 98 102 106 110 114 118 122 126 131 135 139 ... 446s 143 147 151 155 159 163 167 171 175 179 183 187 191 195 ... 446s 199 203 207 211 216 220 224 228 232 236 240 244 248 252]) = ... 446s [2 27 51 144 132 108 43 29 22 21 22 20 10 16 17 12 13 14 12 13 ... 446s 15 25 19 20 23 37 23 65 92 84 87 54 50 54 33 73 76 64 57 58 47 ... 446s 48 30 27 22 20 20 11 12 12 11 7 17 31 37 31]; 446s assert (otsuthresh (histo), 114.5/255) 446s ***** test 446s I = max (phantom (), 0); 446s H = imhist (I); 446s assert (otsuthresh (H), 178/255) 446s assert (otsuthresh (H'), 178/255) 446s H = imhist (I, 10); 446s assert (otsuthresh (H), 170/255) 446s ***** assert (otsuthresh (100), 0) 446s ***** assert (otsuthresh (zeros (256, 1)), 0) 446s ***** assert (otsuthresh (zeros (5, 1)), 0) 446s ***** assert (otsuthresh (uint8 ([10 20 30])), 0.5) 446s ***** assert (otsuthresh (int32 ([100 200 300])), 0.5) 446s ***** assert (otsuthresh (int32 ([100 200])), 0) 446s ***** assert (otsuthresh (single ([10 20 30 40])), 1/3); 446s ***** assert (otsuthresh (uint16 ([10 20 30 40 50 60 70 80 90 100])), 5/9) 446s ***** assert (otsuthresh (int16 ([10 20 30 40 50 60 70 80 90 100])), 5/9) 446s ***** assert (otsuthresh (int16 (1:255)), 156/254) 446s ***** assert (otsuthresh (int16 (1:1023)), 631/1022) 446s ***** assert (otsuthresh (int8 (1:1023)), 541/1022) 446s ***** test 446s warning ("off", "Octave:data-file-in-path", "local"); 446s S = load ("penny.mat"); 446s h = imhist (uint8 (S.P)); 446s assert (otsuthresh (h), 94/255); 446s ***** test 446s I = max (phantom (), 0); 446s h = imhist (I, 5); 446s assert (otsuthresh (h), 0.625); 446s ***** error id=Octave:invalid-fun-call otsuthresh () 446s ***** error id=Octave:invalid-fun-call otsuthresh (ones (10), 5) 446s ***** error otsuthresh ([]) 446s ***** error otsuthresh ([Inf 10]) 446s ***** error otsuthresh ([10 NA]) 446s ***** error otsuthresh ([10 NaN]) 446s ***** error otsuthresh (zeros (5)) 446s ***** error otsuthresh ([10 -10]) 446s ***** error otsuthresh ("foo") 446s ***** demo 446s I = max (phantom (), 0); 446s figure; imshow (I); 446s title ("Original image"); 446s h = imhist (I); 446s t = otsuthresh (h); 446s J = im2bw (I); 446s figure; imshow (J); 446s title_line = sprintf ("Black and white image after thresholding, t=%g", 446s t*255); 446s title (title_line); 446s ***** demo 446s warning ("off", "Octave:data-file-in-path", "local"); 446s S = load ("penny.mat"); 446s I = uint8 (S.P); 446s figure; imshow (I); 446s title ("Original penny image"); 446s h = imhist (I); 446s t = otsuthresh (h); 446s J = im2bw (I); 446s figure; imshow (J); 446s title_line = sprintf ("Black and white penny image after thresholding, t=%g", 446s t*255); 446s title (title_line); 446s I = 255 - I; 446s figure; imshow(I); 446s title ("Negative penny image"); 446s h = imhist (I); 446s t = otsuthresh (h); 446s J = im2bw (I); 446s figure; imshow (J); 446s title_line = sprintf ("Black and white negative penny image after thresholding, t=%g", 446s t*255); 446s title (title_line); 446s 25 tests, 25 passed, 0 known failure, 0 skipped 446s [inst/mean2.m] 446s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/mean2.m 446s ***** test 446s ## This throws a division by zero warning which Matlab does not, but 446s ## that's because Matlab does not throw such warnings in the first 446s ## place. Octave does, so we do not turn the warning off. 446s warning ("off", "Octave:divide-by-zero", "local"); 446s assert (mean2 ([]), NaN) 446s ***** assert (mean2 (logical ([1 1; 0 0])), 0.5) 446s ***** assert (mean2 (ones (3, 3, 3)), 1) 446s ***** assert (mean2 (i), i) 446s ***** assert (mean2 ([1 i]), [0.5+0.5i]) 446s ***** assert (mean2 (speye (3)), sparse (1/3)) 446s 6 tests, 6 passed, 0 known failure, 0 skipped 446s [inst/colfilt.m] 446s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/colfilt.m 446s ***** demo 446s ## Perform moving average filter with a 4x4 window 446s A = magic (12) 446s colfilt (A, [4 4], "sliding", @mean) 446s ***** test 446s A = reshape (1:36, [6 6]); 446s assert (colfilt (A, [2 2], [3 3], "sliding", @sum), 446s conv2 (A, ones (2), "same")); 446s 1 test, 1 passed, 0 known failure, 0 skipped 446s [inst/imfuse.m] 446s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imfuse.m 446s ***** error id=Octave:invalid-fun-call imfuse () 446s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "xxx") 446s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "interpolation") 446s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "ColorChannels", [0 0 0]) 446s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "ColorChannels", [1 1 1]) 446s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "ColorChannels", [2 2 2]) 446s ***** error id=Octave:expected-less-equal imfuse (1, 1, "ColorChannels", [42 0 0]) 446s ***** error id=Octave:expected-greater-equal imfuse (1, 1, "ColorChannels", [-1 2 0]) 446s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "ColorChannels", "deep-purple") 446s ***** assert (imfuse (1, 2, "blend"), uint8 (0)) 446s ***** assert (imfuse (1, 2, "blend", "Scaling", "independent"), uint8 (0)) 446s ***** assert (imfuse (1, 2, "blend", "Scaling", "joint"), uint8 (128)) 446s ***** assert (imfuse (1, 2, "blend", "Scaling", "none"), uint8 (255)) 446s ***** assert (imfuse (1, 2, "falsecolor"), uint8 (zeros (1, 1, 3))) 446s ***** test 446s a = [0 1 2]; 446s b = [0 10 20]; 446s expected = uint8 (repmat ([0 128 255], [1 1 3])); 446s assert (imfuse (a, b), expected); 446s ***** test 446s a = uint8 ([0 1 2]); 446s b = uint8 ([0 10 20]); 446s expected = uint8 (repmat ([0 128 255], [1 1 3])); 446s assert (imfuse (a, b), expected); 446s ***** test 446s a = uint8 ([0 1 2]); 446s b = uint8 ([0 10 20]); 446s expected = uint8 (repmat ([0 128 255], [1 1 3])); 446s assert (imfuse (a, b, "falsecolor"), expected); 446s ***** test 446s a = logical([0 1 1]); 446s b = logical([0 1 1]); 446s expected = uint8 (repmat ([0 255 255], [1 1 3])); 446s assert (imfuse (a, b), expected); 446s ***** test 446s a = logical([0 1 1]); 446s b = logical([0 1 1]); 446s expected = uint8 (repmat ([0 255 255], [1 1 3])); 446s assert (imfuse (a, b, "falsecolor"), expected); 446s ***** test 446s a = [0 1 2]; 446s b = [0 10 20]; 446s expected = uint8 (repmat ([0 255 255], [1 1 3])); 446s assert (imfuse (a, b, "Scaling", "none"), expected); 446s ***** test 446s a = uint8 ([0 1 2]); 446s b = uint8 ([0 10 20]); 446s expected = uint8 (zeros ([1, 3, 3])); 446s expected(:, :, 1) = [0 10 20]; 446s expected(:, :, 2) = [0 1 2]; 446s expected(:, :, 3) = [0 10 20]; 446s assert (imfuse (a, b, "Scaling", "none"), expected); 446s ***** test 446s a = [0 1 2]; 446s b = uint8 ([0 10 20]); 446s expected = uint8 (zeros ([1, 3, 3])); 446s expected(:, :, 1) = [0 10 20]; 446s expected(:, :, 2) = [0 255 255]; 446s expected(:, :, 3) = [0 10 20]; 446s assert (imfuse (a, b, "Scaling", "none"), expected); 446s ***** test 446s a = uint8 ([0 1 2]); 446s b = [0 10 20]; 446s expected = uint8 (zeros ([1, 3, 3])); 446s expected(:, :, 1) = [0 255 255]; 446s expected(:, :, 2) = [0 1 2]; 446s expected(:, :, 3) = [0 255 255]; 446s assert (imfuse (a, b, "Scaling", "none"), expected); 446s ***** test 446s a = [0 .1 2]; 446s b = [0 .01 .02]; 446s expected = uint8 (zeros ([1, 3, 3])); 446s expected(:, :, 1) = [0 3 5]; 446s expected(:, :, 2) = [0 26 255]; 446s expected(:, :, 3) = [0 3 5]; 446s assert (imfuse (a, b, "Scaling", "none"), expected); 446s ***** test 446s a = [0 1 2]; 446s b = [0 10 20]; 446s expected = uint8 (zeros ([1, 3, 3])); 446s expected(:, :, 1) = [0 128 255]; 446s expected(:, :, 2) = [0 13 26]; 446s expected(:, :, 3) = [0 128 255]; 446s assert (imfuse (a, b, "Scaling", "joint"), expected); 446s ***** test 446s a = uint8 ([0 1 2]); 446s b = [0 10 20]; 446s expected = uint8 (zeros ([1, 3, 3])); 446s expected(:, :, 1) = [0 128 255]; 446s expected(:, :, 2) = [0 13 26]; 446s expected(:, :, 3) = [0 128 255]; 446s assert (imfuse (a, b, "Scaling", "joint"), expected); 446s ***** test 446s a = [0 150 300]; 446s b = uint8 ([0 10 20]); 446s expected = uint8 (zeros ([1, 3, 3])); 446s expected(:, :, 1) = [0 9 17]; 446s expected(:, :, 2) = [0 128 255]; 446s expected(:, :, 3) = [0 9 17]; 446s assert (imfuse (a, b, "Scaling", "joint"), expected); 446s ***** test 446s a = uint8 ([0 1 2]); 446s b = uint8 ([0 10 20]); 446s expected = uint8 (zeros ([1, 3, 3])); 446s expected(:, :, 1) = [0 128 255]; 446s expected(:, :, 2) = [0 13 26]; 446s expected(:, :, 3) = [0 128 255]; 446s assert (imfuse (a, b, "Scaling", "joint"), expected); 446s ***** test 446s a = [0 1 2]; 446s b = [0 10 20]; 446s expected = uint8 (zeros ([1, 3, 3])); 446s expected(:, :, 1) = [0 0 0]; 446s expected(:, :, 2) = [0 128 255]; 446s expected(:, :, 3) = [0 13 26]; 446s assert (imfuse (a, b, "Scaling", "joint", "ColorChannels", [0 2 1]), expected); 446s ***** test 446s a = [0 1 2]; 446s b = [0 10 15]; 446s c = imfuse (a, b, "ColorChannels", "red-cyan"); 446s expected = uint8 (zeros (1, 3, 3)); 446s expected(:, :, 1) = [0 128 255]; 446s expected(:, :, 2) = [0 170 255]; 446s expected(:, :, 3) = [0 170 255]; 446s assert (c, expected); 446s ***** test 446s a = [0 1 2]; 446s b = [0 10 15]; 446s c = imfuse (a, b, "ColorChannels", "green-magenta"); 446s expected = uint8 (zeros (1, 3, 3)); 446s expected(:, :, 1) = [0 170 255]; 446s expected(:, :, 2) = [0 128 255]; 446s expected(:, :, 3) = [0 170 255]; 446s assert (c, expected); 446s ***** test 446s a = [0 5 2]; 446s b = [0 10 20]; 446s assert (imfuse (a, b, "diff"), uint8 ([0 213 255])); 447s ***** test 447s a = [0 5 2]; 447s b = [0 10 20]; 447s assert (imfuse (a, b, "diff", "Scaling", "joint"), uint8 ([0 71 255])); 447s ***** test 447s a = [0 5 2]; 447s b = [0 10 20]; 447s assert (imfuse (a, b, "blend"), uint8 ([0 192 179])); 447s ***** test 447s a = magic (5); 447s b = a'; 447s c = imfuse (a, b, "falsecolor"); 447s expected = zeros (5, 5, 3); 447s expected(:, :, 1) = [ 447s 170 234 32 96 106 447s 244 43 53 117 181 447s 0 64 128 191 255 447s 74 138 202 213 11 447s 149 159 223 21 85]; 447s expected(:, :, 2) = [ 447s 170 244 0 74 149 447s 234 43 64 138 159 447s 32 53 128 202 223 447s 96 117 191 213 21 447s 106 181 255 11 85]; 447s expected(:, :, 3) = [ 447s 170 234 32 96 106 447s 244 43 53 117 181 447s 0 64 128 191 255 447s 74 138 202 213 11 447s 149 159 223 21 85]; 447s assert (c, uint8 (expected)); 447s ***** test 447s a = magic (5); 447s b = a'; 447s assert (imfuse (uint8 (a), uint8 (b), "blend", "Scaling", "none"), 447s uint8 ([17 24 3 9 13 447s 24 5 7 13 17 447s 3 7 13 20 24 447s 9 13 20 21 3 447s 13 17 24 3 9])); 447s ***** test 447s a = magic (5); 447s b = 2 * a'; 447s assert (imfuse (a, b, "blend", "Scaling", "independent"), 447s uint8 ([170 239 16 85 128 447s 239 43 59 128 170 447s 16 59 128 197 239 447s 85 128 197 213 16 447s 128 170 239 16 85])); 447s ***** test 447s a = magic (5); 447s b = 2 * a'; 447s assert (imfuse (a, b, "blend", "Scaling", "joint"), 447s uint8 ([128 177 18 68 91 447s 180 34 44 94 130 447s 11 47 96 146 182 447s 63 99 149 159 13 447s 102 125 175 16 65])); 447s ***** test 447s a = [0 1.2 5]; 447s b = [5 6.13 12]; 447s assert (imfuse (a, b, "blend"), uint8 ([0 51 255])); 447s ***** test 447s a = [0 5 2]; 447s b = [0 10 20]; 447s assert (imfuse (a, b, "blend", "Scaling", "joint"), uint8 ([0 96 141])); 447s ***** test 447s a = [0 5 2]; 447s b = [0 10 20]; 447s assert (imfuse (a, b, "montage"), uint8 ([0 255 102 0 128 255])); 447s ***** test 447s a = zeros (1, 100); 447s b = 2 * ones (1, 100); 447s assert (imfuse (a, b, "montage"), uint8 ([zeros(1, 200)])); 447s assert (imfuse (a, b, "montage", "Scaling", "none"), 447s uint8 ([zeros(1, 100), 255 * ones(1, 100)])); 447s ***** test 447s a = zeros (1, 100, 3); 447s b = 2 * ones (1, 100); 447s assert (imfuse (a, b, "montage"), uint8 ([zeros(1, 200, 3)])); 447s ***** test 447s a = 0.1 * ones (50, 50); 447s b = 0.2 * ones (50, 50); 447s c = imfuse (a, b, "checkerboard", "Scaling", "none"); 447s d = imresize (repmat([26, 51; 51, 26], [8, 8]), [50, 50], "nearest"); 447s assert (all (c(:) == d(:))); 447s ***** test 447s a = zeros (2, 2); 447s b = zeros (2, 2); 447s ra = imref2d (size (a), [0, 2], [0, 2]); 447s rb = imref2d (size (b), [0, 2], [2, 4]); 447s [c, rc] = imfuse (a, ra, b, rb, "falsecolor"); 447s assert (rc.ImageSize, [4, 2]); 447s assert (rc.XWorldLimits, [0, 2]); 447s assert (rc.YWorldLimits, [0, 4]); 447s assert (rc.PixelExtentInWorldX, 1); 447s assert (rc.PixelExtentInWorldY, 1); 447s assert (rc.ImageExtentInWorldX, 2); 447s assert (rc.ImageExtentInWorldY, 4); 447s assert (rc.XIntrinsicLimits, [0.5, 2.5]); 447s assert (rc.YIntrinsicLimits, [0.5, 4.5]); 447s assert (c, uint8 (zeros (4, 2, 3))); 447s ***** xtest 447s a = zeros (5, 3); 447s b = ones (6, 5); 447s ra = imref2d (size (a), [15, 30], [2, 4]); 447s rb = imref2d (size (b), [10, 50], [5.5, 6.7]); 447s [c, rc] = imfuse (a, ra, b, rb, "falsecolor"); 447s assert (rc.ImageSize, [24, 8]); 447s assert (rc.XWorldLimits, [10, 50]); 447s assert (rc.YWorldLimits, [2, 6.7]); 447s assert (rc.PixelExtentInWorldX, 5); 447s assert (rc.PixelExtentInWorldY, 0.19583333, 10e-9); 447s assert (rc.ImageExtentInWorldX, 40); 447s assert (rc.ImageExtentInWorldY, 4.7); 447s assert (rc.XIntrinsicLimits, [0.5, 8.5]); 447s assert (rc.YIntrinsicLimits, [0.5, 24.5]); 447s expected = uint8 (zeros (24, 8, 3)); 447s expected(19:23, 2:7, 1) = 255 * ones (5, 6); 447s expected(19:23, 2:7, 3) = 255 * ones (5, 6); 447s assert (c, expected); 447s !!!!! known failure 447s ASSERT errors for: assert (c,expected) 447s 447s Location | Observed | Expected | Reason 447s (19,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (19,3,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,3,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,3,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,3,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,3,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (19,4,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,4,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,4,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,4,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,4,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (19,5,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,5,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,5,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,5,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,5,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (19,6,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,6,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,6,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,6,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,6,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (19,7,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,7,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,7,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,7,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,7,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (19,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (19,3,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,3,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,3,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,3,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,3,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (19,4,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,4,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,4,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,4,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,4,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (19,5,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,5,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,5,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,5,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,5,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (19,6,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,6,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,6,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,6,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,6,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (19,7,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (20,7,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (21,7,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (22,7,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (23,7,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s ***** test 447s a = uint8 (reshape (1:1:9, [1 3 3])); 447s b = uint8 (reshape (10:2:26, [1 3 3])); 447s c = imfuse (a, b); 447s expected = uint8 (zeros (1, 3, 3)); 447s expected(:, :, 1) = [0 128 255]; 447s expected(:, :, 2) = [0 128 255]; 447s expected(:, :, 3) = [0 128 255]; 447s assert (c, expected); 447s ***** test 447s a = uint8 (reshape (1:1:9, [1 3 3])); 447s b = uint8 (reshape (10:2:26, [1 3 3])); 447s c = imfuse (a, b, "Scaling", "independent"); 447s expected = uint8 (zeros (1, 3, 3)); 447s expected(:, :, 1) = [0 128 255]; 447s expected(:, :, 2) = [0 128 255]; 447s expected(:, :, 3) = [0 128 255]; 447s assert (c, expected); 447s ***** test 447s a = uint8 (reshape (1:1:9, [1 3 3])); 447s b = uint8 (reshape (10:2:26, [1 3 3])); 447s c = imfuse (a, b, "Scaling", "joint"); 447s expected = uint8 (zeros (1, 3, 3)); 447s expected(:, :, 1) = [191 223 255]; 447s expected(:, :, 2) = [0 16 32]; 447s expected(:, :, 3) = [191 223 255]; 447s assert (c, expected); 447s ***** test 447s a = uint8 (reshape (1:1:9, [1 3 3])); 447s b = uint8 (reshape (10:2:26, [1 3 3])); 447s c = imfuse (a, b, "Scaling", "none"); 447s expected = uint8 (zeros (1, 3, 3)); 447s expected(:, :, 1) = [15 17 19]; 447s expected(:, :, 2) = [3 4 5]; 447s expected(:, :, 3) = [15 17 19]; 447s assert (c, expected); 447s ***** xtest 447s a = zeros (5, 3); 447s b = ones (5, 3); 447s ra = imref2d (size (a), [10, 20], [30, 40]); 447s rb = imref2d (size (b), [10, 20], [30, 40]); 447s [c, rc] = imfuse (a, ra, b, rb, "falsecolor"); 447s expected = uint8 (zeros (5, 3, 3)); 447s expected(:, 1:2, 1) = 255 * ones (5, 2); 447s expected(:, 1:2, 3) = 255 * ones (5, 2); 447s assert (rc.ImageSize, [5, 3]); 447s assert (rc.XWorldLimits, [10, 20]); 447s assert (rc.YWorldLimits, [30, 40]); 447s assert (rc.PixelExtentInWorldX, 3.33333333, 10e-9); 447s assert (rc.PixelExtentInWorldY, 2); 447s assert (rc.ImageExtentInWorldX, 10); 447s assert (rc.ImageExtentInWorldY, 10); 447s assert (rc.XIntrinsicLimits, [0.5, 3.5]); 447s assert (rc.YIntrinsicLimits, [0.5, 5.5]); 447s assert (c, expected); 447s !!!!! known failure 447s ASSERT errors for: assert (c,expected) 447s 447s Location | Observed | Expected | Reason 447s (1,1,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (2,1,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (3,1,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (4,1,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (5,1,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (1,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (2,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (3,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (4,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (5,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 447s (1,1,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (2,1,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (3,1,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (4,1,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (5,1,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (1,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (2,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (3,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (4,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s (5,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 447s ***** test 447s a = zeros (5, 5); 447s b = ones (5, 5); 447s ra = imref2d (size (a), [10, 20], [30, 40]); 447s rb = imref2d (size (b), [10, 20], [30, 40]); 447s [c, rc] = imfuse (a, ra, b, rb, "falsecolor"); 447s expected = uint8 (zeros (5, 5, 3)); 447s assert (rc.ImageSize, [5, 5]); 447s assert (rc.XWorldLimits, [10, 20]); 447s assert (rc.YWorldLimits, [30, 40]); 447s assert (rc.PixelExtentInWorldX, 2); 447s assert (rc.PixelExtentInWorldY, 2); 447s assert (rc.ImageExtentInWorldX, 10); 447s assert (rc.ImageExtentInWorldY, 10); 447s assert (rc.XIntrinsicLimits, [0.5, 5.5]); 447s assert (rc.YIntrinsicLimits, [0.5, 5.5]); 447s assert (c, expected); 447s ***** test 447s a = magic (5); 447s b = ones (5, 5); 447s ra = imref2d (size (a), [10, 20], [30, 40]); 447s rb = imref2d (size (b), [10, 20], [30, 40]); 447s [c, rc] = imfuse (a, ra, b, rb, "falsecolor", "Scaling", "independent"); 447s expected = uint8 (zeros (5, 5, 3)); 447s expected(:, :, 2) = [ 447s 170 244 0 74 149 447s 234 43 64 138 159 447s 32 53 128 202 223 447s 96 117 191 213 21 447s 106 181 255 11 85]; 447s assert (rc.ImageSize, [5, 5]); 447s assert (rc.XWorldLimits, [10, 20]); 447s assert (rc.YWorldLimits, [30, 40]); 447s assert (rc.PixelExtentInWorldX, 2); 447s assert (rc.PixelExtentInWorldY, 2); 447s assert (rc.ImageExtentInWorldX, 10); 447s assert (rc.ImageExtentInWorldY, 10); 447s assert (rc.XIntrinsicLimits, [0.5, 5.5]); 447s assert (rc.YIntrinsicLimits, [0.5, 5.5]); 447s assert (c, expected); 447s 53 tests, 51 passed, 2 known failures, 0 skipped 447s [inst/imadjust.m] 447s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imadjust.m 447s ***** error imadjust ("bad argument"); 447s ***** error imadjust ([1:100], "bad argument", [], 1); 447s ***** error <2 row column per plane> imadjust ([1:100], [0 1 1], [], 1); 447s ***** error <2 row column per plane> imadjust ([1:100], [], [0 1 1], 1); 447s ***** error imadjust ([1:100], [], [], [0; 1]); 447s ***** error imadjust (rand (5, 5, 3), [], [], [0 1]); 447s ***** error imadjust ([1:100], [0; 1], [], -1); 447s ***** error imadjust ([1:100], [0; 5], []); 447s ***** error imadjust ([1:100], [-2; 1], []); 447s ***** error imadjust ([1:100], [], [0; 4]); 447s ***** error imadjust ([1:100], [], [-2; 1]); 447s ***** error imadjust (rand (5) > .5); 447s ***** test 447s im = [0.01:0.01:1]; 447s assert (imadjust (im), [0 linspace(0, 1, 98) 1], eps) 447s assert (imadjust (im), imadjust (im, stretchlim (im, 0.01), [0; 1], 1)) 447s assert (imadjust (im, []), imadjust (im, [0; 1], [0; 1], 1)) 447s assert (imadjust (im, [], []), imadjust (im, [0; 1], [0; 1], 1)) 447s assert (imadjust (im, [], [.25 .75]), imadjust (im, [0; 1], [.25; .75], 1)) 447s assert (imadjust (im, [.25; .75], []), imadjust (im, [.25; .75], [0; 1], 1)) 447s ***** assert (imadjust (linspace (0, 1), [], [.25 .75]), linspace (.25, .75, 100), eps) 447s ***** assert (imadjust (linspace (0, 1, 100),[1/99; 98/99]), 447s [0 linspace(0, 1, 98) 1], eps) 447s ***** shared cm 447s cm = [[0:8]' [1:9]' [2:10]'] / 10; 447s ***** assert (imadjust (cm, [0; 1], [0.5; 1]), (cm /2) + .5) 447s ***** assert (imadjust (cm, [0 1], [0.5 1]), (cm /2) + .5) 447s ***** assert (imadjust (cm, [0; 1], [.1 .2 .3; .7 .8 .9]), 447s (cm*.6) + [.1 .2 .3], eps) 447s ***** assert (imadjust (cm, [.2 .4 .6; .7 .8 .9], [0; 1]), 447s [[0 0 linspace(0, 1, 6) 1]' ... 447s [0 0 0 linspace(0, 1, 5) 1]' ... 447s [0 0 0 0 linspace(0, 1, 4) 1]'], eps) 447s ***** assert (imadjust (cm, [.2 .4 .6; .7 .8 .9], [0 .1 .2; .8 .9 1]), 447s [[0 0 linspace(0, .8, 6) .8]' ... 447s [.1 .1 .1 linspace(.1, .9, 5) .9]' ... 447s [.2 .2 .2 .2 linspace(.2, 1, 4) 1]'], eps) 447s ***** assert (imadjust (cm, [.2 .4 .6; .7 .8 .9], [0 .1 .2; .8 .9 1], [0.5 1 2]), 447s [[0 0 0 (((([.3 .4 .5 .6]-.2)/.5).^.5)*.8) .8 .8]' ... 447s [.1 .1 .1 linspace(.1, .9, 5) .9]' ... 447s [.2 .2 .2 .2 .2 ((((([.7 .8]-.6)/.3).^2).*.8)+.2) 1 1]'], eps*10) 447s ***** test 447s im = [-0.4:.1:0.8 447s 0.0:.1:1.2 447s 0.1:.1:1.3 447s -0.4:.2:2.0]; 447s 447s ## just clipping 447s assert (imadjust (im, [0; 1], [0; 1]), 447s [0 0 0 0 (0:.1:.8) 447s (0:.1:1) 1 1 447s (.1:.1:1) 1 1 1 447s 0 0 (0:.2:1) 1 1 1 1 1], eps) 447s 447s ## clipping and invert 447s assert (imadjust (im, [0; 1], [1; 0]), 447s [1 1 1 1 (1:-.1:.2) 447s (1:-.1:0) 0 0 447s (.9:-.1:0) 0 0 0 447s 1 1 (1:-.2:0) 0 0 0 0 0], eps) 447s 447s ## rescale 447s assert (imadjust (im, [.2; .7], [.1; .9]), 447s [1 1 1 1 1 1 1 2.6 4.2 5.8 7.4 9 9 447s 1 1 1 2.6 4.2 5.8 7.4 9 9 9 9 9 9 447s 1 1 2.6 4.2 5.8 7.4 9 9 9 9 9 9 9 447s 1 1 1 1 4.2 7.4 9 9 9 9 9 9 9]/10, eps) 447s 447s ## rescale and invert 447s assert (imadjust (im, [.2; .7], [.9; .1]), 447s [9 9 9 9 9 9 9 7.4 5.8 4.2 2.6 1 1 447s 9 9 9 7.4 5.8 4.2 2.6 1 1 1 1 1 1 447s 9 9 7.4 5.8 4.2 2.6 1 1 1 1 1 1 1 447s 9 9 9 9 5.8 2.6 1 1 1 1 1 1 1]/10, eps) 447s ***** assert (imadjust (linspace (0, 1), [], [], 2), linspace (0, 1) .^ 2) 447s ***** shared oRGB 447s oRGB = zeros (10, 1, 3); 447s oRGB(:,:,1) = [0 linspace(0,1,6) 1 1 1]'; 447s oRGB(:,:,2) = [0 0 linspace(0,1,6) 1 1]'; 447s oRGB(:,:,3) = [0 0 0 linspace(0,1,6) 1]'; 447s ***** assert (imadjust (oRGB, [0; 1], [0; 1]), oRGB) 447s ***** assert (imadjust (oRGB, [.2; .8], [0; 1]), 447s reshape ([[0 0 0 1/3 2/3 1 1 1 1 1]' 447s [0 0 0 0 1/3 2/3 1 1 1 1]' 447s [0 0 0 0 0 1/3 2/3 1 1 1]'], [10 1 3]), eps) 447s ***** assert (imadjust (oRGB, [.2; .8], [.1; .9]), 447s reshape ([[.1 .1 .1 (1/3)+(.1/3) (2/3)-(.1/3) .9 .9 .9 .9 .9]' 447s [.1 .1 .1 .1 (1/3)+(.1/3) (2/3)-(.1/3) .9 .9 .9 .9]' 447s [.1 .1 .1 .1 .1 (1/3)+(.1/3) (2/3)-(.1/3) .9 .9 .9]'], 447s [10 1 3]), eps) 447s ***** assert (imadjust (oRGB, [.2; .8], [.2; .8]), 447s reshape ([[2 2 2 4 6 8 8 8 8 8]' 447s [2 2 2 2 4 6 8 8 8 8]' 447s [2 2 2 2 2 4 6 8 8 8]']/10, [10 1 3]), eps) 447s ***** assert (imadjust (oRGB, [0; 1], [.1 .2 .3; .9 .8 .7]), 447s reshape ([[1 1 2.6 4.2 5.8 7.4 9 9 9 9]' 447s [2 2 2 3.2 4.4 5.6 6.8 8 8 8]' 447s [3 3 3 3 3.8 4.6 5.4 6.2 7 7]']/10, [10 1 3]), eps) 447s ***** assert (imadjust (oRGB, [.1 .2 .3; .9 .8 .7], [0; 1]), 447s reshape ([[0 0 .125 .375 .625 .875 1 1 1 1]' 447s [0 0 0 0 1/3 2/3 1 1 1 1]' 447s [0 0 0 0 0 .25 .75 1 1 1]'], [10 1 3]), eps*10) 447s ***** assert (imadjust (oRGB, [.1 .2 .3; .9 .8 .7], [.2 0 .4; .5 1 .7 ]), 447s reshape ([[.2 .2 .2375 .3125 .3875 .4625 .5 .5 .5 .5]' 447s [0 0 0 0 1/3 2/3 1 1 1 1]' 447s [.4 .4 .4 .4 .4 .475 .625 .7 .7 .7]'], [10 1 3]), eps) 447s ***** test 447s img = rand (4, 4, 2, 3, 4); 447s adj = zeros (4, 4, 2, 3, 4); 447s for p = 1:2 447s for q = 1:3 447s for r = 1:4 447s adj(:,:,p,q,r) = imadjust (img(:,:,p,q,r)); 447s endfor 447s endfor 447s endfor 447s assert (imadjust (img), adj) 447s ***** test 447s img = rand (4, 4, 2, 3, 2); 447s adj = zeros (4, 4, 2, 3, 2); 447s in = reshape ([ 3 5 7 9 11 13 15 17 19 21 23 25; 447s 97 95 93 91 89 87 85 83 81 79 77 75] / 100, [2 2 3 2]); 447s out = reshape ([ 5 7 9 11 14 15 17 19 21 23 25 27; 447s 95 93 91 89 87 85 83 81 79 77 75 73] / 100, [2 2 3 2]); 447s gamma = reshape (0.6:.1:1.7, [1 2 3 2]); 447s for p = 1:2 447s for q = 1:3 447s for r = 1:2 447s adj(:,:,p,q,r) = imadjust (img(:,:,p,q,r), in(:,p,q,r), 447s out(:,p,q,r), gamma(1,p,q,r)); 447s endfor 447s endfor 447s endfor 447s assert (imadjust (img, in, out, gamma), adj, eps) 447s ***** test 447s in = int16 (1:6); 447s assert (imadjust (in), int16 ([-32768 -19661 -6554 6553 19660 32767])) 447s assert (imadjust (in, []), in) 447s ***** test 447s in = uint8([ 447s 35 1 6 26 19 24 447s 3 32 7 21 23 25 447s 31 9 2 22 27 20 447s 8 28 33 17 10 15 447s 30 5 34 12 14 16 447s 4 36 29 13 18 11]); 447s out = uint8([ 447s 12 0 0 1 0 0 447s 0 8 0 0 0 0 447s 7 0 0 0 2 0 447s 0 3 9 0 0 0 447s 6 0 11 0 0 0 447s 0 13 4 0 0 0]); 447s assert (imadjust (in, [.1 .9], [0 1]), out); 447s ***** test 447s in = uint8([ 447s 140 4 24 104 76 96 447s 12 128 28 84 92 100 447s 124 36 8 88 108 80 447s 32 112 132 68 40 60 447s 120 20 136 48 56 64 447s 16 144 116 52 72 44]); 447s out = uint8([ 447s 143 0 0 98 63 88 447s 0 128 3 73 83 93 447s 123 13 0 78 103 68 447s 8 108 133 53 18 43 447s 118 0 138 28 38 48 447s 0 148 113 33 58 23]); 447s assert (imadjust (in, [.1 .9], [0 1]), out); 447s ***** xtest 447s in_u8 = randi ([0 255], 5, 5, 2, 3, "uint8"); 447s in_u16 = randi ([0 65535], 5, 5, 2, 3, "uint16"); 447s in_i16 = randi ([-32768 32767], 5, 5, 2, 3, "int16"); 447s in_u8_d = im2double (in_u8); 447s in_u16_d = im2double (in_u16); 447s in_i16_d = im2double (in_i16); 447s lim_u8 = eps + 0.5 / double (intmax ("uint8")); 447s lim_u16 = eps + 0.5 / double (intmax ("uint16")); 447s lim_i16 = eps + 0.5 / ( double (intmax("int16")) - double (intmin ("int16")) ); 447s 447s ## default values 447s assert (im2double (imadjust (in_u8)), imadjust (in_u8_d), lim_u8) 447s assert (im2double( imadjust (in_u16)), imadjust (in_u16_d), lim_u16) 447s assert (im2double( imadjust (in_i16)), imadjust (in_i16_d), lim_i16) 447s 447s ## single adjustment for all planes 447s args = {[.3; .7], [.1; .9], [1.5]}; 447s assert (im2double (imadjust (in_u8, args{:})), imadjust (in_u8_d, args{:}), lim_u8) 447s assert (im2double (imadjust (in_u16, args{:})), imadjust (in_u16_d, args{:}), lim_u16) 447s assert (im2double (imadjust (in_i16, args{:})), imadjust (in_i16_d, args{:}), lim_i16) 447s 447s ## single adjustment for all planes (mixed with some complement) 447s args = {reshape([.2 .3 .25 .1 0 .1; .9 .7 .85 .9 1 .8], [2 2 3]), 447s reshape([.1 .2 .05 .9 1 .3; .9 .85 .7 .1 0 .9], [2 2 3]), 447s reshape([1 .75 1 1.2 1.5 2], [1 2 3])}; 447s assert (im2double (imadjust (in_u8, args{:})), imadjust (in_u8_d, args{:}), lim_u8) 447s assert (im2double (imadjust (in_u16, args{:})), imadjust (in_u16_d, args{:}), lim_u16) 447s assert (im2double (imadjust (in_i16, args{:})), imadjust (in_i16_d, args{:}), lim_i16) 447s 447s ## test use of [] as limit and negative 447s args = {[], [.95; 0], 1.25}; 447s assert (im2double (imadjust (in_u8, args{:})), imadjust (in_u8_d, args{:}), lim_u8) 447s assert (im2double (imadjust (in_u16, args{:})), imadjust (in_u16_d, args{:}), lim_u16) 447s assert (im2double (imadjust (in_i16, args{:})), imadjust (in_i16_d, args{:}), lim_i16) 447s 36 tests, 36 passed, 0 known failure, 0 skipped 447s [inst/histeq.m] 447s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/histeq.m 447s ***** assert (histeq ([]), []); 447s ***** assert (histeq (0), 1); 447s ***** assert (histeq (1), 1); 447s ***** assert (histeq (1.5), 1); 447s ***** assert (histeq (zeros (100, 200)), ones (100, 200)); # matrix 447s ***** xtest assert (histeq ([0 1]), [0.4920634921 1], 10^-8); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq ([0, 1]),[0.4920634921, 1],10 ^ -8) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.5 0.49206 Abs err 0.0079365 exceeds tol 1e-08 by 0.008 447s ***** xtest assert (histeq ([0 1]'), [0.4920634921 1]', 10^-8); # column array 447s !!!!! known failure 447s ASSERT errors for: assert (histeq ([0, 1]'),[0.4920634921, 1]',10 ^ -8) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.5 0.49206 Abs err 0.0079365 exceeds tol 1e-08 by 0.008 447s ***** xtest assert (histeq ([0 255]), [0.4920634921 1], 10^-8); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq ([0, 255]),[0.4920634921, 1],10 ^ -8) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.5 0.49206 Abs err 0.0079365 exceeds tol 1e-08 by 0.008 447s ***** xtest assert (histeq (uint8 ([0 1])), [ 125 190]); # uint8 447s !!!!! known failure 447s ASSERT errors for: assert (histeq (uint8 ([0, 1])),[125, 190]) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.5 125 Abs err 124.5 exceeds tol 0 by 1e+02 447s (2) 1 190 Abs err 189 exceeds tol 0 by 2e+02 447s ***** xtest assert (histeq (uint8 ([0 255])), [ 125 255]); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq (uint8 ([0, 255])),[125, 255]) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.5 125 Abs err 124.5 exceeds tol 0 by 1e+02 447s (2) 1 255 Abs err 254 exceeds tol 0 by 3e+02 447s ***** xtest assert (histeq (uint16 ([0 1])), [65535 65535]); # uint16 447s !!!!! known failure 447s ASSERT errors for: assert (histeq (uint16 ([0, 1])),[65535, 65535]) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.5 65535 Abs err 65534 exceeds tol 0 by 7e+04 447s (2) 1 65535 Abs err 65534 exceeds tol 0 by 7e+04 447s ***** xtest assert (histeq (uint16 ([0 255])), [32247 48891]); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq (uint16 ([0, 255])),[32247, 48891]) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.5 32247 Abs err 32246 exceeds tol 0 by 3e+04 447s (2) 1 48891 Abs err 48890 exceeds tol 0 by 5e+04 447s ***** xtest assert (histeq (uint16 ([0 256])), [32247 48891]); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq (uint16 ([0, 256])),[32247, 48891]) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.5 32247 Abs err 32246 exceeds tol 0 by 3e+04 447s (2) 1 48891 Abs err 48890 exceeds tol 0 by 5e+04 447s ***** xtest assert (histeq (uint16 ([0 65535])), [32247 65535]); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq (uint16 ([0, 65535])),[32247, 65535]) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.5 32247 Abs err 32246 exceeds tol 0 by 3e+04 447s (2) 1 65535 Abs err 65534 exceeds tol 0 by 7e+04 447s ***** test assert (histeq ([0 1 1] ), [ 1/3 1 1] , 10^-8); 447s ***** test assert (histeq ([0 0 1]'), [ 2/3 2/3 1]', 10^-8); 447s ***** xtest assert (histeq ([0 1 2] ), [ 1/3 1 1] , 10^-8); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq ([0, 1, 2]),[1 / 3, 1, 1],10 ^ -8) 447s 447s Location | Observed | Expected | Reason 447s (2) 0.66667 1 Abs err 0.33333 exceeds tol 1e-08 by 0.3 447s ***** xtest assert (histeq (uint8 ([0 1 2])), [ 85 125 215]); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq (uint8 ([0, 1, 2])),[85, 125, 215]) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.33333 85 Abs err 84.667 exceeds tol 0 by 8e+01 447s (2) 0.66667 125 Abs err 124.33 exceeds tol 0 by 1e+02 447s (3) 1 215 Abs err 214 exceeds tol 0 by 2e+02 447s ***** xtest assert (histeq (uint16 ([0 1 2])), [65535 65535 65535]); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq (uint16 ([0, 1, 2])),[65535, 65535, 65535]) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.33333 65535 Abs err 65535 exceeds tol 0 by 7e+04 447s (2) 0.66667 65535 Abs err 65534 exceeds tol 0 by 7e+04 447s (3) 1 65535 Abs err 65534 exceeds tol 0 by 7e+04 447s ***** xtest assert (histeq (uint16 ([0 100 200])), [43690 43690 55133]); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq (uint16 ([0, 100, 200])),[43690, 43690, 55133]) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.33333 43690 Abs err 43690 exceeds tol 0 by 4e+04 447s (2) 0.66667 43690 Abs err 43689 exceeds tol 0 by 4e+04 447s (3) 1 55133 Abs err 55132 exceeds tol 0 by 6e+04 447s ***** xtest 447s J = [20 32 57 81 105 125 150 174 198 223 247]; 447s assert (histeq (uint8 (0:10:100)), J); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq (uint8 (0:10:100)),J) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.090909 20 Abs err 19.909 exceeds tol 0 by 2e+01 447s (2) 0.18182 32 Abs err 31.818 exceeds tol 0 by 3e+01 447s (3) 0.27273 57 Abs err 56.727 exceeds tol 0 by 6e+01 447s (4) 0.36364 81 Abs err 80.636 exceeds tol 0 by 8e+01 447s (5) 0.45455 105 Abs err 104.55 exceeds tol 0 by 1e+02 447s (6) 0.54545 125 Abs err 124.45 exceeds tol 0 by 1e+02 447s (7) 0.63636 150 Abs err 149.36 exceeds tol 0 by 1e+02 447s (8) 0.72727 174 Abs err 173.27 exceeds tol 0 by 2e+02 447s (9) 0.81818 198 Abs err 197.18 exceeds tol 0 by 2e+02 447s (10) 0.90909 223 Abs err 222.09 exceeds tol 0 by 2e+02 447s (11) 1 247 Abs err 246 exceeds tol 0 by 2e+02 447s ***** xtest 447s J = [0.0793650794 447s 0.1269841270 447s 0.2222222222 447s 0.3174603175 447s 0.4126984127 447s 0.4920634921 447s 0.5873015873 447s 0.6825396825 447s 0.7777777778 447s 0.8730158730 447s 1.0000000000]; 447s assert (histeq (0:0.1:1), J', 10^-8); 447s !!!!! known failure 447s ASSERT errors for: assert (histeq (0:0.1:1),J',10 ^ -8) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.090909 0.079365 Abs err 0.011544 exceeds tol 1e-08 by 0.01 447s (2) 0.18182 0.12698 Abs err 0.054834 exceeds tol 1e-08 by 0.05 447s (3) 0.27273 0.22222 Abs err 0.050505 exceeds tol 1e-08 by 0.05 447s (4) 0.36364 0.31746 Abs err 0.046176 exceeds tol 1e-08 by 0.05 447s (5) 0.45455 0.4127 Abs err 0.041847 exceeds tol 1e-08 by 0.04 447s (6) 0.54545 0.49206 Abs err 0.053391 exceeds tol 1e-08 by 0.05 447s (7) 0.63636 0.5873 Abs err 0.049062 exceeds tol 1e-08 by 0.05 447s (8) 0.72727 0.68254 Abs err 0.044733 exceeds tol 1e-08 by 0.04 447s (9) 0.81818 0.77778 Abs err 0.040404 exceeds tol 1e-08 by 0.04 447s (10) 0.90909 0.87302 Abs err 0.036075 exceeds tol 1e-08 by 0.04 447s 22 tests, 7 passed, 15 known failures, 0 skipped 447s [inst/imtranslate.m] 447s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imtranslate.m 447s ***** test 447s obs = imtranslate (ones (5, 5), 2, 1, "crop"); 447s exp = zeros (5, 5); 447s exp(1:4, 3:5) = 1; 447s assert (obs, exp, eps * 10) 447s 447s obs = imtranslate (ones (5, 5), -2, -1, "crop"); 447s exp = zeros (5, 5); 447s exp(2:5, 1:3) = 1; 447s assert (obs, exp, eps * 10) 447s 1 test, 1 passed, 0 known failure, 0 skipped 447s [inst/entropyfilt.m] 447s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/entropyfilt.m 447s ***** test 447s a = log2 (9) * ones (5, 5); 447s b = -(2*log2 (2/9) + log2 (1/9))/3; 447s a(1,2:4) = b; 447s a(5,2:4) = b; 447s a(2:4,1) = b; 447s a(2:4,5) = b; 447s c = -(4*log2 (4/9) + 4*log2 (2/9) + log2 (1/9))/9; 447s a(1,1) = c; 447s a(5,1) = c; 447s a(1,5) = c; 447s a(5,5) = c; 447s assert (entropyfilt (uint8 (magic (5)), ones (3, 3)), a, 2*eps); 447s ***** test 447s assert (entropyfilt (uint8 (ones (10, 10))), zeros (10, 10)); 447s ***** test 447s A = zeros (3,3); 447s B = ones (3,3); 447s C = [1 1 1; 2 2 2; 3 3 3]; 447s D = C'; 447s E = ones (3,3); 447s E(2,2) = 2; 447s F = 3 .* ones (3,3); 447s F(2,2) = 1; 447s G = [-1 2 7; -5 2 8; -7 pi 9]; 447s H = [5 2 8; 1 -3 1; 5 1 0]; 447s Hf = mat2gray(H); 447s X = uint8(abs(H)); 447s P = [0.2 0.201 0.204; 0.202 0.203 0.205; 0.205 0.206 0.202]; 447s Q = uint16([100 101 103; 100 105 102; 100 102 103]); 447s R = uint8([1 2 3 4 5; 11 12 13 14 15; 21 22 4 5 6; 5 5 3 2 1; 15 14 14 14 14]); 447s Aout = zeros (3); 447s Bout = zeros (3); 447s Cout = zeros (3); 447s Dout = zeros (3); 447s Eout = zeros (3); 447s Fout = zeros (3); 447s Gout_1 = -sum([2 7]./9.*log2([2 7]./9)); 447s Gout_2 = -sum([3 6]./9.*log2([3 6]./9)); 447s Gout_3 = -sum([4 5]./9.*log2([4 5]./9)); 447s Gout = [Gout_1 Gout_2 Gout_3; Gout_1 Gout_2 Gout_3; Gout_1 Gout_2 Gout_3]; 447s Hout_5 = -sum([2 7]./9.*log2([2 7]./9)) ; 447s Hout = [0.8916 0.8256 0.7412; 0.8256 Hout_5 0.6913; 0.7412 0.6913 0.6355]; 447s Hfout_5 = -sum([3 2 1 1 1 1]./9.*log2([3 2 1 1 1 1]./9)); 447s Hfout = [2.3613 2.3296 2.2252; 2.4571 Hfout_5 2.3090; 2.4805 2.4488 2.3445]; 447s Xout_5 = -sum([1 1 1 1 2 3]./9.*log2([1 1 1 1 2 3]./9)); 447s Xout = [2.3613 2.3296 2.2252; 2.4571 Xout_5 2.3090; 2.4805 2.4488 2.3445]; 447s Pout_5 = -sum([1 2 6]./9.*log2([1 2 6]./9)); 447s Pout = [1.1137 1.1730 1.2251; 1.1595 Pout_5 1.2774; 1.1556 1.2183 1.2635]; 447s Qout = zeros(3); 447s Rout = [3.5143 3.5700 3.4871 3.4957 3.4825; 447s 3.4705 3.5330 3.4341 3.4246 3.3890; 447s 3.3694 3.4063 3.3279 3.3386 3.3030; 447s 3.3717 3.4209 3.3396 3.3482 3.3044; 447s 3.4361 3.5047 3.3999 3.4236 3.3879]; 447s assert (entropyfilt (A), Aout); 447s assert (entropyfilt (B), Bout); 447s assert (entropyfilt (C), Cout); 447s assert (entropyfilt (D), Dout); 447s assert (entropyfilt (E), Eout); 447s assert (entropyfilt (F), Fout); 447s assert (entropyfilt (G), Gout, 1e-4); 447s assert (entropyfilt (H), Hout, 1e-4); 447s assert (entropyfilt (Hf), Hfout, 1e-4); 447s assert (entropyfilt (X), Xout, 1e-4); 447s assert (entropyfilt (P), Pout, 1e-4); 447s assert (entropyfilt (Q), Qout); 447s assert (entropyfilt (R), Rout, 1e-4); 447s 3 tests, 3 passed, 0 known failure, 0 skipped 447s [inst/hough.m] 447s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/hough.m 447s ***** shared BW0, BW1, BW2, BWx, BWy 447s 447s BW0 = false (5); 447s BW0(2,2) = true; 447s 447s BW1 = zeros (100, 100); 447s BW1(1,1) = 1; 447s BW1(100,100) = 1; 447s BW1(1,100) = 1; 447s BW1(100, 1) = 1; 447s BW1(50,50) = 1; 447s 447s n = 100; 447s BW2 = false (n); 447s a = 50; # line starts at left side at row a 447s b = 3; # slope of line is 1:b 447s for column = 1:n 447s if (rem (column, b) == 0) 447s row = a - column/b; 447s BW2(row, column) = true; 447s endif 447s endfor 447s 447s BWx = false (10); 447s BWx(:,5) = true; 447s 447s BWy = false (10); 447s BWy(5,:) = true; 447s ***** test 447s [H, T, R] = hough (BW1); 447s assert (size (H), [283 180]); 447s ***** test 447s [H, T, R] = hough (BW1, "Theta", [-90 0 45 79]); 447s assert (size (H), [283 4]); 447s ***** test 447s [H, T, R] = hough (BW1, "ThetaResolution", 0.5); 447s assert (size (H), [283 360]); 447s ***** error hough ("foo") 447s ***** test 447s I = [0 0 1 0; 1 1 1 1; 0 0 1 1; 0 0 1 0]; 447s I2 = I; 447s for v = [0.7 0.2 5] 447s I2(1,3) = v; 447s assert (hough (I2), hough (I)) 447s endfor 447s ***** error 447s [H, T, R] = hough (BW0, "Theta"); 447s ***** error 447s [H, T, R] = hough (BW0, "Theta", ones (10)); 447s ***** error 447s [H, T, R] = hough (BW0, "Theta", [5 -i 7]); 447s ***** error 447s [H, T, R] = hough (BW0, "RhoResolution", 0.5); 447s ***** test 447s [Hd, Td, Rd] = hough (BW0); 447s [H1, T1, R1] = hough (BW0, "RhoResolution", 1); 447s assert (Hd, H1) 447s assert (Td, T1) 447s assert (Rd, R1) 447s ***** test 447s [H, theta, rho] = hough (BW2); 447s H_max = max (H(:)); 447s H_size = size (H); 447s [~, max_idx_lin] = max (H(:)); 447s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 447s theta_max = theta(max_column); 447s rho_max = rho(max_row); 447s assert (H_max , 33); 447s assert (H_size, [283 180]); 447s assert (max_row, 188); 447s assert (max_column, 163); 447s assert (theta_max, 72); 447s assert (rho_max, 46); 447s ***** test 447s [H, theta, rho] = hough (BW2, "Theta", [65:1:75]); 447s H_max = max (H(:)); 447s H_size = size (H); 447s [~, max_idx_lin] = max (H(:)); 447s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 447s theta_max = theta(max_column); 447s rho_max = rho(max_row); 447s assert (H_max , 33); 447s assert (H_size, [283 11]); 447s assert (max_row, 188); 447s assert (max_column, 8); 447s assert (theta_max, 72); 447s assert (rho_max, 46); 447s ***** test 447s [H, theta, rho] = hough (BW2, "Theta", [-90:0.5:89.5]); 447s H_max = max (H(:)); 447s H_size = size (H); 447s [~, max_idx_lin] = max (H(:)); 447s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 447s theta_max = theta(max_column); 447s rho_max = rho(max_row); 447s assert (H_max , 33); 447s assert (H_size, [283 360]); 447s assert (max_row, 188); 447s assert (max_column, 324); 447s assert (theta_max, 71.5); 447s assert (rho_max, 46); 447s ***** test 447s [H, theta, rho] = hough (BW2, "ThetaResolution", 0.5); 447s H_max = max (H(:)); 447s H_size = size (H); 447s [~, max_idx_lin] = max (H(:)); 447s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 447s theta_max = theta(max_column); 447s rho_max = rho(max_row); 447s assert (H_max , 33); 447s assert (H_size, [283 360]); 447s assert (max_row, 188); 447s assert (max_column, 324); 447s assert (theta_max, 71.5); 447s assert (rho_max, 46); 447s ***** test 447s [H, theta, rho] = hough (BWx); 447s H_max = max (H(:)); 447s [~, max_idx_lin] = max (H(:)); 447s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 447s theta_max = theta(max_column); 447s rho_max = rho(max_row); 447s assert (H_max , 10); 447s assert (max_column, 88); 447s assert (theta_max, -3); 447s assert (rho_max, 4); 447s ***** test 447s [H, theta, rho] = hough (BWx); 447s H_size = size (H); 447s [~, max_idx_lin] = max (H(:)); 447s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 447s assert (H_size, [27 180]); 447s assert (max_row, 18); 447s ***** test 447s [H, theta, rho] = hough (BWy); 447s H_max = max (H(:)); 447s [~, max_idx_lin] = max (H(:)); 447s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 447s theta_max = theta(max_column); 447s rho_max = rho(max_row); 447s assert (H_max , 10); 447s assert (max_column, 1); 447s assert (theta_max, -90); 447s assert (rho_max, -4); 447s ***** test 447s [H, theta, rho] = hough (BWy); 447s H_size = size (H); 447s [~, max_idx_lin] = max (H(:)); 447s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 447s assert (H_size, [27 180]); 447s assert (max_row, 10); 447s ***** demo 447s BW = zeros (100, 150); 447s BW(30,:) = 1; 447s BW(:, 65) = 1; 447s BW(35:45, 35:50) = 1; 447s for i = 1:90 447s BW(i,i) = 1; 447s endfor 447s BW = imnoise (BW, "salt & pepper"); 447s figure (); 447s imshow (BW); 447s title ("BW"); 447s [H, theta, rho] = hough (BW); 447s H /= max (H(:)); 447s figure (); 447s imshow (H, "XData", theta, "YData", rho); 447s title ("hough transform of BW"); 447s axis on; 447s xlabel ("angle \\theta [degrees]"); 447s ylabel ("distance \\rho to origin [pixels]"); 447s 18 tests, 18 passed, 0 known failure, 0 skipped 447s [inst/imhist.m] 447s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imhist.m 447s ***** shared nn, bb, enn, ebb 447s [nn, bb] = imhist(logical([0 1 0 0 1])); 447s ***** assert({nn, bb}, {[3 2]', [0 1]'}) 447s [nn, bb] = imhist([0 0.2 0.4 0.9 1], 5); 447s ***** assert({nn, bb}, {[1 1 1 0 2]', [0 0.25 0.5 0.75 1]'}) 447s [nn, bb] = imhist([-2 0 0.2 0.4 0.9 1 5], 5); 447s ***** assert({nn, bb}, {[2 1 1 0 3]', [0 0.25 0.5 0.75 1]'}) 447s [nn, bb] = imhist(uint8([0 32 255]), 256); 447s enn = zeros(256, 1); enn([1, 33, 256]) = 1; 447s ebb = 0:255; 447s ***** assert({nn, bb}, {enn, ebb'}) 447s [nn, bb] = imhist(int8([-50 0 100]), 31); 447s enn = zeros(31, 1); enn([10, 16, 28]) = 1; 447s ebb = -128:8.5:127; 447s ***** assert({nn, bb}, {enn, ebb'}) 447s 5 tests, 5 passed, 0 known failure, 0 skipped 447s [inst/ordfiltn.m] 447s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/ordfiltn.m 447s ***** shared b, f, s 447s b = [ 0 1 2 3 447s 1 8 12 12 447s 4 20 24 21 447s 7 22 25 18]; 447s 447s f = [ 8 12 12 12 447s 20 24 24 24 447s 22 25 25 25 447s 22 25 25 25]; 447s ***** assert (ordfiltn (b, 9, true (3)), f); 447s 447s f = [ 1 8 12 12 447s 8 20 21 21 447s 20 24 24 24 447s 20 24 24 24]; 447s ***** assert (ordfiltn (b, 8, true (3)), f); 447s 447s f = [ 1 2 8 12 447s 4 12 20 21 447s 8 22 22 21 447s 20 24 24 24]; 447s ***** assert (ordfiltn (b, 7, true (3), "symmetric"), f); 447s 447s f = [ 1 8 12 12 447s 4 20 24 21 447s 7 22 25 21 447s 7 22 25 21]; 447s ***** assert (ordfiltn (b, 3, true (3, 1)), f); 447s 447s f = [ 1 8 12 12 447s 4 20 24 18 447s 4 20 24 18 447s 4 20 24 18]; 447s ***** assert (ordfiltn (b, 3, true (4, 1)), f); 447s 447s f = [ 4 20 24 21 447s 7 22 25 21 447s 7 22 25 21 447s 7 22 25 21]; 447s ***** assert (ordfiltn (b, 4, true (4, 1)), f); 447s 447s s = [0 0 1 447s 0 0 1 447s 0 0 1]; 447s f = [ 2 8 12 12 447s 9 20 22 21 447s 21 25 24 24 447s 21 25 24 24]; 447s ***** assert (ordfiltn (b, 8, true (3), s), f); 447s 447s b(:,:,2) = b(:,:,1) - 1; 447s b(:,:,3) = b(:,:,2) - 1; 447s f(:,:,1) = [ 1 8 11 11 447s 8 20 21 21 447s 20 24 24 24 447s 20 24 24 24]; 447s f(:,:,2) = [ 6 10 11 11 447s 18 22 22 22 447s 20 24 24 24 447s 20 24 24 24]; 447s f(:,:,3) = [ 0 7 10 10 447s 7 19 20 20 447s 19 23 23 23 447s 19 23 23 23]; 447s ***** assert (ordfiltn (b, 25, true (3, 3, 3)), f); 447s 8 tests, 8 passed, 0 known failure, 0 skipped 447s [inst/edge.m] 447s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/edge.m 447s ***** test 447s im = [ 447s 249 238 214 157 106 69 60 90 131 181 224 247 252 250 250 447s 250 242 221 165 112 73 62 91 133 183 225 248 252 250 251 447s 252 246 228 173 120 78 63 90 130 181 224 248 253 251 251 447s 253 248 232 185 132 87 62 80 116 170 217 244 253 251 252 447s 253 249 236 198 149 101 66 71 101 155 206 238 252 252 252 447s 254 250 240 210 164 115 73 69 92 143 196 232 252 253 252 447s 70 70 68 61 49 36 24 22 26 38 52 63 70 70 70 447s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 447s 62 63 62 59 51 42 33 25 22 26 36 45 56 60 62 447s 252 253 252 246 221 190 157 114 90 90 118 157 203 235 248 447s 251 253 254 251 233 209 182 136 103 92 107 139 185 225 245 447s 251 253 254 253 243 227 206 163 128 108 110 133 175 217 242 447s 252 253 254 254 249 241 228 195 164 137 127 139 172 212 239 447s ] / 255; 447s 447s methods = {"kirsch", "prewitt", "sobel"}; 447s for m_i = 1:numel (methods) 447s method = methods{m_i}; 447s 447s bw = edge (im, method, 0.2, "both", "thinning"); 447s assert (edge (im, method, 0.2), bw) 447s 447s args = perms ({0.2, "both", "thinning"}); 447s for i = 1:rows (args) 447s assert (edge (im, method, args{i,:}), bw) 447s endfor 447s 447s bw = edge (im, method, 0.2, "vertical", "nothinning"); 447s args = perms ({0.2, "vertical", "nothinning"}); 447s for i = 1:rows (args) 447s assert (edge (im, method, args{i,:}), bw) 447s endfor 447s 447s bw = edge (im, method, 0.2, "vertical", "thinning"); 447s args = perms ({0.2, "vertical"}); 447s for i = 1:rows (args) 447s assert (edge (im, method, args{i,:}), bw) 447s endfor 447s 447s bw = edge (im, method, 0.2, "both", "nothinning"); 447s args = perms ({0.2, "nothinning"}); 447s for i = 1:rows (args) 447s assert (edge (im, method, args{i,:}), bw) 447s endfor 447s endfor 447s ***** error 447s bw = edge (rand (10), "sobel", 0.2, 0.4) 447s ***** error 447s bw = edge (rand (10), "sobel", "thinning", "nothinning") 447s ***** error 447s bw = edge (rand (10), "sobel", "both", "both") 447s ***** error 447s bw = edge (rand (10), "sobel", [0.2 0.7], "both", "thinning") 447s ***** error 447s bw = edge (rand (10), "kirsch", 0.2, 0.4) 447s ***** error 447s bw = edge (rand (10), "kirsch", "thinning", "nothinning") 447s ***** error 447s bw = edge (rand (10), "kirsch", "both", "both") 447s ***** error 447s bw = edge (rand (10), "kirsch", [0.2 0.7], "both", "thinning") 447s ***** error 447s bw = edge (rand (10), "prewitt", 0.2, 0.4) 447s ***** error 447s bw = edge (rand (10), "prewitt", "thinning", "nothinning") 447s ***** error 447s bw = edge (rand (10), "prewitt", "both", "both") 447s ***** error 447s bw = edge (rand (10), "prewitt", [0.2 0.7], "both", "thinning") 447s ***** test 447s im = [ 447s 249 238 214 157 106 69 60 90 131 181 224 247 252 250 250 447s 250 242 221 165 112 73 62 91 133 183 225 248 252 250 251 447s 252 246 228 173 120 78 63 90 130 181 224 248 253 251 251 447s 253 248 232 185 132 87 62 80 116 170 217 244 253 251 252 447s 253 249 236 198 149 101 66 71 101 155 206 238 252 252 252 447s 254 250 240 210 164 115 73 69 92 143 196 232 252 253 252 447s 70 70 68 61 49 36 24 22 26 38 52 63 70 70 70 447s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 447s 62 63 62 59 51 42 33 25 22 26 36 45 56 60 62 447s 252 253 252 246 221 190 157 114 90 90 118 157 203 235 248 447s 251 253 254 251 233 209 182 136 103 92 107 139 185 225 245 447s 251 253 254 253 243 227 206 163 128 108 110 133 175 217 242 447s 252 253 254 254 249 241 228 195 164 137 127 139 172 212 239 447s ] / 255; 447s 447s bw = edge (im, "roberts", .2, "thinning"); 447s assert (edge (im, "roberts", 0.2), bw) 447s assert (edge (im, "roberts", "thinning", 0.2), bw) 447s 447s bw = edge (im, "roberts", .2, "nothinning"); 447s assert (edge (im, "roberts", "nothinning", 0.2), bw) 447s ***** error 447s bw = edge (rand (10), "roberts", 0.2, 0.4) 447s ***** error 447s bw = edge (rand (10), "roberts", "thinning", "nothinning") 447s ***** error 447s bw = edge (rand (10), "roberts", "both", "thinning") 447s ***** test 447s im = rand (10); 447s [~, thresh] = edge (im, "canny"); 447s assert (size (thresh), [1 2]) 447s [~, thresh] = edge (im, "canny", [.2 .6]); 447s assert (thresh, [.2 .6]) 447s [~, thresh] = edge (im, "canny", [.2; .6]); 447s assert (thresh, [.2 .6]) 447s ***** test 447s in = zeros (5); 447s in(3,3) = 1; 447s 447s E = logical ([ 447s 0 0 0 0 0 447s 0 0 1 0 0 447s 0 1 0 1 0 447s 0 0 1 0 0 447s 0 0 0 0 0]); 447s assert (edge (in), E) 447s assert (edge (uint8 (in.*100)), E) 447s assert (edge (in, "sobel"), E) 447s assert (edge (in, "sobel", 0), E) 447s assert (edge (in, "sobel", 1), false (5)) 447s 447s [E, auto_thresh] = edge (in); 447s assert (auto_thresh, 0.2449, 1e-4) 447s 447s V = logical([ 447s 0 0 0 0 0 447s 0 1 0 1 0 447s 0 1 0 1 0 447s 0 1 0 1 0 447s 0 0 0 0 0]); 447s assert (edge (in, "sobel", 0, "vertical"), V) 447s 447s H = logical ([ 447s 0 0 0 0 0 447s 0 1 1 1 0 447s 0 0 0 0 0 447s 0 1 1 1 0 447s 0 0 0 0 0]); 447s assert (edge (in, "sobel", 0, "horizontal"), H) 447s 447s V = false (5); 447s V(3,2) = true; 447s V(3,4) = true; 447s assert (edge (in, "sobel", [], "vertical"), V) 447s 447s H = false (5); 447s H(2,3) = true; 447s H(4,3) = true; 447s assert (edge (in, "sobel", [], "horizontal"), H) 447s ***** test 447s A = ones (5); 447s A(3, 3) = 0; 447s expected = logical ([ 447s 0 0 0 0 0 447s 0 0 1 0 0 447s 0 1 0 1 0 447s 0 0 1 0 0 447s 0 0 0 0 0]); 447s assert (edge (A), expected) 447s ***** test 447s in = zeros (5); 447s in(3, 3) = 1; 447s 447s E = logical ([ 447s 0 0 0 0 0 447s 0 1 0 1 0 447s 0 0 0 0 0 447s 0 1 0 1 0 447s 0 0 0 0 0]); 447s 447s assert (edge (in, "prewitt"), E) 447s 447s [~, auto_thresh] = edge (in, "prewitt"); 447s assert (auto_thresh, 0.2309, 1e-4) 447s 447s V = logical([ 447s 0 0 0 0 0 447s 0 1 0 1 0 447s 0 1 0 1 0 447s 0 1 0 1 0 447s 0 0 0 0 0]); 447s assert (edge (in, "prewitt", 0, "vertical"), V) 447s 447s H = logical ([ 447s 0 0 0 0 0 447s 0 1 1 1 0 447s 0 0 0 0 0 447s 0 1 1 1 0 447s 0 0 0 0 0]); 447s assert (edge (in, "prewitt", 0, "horizontal"), H) 447s ***** test 447s in = zeros (5); 447s in(3,3) = 1; 447s in(3,4) = 0.9; 447s 447s E = logical ([ 447s 0 0 0 0 0 447s 0 0 1 0 0 447s 0 0 1 0 0 447s 0 0 0 0 0 447s 0 0 0 0 0]); 447s 447s assert (edge (in, "roberts"), E) 447s 447s [~, auto_thresh] = edge (in, "roberts"); 447s assert (auto_thresh, 0.6591, 1e-4) 447s 447s E45 = [0 0 0 0 0 447s 0 -0.5 -0.45 0 0 447s 0 0 0.50 0.45 0 447s 0 0 0 0 0 447s 0 0 0 0 0]; 447s E135 = [0 0 0 0 0 447s 0 0 -0.50 -0.45 0 447s 0 0.5 0.45 0 0 447s 0 0 0 0 0 447s 0 0 0 0 0]; 447s 447s [~, ~, erg45, erg135] = edge (in, "roberts"); 447s assert (erg45, E45) 447s assert (erg135, E135) 447s ***** xtest 447s ## The edge image is correct and Matlab compatible so those should 447s ## pass. However, the threshold values used to generate the edge 447s ## image are not the same as Matlab. 447s 447s in_8 = fspecial ("gaussian", [8 8], 2); 447s in_8 /= in_8(4,4); 447s in_8_uint8 = im2uint8 (in_8); 447s 447s ## Matlab changed their implementation of the Canny method in 447s ## release 2011a. We are compatible with their new implementation 447s ## but for testing purposes, this is the expected result for the 447s ## old implementation. 447s out_8_old = logical ([ 447s 0 0 0 0 0 0 0 0 447s 0 0 0 1 1 0 0 0 447s 0 0 1 0 0 1 0 0 447s 0 1 0 0 0 0 1 0 447s 0 1 0 0 0 0 1 0 447s 0 0 1 0 0 1 0 0 447s 0 0 0 1 1 0 0 0 447s 0 0 0 0 0 0 0 0]); 447s 447s out_8 = logical ([ 447s 0 0 0 0 0 0 0 0 447s 0 1 1 1 1 1 0 0 447s 0 1 0 0 0 1 0 0 447s 0 1 0 0 0 1 0 0 447s 0 1 0 0 0 1 0 0 447s 0 1 1 1 1 1 0 0 447s 0 0 0 0 0 0 0 0 447s 0 0 0 0 0 0 0 0]); 447s out_thresh = [0.34375 0.859375]; 447s 447s [obs_edge, obs_thresh] = edge (in_8, "Canny"); 447s assert (obs_edge, out_8) 447s assert (obs_thresh, out_thresh) 447s 447s [obs_edge_givethresh, obs_thresh_givethresh] ... 447s = edge (in_8, "Canny", out_thresh); 447s assert (obs_edge_givethresh, out_8) 447s assert (obs_thresh_givethresh, out_thresh) 447s 447s [obs_edge_uint8, obs_thresh_uint8] = edge (in_8_uint8, "Canny"); 447s assert (obs_edge_uint8, out_8) 447s assert (obs_thresh_uint8, out_thresh) 447s !!!!! known failure 447s ASSERT errors for: assert (obs_thresh,out_thresh) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.27112 0.34375 Abs err 0.072632 exceeds tol 0 by 0.07 447s (2) 0.67779 0.85938 Abs err 0.18158 exceeds tol 0 by 0.2 447s ***** xtest 447s ## The edge image is correct and Matlab compatible so those should 447s ## pass. However, the threshold values used to generate the edge 447s ## image are not the same as Matlab. 447s 447s in_9 = fspecial ("gaussian", [9 9], 2); 447s in_9 /= in_9(5,5); 447s 447s ## Matlab changed their implementation of the Canny method in 447s ## release 2011a. We are compatible with their new implementation 447s ## but for testing purposes, this is the expected result for the 447s ## old implementation. 447s out_9_old = logical ([ 447s 0 0 0 0 0 0 0 0 0 447s 0 0 0 0 0 0 0 0 0 447s 0 0 0 1 1 1 0 0 0 447s 0 0 1 0 0 0 1 0 0 447s 0 0 1 0 0 0 1 0 0 447s 0 0 1 0 0 0 1 0 0 447s 0 0 0 1 1 1 0 0 0 447s 0 0 0 0 0 0 0 0 0 447s 0 0 0 0 0 0 0 0 0]); 447s 447s out_9 = logical ([ 447s 0 0 0 0 0 0 0 0 0 447s 0 0 1 1 1 1 0 0 0 447s 0 1 1 0 0 1 1 0 0 447s 0 1 0 0 0 0 1 0 0 447s 0 1 0 0 0 0 1 0 0 447s 0 1 1 0 0 1 1 0 0 447s 0 0 1 1 1 1 0 0 0 447s 0 0 0 0 0 0 0 0 0 447s 0 0 0 0 0 0 0 0 0]); 447s out_thresh = [0.35 0.875]; 447s 447s [obs_edge, obs_thresh] = edge (in_9, "Canny"); 447s assert (obs_edge, out_9) 447s assert (obs_thresh, out_thresh) 447s 447s [obs_edge_givethresh, obs_thresh_givethresh] ... 447s = edge (in_9, "Canny", out_thresh); 447s assert (obs_edge_givethresh, out_9) 447s assert (obs_thresh_givethresh, out_thresh) 447s !!!!! known failure 447s ASSERT errors for: assert (obs_thresh,out_thresh) 447s 447s Location | Observed | Expected | Reason 447s (1) 0.261 0.35 Abs err 0.089001 exceeds tol 0 by 0.09 447s (2) 0.6525 0.875 Abs err 0.2225 exceeds tol 0 by 0.2 447s 24 tests, 22 passed, 2 known failures, 0 skipped 447s [inst/rgb2xyz.m] 447s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/rgb2xyz.m 447s ***** assert (rgb2xyz ([0 0 0]), [0, 0, 0], 1e-3) 447s ***** assert (rgb2xyz ([1 0 0]), [0.4125, 0.2127, 0.0193], 1e-3) 447s ***** assert (rgb2xyz ([1 1 0]), [0.7700, 0.9278, 0.1385], 1e-3) 447s ***** assert (rgb2xyz ([0 1 0]), [0.3576, 0.7152, 0.1192], 1e-3) 447s ***** assert (rgb2xyz ([0 1 1]), [0.5380, 0.7873, 1.0694], 1e-3) 447s ***** assert (rgb2xyz ([0 0 1]), [0.1804, 0.0722, 0.9502], 1e-3) 447s ***** assert (rgb2xyz ([1 0 1]), [0.5929, 0.2848, 0.9696], 1e-3) 447s ***** assert (rgb2xyz ([1 1 1]), [0.9505, 1.0000, 1.0888], 1e-3) 447s ***** assert (rgb2xyz ([0.5 0.5 0.5]), [0.2034, 0.2140, 0.2330], 1e-3) 447s ***** assert (rgb2xyz ([0.75 0 0]), [0.2155, 0.1111, 0.0101], 1e-3) 447s ***** assert (rgb2xyz ([0.5 0 0]), [0.0883, 0.0455, 0.0041], 1e-3) 447s ***** assert (rgb2xyz ([0.25 0 0]), [0.0210, 0.0108, 0.0010], 1e-3) 447s ***** assert (rgb2xyz ([1 0.5 0.5]), [0.5276, 0.3812, 0.2482], 1e-3) 447s ***** assert (rgb2xyz ([1.5 1 1]), [1.5845, 1.3269, 1.1185], 1e-3) 447s ***** test 447s rgb_map = rand (64, 3); 447s assert (xyz2rgb (rgb2xyz (rgb_map)), rgb_map, 2e-5); 447s ***** test 447s rgb_img = rand (64, 64, 3); 447s assert (xyz2rgb (rgb2xyz (rgb_img)), rgb_img, 2e-5); 447s ***** assert (rgb2xyz (sparse ([0 0 0])), [0 0 0], 1e-3) 447s ***** assert (rgb2xyz (sparse ([0 0 1])), [0.1804, 0.0722, 0.9502], 1e-3) 447s ***** assert (rgb2xyz (uint8([255 255 255])), [0.9505, 1.0000, 1.0888], 1e-3) 447s ***** assert (class (rgb2xyz (single([1 1 1]))), 'single') 447s ***** error rgb2xyz () 448s ***** error rgb2xyz (1,2) 448s ***** error rgb2xyz ({1}) 448s ***** error rgb2xyz (ones (2,2)) 448s ***** test 448s rgb = rand (16, 16, 3, 5); 448s xyz = zeros (size (rgb)); 448s for i = 1:5 448s xyz(:,:,:,i) = rgb2xyz (rgb(:,:,:,i)); 448s endfor 448s assert (rgb2xyz (rgb), xyz) 448s 25 tests, 25 passed, 0 known failure, 0 skipped 448s [inst/imadd.m] 448s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imadd.m 448s ***** assert (imadd (uint8 ([23 250]), uint8 ([23 250])), uint8 ([46 255])); # default to first class and truncate 448s ***** assert (imadd (uint8 ([23 250]), 10), uint8 ([33 255])); # works adding a scalar 448s ***** assert (imadd (uint8 ([23 250]), uint8 ([23 250]), "uint16"), uint16 ([46 500])); # defining output class works 448s ***** assert (imadd (logical ([ 1 0]), logical ([ 1 1])), double ([ 2 1])); # return double for two logical images 448s ***** assert (imadd (logical ([ 1 0]), logical ([ 1 1]), "logical"), logical ([ 1 1])); # this is matlab incompatible on purpose 448s ***** fail ("imadd (uint8 ([23 250]), uint16 ([23 250]))"); # input need to have same class 448s 6 tests, 6 passed, 0 known failure, 0 skipped 448s [inst/imcomplement.m] 448s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imcomplement.m 448s ***** assert (imcomplement (10), -9); 448s ***** assert (imcomplement (single (10)), single (-9)); 448s ***** assert (imcomplement (0.2), 0.8); 448s ***** assert (imcomplement (uint8 (0)), uint8 (255)); 448s ***** assert (imcomplement (uint8 (1)), uint8 (254)); 448s ***** assert (imcomplement (uint16 (0)), uint16 (65535)); 448s ***** assert (imcomplement (uint16 (1)), uint16 (65534)); 448s ***** assert (imcomplement (int8 (-128)), int8 ( 127)); 448s ***** assert (imcomplement (int8 ( 127)), int8 (-128)); 448s ***** assert (imcomplement (int16 (-1)), int16 ( 0)); 448s ***** assert (imcomplement (int16 ( 0)), int16 (-1)); 448s ***** assert (imcomplement (int16 ( 1)), int16 (-2)); 448s ***** assert (imcomplement ([true false true]), [false true false]) 448s ***** error imcomplement ("not an image") 448s 14 tests, 14 passed, 0 known failure, 0 skipped 448s [inst/fftconvn.m] 448s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/fftconvn.m 448s ***** function test_shapes (a, b, precision) 448s shapes = {"valid", "same", "full"}; 448s for i = 1:3 448s shape = shapes{i}; 448s assert (fftconvn (a, b, shape), convn (a, b, shape), precision); 448s endfor 448s assert (fftconvn (a, b), fftconvn (a, b, "full")); 448s ***** endfunction 448s ***** test test_shapes (randi (255, 100), randi (255, 10), 0.1) 448s ***** test test_shapes (randi (255, 100, 100), randi (255, 10, 10), 0.1) 448s ***** test test_shapes (randi (255, 100, 100, 100), randi (255, 10, 10, 10), 0.1) 450s ***** test test_shapes (randi (255, 100, 50, 20), randi (255, 10, 7), 0.1) 450s ***** test test_shapes (randi (255, 100, 50, 20), randi (255, 10), 0.1) 450s ***** test 450s for s = [55 56 57 58] 450s test_shapes (randi (255, 200, 200), randi (255, s, s), 0.1) 450s endfor 451s ***** test 451s for s = [203 204 205 206] 451s test_shapes (randi (255, s, s), randi (255, 52, 52), 0.1) 451s endfor 451s ***** test test_shapes (randi (255, 100, 100, "uint8"), randi (255, 10, 10, "uint8"), 0.1) 451s ***** test test_shapes (randi (255, 100, 100, "uint8"), randi (255, 10, 10), 0.1) 451s ***** test test_shapes (randi (255, 100, 100, "single"), randi (255, 10, 10, "single"), 0.9) 451s ***** test test_shapes (randi (255, 100, 100, "single"), randi (255, 10, 10), 0.9) 451s 11 tests, 11 passed, 0 known failure, 0 skipped 451s [inst/imapplymatrix.m] 451s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imapplymatrix.m 451s ***** error id=Octave:invalid-fun-call imapplymatrix () 451s ***** error id=Octave:invalid-fun-call imapplymatrix (42) 452s ***** error id=Octave:invalid-input-arg imapplymatrix (ones (2, 2, 2), 42) 452s ***** error id=Octave:invalid-input-arg imapplymatrix ([], ones (2, 2)) 452s ***** error id=Octave:invalid-input-arg imapplymatrix (ones (0, 2), ones (2, 2)) 452s ***** error id=Octave:invalid-input-arg imapplymatrix (ones (2, 0), ones (2, 2)) 452s ***** error id=Octave:invalid-input-arg imapplymatrix (4, 2, [2, 2]) 452s ***** error id=Octave:invalid-input-arg imapplymatrix (4, 2, [2, 2], "uint8") 452s ***** error id=Octave:invalid-input-arg imapplymatrix (4, 2, 0, 666) 452s ***** assert (imapplymatrix ([], []), []) 452s ***** assert (imapplymatrix ([], [], "uint16"), uint16 ([])) 452s ***** assert (imapplymatrix (1, 10, []), 10) 452s ***** assert (imapplymatrix (1, 10, ones (0, 5)), 10) 452s ***** assert (imapplymatrix (1, 10, ones (5, 0)), 10) 452s ***** assert (imapplymatrix (ones (0), ones (0), 3), []) 452s ***** assert (imapplymatrix (ones (0), ones (4, 0), 3), zeros (4, 0)) 452s ***** assert (imapplymatrix (ones (0), ones (0, 4), 3), zeros (0, 4)) 452s ***** assert (imapplymatrix (ones (2, 0), ones (0, 4), 3), zeros (0, 4)) 452s ***** assert (imapplymatrix (ones (0, 2), ones (0, 4), 3), zeros (0, 4)) 452s ***** assert (imapplymatrix (ones (0, 2), ones (0, 4, 0), 3), zeros (0, 4, 0)) 452s ***** assert (imapplymatrix("a", ones(2, 2)), nan (2, 2)) 452s ***** assert (imapplymatrix("abc", ones(2, 2)), nan (2, 2)) 452s ***** assert (imapplymatrix (1, 10), 10) 452s ***** assert (imapplymatrix (1, 10, 3), 13) 452s ***** assert (imapplymatrix (ones (1), uint8 (10), 3), uint8 (13)) 452s ***** assert (imapplymatrix (uint8 (ones (1)), 10, 3), double (13)) 452s ***** assert (imapplymatrix (uint8 (ones (1)), uint8 (10), 3), uint8 (13)) 452s ***** assert (imapplymatrix (2.6 * ones (1), uint8 (10), 4.7), uint8 (31)) 452s ***** assert (imapplymatrix (42, ones (1, 2)), 42 * ones (1, 2)) 452s ***** assert (imapplymatrix (42, ones (2, 1)), 42 * ones (2, 1)) 452s ***** assert (imapplymatrix (42, ones (2, 2)), 42 * ones (2, 2)) 452s ***** assert (imapplymatrix (42, ones (2, 2), 0.5), 42.5 * ones (2, 2)) 452s ***** assert (imapplymatrix ([4, 2], ones (2, 2, 2), 0.5), 6.5 * ones (2, 2)) 452s ***** assert (imapplymatrix ([4, 2; 452s 4, 2], ones (2, 2, 2), [0.5, 0.5]), 6.5 * ones (2, 2, 2)) 452s ***** assert (imapplymatrix ([4, 2; 452s 4, 2], ones (2, 2, 2), [0.5; 0.5]), 6.5 * ones (2, 2, 2)) 452s ***** assert (imapplymatrix ([1, 2, 3], ones (2, 2, 3)), 6 * ones (2, 2, 1)) 452s ***** assert (imapplymatrix ([1, 2, 3], ones (2, 2, 3), 1), 7 * ones (2, 2, 1)) 452s ***** test 452s expected = zeros (2, 2, 2, "uint8"); 452s expected(:, :, 1) = 7 * ones (2, 2); 452s expected(:, :, 2) = 16 * ones (2, 2); 452s I = uint8 (ones (2, 2, 3)); 452s assert (imapplymatrix ([1, 2, 3 452s 4, 5, 6], I, [1, 1]), expected) 452s ***** test 452s expected = zeros (2, 2, 2, 2, "uint16"); 452s expected(:, :, 1, 1) = 7 * ones (2, 2); 452s expected(:, :, 2, 1) = 16 * ones (2, 2); 452s expected(:, :, 1, 2) = 13 * ones (2, 2); 452s expected(:, :, 2, 2) = 31 * ones (2, 2); 452s I(:, :, :, 1) = uint16 (ones (2, 2, 3)); 452s I(:, :, :, 2) = 2 * uint16 (ones (2, 2, 3)); 452s assert (imapplymatrix ([1, 2, 3; 452s 4, 5, 6], I, [1, 1]), expected) 452s 39 tests, 39 passed, 0 known failure, 0 skipped 452s [inst/imclearborder.m] 452s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imclearborder.m 452s ***** test 452s a = logical ([ 452s 0 1 0 0 1 0 0 0 0 1 452s 1 0 0 0 0 1 0 0 0 0 452s 0 1 0 0 0 0 0 0 0 0 452s 1 0 1 0 1 0 1 0 0 1 452s 0 0 0 0 0 0 0 1 1 0 452s 0 0 1 0 0 1 0 1 0 0 452s 0 1 0 1 0 1 1 0 0 0 452s 0 0 0 1 0 0 0 0 0 0 452s 0 0 0 1 0 1 1 0 0 0 452s 0 0 0 1 1 0 0 0 1 0]); 452s 452s a4 = logical ([ 452s 0 0 0 0 0 0 0 0 0 0 452s 0 0 0 0 0 1 0 0 0 0 452s 0 1 0 0 0 0 0 0 0 0 452s 0 0 1 0 1 0 1 0 0 0 452s 0 0 0 0 0 0 0 1 1 0 452s 0 0 1 0 0 1 0 1 0 0 452s 0 1 0 0 0 1 1 0 0 0 452s 0 0 0 0 0 0 0 0 0 0 452s 0 0 0 0 0 1 1 0 0 0 452s 0 0 0 0 0 0 0 0 0 0]); 452s 452s a8 = logical ([ 452s 0 0 0 0 0 0 0 0 0 0 452s 0 0 0 0 0 0 0 0 0 0 452s 0 0 0 0 0 0 0 0 0 0 452s 0 0 0 0 1 0 0 0 0 0 452s 0 0 0 0 0 0 0 0 0 0 452s 0 0 0 0 0 0 0 0 0 0 452s 0 0 0 0 0 0 0 0 0 0 452s 0 0 0 0 0 0 0 0 0 0 452s 0 0 0 0 0 0 0 0 0 0 452s 0 0 0 0 0 0 0 0 0 0]); 452s 452s assert (imclearborder (a, 4), a4) 452s assert (imclearborder (a, [0 1 0; 1 1 1; 0 1 0]), a4) 452s assert (imclearborder (a), a8) 452s assert (imclearborder (a, 8), a8) 452s assert (imclearborder (a, ones (3)), a8) 452s ***** test 452s a = false (5, 5, 3); 452s a(2:4,2:4,:) = true; 452s assert (imclearborder (a, 4), a) 452s 452s a(1,2) = true; 452s a4 = a; 452s a4(:,:,1) = false; 452s assert (imclearborder (a, 4), a4) 452s 2 tests, 2 passed, 0 known failure, 0 skipped 452s [inst/normxcorr2.m] 452s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/normxcorr2.m 452s ***** function offsets = get_max_offsets (c) 452s l = find (c == max (c(:))); 452s offsets = nthargout (1:ndims (c), @ind2sub, size (c), l); 452s ***** endfunction 452s ***** test 452s row_shift = 18; 452s col_shift = 20; 452s a = randi (255, 30, 30); 452s b = a(row_shift-10:row_shift, col_shift-7:col_shift); 452s c = normxcorr2 (b, a); 452s ## should return exact coordinates 452s assert (get_max_offsets (c), {row_shift col_shift}); 452s 452s ## Even with some small noise, should return exact coordinates 452s b = imnoise (b, "gaussian"); 452s c = normxcorr2 (b, a); 452s assert (get_max_offsets (c), {row_shift col_shift}); 452s ***** xtest 452s a = rand (10, 10); 452s c = normxcorr2 (a(5:7, 6:9), a); 452s assert (c(7, 9), 1, eps*100); 452s ***** test 452s a = 10 * randn (100, 100); 452s auto = normxcorr2 (a, a); 452s add_in = normxcorr2 (a, -a); 452s assert (auto, -add_in); 452s ***** test 452s a = 10 * randn (50, 50); 452s b = 10 * randn (100, 100); 452s do 452s scale = 100 * rand (); 452s until (scale != 0) 452s 452s assert (max ((normxcorr2 (scale*a,b) - normxcorr2 (a,b))(:)), 0, 1e-10); 452s assert (max ((normxcorr2 (a,scale*b) - normxcorr2 (a,b))(:)), 0, 1e-10); 452s 452s a_shift1 = a + scale * ones (size (a)); 452s b_shift1 = b + scale * ones (size (b)); 452s a_shift2 = a - scale * ones (size (a)); 452s b_shift2 = b - scale * ones (size (b)); 452s assert (max ((normxcorr2 (a_shift1,b) - normxcorr2 (a,b))(:)), 0, 1e-10); 452s assert (max ((normxcorr2 (a,b_shift1) - normxcorr2 (a,b))(:)), 0, 1e-10); 452s assert (max ((normxcorr2 (a_shift2,b) - normxcorr2 (a,b))(:)), 0, 1e-10); 452s assert (max ((normxcorr2 (a,b_shift2) - normxcorr2 (a,b))(:)), 0, 1e-10); 452s ***** test 452s a = randi (100, 15, 15, 15); 452s c = normxcorr2 (a(5:10, 2:6, 3:7), a); 452s assert (get_max_offsets (c), {10 6 7}); 452s 452s a = randi (100, 15, 15, 15); 452s c = normxcorr2 (a(5:10, 2:6, 1:1), a); 452s assert (get_max_offsets (c), {10 6 1}); 452s ***** warning normxcorr2 (rand (20), rand (5)); 452s ***** error normxcorr2 (rand (5)); 452s ***** error normxcorr2 (rand (5), rand (20), 2); 452s ***** test 452s a = [ 252 168 50 1 59; 452s 114 0 0 0 0] ./ 255; 452s b = [ 1 171 255 255 255 255 240 71 131 254 255 255 255; 452s 0 109 254 255 255 233 59 0 131 254 255 255 255; 452s 76 13 195 253 194 34 0 19 217 255 255 255 255; 452s 110 0 0 0 0 0 3 181 255 255 255 255 255; 452s 153 0 0 0 0 2 154 254 255 255 255 255 255]./255; 452s c = normxcorr2 (a, b); 452s assert (max (imag (c(:))), 0); 452s ***** test 452s img = [1 1 1 0]; 452s t = [1 1 0]; 452s c = normxcorr2 (t, img); 452s assert (c(3), 0) 452s 10 tests, 10 passed, 0 known failure, 0 skipped 452s [inst/imremap.m] 452s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imremap.m 452s ***** demo 452s ## Generate a synthetic image and show it 452s I = tril(ones(100)) + abs(rand(100)); I(I>1) = 1; 452s I(20:30, 20:30) = !I(20:30, 20:30); 452s I(70:80, 70:80) = !I(70:80, 70:80); 452s figure, imshow(I); 452s ## Resize the image to the double size and show it 452s [XI, YI] = meshgrid(linspace(1, 100, 200)); 452s warped = imremap(I, XI, YI); 452s figure, imshow(warped); 452s ***** demo 452s ## Generate a synthetic image and show it 452s I = tril(ones(100)) + abs(rand(100)); I(I>1) = 1; 452s I(20:30, 20:30) = !I(20:30, 20:30); 452s I(70:80, 70:80) = !I(70:80, 70:80); 452s figure, imshow(I); 452s ## Rotate the image around (0, 0) by -0.4 radians and show it 452s [XI, YI] = meshgrid(1:100); 452s R = [cos(-0.4) sin(-0.4); -sin(-0.4) cos(-0.4)]; 452s RXY = [XI(:), YI(:)] * R; 452s XI = reshape(RXY(:,1), [100, 100]); YI = reshape(RXY(:,2), [100, 100]); 452s warped = imremap(I, XI, YI); 452s figure, imshow(warped); 452s ***** test 452s 452s I = repmat([ 1 2 3 4 ], [4, 1]); 452s xi = [-6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11]; 452s exp_rep = [ 1 1 1 1 1 1 1 1 2 3 4 4 4 4 4 4 4 4]; 452s exp_sym = [ 2 3 4 4 3 2 1 1 2 3 4 4 3 2 1 1 2 3]; 452s exp_ref = [ 2 1 2 3 4 3 2 1 2 3 4 3 2 1 2 3 4 3]; 452s exp_cir = [ 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3]; 452s yi = 2.5; 452s 452s # rectilinear grid codepath 452s assert (imremap (I, xi, yi, "bicubic", "replicate"), exp_rep); 452s assert (imremap (I, xi, yi, "bicubic", "symmetric"), exp_sym); 452s assert (imremap (I, xi, yi, "bicubic", "reflect"), exp_ref); 452s assert (imremap (I, xi, yi, "bicubic", "circular"), exp_cir); 452s 452s # meshgrid codepath 452s XI = [xi/2; xi; xi/2]; % cannot be reduced to vector, we will assert only middle row 452s YI = repmat ([1.5; yi; 3.5], [1, length(xi)]); 452s assert (imremap (I, XI, YI, "bicubic", "replicate")(2,:), exp_rep); 452s assert (imremap (I, XI, YI, "bicubic", "symmetric")(2,:), exp_sym); 452s assert (imremap (I, XI, YI, "bicubic", "reflect")(2,:), exp_ref); 452s assert (imremap (I, XI, YI, "bicubic", "circular")(2,:), exp_cir); 452s 1 test, 1 passed, 0 known failure, 0 skipped 452s [inst/poly2mask.m] 452s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/poly2mask.m 452s ***** demo 452s s = [0:pi/4:2*pi]; 452s x = cos (s) * 90 + 101; 452s y = sin (s) * 90 + 101; 452s bw = poly2mask(x, y, 200, 200); 452s imshow (bw); 452s ***** demo 452s s = [0:2*pi/5:pi*4]; 452s s = s ([1, 3, 5, 2, 4, 6]); 452s x = cos (s) * 90 + 101; 452s y = sin (s) * 90 + 101; 452s bw = poly2mask (x, y, 200, 200); 452s imshow (bw); 452s ***** # Convex polygons 452s ***** shared xs, ys, Rs, xt, yt, Rt 452s xs=[3,3,10,10]; 452s ys=[4,12,12,4]; 452s Rs=zeros(16,14); 452s Rs(5:12,4:10)=1; 452s Rs=logical(Rs); 452s xt=[1,4,7]; 452s yt=[1,4,1]; 452s Rt=[0,0,0,0,0,0,0; 452s 0,0,1,1,1,1,0; 452s 0,0,0,1,1,0,0; 452s 0,0,0,1,0,0,0; 452s 0,0,0,0,0,0,0]; 452s Rt=logical(Rt); 452s ***** assert(poly2mask(xs,ys,16,14),Rs); # rectangle 452s ***** assert(poly2mask(xs,ys,8,7),Rs(1:8,1:7)); # clipped 452s ***** assert(poly2mask(xs-7,ys-8,8,7),Rs(9:16,8:14)); # more clipping 452s ***** assert(poly2mask(xt,yt,5,7),Rt); # triangle 452s ***** assert(poly2mask(xt,yt,3,3),Rt(1:3,1:3)); # clipped 452s ***** # Concave polygons 452s ***** test 452s x=[3,3,5,5,8,8,10,10]; 452s y=[4,12,12,8,8,11,11,4]; 452s R=zeros(16,14); 452s R(5:12,4:5)=1; 452s R(5:8,6:8)=1; 452s R(5:11,9:10)=1; 452s R=logical(R); 452s assert(poly2mask(x,y,16,14), R); 452s ***** # Complex polygons 452s ***** test 452s x=[1,5,1,5]; 452s y=[1,1,4,4]; 452s R=[0,0,0,0,0,0; 452s 0,0,1,1,0,0; 452s 0,0,1,1,0,0; 452s 0,1,1,1,1,0; 452s 0,0,0,0,0,0]; 452s R=logical(R); 452s assert(poly2mask(x,y,5,6), R); 452s 7 tests, 7 passed, 0 known failure, 0 skipped 452s [inst/rangefilt.m] 452s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/rangefilt.m 452s ***** test 452s im = rangefilt (ones (5)); 452s assert (im, zeros (5)); 452s ***** test 452s A = zeros (3,3); 452s B = ones (3,3); 452s C = [1 1 1; 2 2 2; 3 3 3]; 452s D = C'; 452s E = ones (3,3); 452s E(2,2) = 2; 452s F = 3 .* ones (3,3); 452s F(2,2) = 1; 452s G = [-1 2 7; -5 2 8; -7 pi 9]; 452s H = [5 2 8; 1 -3 1; 5 1 0]; 452s A_out = [0 0 0; 0 0 0; 0 0 0]; 452s B_out = [0 0 0; 0 0 0; 0 0 0]; 452s C_out = [1 1 1; 2 2 2; 1 1 1]; 452s D_out = [1 2 1; 1 2 1; 1 2 1]; 452s E_out = [1 1 1; 1 1 1; 1 1 1]; 452s F_out = [2 2 2; 2 2 2; 2 2 2]; 452s G_out = [7 13 6; 7+pi 16 7; 7+pi 16 7]; 452s H_out = [8 11 11; 8 11 11; 8 8 4]; 452s assert (rangefilt (A), A_out) 452s assert (rangefilt (B), B_out) 452s assert (rangefilt (C), C_out) 452s assert (rangefilt (D), D_out) 452s assert (rangefilt (E), E_out) 452s assert (rangefilt (F), F_out) 452s assert (rangefilt (G), G_out, eps) 452s assert (rangefilt (H), H_out) 452s 2 tests, 2 passed, 0 known failure, 0 skipped 452s [inst/qtgetblk.m] 452s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/qtgetblk.m 452s ***** demo 452s [vals,r,c]=qtgetblk(eye(4),qtdecomp(eye(4)),2) 452s % Returns 2 blocks, at [1,3] and [3,1] (2*2 zeros blocks) 452s ***** shared A,S 452s A=[ 1, 4, 2, 5,54,55,61,62; 452s 3, 6, 3, 1,58,53,67,65; 452s 3, 6, 3, 1,58,53,67,65; 452s 3, 6, 3, 1,58,53,67,65; 452s 23,42,42,42,99,99,99,99; 452s 27,42,42,42,99,99,99,99; 452s 23,22,26,25,99,99,99,99; 452s 22,22,24,22,99,99,99,99]; 452s S=qtdecomp(A,10); 452s ***** test 452s [va]=qtgetblk(A,S,8); 452s [vb,r,c]=qtgetblk(A,S,8); 452s [vc,i]=qtgetblk(A,S,8); 452s assert(va, vb); 452s assert(va, vc); 452s assert(i,[]); 452s assert(r,[]); 452s assert(c,[]); 452s R=[]; 452s assert(va,R); 452s ***** test 452s [va]=qtgetblk(A,S,4); 452s [vb,r,c]=qtgetblk(A,S,4); 452s [vc,i]=qtgetblk(A,S,4); 452s assert(va, vb); 452s assert(va, vc); 452s assert(i, find(full(S)==4)); 452s assert(r,[1;5]); 452s assert(c,[1;5]); 452s R=zeros(4,4,2); 452s R(:,:,1)=A(1:4,1:4); 452s R(:,:,2)=A(5:8,5:8); 452s assert(va,R); 452s ***** test 452s [va]=qtgetblk(A,S,2); 452s [vb,r,c]=qtgetblk(A,S,2); 452s [vc,i]=qtgetblk(A,S,2); 452s assert(va, vb); 452s assert(va, vc); 452s assert(i, find(full(S)==2)); 452s assert(r,[7;5;7;1;3;1;3]); 452s assert(c,[1;3;3;5;5;7;7]); 452s R=zeros(2,2,7); 452s R(:,:,1)=A(7:8,1:2); 452s R(:,:,2)=A(5:6,3:4); 452s R(:,:,3)=A(7:8,3:4); 452s R(:,:,4)=A(1:2,5:6); 452s R(:,:,5)=A(3:4,5:6); 452s R(:,:,6)=A(1:2,7:8); 452s R(:,:,7)=A(3:4,7:8); 452s assert(va,R); 452s 3 tests, 3 passed, 0 known failure, 0 skipped 452s [inst/imcast.m] 452s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imcast.m 452s ***** test 452s im = randi ([0 255], 40, "uint8"); 452s assert (imcast (im, "uint8"), im2uint8 (im)) 452s assert (imcast (im, "uint16"), im2uint16 (im)) 452s assert (imcast (im, "single"), im2single (im)) 452s assert (imcast (im, "uint8", "indexed"), im2uint8 (im, "indexed")) 452s assert (imcast (im, "uint16", "indexed"), im2uint16 (im, "indexed")) 452s assert (imcast (im, "single", "indexed"), im2single (im, "indexed")) 452s ***** test 452s im = randi ([1 256], 40, "double"); 452s assert (imcast (im, "uint8"), im2uint8 (im)) 452s assert (imcast (im, "uint8", "indexed"), im2uint8 (im, "indexed")) 452s assert (imcast (im, "single", "indexed"), im2single (im, "indexed")) 452s ***** test 452s im = randi ([0 65535], 40, "uint16"); 452s assert (imcast (im, "uint8"), im2uint8 (im)) 452s assert (imcast (im, "single"), im2single (im)) 452s assert (imcast (im, "single", "indexed"), im2single (im, "indexed")) 452s ***** test 452s im = randi ([1 255], 40, "double"); 452s assert (imcast (im, "uint8", "indexed"), im2uint8 (im, "indexed")) 452s assert (imcast (im, "single", "indexed"), im2single (im, "indexed")) 452s ***** test 452s im = rand (40); 452s assert (imcast (im, "uint8"), im2uint8 (im)) 452s ***** error imcast (randi (127, 40, "int8"), "uint8") 452s ***** error imcast (randi (255, 40, "uint8"), "uint32") 452s ***** error imcast (randi (255, 40, "uint8"), "not a class") 452s ***** error imcast (randi ([0 65535], 40, "uint16"), "uint8", "indexed") 453s ***** assert (imcast ([0 1 .2; 2 -0 Inf], "logical"), logical ([0 1 1; 1 0 1])) 453s 10 tests, 10 passed, 0 known failure, 0 skipped 453s [inst/houghpeaks.m] 453s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/houghpeaks.m 453s ***** shared im1 453s im1 = magic (5); 453s ***** error houghpeaks () 453s ***** error houghpeaks (1, 2, 3, 4, 5, 6, 7) 453s ***** assert (houghpeaks (im1)) 453s ***** assert (houghpeaks (im1, 2)) 453s ***** assert (houghpeaks (im1, "Threshold", 10)) 453s ***** assert (houghpeaks (im1, 2, "Threshold", 10)) 453s ***** assert (houghpeaks (im1, "NHoodSize", [3 3])) 453s ***** assert (houghpeaks (im1, 2, "NHoodSize", [3 3])) 453s ***** assert (houghpeaks (im1, "Threshold", 10, "NHoodSize", [3 3])) 453s ***** assert (houghpeaks (im1, "NHoodSize", [3 3], "Threshold", 10)) 453s ***** assert (houghpeaks (im1, 2, "Threshold", 10, "NHoodSize", [3 3])) 453s ***** assert (houghpeaks (im1, 2, "NHoodSize", [3 3], "Threshold", 10)) 453s ***** error houghpeaks (ones (5, 5, 5)) 453s ***** error houghpeaks ("hello") 453s ***** error houghpeaks (im1, 1.5) 453s ***** error houghpeaks (im1, -2) 453s ***** error houghpeaks (im1, [1 1]) 453s ***** error houghpeaks (im1, "Threshold", "hello") 453s ***** error houghpeaks (im1, "Threshold", -2) 453s ***** error houghpeaks (im1, "Threshold", [1 1]) 453s ***** error houghpeaks (im1, "NHoodSize", [3 3 3]) 453s ***** error houghpeaks (im1, "NHoodSize", "hello") 453s ***** error houghpeaks (im1, "NHoodSize", [-3 -3]) 453s ***** error houghpeaks (im1, "NHoodSize", [4 4]) 453s ***** test 453s out = houghpeaks (im1); 453s assert (size (out), [1 2]) 453s assert (class (out), "double") 453s ***** test 453s out = houghpeaks (im1, 3); 453s assert (size (out), [3 2]) 453s ***** test 453s expected = [5 3; 1 2; 3 5; 1 5]; 453s assert (houghpeaks (im1, 4), expected) # this checks for undocumented nhood >=3 453s assert (houghpeaks (im1, 4, "nhoodsize", [3,3]), expected) 453s assert (houghpeaks (im1, 4, "threshold", 10), expected) 453s assert (houghpeaks (im1, 4, "threshold", 24), expected(1:2,:)) 453s ***** test 453s im2 = magic (7); 453s expected_a = [7 4; 1 3; 3 1; 5 6]; 453s expected_b = [7 4; 1 3; 4 7; 1 7]; 453s assert (houghpeaks (im2, 4), expected_a) 453s assert (houghpeaks (im2, 4, "nhoodsize", [5,5]), expected_b) 453s assert (houghpeaks (im2, 4, "threshold", 24), expected_a) 453s assert (houghpeaks (im2, 4, "threshold", 47), expected_a(1:2,:)) 453s ***** test 453s im3 = magic (99); 453s expected_a = [99 50; 1 49; 3 47; 5 45; 7 43; 9 41; 11 39]; 453s expected_b = [99 50; 1 49; 7 43; 13 37; 19 31; 25 25; 31 19]; 453s expected_c = [99 50; 1 49; 2 48; 3 47; 4 46; 5 45; 6 44]; 453s assert (houghpeaks (im3, 7), expected_a) 453s assert (houghpeaks (im3, 7, "nhoodsize", [11 11]), expected_b) 453s assert (houghpeaks (im3, 7, "nhoodsize", [11 1]), expected_c) 453s assert (houghpeaks (im3, 7, "nhoodsize", [11 1]), expected_c) 453s ***** test 453s im4 = double (im2uint16 (peaks ())); 453s expected_a = [37 15; 39 15; 41 15; 15 16; 17 16]; 453s expected_b = [37 15; 15 16; 26 21; 37 26; 20 32]; 453s expected_c = [37 15; 15 16; 35 16; 15 17; 35 17]; 453s expected_d = [37 15; 38 15; 39 15; 40 15; 41 15]; 453s assert (houghpeaks (im4, 5), expected_a) 453s assert (houghpeaks (im4, 5, "nhoodsize", [21 21]), expected_b) 453s assert (houghpeaks (im4, 5, "nhoodsize", [21 1]), expected_c) 453s assert (houghpeaks (im4, 5, "nhoodsize", [1 21]), expected_d) 453s ***** test # tests use of anti-symmetry in H 453s im5 = zeros (6,4); im5(2,1) = 1; im5(5,4) = 2; 453s expected = [5 4; 2 1]; 453s assert (houghpeaks (im5, 2, "nhoodsize", [1 1]), expected); 453s assert (houghpeaks (im5, 2, "nhoodsize", [3 3]), expected(1,:)); 453s ***** test #test use of anti-symmetry in the other direction 453s im6 = magic (100); 453s expected_a = [1 1; 100 99; 1 4; 100 95; 1 8; 100 91; 1 12]; 453s expected_b = [1 1; 100 95; 1 8; 100 87; 1 16; 100 79; 1 24]; 453s expected_c = [1 1; 100 99; 100 98; 1 4; 1 5; 100 95; 100 94]; 453s expected_d = expected_b; 453s assert (houghpeaks (im6, 7), expected_a) 453s assert (houghpeaks (im6, 7, "nhoodsize", [11 11]), expected_b) 453s assert (houghpeaks (im6, 7, "nhoodsize", [11 1]), expected_c) 453s assert (houghpeaks (im6, 7, "nhoodsize", [1 11]), expected_d) 453s ***** test # test undocumented Matlab default value for nhoodsize 453s im = zeros (723, 180); 453s im(585,136) = 8; 453s im(593,135) = 7; 453s im(310,46) = 6; 453s expected = [585, 136; 310, 46]; 453s assert (houghpeaks (im, 2), expected) 453s ***** test 453s I = max (0, phantom ()); 453s H = hough (I); 453s P0 = [585, 136; 310, 46; 595, 136; 522, 104; 373, 46]; 453s assert (houghpeaks (H, 5), P0) 453s ***** demo 453s I = checkerboard (30, 1, 1); 453s I = imnoise(I, "salt & pepper", 0.2); 453s figure, imshow (I); 453s title ("noisy image with some lines"); 453s BW = edge (I, "canny"); 453s figure, imshow(BW); 453s title ("edge image"); 453s [H, theta, rho] = hough (BW); 453s figure, imshow (mat2gray (H), [],"XData",theta,"YData",rho); 453s title ("Hough transform of edge image \n 2 peaks marked"); 453s axis on; xlabel("theta [degrees]"); ylabel("rho [pixels]"); 453s peaks = houghpeaks (H, 2); 453s peaks_rho = rho(peaks(:,1)) 453s peaks_theta = theta(peaks(:,2)) 453s hold on; 453s plot(peaks_theta,peaks_rho,"sr"); 453s hold off; 453s 34 tests, 34 passed, 0 known failure, 0 skipped 453s [inst/impyramid.m] 453s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/impyramid.m 453s ***** xtest 453s ## bug #51979 (results are not matlab compatible) 453s in = [116 227 153 69 146 194 59 130 139 106 453s 2 47 137 249 90 75 16 24 158 44 453s 155 68 46 84 166 156 69 204 32 152 453s 71 221 137 230 210 153 192 115 30 118 453s 107 143 108 52 51 73 101 21 175 90 453s 54 158 143 77 26 168 113 229 165 225 453s 9 47 133 135 130 207 236 43 19 73]; 453s 453s reduced = [ 453s 114 139 131 103 111 453s 97 122 141 111 100 453s 103 123 112 123 122 453s 47 107 134 153 94]; 453s 453s expanded = [ 453s 115 154 185 178 150 122 105 116 138 159 158 117 78 86 112 129 133 120 103 453s 69 98 128 141 146 152 152 139 125 127 121 87 55 58 81 113 131 112 84 453s 40 54 74 100 131 167 184 157 119 104 92 64 41 44 66 100 121 103 74 453s 76 69 65 75 97 130 153 148 131 122 108 80 61 79 103 105 98 97 98 453s 120 105 88 77 78 96 121 143 155 154 140 112 98 124 143 109 74 91 123 453s 117 129 134 119 107 125 153 173 180 172 156 143 138 146 140 96 60 83 122 453s 99 139 170 157 139 156 181 188 180 164 151 154 156 140 112 81 65 84 110 453s 101 136 163 153 133 132 138 136 130 122 120 130 133 108 82 86 99 104 104 453s 103 126 143 136 116 97 81 73 73 82 94 105 105 87 78 108 138 133 116 453s 90 116 139 139 122 96 69 52 53 80 109 114 111 116 128 148 163 164 160 453s 66 99 131 140 131 109 83 62 62 102 142 144 138 154 169 164 157 169 184 453s 41 68 99 121 130 122 107 92 95 133 173 182 172 156 135 114 105 121 142 453s 21 38 64 98 124 131 127 123 129 160 194 212 199 144 82 52 48 65 85]; 453s 453s assert (impyramid (uint8 (in), "reduce"), uint8 (reduced)) 453s assert (impyramid (uint8 (in), "expand"), uint8 (expanded)) 453s !!!!! known failure 453s ASSERT errors for: assert (impyramid (uint8 (in), "reduce"),uint8 (reduced)) 453s 453s Location | Observed | Expected | Reason 453s (2,4) 110 111 Abs err 0 exceeds tol 0 by 0 453s (2,5) 99 100 Abs err 0 exceeds tol 0 by 0 453s (3,5) 121 122 Abs err 0 exceeds tol 0 by 0 453s ***** test 453s in = randi ([0 255], [40 39 3 5], "uint8"); 453s red = impyramid (in, "reduce"); 453s for p = 1:3 453s for n = 1:5 453s assert (red(:,:,p,n), impyramid (in(:,:,p,n), "reduce")) 453s endfor 453s endfor 453s 453s exp = impyramid (in, "expand"); 453s for p = 1:3 453s for n = 1:5 453s assert (exp(:,:,p,n), impyramid (in(:,:,p,n), "expand")) 453s endfor 453s endfor 453s ***** xtest 453s ## bug #51979 (results are not matlab compatible) 453s in = repmat (uint8 (255), [10 10]); 453s assert (impyramid (in, "reduce"), repmat (uint8 (255), [5 5])) 453s assert (impyramid (in, "expand"), repmat (uint8 (255), [19 19])) 453s !!!!! known failure 453s ASSERT errors for: assert (impyramid (in, "expand"),repmat (uint8 (255), [19, 19])) 453s 453s Location | Observed | Expected | Reason 453s (1,1) 195 255 Abs err 0 exceeds tol 0 by 0 453s (2,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (3,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (4,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (5,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (6,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (7,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (8,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (9,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (10,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (11,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (12,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (13,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (14,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (15,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (16,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (17,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (18,1) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,1) 195 255 Abs err 0 exceeds tol 0 by 0 453s (1,2) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,2) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,3) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,3) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,4) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,4) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,5) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,5) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,6) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,6) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,7) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,7) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,8) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,8) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,9) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,9) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,10) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,10) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,11) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,11) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,12) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,12) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,13) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,13) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,14) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,14) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,15) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,15) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,16) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,16) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,17) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,17) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,18) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,18) 223 255 Abs err 0 exceeds tol 0 by 0 453s (1,19) 195 255 Abs err 0 exceeds tol 0 by 0 453s (2,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (3,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (4,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (5,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (6,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (7,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (8,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (9,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (10,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (11,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (12,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (13,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (14,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (15,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (16,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (17,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (18,19) 223 255 Abs err 0 exceeds tol 0 by 0 453s (19,19) 195 255 Abs err 0 exceeds tol 0 by 0 453s ***** xtest 453s ## bug #51979 (results are not matlab compatible) 453s in = logical ([ 453s 1 0 1 1 0 0 1 1 0 0 453s 1 1 0 0 0 1 0 0 1 0 453s 0 1 1 0 1 1 1 1 1 1 453s 1 0 1 0 1 0 1 0 1 1 453s 1 1 1 0 0 0 1 1 1 1 453s 0 0 1 1 0 0 1 0 0 0 453s 0 0 1 1 0 1 1 0 1 1 453s 1 1 0 0 1 0 0 0 1 0 453s 1 1 1 1 1 1 0 1 0 0 453s 1 1 0 0 1 0 0 0 1 0]); 453s 453s reduced = logical ([ 453s 1 1 0 1 0 453s 1 1 0 1 1 453s 1 1 0 1 1 453s 0 1 0 0 0 453s 1 1 1 0 0]); 453s 453s expanded = logical ([ 453s 1 1 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 0 0 453s 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 453s 1 1 1 1 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 453s 1 1 1 1 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 453s 0 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 453s 0 0 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 453s 1 1 0 1 1 0 0 0 1 0 0 1 1 1 0 1 1 1 1 453s 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 453s 1 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 453s 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 453s 0 0 0 1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 0 453s 0 0 0 0 1 1 1 0 0 0 0 1 1 0 0 0 0 0 0 453s 0 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 453s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 453s 1 1 1 1 0 0 0 1 1 1 0 0 0 0 0 0 1 0 0 453s 1 1 1 1 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 453s 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 0 0 0 0 453s 1 1 1 1 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 453s 1 1 1 1 0 0 0 1 1 1 0 0 0 0 0 0 1 0 0]); 453s 453s assert (impyramid (in, "reduce"), reduced) 453s assert (impyramid (in, "expand"), expanded) 453s !!!!! known failure 453s ASSERT errors for: assert (impyramid (in, "reduce"),reduced) 453s 453s Location | Observed | Expected | Reason 453s (4,1) 1 0 Abs err 1 exceeds tol 0 by 1 453s (1,3) 1 0 Abs err 1 exceeds tol 0 by 1 453s (2,3) 1 0 Abs err 1 exceeds tol 0 by 1 453s (3,3) 1 0 Abs err 1 exceeds tol 0 by 1 453s (4,3) 1 0 Abs err 1 exceeds tol 0 by 1 453s (4,4) 1 0 Abs err 1 exceeds tol 0 by 1 453s (5,4) 1 0 Abs err 1 exceeds tol 0 by 1 453s (1,5) 1 0 Abs err 1 exceeds tol 0 by 1 453s (4,5) 1 0 Abs err 1 exceeds tol 0 by 1 453s (5,5) 1 0 Abs err 1 exceeds tol 0 by 1 453s 4 tests, 1 passed, 3 known failures, 0 skipped 453s [inst/imclose.m] 453s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imclose.m 453s ***** shared in, out 453s in = [ 0 0 0 1 1 1 0 0 1 1 453s 0 1 0 1 1 1 0 0 0 1 453s 1 1 1 1 1 0 0 0 0 0 453s 0 1 1 1 1 0 0 0 0 0 453s 0 0 0 1 0 0 0 0 1 0 453s 0 0 0 0 0 0 0 1 1 1 453s 0 0 0 0 1 0 1 0 1 0 453s 0 0 0 1 1 1 1 1 0 0 453s 0 0 0 0 1 1 1 0 0 0 453s 0 0 0 1 1 1 0 0 0 0]; 453s 453s out = [ 1 1 1 1 1 1 1 1 1 1 453s 1 1 1 1 1 1 0 0 0 1 453s 1 1 1 1 1 0 0 0 0 1 453s 1 1 1 1 1 0 0 0 0 1 453s 0 0 0 1 1 0 0 0 1 1 453s 0 0 0 1 1 1 1 1 1 1 453s 0 0 0 1 1 1 1 1 1 1 453s 0 0 0 1 1 1 1 1 0 0 453s 0 0 0 1 1 1 1 0 0 0 453s 0 0 0 1 1 1 1 0 0 0]; 453s ***** assert (imclose (logical (in), ones (3)), logical (out)); 453s 453s out = [99 99 16 16 16 73 74 64 64 64 453s 98 88 16 16 16 73 71 64 64 64 453s 93 88 88 61 61 61 68 70 70 70 453s 93 88 88 61 61 61 68 71 71 71 453s 93 93 88 61 61 61 68 75 66 66 453s 79 79 82 90 90 49 49 49 49 66 453s 79 79 82 91 91 48 46 46 46 66 453s 79 79 82 95 97 48 46 46 46 72 453s 18 18 94 96 84 48 46 46 46 59 453s 18 18 100 96 84 50 50 50 50 59]; 453s ***** assert (imclose (magic (10), ones (3)), out); 453s ***** assert (imclose (uint8 (magic (10)), strel ("square", 3)), uint8 (out)); 453s 453s ## using a se that will be decomposed in 2 pieces 453s out =[ 99 99 88 74 74 74 74 70 70 70 453s 98 93 88 74 74 74 74 70 70 70 453s 93 93 88 74 74 74 74 70 70 70 453s 93 93 88 74 74 74 74 71 71 71 453s 93 93 88 75 75 75 75 75 75 75 453s 93 93 90 90 90 72 72 72 72 72 453s 93 93 91 91 91 72 72 72 72 72 453s 93 93 93 95 97 72 72 72 72 72 453s 94 94 94 96 97 72 72 72 72 72 453s 100 100 100 97 97 72 72 72 72 72]; 453s ***** assert (imclose (magic (10), ones(5)), out); 453s 453s ## using a weird non-symmetric and even-size se 453s out =[ 92 99 16 16 16 70 74 58 58 58 453s 98 88 60 73 16 73 69 70 64 58 453s 88 81 88 60 60 60 69 69 70 70 453s 87 87 61 68 61 60 68 69 71 69 453s 86 93 87 61 61 61 68 75 68 69 453s 23 82 89 89 90 45 68 45 68 66 453s 23 23 82 89 91 48 45 45 45 66 453s 79 23 82 95 97 46 48 46 45 72 453s 18 79 94 96 78 50 46 46 46 59 453s 18 18 100 94 94 78 50 50 46 59]; 453s ***** assert (imclose (magic (10), [1 0 0 0; 1 1 1 0; 0 1 0 1]), out); 453s 5 tests, 5 passed, 0 known failure, 0 skipped 453s [inst/imshowpair.m] 453s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imshowpair.m 453s ***** error id=Octave:invalid-fun-call imshowpair () 453s ***** error id=Octave:invalid-fun-call imshowpair (1) 453s ***** error id=Octave:invalid-input-arg imshowpair (uint8 (200.*rand (100)), ... 453s uint8 (200.*rand (100)), "interpolation") 453s ***** error id=Octave:invalid-input-arg imshowpair (uint8 (200.*rand (100)), ... 453s uint8 (200.*rand (100)), "xxxxx") 453s ***** error id=Octave:invalid-input-arg imshowpair (1, 1, "ColorChannels", [0 0 0]) 453s ***** error id=Octave:invalid-input-arg imshowpair (1, 1, "ColorChannels", [1 1 1]) 453s ***** error id=Octave:invalid-input-arg imshowpair (1, 1, "ColorChannels", [2 2 2]) 453s ***** error id=Octave:expected-less-equal imshowpair (1, 1, "ColorChannels", [42 0 0]) 453s ***** error id=Octave:expected-greater-equal imshowpair (1, 1, "ColorChannels", [-1 2 0]) 453s ***** error id=Octave:invalid-input-arg imshowpair (1, 1, "ColorChannels", "deep-purple") 453s ***** test 453s A = uint8 (200.*rand (100)); 453s B = uint8 (150.*rand (100)); 453s RA = imref2d (size (A), 0.5, 0.5); 453s RB = imref2d (size (B), 0.5, 0.5); 453s figure; 453s Ax=axes; 453s assert (imshowpair (A, B)); 453s assert (imshowpair (A, RA, B, RB)); 453s assert (imshowpair (A, B, "blend")); 453s assert (imshowpair (A, B, "falsecolor", "ColorChannels", "red-cyan")); 453s assert (imshowpair (A, B, "Parent", Ax)); 453s assert (imshowpair (A, B, "montage", "Scaling", "joint")); 453s close; 454s 11 tests, 11 passed, 0 known failure, 0 skipped 454s [inst/lab2uint8.m] 454s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/lab2uint8.m 454s ***** test 454s cm_uint8 = uint8 ([0 1 2 3 4 127 128 200 254 255]); 454s cm_uint8 = repmat (cm_uint8(:), [1 3]); 454s im2d_uint8 = reshape (cm_uint8, [5 2 3]); 454s imnd_uint8 = permute (im2d_uint8, [1 4 3 2]); 454s 454s cm_uint16 = uint16 ([0 256 512 768 1024 32512 32768 51200 65024 65280]); 454s cm_uint16 = repmat (cm_uint16(:), [1 3]); 454s assert (lab2uint16 (cm_uint8), cm_uint16) 454s im2d_uint16 = reshape (cm_uint16, [5 2 3]); 454s assert (lab2uint16 (im2d_uint8), im2d_uint16) 454s assert (lab2uint16 (imnd_uint8), permute (im2d_uint16, [1 4 3 2])) 454s 454s l1 = 100/255; 454s cm = [ 454s 0 -128 -128 454s l1 -127 -127 454s 2*l1 -126 -126 454s 3*l1 -125 -125 454s 4*l1 -124 -124 454s 127*l1 -1 -1 454s 128*l1 0 0 454s 200*l1 72 72 454s 254*l1 126 126 454s 100 127 127]; 454s im2d = reshape (cm, [5 2 3]); 454s imnd = permute (im2d, [1 4 3 2]); 454s 454s assert (lab2double (cm_uint8), cm) 454s assert (lab2double (im2d_uint8), im2d) 454s assert (lab2double (imnd_uint8), imnd) 454s 454s assert (lab2single (cm_uint8), single (cm)) 454s assert (lab2single (im2d_uint8), single (im2d)) 454s assert (lab2single (imnd_uint8), single (imnd)) 454s 1 test, 1 passed, 0 known failure, 0 skipped 454s [inst/labelmatrix.m] 454s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/labelmatrix.m 454s ***** test 454s cc = struct (); 454s cc.Connectivity = 8; 454s cc.ImageSize = [7 7]; 454s cc.NumObjects = 4; 454s cc.PixelIdxList = {[1;2], [5;7;12;13;14], [22;23], [26;32;33;36;37;38]}; 454s 454s l = uint8 ([ 454s 1 0 0 3 0 4 0 454s 1 0 0 3 0 4 0 454s 0 0 0 0 0 4 0 454s 0 0 0 0 4 0 0 454s 2 2 0 4 4 0 0 454s 0 2 0 0 0 0 0 454s 2 2 0 0 0 0 0 454s ]); 454s assert (labelmatrix (cc), l) 454s 1 test, 1 passed, 0 known failure, 0 skipped 454s [inst/imattributes.m] 454s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imattributes.m 454s ***** shared x, map, img, rgb, bw 454s [x, map] = imread ("default.img"); 454s rgb = ind2rgb (x, map); 454s img = ind2gray (x, map); 454s bw = im2bw (img); 454s ***** test 454s h = imshow (img); 454s a = imattributes (h); 454s assert ([a.("Height (rows)") a.("Width (columns)")], [53 40]); 454s assert (a.Class, "uint8"); 454s assert (a.("Image type"), "intensity"); 454s assert (a.("Minimum intensity"), uint8 (28)); 454s assert (a.("Maximum intensity"), uint8 (250)); 454s ***** xtest 454s h = imshow (rgb); 454s a = imattributes (h); 454s assert ([a.("Height (rows)") a.("Width (columns)")], [53 40]); 454s assert (a.Class, "uint8"); 454s assert (a.("Image type"), "truecolor"); 454s assert (isfield (a, "Minimum intensity"), false); 454s assert (isfield (a, "Maximum intensity"), false); 454s !!!!! known failure 454s ASSERT errors for: assert (a.Class,"uint8") 454s 454s Location | Observed | Expected | Reason 454s [] 'double' 'uint8' Strings don't match 454s ***** test 454s h = imshow (bw); 454s a = imattributes (h); 454s assert ([a.("Height (rows)") a.("Width (columns)")], [53 40]); 454s assert (a.Class, "logical"); 454s assert (a.("Image type"), "binary"); 454s assert (isfield (a, "Minimum intensity"), false); 454s assert (isfield (a, "Maximum intensity"), false); 454s ***** test 454s h = imshow (x, map); 454s a = imattributes (h); 454s assert ([a.("Height (rows)") a.("Width (columns)")], [53 40]); 454s assert (a.Class, "uint8"); 454s assert (a.("Image type"), "indexed"); 454s assert (a.("Minimum intensity"), uint8 (0)); 454s assert (a.("Maximum intensity"), uint8 (55)); 454s ***** test 454s h = imshow (img); 454s a1 = imattributes (); 454s a2 = imattributes (h); 454s assert (a1, a2); 454s 5 tests, 4 passed, 1 known failure, 0 skipped 454s [inst/affine3d.m] 454s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/affine3d.m 454s ***** test 454s Sx = 1.2; 454s Sy = 1.6; 454s Sz = 2.4; 454s A = [Sx 0 0 0; 0 Sy 0 0; 0 0 Sz 0; 0 0 0 1]; 454s tform = affine3d (A); 454s [X, Y, Z] = transformPointsForward (tform, 5, 10, 3); 454s assert ([X Y Z], [6 16 7.2], 5*eps) 454s [U, V, W] = transformPointsInverse (tform, X, Y, Z); 454s assert ([U V W], [5 10 3], eps) 454s assert (! isRigid (tform)) 454s assert (! isTranslation (tform)) 454s assert (! isSimilarity (tform)) 454s ***** test 454s A = [3 1 2 0; 4 5 8 0; 6 2 1 0; 0 0 0 1]; 454s tform = affine3d (A); 454s [X, Y, Z] = transformPointsForward (tform, 2, 3, 5); 454s assert (X, 48, eps) 454s assert (Y, 27, eps) 454s assert (Z, 33, eps) 454s [U, V, W] = transformPointsInverse (tform, X, Y, Z); 454s assert (U, 2, 50*eps) 454s assert (V, 3, 50*eps) 454s assert (W, 5, 50*eps) 454s assert (! isRigid (tform)) 454s assert (! isTranslation (tform)) 454s assert (! isSimilarity (tform)) 454s ***** test 454s A = [1 0 0 0; 0 1 0 0; 0 0 1 0; 5 10 1 1]; 454s tform = affine3d (A); 454s X = transformPointsForward (tform, [1 2 3; 4 5 6; 7 8 9]); 454s assert (round (X), [6, 12, 4; 9, 15, 7; 12, 18, 10]) 454s U = transformPointsInverse (tform, X); 454s assert (round (U), [1 2 3; 4 5 6; 7 8 9]) 454s assert (isRigid (tform)) 454s assert (isTranslation (tform)) 454s assert (isSimilarity (tform)) 454s ***** test 454s Sx = 1.2; 454s Sy = 1.6; 454s Sz = 2.4; 454s A = [Sx 0 0 0; 0 Sy 0 0; 0 0 Sz 0; 0 0 0 1]; 454s tform = affine3d (A); 454s [xlim, ylim, zlim] = outputLimits (tform, [1 128], [1 128], [1 27]); 454s assert (xlim, [ 1.2000 153.6000],1e-8) 454s assert (ylim, [1.6000 204.8000], 1e-8) 454s assert (zlim, [2.4000 64.8000], 1e-8) 454s ***** error affine3d (1, 2) 454s ***** error outputLimits (affine2d()) 454s ***** test 454s a = 23; 454s M = [cosd(a) 0 sind(a) 0; 454s 0 1 0 0; 454s -sind(a) 0 cosd(a) 0; 454s 0 0 0 1]; 454s tform = affine3d (M); 454s tform2 = invert (tform); 454s assert (tform.T * tform2.T, diag([1 1 1 1]), eps); 454s ***** test 454s tform = affine3d; 454s assert (tform.T, eye (4)) 454s assert (tform.Dimensionality, 3) 454s 8 tests, 8 passed, 0 known failure, 0 skipped 454s [inst/bwhitmiss.m] 454s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/bwhitmiss.m 454s ***** test 454s bw1 = repmat ([0 1 0 1 1], [3 1]); 454s bw2 = repmat ([0 1 0 0 0], [3 1]); 454s assert (bwhitmiss (bw1, [1; 0; 1], [1 0 1]), logical (bw2)) 454s assert (bwhitmiss (bw1, [0 1 0; -1 0 -1; 0 1 0]), logical (bw2)) 454s 1 test, 1 passed, 0 known failure, 0 skipped 454s [inst/imsharpen.m] 454s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imsharpen.m 454s ***** test 454s A = zeros (7, 7); 454s A(4,4) = 1; 454s B = [ 454s 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 454s 0.00000 -0.00238 -0.01064 -0.01755 -0.01064 -0.00238 0.00000 454s 0.00000 -0.01064 -0.04771 -0.07866 -0.04771 -0.01064 0.00000 454s 0.00000 -0.01755 -0.07866 1.67032 -0.07866 -0.01755 0.00000 454s 0.00000 -0.01064 -0.04771 -0.07866 -0.04771 -0.01064 0.00000 454s 0.00000 -0.00238 -0.01064 -0.01755 -0.01064 -0.00238 0.00000 454s 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000]; 454s assert (imsharpen (A), B, 5e-6) 454s ***** test 454s A = zeros (7, 7); 454s A(4,4) = 1; 454s B = [ 454s -0.0035147 -0.0065663 -0.0095539 -0.0108259 -0.0095539 -0.0065663 -0.0035147 454s -0.0065663 -0.0122674 -0.0178490 -0.0202255 -0.0178490 -0.0122674 -0.0065663 454s -0.0095539 -0.0178490 -0.0259701 -0.0294280 -0.0259701 -0.0178490 -0.0095539 454s -0.0108259 -0.0202255 -0.0294280 1.7666538 -0.0294280 -0.0202255 -0.0108259 454s -0.0095539 -0.0178490 -0.0259701 -0.0294280 -0.0259701 -0.0178490 -0.0095539 454s -0.0065663 -0.0122674 -0.0178490 -0.0202255 -0.0178490 -0.0122674 -0.0065663 454s -0.0035147 -0.0065663 -0.0095539 -0.0108259 -0.0095539 -0.0065663 -0.0035147]; 454s assert (imsharpen (A, "radius", 2), B, 5e-8) 454s ***** test 454s A = zeros (7, 7); 454s A(4,4) = 1; 454s assert (imsharpen (A, "radius", 0.01), A) 454s ***** test 454s A = zeros (7, 7); 454s A(4,4) = 1; 454s B = A; 454s B(3:5,3:5) = -0.000000000011110; 454s B(3:5,4) = -0.000002981278097; 454s B(4,3:5) = -0.000002981278097; 454s B(4,4) = 1.000011925156828; 454s assert (imsharpen (A, "radius", 0.2), B, eps*10) 454s ***** test 454s A = zeros (7, 7); 454s A(4,4) = 1; 454s B = [ 454s 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 454s 0.00000 -0.00297 -0.01331 -0.02194 -0.01331 -0.00297 0.00000 454s 0.00000 -0.01331 -0.05963 -0.09832 -0.05963 -0.01331 0.00000 454s 0.00000 -0.02194 -0.09832 1.83790 -0.09832 -0.02194 0.00000 454s 0.00000 -0.01331 -0.05963 -0.09832 -0.05963 -0.01331 0.00000 454s 0.00000 -0.00297 -0.01331 -0.02194 -0.01331 -0.00297 0.00000 454s 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000]; 454s assert (imsharpen (A, "amount", 1), B, 5e-6) 454s ***** test 454s A = zeros (7, 7); 454s A(4,4) = 1; 454s B = zeros (7, 7); 454s B(4,4) = 1.670317742690299; 454s B(4,3) = -0.078656265079077; 454s B(3,4) = -0.078656265079077; 454s B(4,5) = -0.078656265079077; 454s B(5,4) = -0.078656265079077; 454s assert (imsharpen (A, "Threshold", 0.117341762), B, eps*10) 454s ***** test 454s A = zeros (7, 7); 454s A(4,4) = 1; 454s B = zeros (7, 7); 454s B(4,4) = 1.670317742690299; 454s assert (imsharpen (A, "Threshold", 0.117341763), B, eps*10) 454s ***** test 454s A = zeros (7, 7, "uint8"); 454s A(3:5,3:5) = 150; 454s B = zeros (7, 7, "uint8"); 454s B(3:5,3:5) = 211; 454s B(4,3:5) = 195; 454s B(3:5,4) = 195; 454s B(4,4) = 175; 454s assert (imsharpen (A), B) 454s ***** test 454s A = zeros (7, 7, "uint8"); 454s A(3:5,3:5) = 100; 454s B = zeros (7, 7, "uint8"); 454s B(3:5,3:5) = 173; 454s assert (imsharpen (A, "radius", 4), B) 454s ***** test 454s A = zeros (7, 7, 3, "uint8"); 454s A(4,4,:) = 255; 454s assert (imsharpen (A), A) 454s ***** xtest 454s A = zeros(7,7,3, "uint8"); 454s A(4,4,1) = 255; 454s B = A; 454s B(4,4,2) = 146; # Octave result is 145; 454s B(4,4,3) = 100; # Octave result is 99; 454s assert (imsharpen (A), B) 454s !!!!! known failure 454s ASSERT errors for: assert (imsharpen (A),B) 454s 454s Location | Observed | Expected | Reason 454s (4,4,2) 145 146 Abs err 0 exceeds tol 0 by 0 454s (4,4,3) 99 100 Abs err 0 exceeds tol 0 by 0 454s ***** xtest 454s A = zeros (7, 7, 3, "uint8"); 454s A(3:5,3:5,1) = 100; 454s A(3:5,3:5,2) = 150; 454s B = A; 454s B(3:5,3:5,1) = 164; 454s B(3:5,4,1) = 146; # Octave result is 147 454s B(4,3:5,1) = 146; # Octave result is 145 454s B(4,4,1) = 125; # Octave result is 126 454s B(3:5,3:5,2) = 213; 454s B(3:5,4,2) = 195; # Octave result is 196 454s B(4,3:5,2) = 195; # Octave result is 196 454s B(4,4,2) = 175; 454s B(3:5,3:5,3) = 79; 454s B(3:5,4,3) = 62; 454s B(4,3:5,3) = 62; 454s B(4,4,3) = 40; # Octave result is 39 454s assert (imsharpen (A), B) 454s !!!!! known failure 454s ASSERT errors for: assert (imsharpen (A),B) 454s 454s Location | Observed | Expected | Reason 454s (4,3,1) 147 146 Abs err 1 exceeds tol 0 by 1 454s (3,4,1) 147 146 Abs err 1 exceeds tol 0 by 1 454s (4,4,1) 126 125 Abs err 1 exceeds tol 0 by 1 454s (5,4,1) 147 146 Abs err 1 exceeds tol 0 by 1 454s (4,5,1) 147 146 Abs err 1 exceeds tol 0 by 1 454s (4,3,2) 196 195 Abs err 1 exceeds tol 0 by 1 454s (3,4,2) 196 195 Abs err 1 exceeds tol 0 by 1 454s (5,4,2) 196 195 Abs err 1 exceeds tol 0 by 1 454s (4,5,2) 196 195 Abs err 1 exceeds tol 0 by 1 454s (4,4,3) 39 40 Abs err 0 exceeds tol 0 by 0 454s ***** error imsharpen () 454s ***** error imsharpen (ones (3, 3), "Radius") 454s ***** error imsharpen (ones (3, 3), "Radius", 0) 454s ***** error imsharpen (ones (3, 3), "Amount", -1) 454s ***** error imsharpen (ones (3, 3), "Threshold", 1.5) 454s ***** error imsharpen (ones (3, 3), "Threshold", -1) 454s ***** error imsharpen (ones (3, 3), "foo") 454s ***** error imsharpen ("foo") 454s 20 tests, 18 passed, 2 known failures, 0 skipped 454s [inst/lab2single.m] 454s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/lab2single.m 454s ***** test 454s l_max_f = 100 + (25500 / 65280); 454s ab_max_f = 127 + (255 / 256); 454s cm = [ 454s -Inf 454s Inf 454s NaN 454s l_max_f 454s ab_max_f 454s -200 454s -129 454s -128 454s -128+(255/65280)*(0.499) 454s -128+(255/65280)*(0.500) 454s -128+(255/65280)*(0.501) 454s -127 454s -1 454s 0 454s (100/65280)*(0.499999) 454s (100/65280)*(0.51) 454s (100/65280)*(0.500001) 454s 1 454s 99 454s 100 454s 101 454s 126 454s 127 454s 128 454s 254 454s 255 454s 256 454s 257]; 454s cm = repmat (single (cm), [1 3]); 454s im2d = reshape (cm, [7 4 3]); 454s imnd = permute (im2d, [1 4 3 2]); 454s 454s cm_uint8 = uint8 ([ 454s 0 0 0 454s 255 255 255 454s 255 255 255 454s 255 228 228 454s 255 255 255 454s 0 0 0 454s 0 0 0 454s 0 0 0 454s 0 0 0 454s 0 0 0 454s 0 0 0 454s 0 1 1 454s 0 127 127 454s 0 128 128 454s 0 128 128 454s 0 128 128 454s 0 128 128 454s 3 129 129 454s 252 227 227 454s 255 228 228 454s 255 229 229 454s 255 254 254 454s 255 255 255 454s 255 255 255 454s 255 255 255 454s 255 255 255 454s 255 255 255 454s 255 255 255]); 454s 454s assert (lab2uint8 (cm), cm_uint8) 454s im2d_uint8 = reshape (cm_uint8, [7 4 3]); 454s assert (lab2uint8 (im2d), im2d_uint8) 454s assert (lab2uint8 (imnd), permute (im2d_uint8, [1 4 3 2])) 454s 454s cm_uint16 = uint16 ([ 454s 0 0 0 454s 65535 65535 65535 454s 65535 65535 65535 454s 65535 58468 58468 454s 65535 65535 65535 454s 0 0 0 454s 0 0 0 454s 0 0 0 454s 0 0 0 454s 0 1 1 454s 0 1 1 454s 0 256 256 454s 0 32512 32512 454s 0 32768 32768 454s 0 32768 32768 454s 1 32768 32768 454s 1 32768 32768 454s 653 33024 33024 454s 64627 58112 58112 454s 65280 58368 58368 454s 65535 58624 58624 454s 65535 65024 65024 454s 65535 65280 65280 454s 65535 65535 65535 454s 65535 65535 65535 454s 65535 65535 65535 454s 65535 65535 65535 454s 65535 65535 65535]); 454s 454s assert (lab2uint16 (cm), cm_uint16) 454s im2d_uint16 = reshape (cm_uint16, [7 4 3]); 454s assert (lab2uint16 (im2d), im2d_uint16) 454s assert (lab2uint16 (imnd), permute (im2d_uint16, [1 4 3 2])) 454s 454s assert (lab2double (cm), double (cm)) 454s assert (lab2double (im2d), double (im2d)) 454s assert (lab2double (imnd), double (imnd)) 454s 1 test, 1 passed, 0 known failure, 0 skipped 454s [inst/padarray.m] 454s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/padarray.m 454s ***** demo 454s padarray([1,2,3;4,5,6],[2,1]) 454s % pads [1,2,3;4,5,6] with a whole border of 2 rows and 1 columns of 0 454s ***** demo 454s padarray([1,2,3;4,5,6],[2,1],5) 454s % pads [1,2,3;4,5,6] with a whole border of 2 rows and 1 columns of 5 454s ***** demo 454s padarray([1,2,3;4,5,6],[2,1],0,'pre') 454s % pads [1,2,3;4,5,6] with a left and top border of 2 rows and 1 columns of 0 454s ***** demo 454s padarray([1,2,3;4,5,6],[2,1],'circular') 454s % pads [1,2,3;4,5,6] with a whole 'circular' border of 2 rows and 1 columns 454s % border 'repeats' data as if we tiled blocks of data 454s ***** demo 454s padarray([1,2,3;4,5,6],[2,1],'replicate') 454s % pads [1,2,3;4,5,6] with a whole border of 2 rows and 1 columns which 454s % 'replicates' edge data 454s ***** demo 454s padarray([1,2,3;4,5,6],[2,1],'symmetric') 454s % pads [1,2,3;4,5,6] with a whole border of 2 rows and 1 columns which 454s % is symmetric to the data on the edge 454s ***** assert (padarray ([1;2], [1]), [0;1;2;0]); 454s ***** assert (padarray ([3 4], [0 2]), [0 0 3 4 0 0]); 454s ***** assert (padarray ([1 2 3; 4 5 6], [1 2]), 454s [zeros(1, 7); 0 0 1 2 3 0 0; 0 0 4 5 6 0 0; zeros(1, 7)]); 454s ***** test 454s assert (padarray ([1 2 3; 4 5 6], [3 2 1]), 454s cat(3, zeros(8, 7), 454s [ [ zeros(3, 7) ] 454s [zeros(2, 2) [1 2 3; 4 5 6] zeros(2, 2) ] 454s [ zeros(3,7)] ], 454s zeros (8, 7))); 454s ***** assert (padarray ([1 2], [4 5]), padarray ([1 2], [4 5], 0)); 454s ***** assert (padarray ([1 2], [4 5]), padarray ([1 2], [4 5], "both")); 454s ***** assert (padarray ([1;2], [1], i), [i; 1; 2; i]); 454s ***** assert (padarray ([1;2], [1], i, "pre"), [i; 1; 2]); 454s ***** assert (padarray ([1;2], [1], i, "post"), [1; 2; i]); 454s ***** assert (padarray ([1;2], [1], i, "both"), [i; 1; 2; i]); 454s ***** assert (padarray ([1 2], [0 1], i, "pre"), [i 1 2]); 454s ***** assert (padarray ([1 2], [0 1], i, "post"), [1 2 i]); 454s ***** assert (padarray ([1 2], [0 1], i, "both"), [i 1 2 i]); 454s ***** assert (padarray ([1 2], [0;1], i, "both"), [i 1 2 i]); 454s ***** test 454s A = [1 2 3; 4 5 6]; 454s B = repmat (A, 7, 9); 454s assert (padarray (A, [1 2], "circular", "pre"), B(2:4,2:6)); 454s assert (padarray (A, [1 2], "circular", "post"), B(3:5,4:8)); 454s assert (padarray (A, [1 2], "circular", "both"), B(2:5,2:8)); 454s ## This tests when padding is bigger than data 454s assert (padarray (A, [5 10], "circular", "both"), B(2:13,3:25)); 454s ***** test 454s A = int8 ([1 2 3; 4 5 6]); 454s B = repmat (A, 7, 9); 454s assert (padarray (A, [1 2], "circular", "pre"), B(2:4,2:6)); 454s assert (padarray (A, [1 2], "circular", "post"), B(3:5,4:8)); 454s assert (padarray (A, [1 2], "circular", "both"), B(2:5,2:8)); 454s ## This tests when padding is bigger than data 454s assert (padarray (A, [5 10], "circular", "both"), B(2:13,3:25)); 454s ***** test 454s A = [1 2; 3 4]; 454s B = kron (A, ones (10, 5)); 454s assert (padarray (A, [9 4], "replicate", "pre"), B(1:11,1:6)); 454s assert (padarray (A, [9 4], "replicate", "post"), B(10:20,5:10)); 454s assert (padarray (A, [9 4], "replicate", "both"), B); 454s ## same with uint class 454s assert (padarray (uint8 (A), [9 4], "replicate", "pre"), uint8 (B(1:11,1:6))); 454s assert (padarray (uint8 (A), [9 4], "replicate", "post"), uint8 (B(10:20,5:10))); 454s assert (padarray (uint8 (A), [9 4], "replicate", "both"), uint8 (B)); 454s ***** test 454s A = [1:3 454s 4:6]; 454s HA = [3:-1:1 454s 6:-1:4]; 454s VA = [4:6 454s 1:3]; 454s VHA = [6:-1:4 454s 3:-1:1]; 454s B = [VHA VA VHA 454s HA A HA 454s VHA VA VHA]; 454s assert (padarray (A, [1 2], "symmetric", "pre"), B(2:4,2:6)); 454s assert (padarray (A, [1 2], "symmetric", "post"), B(3:5,4:8)); 454s assert (padarray (A, [1 2], "symmetric", "both"), B(2:5,2:8)); 454s ## same with int class 454s assert (padarray (int16 (A), [1 2], "symmetric", "pre"), int16 (B(2:4,2:6))); 454s assert (padarray (int16 (A), [1 2], "symmetric", "post"), int16 (B(3:5,4:8))); 454s assert (padarray (int16 (A), [1 2], "symmetric", "both"), int16 (B(2:5,2:8))); 454s ***** assert (padarray (int8 ([1; 2]), [1]), int8 ([0; 1; 2; 0])); 454s ***** assert (padarray (uint8 ([3 4]), [0 2]), uint8 ([0 0 3 4 0 0])); 454s ***** assert (padarray (int16 ([1; 2]), [1], 4), int16 ([4; 1; 2; 4])); 454s ***** assert (padarray (uint16 ([1; 2]), [1], 0), uint16 ([0; 1; 2; 0])); 454s ***** assert (padarray (uint32 ([1; 2]), [1], 6, "post"), uint32 ([1; 2; 6])); 454s ***** assert (padarray (int32 ([1; 2]), [1], int32 (4), "pre"), int32 ([4; 1; 2])); 454s ***** test 454s in = [ 7 5 1 3 454s 5 3 3 4 454s 7 5 2 3 454s 6 1 3 8]; 454s padded = [ 454s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 454s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 454s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 454s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 454s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 454s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 454s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 454s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 454s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 454s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 454s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 454s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 454s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 454s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 454s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 454s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 454s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 454s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 454s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 454s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 454s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 454s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 454s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 454s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2]; 454s for ite = 1:10 454s assert (padarray (in, [ite ite], "symmetric"), padded((11-ite):(14+ite),(11-ite):(14+ite))); 454s assert (padarray (in, [ite ite], "symmetric", "pre"), padded((11-ite):14,(11-ite):14)); 454s assert (padarray (in, [ite ite], "symmetric", "post"), padded(11:(14+ite),11:(14+ite))); 454s endfor 454s ***** test 454s in = [ 7 5 4 9 454s 6 4 5 1 454s 5 3 3 3 454s 2 6 7 3]; 454s padded = [ 454s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 454s 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 454s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 454s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 454s 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 454s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 454s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 454s 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 454s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 454s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 454s 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 454s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 454s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 454s 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 454s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 454s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 454s 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 454s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 454s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 454s 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 454s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 454s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 454s 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 454s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4]; 454s for ite = 1:10 454s assert (padarray (in, [ite ite], "reflect"), padded((11-ite):(14+ite),(11-ite):(14+ite))); 454s assert (padarray (in, [ite ite], "reflect", "pre"), padded((11-ite):14,(11-ite):14)); 454s assert (padarray (in, [ite ite], "reflect", "post"), padded(11:(14+ite),11:(14+ite))); 454s endfor 455s 26 tests, 26 passed, 0 known failure, 0 skipped 455s [inst/imrotate.m] 455s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imrotate.m 455s ***** test 455s ## Verify minimal loss across six rotations that add up to 360 +/- 1 deg.: 455s methods = { "nearest", "bilinear", "bicubic", "Fourier" }; 455s angles = [ 59 60 61 ]; 455s tolerances = [ 7.4 8.5 8.6 # nearest 455s 3.5 3.1 3.5 # bilinear 455s 2.7 2.0 2.7 # bicubic 455s 2.7 1.6 2.8 ]/8; # Fourier 455s 455s # This is peaks(50) without the dependency on the plot package 455s x = y = linspace(-3,3,50); 455s [X,Y] = meshgrid(x,y); 455s x = 3*(1-X).^2.*exp(-X.^2 - (Y+1).^2) ... 455s - 10*(X/5 - X.^3 - Y.^5).*exp(-X.^2-Y.^2) ... 455s - 1/3*exp(-(X+1).^2 - Y.^2); 455s 455s x -= min(x(:)); # Fourier does not handle neg. values well 455s x = x./max(x(:)); 455s for m = 1:(length(methods)) 455s y = x; 455s for i = 1:5 455s y = imrotate(y, 60, methods{m}, "crop", 0); 455s end 455s for a = 1:(length(angles)) 455s assert(norm((x - imrotate(y, angles(a), methods{m}, "crop", 0)) 455s (10:40, 10:40)) < tolerances(m,a)); 455s endfor 455s endfor 455s ***** xtest 455s ## Verify exactness of near-90 and 90-degree rotations: 455s X = rand(99); 455s for angle = [90 180 270] 455s for da = [-0.1 0.1] 455s Y = imrotate(X, angle + da , "nearest", :, 0); 455s Z = imrotate(Y, -(angle + da), "nearest", :, 0); 455s assert(norm(X - Z) == 0); # exact zero-sum rotation 455s assert(norm(Y - imrotate(X, angle, "nearest", :, 0)) == 0); # near zero-sum 455s endfor 455s endfor 455s !!!!! known failure 455s assert (norm (X - Z) == 0) failed 455s ***** test 455s ## Verify preserved pixel density: 455s methods = { "nearest", "bilinear", "bicubic", "Fourier" }; 455s ## This test does not seem to do justice to the Fourier method...: 455s tolerances = [ 4 2.2 2.0 209 ]; 455s range = 3:9:100; 455s for m = 1:(length(methods)) 455s t = []; 455s for n = range 455s t(end + 1) = sum(imrotate(eye(n), 20, methods{m}, :, 0)(:)); 455s endfor 455s assert(t, range, tolerances(m)); 455s endfor 455s ***** test 455s a = reshape (1:18, [2 3 3]); 455s 455s a90(:,:,1) = [5 6; 3 4; 1 2]; 455s a90(:,:,2) = a90(:,:,1) + 6; 455s a90(:,:,3) = a90(:,:,2) + 6; 455s 455s a180(:,:,1) = [6 4 2; 5 3 1]; 455s a180(:,:,2) = a180(:,:,1) + 6; 455s a180(:,:,3) = a180(:,:,2) + 6; 455s 455s am90(:,:,1) = [2 1; 4 3; 6 5]; 455s am90(:,:,2) = am90(:,:,1) + 6; 455s am90(:,:,3) = am90(:,:,2) + 6; 455s 455s assert (imrotate (a, 0), a); 455s assert (imrotate (a, 90), a90); 455s assert (imrotate (a, -90), am90); 455s assert (imrotate (a, 180), a180); 455s assert (imrotate (a, -180), a180); 455s assert (imrotate (a, 270), am90); 455s assert (imrotate (a, -270), a90); 455s assert (imrotate (a, 360), a); 455s ***** test 455s # bug #53309 455s in = ones (2, 4); 455s out = [0 1 1 0; 0 1 1 0]; 455s assert (imrotate (in, 90, "nearest", "crop"), out) 455s assert (imrotate (repmat (in, [1 1 3]), 90, "nearest", "crop"), 455s repmat (out, [1 1 3])) 455s ***** test 455s ## bug #53309 455s rgbs = { 455s rand(5, 4, 3), # normal path, does interpolation 455s rand(4, 4, 3), # rows and columns, same number, simple rotdim 455s rand(4, 6, 3), # rows and columns differents, but of length even 455s }; 455s for rgb_i = 1:numel(rgbs) 455s rgb = rgbs{rgb_i}; 455s rot = imrotate (rgb, 90, "nearest", "crop"); 455s for i = 1:3 455s assert (rot(:,:,i), imrotate (rgb(:,:,i), 90, "nearest", "crop")) 455s endfor 455s ## same check but with an integer class 455s rgb = im2uint8 (rgb); 455s rot = imrotate (rgb, 90, "nearest", "crop"); 455s assert (class (rgb), class (rot)) 455s for i = 1:3 455s assert (rot(:,:,i), imrotate (rgb(:,:,i), 90, "nearest", "crop")) 455s endfor 455s endfor 455s 6 tests, 5 passed, 1 known failure, 0 skipped 455s [inst/roicolor.m] 455s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/roicolor.m 455s ***** demo 455s roicolor([1:10],2,4); 455s % Returns '1' where input values are between 2 and 4 (both included). 455s ***** assert(roicolor([1:10],2,4),logical([0,1,1,1,zeros(1,6)])); 455s ***** assert(roicolor([1,2;3,4],3,3),logical([0,0;1,0])); 455s ***** assert(roicolor([1,2;3,4],[1,4]),logical([1,0;0,1])); 455s 3 tests, 3 passed, 0 known failure, 0 skipped 455s [inst/wiener2.m] 455s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/wiener2.m 455s ***** shared im0, im0_out, im0_n 455s im0 = ones (5, 5); 455s im0_out = ones (5, 5); 455s im0_out(1:4:5, 1:4:5) = 0.67111; 455s im0_out(1:4:5, 2:4) = 0.78074; 455s im0_out(2:4, 1:4:5) = 0.78074; 455s im0_n = 0.1462; 455s ***** error wiener2 () 455s ***** assert (wiener2 (im0)) 455s ***** assert (wiener2 (im0, [2, 3])) 455s ***** assert (wiener2 (im0, 0.5)) 455s ***** assert (wiener2 (im0, [2, 3], 0.5)) 455s ***** error wiener2 (im0, [2, 3], 0.5, 2) 455s ***** test 455s [im_out, noise_out] = wiener2 (im0); 455s assert (size (im_out), size (im0)) 455s assert (class (noise_out), "double") 455s assert (numel (noise_out), 1) 455s ***** assert (wiener2 (im0), im0_out, 1e-5) 455s ***** assert (wiener2 (single (im0)), single (im0_out), 1e-5) 455s ***** assert (class (wiener2 (single (im0))), "single") 455s ***** assert (wiener2 (im2uint8 (im0)), im2uint8 (im0_out)) 455s ***** assert (class (wiener2 (im2uint8 (im0))), "uint8") 455s ***** assert (wiener2 (im2uint16 (im0)), im2uint16 (im0_out), 1) 455s ***** assert (class (wiener2 (im2uint16 (im0))), "uint16") 455s ***** assert (wiener2 (im2int16 (im0)), im2int16 (im0_out), 1) 455s ***** assert (class (wiener2 (im2int16 (im0))), "int16") 455s ***** test 455s im_out = wiener2 (im0); 455s assert (im_out, im0_out, 1e-4) 455s [out, n] = wiener2 (im0); 455s assert (out, im0_out, 1e-4) 455s assert (n, im0_n, 1e-4) 455s ***** test 455s im1 = zeros (5, 5); 455s im1(2:4, 2:4) = 1; 455s im1_out = [ 455s 0.1111 0.2222 0.2726 0.2222 0.1111; 455s 0.2222 0.5911 0.7274 0.5911 0.2222; 455s 0.2726 0.7274 1.0000 0.7274 0.2726; 455s 0.2222 0.5911 0.7274 0.5911 0.2222; 455s 0.1111 0.2222 0.2726 0.2222 0.1111]; 455s im1_n = 0.1817; 455s im1_out_55 = [ 455s 0.1600 0.2400 0.2400 0.2400 0.1600; 455s 0.2400 0.4667 0.4667 0.4667 0.2400; 455s 0.2400 0.4667 0.4667 0.4667 0.2400; 455s 0.2400 0.4667 0.4667 0.4667 0.2400; 455s 0.1600 0.2400 0.2400 0.2400 0.1600]; 455s im1_n_55 = 0.1920; 455s im1_out_05 = [ 455s 0.1111 0.2222 0.3333 0.2222 0.1111; 455s 0.2222 0.4444 0.6667 0.4444 0.2222; 455s 0.3333 0.6667 1.0000 0.6667 0.3333; 455s 0.2222 0.4444 0.6667 0.4444 0.2222; 455s 0.1111 0.2222 0.3333 0.2222 0.1111]; 455s im1_out_55_05 = [ 455s 0.1600 0.2400 0.2400 0.2400 0.1600; 455s 0.2400 0.3600 0.3600 0.3600 0.2400; 455s 0.2400 0.3600 0.3600 0.3600 0.2400; 455s 0.2400 0.3600 0.3600 0.3600 0.2400; 455s 0.1600 0.2400 0.2400 0.2400 0.1600]; 455s im1_out_35 = [ 455s 0.1333 0.2000 0.2000 0.2000 0.1333; 455s 0.2642 0.5156 0.5156 0.5156 0.2642; 455s 0.3230 0.6770 0.6770 0.6770 0.3230; 455s 0.2642 0.5156 0.5156 0.5156 0.2642; 455s 0.1333 0.2000 0.2000 0.2000 0.1333]; 455s im1_out_51 = [ 455s 0 0.2400 0.2400 0.2400 0 455s 0 0.7600 0.7600 0.7600 0 455s 0 0.7600 0.7600 0.7600 0 455s 0 0.7600 0.7600 0.7600 0 455s 0 0.2400 0.2400 0.2400 0]; 455s assert (wiener2 (im1), im1_out, 1e-4) 455s [out, n] = wiener2 (im1); 455s assert (out, im1_out, 1e-4) 455s assert (n, im1_n, 1e-4) 455s assert (wiener2 (im1, [5, 5]), im1_out_55, 1e-4) 455s [out, n] = wiener2 (im1, [5, 5]); 455s assert (out, im1_out_55, 1e-4) 455s assert (n, im1_n_55, 1e-4) 455s assert (wiener2 (im1, 0.5), im1_out_05, 1e-4) 455s assert (wiener2 (im1, [5, 5], 0.5), im1_out_55_05, 1e-4) 455s assert (wiener2 (im1, [3, 5]), im1_out_35, 1e-4) 455s assert (wiener2 (im1, [5, 1]), im1_out_51, 1e-4) 455s ***** test 455s ## Tests for even-sized neighbourhood 455s im1 = zeros (5, 5); 455s im1(2:4, 2:4) = 1; 455s 455s im1_out_23 = [ 455s 0.1667 0.2233 0.2978 0.2233 0.1667 455s 0.2233 0.7767 1.0000 0.7767 0.2233 455s 0.2233 0.7767 1.0000 0.7767 0.2233 455s 0.1667 0.5533 0.7022 0.5533 0.1667 455s 0 0 0 0 0]; 455s 455s im1_out_43 = [ 455s 0.1667 0.2813 0.3750 0.2813 0.1667 455s 0.2500 0.6250 0.7500 0.6250 0.2500 455s 0.2500 0.6250 0.7500 0.6250 0.2500 455s 0.1667 0.4375 0.6250 0.4375 0.1667 455s 0.0833 0.1667 0.2500 0.1667 0.0833]; 455s 455s im1_out_44 = [ 455s 0.2500 0.3018 0.3018 0.2500 0.1250 455s 0.3018 0.6647 0.6647 0.4971 0.1875 455s 0.3018 0.6647 0.6647 0.4971 0.1875 455s 0.2500 0.4971 0.4971 0.2500 0.1250 455s 0.1250 0.1875 0.1875 0.1250 0.0625]; 455s 455s assert (wiener2 (im1, [2, 3]), im1_out_23, 1e-4) 455s assert (wiener2 (im1, [4, 3]), im1_out_43, 1e-4) 455s assert (wiener2 (im1, [4, 4]), im1_out_44, 1e-4) 455s ***** test 455s im2 = zeros (5, 5); 455s im2(2:4, 2:4) = 70; 455s im2(3, 3) = 90; 455s im2 = uint8 (im2); 455s im2_out = uint8 ([ 455s 8 16 20 16 8 ; 455s 16 46 54 46 16; 455s 20 54 72 54 20; 455s 16 46 54 46 16; 455s 8 16 20 16 8 ]); 455s im2_n = 0.0146; 455s im2_out_55 = uint8 ([ 455s 12 18 18 18 12; 455s 18 32 32 32 18; 455s 18 32 35 32 18; 455s 18 32 32 32 18; 455s 12 18 18 18 12]); 455s im2_n_55 = 0.0160; 455s im2_out_03 = uint8 ([ 455s 8 16 23 16 8 ; 455s 16 33 49 33 16; 455s 23 49 72 49 23; 455s 16 33 49 33 16; 455s 8 16 23 16 8 ]); 455s im2_n_03 = 0.3000; 455s [out, n] = wiener2 (im2); 455s assert (out, im2_out) 455s assert (n, im2_n, 1e-4) 455s [out, n] = wiener2 (im2, [5, 5]); 455s assert (out, im2_out_55) 455s assert (n, im2_n_55, 1e-4) 455s [out, n] = wiener2 (im2, 0.3); 455s assert (out, im2_out_03) 455s assert (n, im2_n_03, 1e-4) 455s ***** test 455s im3 = zeros (5, 5); 455s im3(2:4, 2:4) = 70; 455s im3(3, 3) = 20; 455s im3 = uint8 (im3); 455s im3_out = uint8 ([ 455s 8 16 19 16 8 ; 455s 16 32 47 32 16; 455s 19 47 64 47 19; 455s 16 32 47 32 16; 455s 8 16 19 16 8 ]); 455s im3_n = 0.0134; 455s [out, n] = wiener2 (im3); 455s assert (out, im3_out) 455s assert (n, im3_n, 1e-4) 455s ***** test 455s im4 = 50 .* ones (5, 5); 455s im4(:, 1) = 200; 455s im4(:, 2) = 100; 455s im4 = uint8 (im4); 455s im4_out = uint8 ([ 455s 148 90 44 33 22; 455s 161 111 67 50 33; 455s 161 111 67 50 33; 455s 161 111 67 50 33; 455s 148 90 44 33 22]); 455s im4_n = 0.0398; 455s [out, n] = wiener2 (im4); 455s assert (out, im4_out) 455s assert (n, im4_n, 1e-4) 455s ***** test 455s im5 = zeros (100, 100); 455s im5(30, 30) = 1; 455s im5_out_center = [ 455s 0 0 0 0 0 0 0; 455s 0 0 0 0 0 0 0; 455s 0 0 0.0001 0.0001 0.0001 0 0; 455s 0 0 0.0001 0.9992 0.0001 0 0; 455s 0 0 0.0001 0.0001 0.0001 0 0; 455s 0 0 0 0 0 0 0; 455s 0 0 0 0 0 0 0]; 455s im5_n = 8.8889e-5; 455s [out, n] = wiener2 (im5); 455s out_center = out(27:33, 27:33); 455s assert (out_center, im5_out_center, 1e-4) 455s assert (n, im5_n, 1e-4) 455s ***** test 455s im = zeros (100, 10, 10); 455s im(5, 5, 5) = 1; 455s 455s [out, n] = wiener2 (im, [3 3]); 455s expected_out = im; 455s expected_out(4:6,4:6,5) = [ 455s 0.0001 0.0001 0.0001 455s 0.0001 0.9992 0.0001 455s 0.0001 0.0001 0.0001]; 455s assert (out, expected_out, eps) 455s 455s [out, n] = wiener2 (im, [3 3 3]); 455s expected_out = im; 455s expected_out(4:6,4:6,4:6) = 0.0001; 455s expected_out(5,5,5) = 0.9974; 455s assert (out, expected_out, eps) 455s 455s ## Default in ND, use nhood 3 even for singleton dimensions. 455s assert (wiener2 (im), wiener2 (im, [3 3 3])) 455s 455s im = reshape (im, [100 10 1 10]); 455s expected_out = im; 455s expected_out(4:6,4:6,1,4:6) = 0.0001/3; 455s expected_out(5,5,1,5) = 1-(80*(0.0001/3)); 455s assert (wiener2 (im), wiener2 (im, [3 3 3 3])) 455s assert (wiener2 (im), expected_out, eps) 455s 455s expected_out = im; 455s expected_out(4:6,4:6,1,4:6) = 0.0001; 455s expected_out(5,5,1,5) = 0.9974; 455s assert (wiener2 (im, [3 3 1 3]), expected_out, eps) 455s ***** test 455s expected = [0.2222 0.3926 0.3926 0.3926 0.2222]; 455s assert (wiener2 (ones (1, 5)), expected, .0001) 455s ***** assert (wiener2 ([]), []) 455s ***** assert (wiener2 (logical ([0 0; 1 1])), true (2, 2)) 455s ***** demo 455s I = phantom (); 455s J = imnoise (I, "gaussian", 0, 0.02); 455s figure, imshow (J); 455s title ("Image with added Gaussian noise"); 455s K = wiener2 (J, [5 5]); 455s figure, imshow (K); 455s title ("Image with noise reduced by wiener2 filtering"); 455s 27 tests, 27 passed, 0 known failure, 0 skipped 455s [inst/integralImage.m] 455s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/integralImage.m 455s ***** test 455s assert (integralImage (10), [0 0; 0 10]); 455s assert (integralImage (10, "rotated"), [0 0 0; 0 10 0]); 455s ***** test 455s J = integralImage (10); 455s assert (class(J), "double"); 455s J = integralImage (uint8(10)); 455s assert (class(J), "double"); 455s ***** test 455s I = [1, 2; 3, 4]; 455s J = integralImage (I); 455s J1 = [0 0 0; 0 1 3; 0 4 10]; 455s assert (J, J1) 455s J = integralImage (I, "rotated"); 455s J1 = [0 0 0 0; 0 1 2 0; 1 6 7 2]; 455s assert (J, J1) 455s ***** test 455s I1 = [1, 2; 3, 4]; 455s I2 = [5, 6; 7, 8]; 455s I3 = [9, 10; 11, 12]; 455s I = cat (3, I1, I2, I3); 455s J = integralImage (I); 455s J1 = [0 0 0; 0 1 3; 0 4 10]; 455s J2 = [0 0 0; 0 5 11; 0 12 26]; 455s J3 = [0 0 0; 0 9 19; 0 20 42]; 455s J0 = cat (3, J1, J2, J3); 455s assert (J, J0) 455s ***** test 455s I1 = [1, 2; 3, 4]; 455s I2 = [5, 6; 7, 8]; 455s I3 = [9, 10; 11, 12]; 455s I = cat (3, I1, I2, I3); 455s J = integralImage (I, "rotated"); 455s J1 = [0 0 0 0; 0 1 2 0; 1 6 7 2]; 455s J2 = [0 0 0 0; 0 5 6 0; 5 18 19 6]; 455s J3 = [0 0 0 0; 0 9 10 0; 9 30 31 10]; 455s J0 = cat (3, J1, J2, J3); 455s assert (J, J0) 455s ***** test 455s I = magic (5); 455s J = integralImage (I); 455s J_res = [0 0 0 0 0 0; 455s 0 17 41 42 50 65; 455s 0 40 69 77 99 130; 455s 0 44 79 100 142 195; 455s 0 54 101 141 204 260; 455s 0 65 130 195 260 325]; 455s assert (J, J_res) 455s 455s J = integralImage (I, "rotated"); 455s J_res_R = [0 0 0 0 0 0 0; 455s 0 17 24 1 8 15 0; 455s 17 64 47 40 38 39 15; 455s 64 74 91 104 105 76 39; 455s 74 105 149 188 183 130 76; 455s 105 170 232 272 236 195 130]; 455s assert (J, J_res_R) 455s ***** error 455s integralImage (); 455s ***** error 455s integralImage (1, "xxx", 2); 455s ***** error 455s integralImage ("abcd"); 455s ***** error 455s integralImage ([1 2; 3 4], "xxx"); 455s 10 tests, 10 passed, 0 known failure, 0 skipped 455s [inst/@strel/strel.m] 455s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@strel/strel.m 455s ***** test 455s shape = logical ([0 0 0 1]); 455s assert (getnhood (strel (shape)), shape); 455s assert (getnhood (strel ("arbitrary", shape)), shape); 455s 455s height = [0 0 0 3]; 455s assert (getnhood (strel ("arbitrary", shape, height)), shape); 455s assert (getheight (strel ("arbitrary", shape, height)), height); 455s ***** test 455s shape = logical ([0 0 1]); 455s height = [-2 1 3]; ## this works for matlab compatibility 455s assert (getnhood (strel ("arbitrary", shape, height)), shape); 455s assert (getheight (strel ("arbitrary", shape, height)), height); 455s ***** test 455s shape = logical ([0 0 0 1 0 0 0 455s 0 1 1 1 1 1 0 455s 0 1 1 1 1 1 0 455s 1 1 1 1 1 1 1 455s 0 1 1 1 1 1 0 455s 0 1 1 1 1 1 0 455s 0 0 0 1 0 0 0]); 455s height = [ 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 455s 0.00000 0.33333 0.66667 0.74536 0.66667 0.33333 0.00000 455s 0.00000 0.66667 0.88192 0.94281 0.88192 0.66667 0.00000 455s 0.00000 0.74536 0.94281 1.00000 0.94281 0.74536 0.00000 455s 0.00000 0.66667 0.88192 0.94281 0.88192 0.66667 0.00000 455s 0.00000 0.33333 0.66667 0.74536 0.66667 0.33333 0.00000 455s 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000]; 455s assert (getnhood (strel ("ball", 3, 1)), shape); 455s assert (getheight (strel ("ball", 3, 1)), height, 0.0001); 455s ***** test 455s shape = logical ([0 0 0 1 0 0 0 455s 0 0 1 1 1 0 0 455s 0 1 1 1 1 1 0 455s 1 1 1 1 1 1 1 455s 0 1 1 1 1 1 0 455s 0 0 1 1 1 0 0 455s 0 0 0 1 0 0 0]); 455s assert (getnhood (strel ("diamond", 3)), shape); 455s ***** test 455s shape = logical ([0 0 0 1 0 0 0 455s 0 1 1 1 1 1 0 455s 0 1 1 1 1 1 0 455s 1 1 1 1 1 1 1 455s 0 1 1 1 1 1 0 455s 0 1 1 1 1 1 0 455s 0 0 0 1 0 0 0]); 455s assert (getnhood (strel ("disk", 3, 0)), shape); 455s ***** test 455s shape = logical ([1 1 1]); 455s assert (getnhood (strel ("line", 3.9, 20.17)), shape); 455s shape = logical ([0 0 1 455s 0 1 0 455s 1 0 0]); 455s assert (getnhood (strel ("line", 3.9, 20.18)), shape); 455s shape = logical ([1 0 0 0 0 0 0 0 0 455s 0 1 0 0 0 0 0 0 0 455s 0 0 1 0 0 0 0 0 0 455s 0 0 1 0 0 0 0 0 0 455s 0 0 0 1 0 0 0 0 0 455s 0 0 0 0 1 0 0 0 0 455s 0 0 0 0 0 1 0 0 0 455s 0 0 0 0 0 0 1 0 0 455s 0 0 0 0 0 0 1 0 0 455s 0 0 0 0 0 0 0 1 0 455s 0 0 0 0 0 0 0 0 1]); 455s assert (getnhood (strel ("line", 14, 130)), shape); 455s ***** test 455s se = strel ("octagon", 0); 455s seq = getsequence (se); 455s assert (getnhood (se), true (1)); 455s assert (getnhood (seq(1)), true (1)); 455s 455s se = strel ("octagon", 3); 455s seq = getsequence (se); 455s shape = logical ([0 0 1 1 1 0 0 455s 0 1 1 1 1 1 0 455s 1 1 1 1 1 1 1 455s 1 1 1 1 1 1 1 455s 1 1 1 1 1 1 1 455s 0 1 1 1 1 1 0 455s 0 0 1 1 1 0 0]); 455s assert (getnhood (se), shape); 455s assert (size (seq), [4 1]); 455s 455s templ1 = logical ([0 0 0; 1 1 1; 0 0 0]); 455s templ2 = logical ([0 1 0; 0 1 0; 0 1 0]); 455s templ3 = logical ([1 0 0; 0 1 0; 0 0 1]); 455s templ4 = logical ([0 0 1; 0 1 0; 1 0 0]); 455s assert ({getnhood(seq(1)) getnhood(seq(2)) getnhood(seq(3)) getnhood(seq(4))}, 455s {templ1 templ2 templ3 templ4}); 455s 455s seq = getsequence (strel ("octagon", 21)); 455s assert (size (seq), [28 1]); 455s assert (arrayfun (@(x) getnhood (seq(x)), 1:4:25, "UniformOutput", false), 455s repmat ({templ1}, 1, 7)); 455s assert (arrayfun (@(x) getnhood (seq(x)), 2:4:26, "UniformOutput", false), 455s repmat ({templ2}, 1, 7)); 455s assert (arrayfun (@(x) getnhood (seq(x)), 3:4:27, "UniformOutput", false), 455s repmat ({templ3}, 1, 7)); 455s assert (arrayfun (@(x) getnhood (seq(x)), 4:4:28, "UniformOutput", false), 455s repmat ({templ4}, 1, 7)); 455s ***** test 455s shape = logical ([1 1 0]'); 455s assert (getnhood (strel ("pair", [-1 0])), shape); 455s shape = logical ([1 0 0 0 0 0 0 455s 0 0 0 1 0 0 0 455s 0 0 0 0 0 0 0]); 455s assert (getnhood (strel ("pair", [-1 -3])), shape); 455s shape = logical ([0 0 0 0 0 0 0 455s 0 0 0 0 0 0 0 455s 0 0 0 1 0 0 0 455s 0 0 0 0 0 0 0 455s 0 0 0 0 0 0 1]); 455s assert (getnhood (strel ("pair", [2 3])), shape); 455s ***** test 455s assert (getnhood (strel ("rectangle", [10 5])), true (10, 5)); 455s assert (getnhood (strel ("square", 5)), true (5)); 455s ***** shared se, seq 455s se = strel ("square", 5); 455s seq = getsequence (se); 455s assert (class (se(1)), "strel") 455s assert (class (se(1,1)),"strel") 455s assert (class (seq), "strel") 455s assert (class (seq(1)), "strel") 455s assert (class (seq(2)), "strel") 455s assert (numel (se), 1) 455s assert (numel (seq), 2) 455s assert (getnhood (seq(1)), true (5, 1)) 455s assert (getnhood (seq(2)), true (1, 5)) 455s assert (size (se), [1 1]) 455s assert (size (seq), [2 1]) 455s assert (isscalar (se), true) 455s assert (isscalar (seq), false) 455s ***** error se(2); 455s ***** error seq(3); 455s ***** test 455s se = strel ("arbitrary", [1 0 0; 1 1 0; 0 1 0], [2 0 0; 3 1 0; 0 3 0]); 455s ref = reflect (se); 455s assert (getnhood (ref), logical([0 1 0; 0 1 1; 0 0 1])); 455s assert (getheight (ref), [0 3 0; 0 1 3; 0 0 2]); 455s ***** error strel() 455s ***** error strel("nonmethodthing", 2) 455s ***** error strel("arbitrary", "stuff") 455s ***** error strel("arbitrary", [0 0 1], [2 0 1; 4 5 1]) 455s ***** error strel("arbitrary", [0 0 1], "stuff") 455s ***** error strel("ball", -3, 1) 455s ***** error strel("diamond", -3) 455s ***** error strel("disk", -3) 455s ***** error strel("line", 0, 45) 455s ***** error strel("octagon", 3.5) 455s ***** error strel("octagon", 4) 455s ***** error strel("octagon", -1) 455s ***** error strel("pair", [45 67 90]) 455s ***** error strel("rectangle", 2) 455s ***** error strel("rectangle", [2 -5]) 455s ***** error strel("square", [34 1-2]) 455s 28 tests, 28 passed, 0 known failure, 0 skipped 455s [inst/getrangefromclass.m] 455s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/getrangefromclass.m 455s ***** shared img 455s img = ones (5); 455s ***** assert (getrangefromclass (double (img)), [0 1]); # double returns [0 1] 455s ***** assert (getrangefromclass (single (img)), [0 1]); # single returns [0 1] 455s ***** assert (getrangefromclass (logical (img)), [0 1]); # logical returns [0 1] 455s ***** assert (getrangefromclass (int8 (img)), [-128 127]); # checks int 455s ***** assert (getrangefromclass (uint8 (img)), [0 255]); # checks unit 455s ***** fail ("getrangefromclass ('string')"); # fails with strings 455s ***** fail ("getrangefromclass ({3, 4})"); # fails with cells 455s 7 tests, 7 passed, 0 known failure, 0 skipped 455s [inst/imabsdiff.m] 455s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imabsdiff.m 455s ***** assert (imabsdiff (uint8 ([23 250]), uint8 ([26 50])), uint8 ([ 3 200])); # default to first class and abs works 455s ***** assert (imabsdiff (uint8 ([23 250]), uint8 ([24 50]), "uint16"), uint16 ([ 1 200])); # defining output class works (not in matlab) 455s ***** assert (imabsdiff (uint8 ([23 250]), uint8 ([24 255]), "int8"), int8 ([ 1 5])); # signed integers kinda work (not in matlab) 455s ***** assert (imabsdiff (logical ([ 1 0]), logical ([ 1 1])), double ([ 0 1])); # return double for two logical images 455s ***** fail ("imabsdiff (uint8 ([23 250]), 30"); # fails subtracting a scalar 455s ***** fail ("imabsdiff (uint8 ([23 250]), uint16 ([23 250]))"); # input need to have same class 455s 6 tests, 6 passed, 0 known failure, 0 skipped 455s [inst/imtransform.m] 455s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imtransform.m 455s ***** demo 455s ## Various linear transforms 455s figure (); 455s im = [checkerboard(20, 2, 4); checkerboard(40, 1, 2)]; 455s %input space corners 455s incp = [1 1; 160 1; 160 160; 1 160]; 455s udata = [min(incp(:,1)) max(incp(:,1))]; 455s vdata = [min(incp(:,2)) max(incp(:,2))]; 455s subplot (2,3,1); 455s imshow (im) 455s hold on 455s plot (incp(:,1), incp(:,2), 'ob') 455s axis on 455s xlabel ('Original') 455s 455s % Translation and scaling 455s outcp = incp * 2; 455s outcp(:,1) += 200; 455s outcp(:,2) += 500; 455s T = maketform ('affine', incp(1:3,:), outcp(1:3,:)); 455s subplot (2,3,2); 455s [im2 xdata ydata] = imtransform (im, T, 'udata', udata, 455s 'vdata', vdata, 'fillvalues', 1); 455s imh = imshow (im2); set (imh, 'xdata', xdata, 'ydata', ydata) 455s set (gca, 'xlim', xdata, 'ylim', ydata) 455s axis on, hold on, xlabel ('Translation / Scaling'); 455s plot (outcp(:,1), outcp(:,2), 'or') 455s 455s % Shear 455s outcp = [1 1; 160 1; 140 160; -19 160]; % affine only needs 3 control points 455s T = maketform ('affine', incp(1:3,:), outcp(1:3,:)); 455s subplot (2,3,3); 455s [im2 xdata ydata] = imtransform (im, T, 'udata', udata, 455s 'vdata', vdata, 'fillvalues', 1); 455s imh = imshow (im2); set (imh, 'xdata', xdata, 'ydata', ydata) 455s set (gca, 'xlim', xdata, 'ylim', ydata) 455s axis on, hold on, xlabel ('Shear'); 455s plot (outcp(:,1), outcp(:,2), 'or') 455s 455s % Rotation 455s theta = pi/4; 455s T = maketform ('affine', [cos(theta) -sin(theta); ... 455s sin(theta) cos(theta); 0 0]); 455s outcp = tformfwd (T, incp); 455s subplot (2,3,4); 455s [im2 xdata ydata] = imtransform (im, T, 'udata', udata, 455s 'vdata', vdata, 'fillvalues', 1 ); 455s imh = imshow (im2); set (imh, 'xdata', xdata, 'ydata', ydata) 455s set (gca, 'xlim', xdata, 'ylim', ydata) 455s axis on, hold on, xlabel ('Rotation'); 455s plot (outcp(:,1), outcp(:,2), 'or') 455s 455s % Reflection around x axis 455s outcp = incp; 455s outcp(:,2) *= -1; 455s T = cp2tform (incp, outcp, 'similarity'); 455s subplot (2,3,5); 455s [im2 xdata ydata] = imtransform (im, T, 'udata', udata, 455s 'vdata', vdata, 'fillvalues', 1 ); 455s imh = imshow (im2); set (imh, 'xdata', xdata, 'ydata', ydata) 455s set (gca, 'xlim', xdata, 'ylim', ydata) 455s axis on, hold on, xlabel ('Reflection'); 455s plot (outcp(:,1), outcp(:,2), 'or') 455s 455s % Projection 455s outcp = [1 1; 160 -40; 220 220; 12 140]; 455s T = maketform ('projective', incp, outcp); 455s subplot (2,3,6); 455s [im2 xdata ydata] = imtransform (im, T, 'udata', udata, 455s 'vdata', vdata, 'fillvalues', 1 ); 455s imh = imshow (im2); set (imh, 'xdata', xdata, 'ydata', ydata) 455s set (gca, 'xlim', xdata, 'ylim', ydata) 455s axis on, hold on, xlabel ('Projection'); 455s plot (outcp(:,1), outcp(:,2), 'or') 455s ***** demo 455s ## Streched image 455s rad = 2; % minimum value: 4/pi 455s [uu vv] = meshgrid ((-2:2)/rad, (-2:2)/rad); 455s rescfactor = sin ((uu.^2 + vv.^2).^.5); 455s inpts = [(reshape (uu, numel (uu), 1)), (reshape (vv, numel (uu), 1))]; 455s xx = rescfactor .* sign(uu); 455s yy = rescfactor .* sign(vv); 455s outpts = [reshape(xx, numel (xx), 1) reshape(yy, numel (yy), 1)]; 455s 455s T = cp2tform (inpts, outpts, "polynomial", 4); 455s figure; 455s subplot (1,2,1) 455s im = zeros (800, 800, 3); 455s im(:,:,1) = checkerboard (100) > 0.2; 455s im(:,:,3) = checkerboard (100) < 0.2; 455s [im2 xdata ydata] = imtransform (im, T, 'udata', [-2 2], 455s 'vdata', [-2 2], 'fillvalues', 455s [0 1 0]); 455s imh = imshow (im2); 455s set (imh, 'xdata', xdata, 'ydata', ydata) 455s set (gca, 'xlim', xdata, 'ylim', ydata) 455s [im cmap] = imread ('default.img'); 455s subplot (1,2,2) 455s [im2 xdata ydata] = imtransform (im, T, 'udata', [-1 1], 455s 'vdata', [-1 1], 'fillvalues', 455s round (length (cmap) / 2)); 455s imh = imshow (im2, cmap); 455s ***** test 455s im = checkerboard (); 455s incp = [0 0; 0 1; 1 1]; 455s scl = 10; 455s outcp = scl * incp; 455s T = maketform ('affine', incp, outcp); 455s [im2 xdata ydata] = imtransform (im, T, 'udata', [0 1], 455s 'vdata', [0 1], 'size', [500 500]); 455s assert (xdata, scl * ([0 1])) 455s assert (ydata, scl * ([0 1])) 455s assert (size (im2), [500 500]) 456s ***** test 456s im = checkerboard (); 456s incp = [0 0; 0 1; 1 1]; 456s scl = 10; 456s outcp = scl * incp; 456s xyscale = scl; 456s T = maketform ('affine', incp, outcp); 456s [im2 xdata ydata] = imtransform (im, T, 'xyscale', xyscale); 456s assert (size (im2), size (im), 1) 456s ***** test 456s im = checkerboard (100, 10, 4); 456s theta = 2 * pi; 456s T = maketform ("affine", [cos(theta) -sin(theta); ... 456s sin(theta) cos(theta); 0 0]); 456s im2 = imtransform (im, T, "nearest", "xdata", [1 800], "ydata", [1 2000]); 456s im = im(2:end-1, 2:end-1); %avoid boundaries 456s im2 = im2(2:end-1, 2:end-1); 456s assert (im, im2) 456s ***** test 456s im = checkerboard (20, 10, 4); 456s theta = pi/6; 456s T = maketform ('affine', [cos(theta) -sin(theta); ... 456s sin(theta) cos(theta); 0 0]); 456s [im2, xdata] = imtransform (im, T); 456s nu = columns(im); 456s nv = rows(im); 456s nx = xdata(2); 456s diag = sqrt (nu^2 + nv^2); 456s ang = atan (nv / nu); 456s assert (nx, diag * abs (cos (theta - ang)), 456s diag * 1 / size (im2, 2)) 456s ***** test 456s im = rand (2); 456s tmat = [eye(2); 0 0]; 456s T = maketform ("affine", tmat); 456s im2 = imtransform (im, T, "xdata", [1 3]); 456s assert (im2(:,3), zeros (2,1)) 456s ***** test 456s im = rand (2); 456s tmat = [eye(2); 0 0]; 456s T = maketform ('affine', tmat); 456s im2 = imtransform (im, T, "xdata", [1 3]); 456s assert (size (im2), [2 3]) 456s ***** test 456s im = rand (2); 456s tmat = [eye(2); 0 0]; 456s T = maketform ('affine', tmat); 456s im2 = imtransform (im, T, "xyscale", [0.5 0.5]); 456s assert (size (im2), [3 3]) 456s ***** test 456s im = [1,2,3,4; 5,6,7,8; 9,10,11,12; 13,14,15,16]; 456s tmat = [eye(2); 0 0]; 456s T = maketform ('affine', tmat); 456s im2 = imtransform (im, T, 'xdata', [1 4], 'ydata', [4 1]); 456s assert (im2, [13,14,15,16; 9,10,11,12; 5,6,7,8; 1,2,3,4]) 456s 456s im2 = imtransform (im, T, 'xdata', [4 1], 'ydata', [1 4]); 456s assert (im2, [4,3,2,1; 8,7,6,5; 12,11,10,9; 16,15,14,13]) 456s 456s [im2, xd, yd] = imtransform (im, T, 'xdata', [4 1], 'ydata', [4 1]); 456s assert (im2, [16,15,14,13; 12,11,10,9; 8,7,6,5; 4,3,2,1]) 456s assert (xd, [4 1]) 456s assert (yd, [4 1]) 456s 456s ***** error imtransform () 456s ***** error imtransform (rand(2)) 456s ***** error ... 456s imtransform (rand(2), maketform ('affine', [eye(2); 0 0]), ... 456s 'udata', [1 2], 'vdata', [2 1]); 456s ***** error ... 456s imtransform (rand(2), maketform ('affine', [eye(2); 0 0]), ... 456s 'udata', [2 1], 'vdata', [1 2]); 456s 12 tests, 12 passed, 0 known failure, 0 skipped 456s [inst/@imref3d/contains.m] 456s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@imref3d/contains.m 456s ***** error id=Octave:invalid-fun-call contains (imref3d) 456s ***** error id=Octave:invalid-fun-call contains (imref3d, 1) 456s ***** error id=Octave:invalid-fun-call contains (imref3d, 1, 2) 456s ***** error id=Octave:invalid-fun-call contains (imref3d, 1, 2, 3, 4) 456s ***** error id=Octave:invalid-input-arg contains (imref3d, [1, 2], 3, 4) 456s ***** error id=Octave:invalid-input-arg contains (imref3d, 1, [2, 3], 4) 456s ***** error id=Octave:invalid-input-arg contains (imref3d, 1, 2, [3, 4]) 456s ***** error id=Octave:expected-real contains (imref3d, 1j, 2, 3) 456s ***** error id=Octave:expected-real contains (imref3d, 1, 2j, 3) 456s ***** error id=Octave:expected-real contains (imref3d, 1, 2, 3j) 456s ***** test 456s r = imref3d ([128, 128, 27]); 456s assert (contains (r, [5, 6, 6, 8], [5, 10, 10, 257], [1, 27.5, 28, 1]), logical ([1, 1, 0, 0])) 456s 11 tests, 11 passed, 0 known failure, 0 skipped 456s [inst/@imref3d/imref3d.m] 456s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@imref3d/imref3d.m 456s ***** error id=Octave:invalid-fun-call imref3d (1, 2, 3, 4, 5) 457s ***** error id=Octave:incorrect-size imref3d (42) 457s ***** error id=Octave:incorrect-size imref3d ([42]) 457s ***** error id=Octave:incorrect-size imref3d ([4, 2]) 457s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3, 3]) 457s ***** error id=Octave:expected-integer imref3d ([4.2, 42]) 457s ***** error id=Octave:expected-positive imref3d ([0, 0]) 457s ***** error id=Octave:expected-positive imref3d ([-4, 2]) 457s ***** error id=Octave:expected-positive imref3d ([4, 2, 3], 0, 1, 2) 457s ***** error id=Octave:expected-positive imref3d ([4, 2, 3], 1, 0, 2) 457s ***** error id=Octave:expected-positive imref3d ([4, 2, 3], 1, 2, 0) 457s ***** error id=Octave:expected-real imref3d ([4, 2, 3], j, 1, 2) 457s ***** error id=Octave:expected-real imref3d ([4, 2, 3], 1, j, 2) 457s ***** error id=Octave:expected-real imref3d ([4, 2, 3], 1, 2, j) 457s ***** error id=Octave:expected-real imref3d ([4, 2, 3], [j, 2], [3, 4], [5, 6]) 457s ***** error id=Octave:expected-real imref3d ([4, 2, 3], [1, 2], [j, 4], [5, 6]) 457s ***** error id=Octave:expected-real imref3d ([4, 2, 3], [1, 2], [3, 4], [5, j]) 457s ***** error id=Octave:expected-vector imref3d ([4, 2, 3], [], [], []) 457s ***** error id=Octave:expected-vector imref3d ([4, 2, 3], [], [1], [2]) 457s ***** error id=Octave:expected-scalar imref3d ([4, 2, 3], [1], [], []) 457s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1, 2], [3, 4], [0]) 457s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1, 2], [3, 4, 5], [6, 7]) 457s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1, 2], [3, 4], [5, 6, 7]) 457s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1; 2], [3, 4], [5, 6]) 457s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1, 2], [3; 4], [5, 6]) 457s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1, 2], [3, 4], [5; 6]) 457s ***** error id=Octave:invalid-indexing imref3d().InvalidProperty 457s ***** error id=Octave:expected-increasing imref3d ([100, 200, 3], [1.5 0.5], [2.5, 3.5], [0.5, 1.5]) 457s ***** error id=Octave:expected-increasing imref3d ([100, 200, 3], [1.5 2.5], [2.5, 1.5], [0.5, 1.5]) 457s ***** error id=Octave:expected-increasing imref3d ([100, 200, 3], [1.5 2.5], [2.5, 3.5], [1.5, 0.5]) 457s ***** assert (imref3d ([4, 2, 3]).ImageSize, [4, 2, 3]) 457s ***** test 457s r = imref3d; 457s assert (r.XWorldLimits, [0.5, 2.5]) 457s assert (r.YWorldLimits, [0.5, 2.5]) 457s assert (r.ZWorldLimits, [0.5, 2.5]) 457s assert (r.ImageSize, [2, 2, 2]) 457s assert (r.PixelExtentInWorldX, 1) 457s assert (r.PixelExtentInWorldY, 1) 457s assert (r.PixelExtentInWorldZ, 1) 457s assert (r.ImageExtentInWorldX, 2) 457s assert (r.ImageExtentInWorldY, 2) 457s assert (r.ImageExtentInWorldZ, 2) 457s assert (r.XIntrinsicLimits, [0.5, 2.5]) 457s assert (r.YIntrinsicLimits, [0.5, 2.5]) 457s assert (r.ZIntrinsicLimits, [0.5, 2.5]) 457s ***** test 457s r = imref3d ([128, 128, 27]); 457s assert (r.XWorldLimits, [0.5, 128.5]) 457s assert (r.YWorldLimits, [0.5, 128.5]) 457s assert (r.ZWorldLimits, [0.5, 27.5]) 457s assert (r.ImageSize, [128, 128, 27]) 457s assert (r.PixelExtentInWorldX, 1) 457s assert (r.PixelExtentInWorldY, 1) 457s assert (r.PixelExtentInWorldZ, 1) 457s assert (r.ImageExtentInWorldX, 128) 457s assert (r.ImageExtentInWorldY, 128) 457s assert (r.ImageExtentInWorldZ, 27) 457s assert (r.XIntrinsicLimits, [0.5, 128.5]) 457s assert (r.YIntrinsicLimits, [0.5, 128.5]) 457s assert (r.ZIntrinsicLimits, [0.5, 27.5]) 457s ***** test 457s r = imref3d ([128, 128, 27], 2, 2, 4); 457s assert (r.XWorldLimits, [1, 257]) 457s assert (r.YWorldLimits, [1, 257]) 457s assert (r.ZWorldLimits, [2, 110]) 457s assert (r.ImageSize, [128, 128, 27]) 457s assert (r.PixelExtentInWorldX, 2) 457s assert (r.PixelExtentInWorldY, 2) 457s assert (r.PixelExtentInWorldZ, 4) 457s assert (r.ImageExtentInWorldX, 256) 457s assert (r.ImageExtentInWorldY, 256) 457s assert (r.ImageExtentInWorldZ, 108) 457s assert (r.XIntrinsicLimits, [0.5, 128.5]) 457s assert (r.YIntrinsicLimits, [0.5, 128.5]) 457s assert (r.ZIntrinsicLimits, [0.5, 27.5]) 457s ***** test 457s r = imref3d; 457s assert (r.XWorldLimits, [0.5, 2.5]) 457s assert (r.YWorldLimits, [0.5, 2.5]) 457s assert (r.ZWorldLimits, [0.5, 2.5]) 457s assert (r.ImageSize, [2, 2, 2]) 457s assert (r.PixelExtentInWorldX, 1) 457s assert (r.PixelExtentInWorldY, 1) 457s assert (r.PixelExtentInWorldZ, 1) 457s assert (r.ImageExtentInWorldX, 2) 457s assert (r.ImageExtentInWorldY, 2) 457s assert (r.ImageExtentInWorldZ, 2) 457s assert (r.XIntrinsicLimits, [0.5, 2.5]) 457s assert (r.YIntrinsicLimits, [0.5, 2.5]) 457s assert (r.ZIntrinsicLimits, [0.5, 2.5]) 457s r.ImageSize = [128, 128, 27]; 457s assert (r.XWorldLimits, [0.5, 2.5]) 457s assert (r.YWorldLimits, [0.5, 2.5]) 457s assert (r.ZWorldLimits, [0.5, 2.5]) 457s assert (r.ImageSize, [128, 128, 27]) 457s assert (r.PixelExtentInWorldX, 0.015625, 1e-6) 457s assert (r.PixelExtentInWorldY, 0.015625, 1e-6) 457s assert (r.PixelExtentInWorldZ, 0.074074, 1e-6) 457s assert (r.ImageExtentInWorldX, 2) 457s assert (r.ImageExtentInWorldY, 2) 457s assert (r.ImageExtentInWorldZ, 2) 457s assert (r.XIntrinsicLimits, [0.5, 128.5]) 457s assert (r.YIntrinsicLimits, [0.5, 128.5]) 457s assert (r.ZIntrinsicLimits, [0.5, 27.5]) 457s ***** test 457s r = imref3d; 457s assert (r.XWorldLimits, [0.5, 2.5]) 457s assert (r.YWorldLimits, [0.5, 2.5]) 457s assert (r.ZWorldLimits, [0.5, 2.5]) 457s assert (r.ImageSize, [2, 2, 2]) 457s assert (r.PixelExtentInWorldX, 1) 457s assert (r.PixelExtentInWorldY, 1) 457s assert (r.PixelExtentInWorldZ, 1) 457s assert (r.ImageExtentInWorldX, 2) 457s assert (r.ImageExtentInWorldY, 2) 457s assert (r.ImageExtentInWorldZ, 2) 457s assert (r.XIntrinsicLimits, [0.5, 2.5]) 457s assert (r.YIntrinsicLimits, [0.5, 2.5]) 457s assert (r.ZIntrinsicLimits, [0.5, 2.5]) 457s r.XWorldLimits = [-60, 13.33]; 457s r.YWorldLimits = [-900.8, -560.26]; 457s r.ZWorldLimits = [-302.48, 1500.333]; 457s assert (r.XWorldLimits, [-60, 13.33]) 457s assert (r.YWorldLimits, [-900.8, -560.26]) 457s assert (r.ZWorldLimits, [-302.48, 1500.333]) 457s assert (r.ImageSize, [2, 2, 2]) 457s assert (r.PixelExtentInWorldX, 36.6650) 457s assert (r.PixelExtentInWorldY, 170.27, 1e-5) 457s assert (r.PixelExtentInWorldZ, 901.4065) 457s assert (r.ImageExtentInWorldX, 73.33, 1e-5) 457s assert (r.ImageExtentInWorldY, 340.54, 1e-5) 457s assert (r.ImageExtentInWorldZ, 1802.813, 1e-5) 457s assert (r.XIntrinsicLimits, [0.5, 2.5]) 457s assert (r.YIntrinsicLimits, [0.5, 2.5]) 457s assert (r.ZIntrinsicLimits, [0.5, 2.5]) 457s ***** test 457s r = imref3d; 457s fail ("r.XWorldLimits = []", "") 457s fail ("r.XWorldLimits = [1]", "") 457s fail ("r.XWorldLimits = [j]", "") 457s fail ("r.XWorldLimits = [1; 2]", "") 457s fail ("r.YWorldLimits = []", "") 457s fail ("r.YWorldLimits = [1]", "") 457s fail ("r.YWorldLimits = [j]", "") 457s fail ("r.YWorldLimits = [1; 2]", "") 457s fail ("r.ZWorldLimits = []", "") 457s fail ("r.ZWorldLimits = [1]", "") 457s fail ("r.ZWorldLimits = [j]", "") 457s fail ("r.ZWorldLimits = [1; 2]", "") 457s 37 tests, 37 passed, 0 known failure, 0 skipped 457s [inst/@imref3d/worldToSubscript.m] 457s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@imref3d/worldToSubscript.m 457s ***** error id=Octave:invalid-fun-call worldToSubscript (imref3d) 457s ***** error id=Octave:invalid-fun-call worldToSubscript (imref3d, 1) 457s ***** error id=Octave:invalid-fun-call worldToSubscript (imref3d, 1, 2) 457s ***** error id=Octave:invalid-fun-call worldToSubscript (imref3d, 1, 2, 3, 4) 457s ***** error id=Octave:expected-real worldToSubscript (imref3d, 1j, 2, 3) 457s ***** error id=Octave:expected-real worldToSubscript (imref3d, 1, 2j, 3) 457s ***** error id=Octave:expected-real worldToSubscript (imref3d, 1, 2, 3j) 457s ***** error id=Octave:invalid-input-arg worldToSubscript (imref3d, [1, 2], 3, 4) 457s ***** error id=Octave:invalid-input-arg worldToSubscript (imref3d, 1, [2, 3], 4) 457s ***** error id=Octave:invalid-input-arg worldToSubscript (imref3d, 1, 2, [3, 4]) 457s ***** test 457s r = imref3d ([128, 128, 27], 2, 2, 4); 457s xW = [108, 108, 113.2, 2]; 457s yW = [92, 92, 92, -1]; 457s zW = [52, 55, 52, 0.33]; 457s [rS, cS, pS] = worldToSubscript (r, xW, yW, zW); 457s assert (rS, [46, 46, 46, NaN]) 457s assert (cS, [54, 54, 57, NaN]) 457s assert (pS, [13, 14, 13, NaN]) 457s 11 tests, 11 passed, 0 known failure, 0 skipped 457s [inst/@imref3d/intrinsicToWorld.m] 457s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@imref3d/intrinsicToWorld.m 457s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref3d) 457s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref3d, 1) 457s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref3d, 1, 2) 457s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref3d, 1, 2, 3, 4) 457s ***** error id=Octave:expected-real intrinsicToWorld (imref3d, 1j, 2, 3) 457s ***** error id=Octave:expected-real intrinsicToWorld (imref3d, 1, 2j, 3) 457s ***** error id=Octave:expected-real intrinsicToWorld (imref3d, 1, j, 3j) 457s ***** error id=Octave:invalid-input-arg intrinsicToWorld (imref3d, [1, 2], 3, 4) 457s ***** error id=Octave:invalid-input-arg intrinsicToWorld (imref3d, 1, [2, 3], 4) 457s ***** error id=Octave:invalid-input-arg intrinsicToWorld (imref3d, 1, 2, [3, 4]) 457s ***** test 457s r = imref3d ([128, 128, 27], 2, 2, 4); 457s xI = [54, 71, 57, 70]; 457s yI = [46, 48, 79, 80]; 457s zI = [13, 13, 13, 13]; 457s [xW, yW, zW] = intrinsicToWorld (r, xI, yI, zI); 457s assert (xW, [108, 142, 114, 140]) 457s assert (yW, [92, 96, 158, 160]) 457s assert (zW, [52, 52, 52, 52]) 457s ***** test 457s [xW, yW, zW] = intrinsicToWorld (imref3d, -5.3, -2.8, -15.88); 457s assert (xW, -5.3) 457s assert (yW, -2.8) 457s assert (zW, -15.88, 1e-6) 457s ***** test 457s [xW, yW, zW] = intrinsicToWorld (imref3d, [1, 2; 3, 4], 457s [2, 3; 5, 9], 457s [-5, 8; 19, 42.8]); 457s assert (xW, [1, 2; 3, 4]) 457s assert (yW, [2, 3; 5, 9]) 457s assert (zW, [-5, 8; 19, 42.8]) 457s 13 tests, 13 passed, 0 known failure, 0 skipped 457s [inst/@imref3d/worldToIntrinsic.m] 457s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/@imref3d/worldToIntrinsic.m 457s ***** error id=Octave:invalid-fun-call worldToIntrinsic (imref3d) 458s ***** error id=Octave:invalid-fun-call worldToIntrinsic (imref3d, 1, 2) 458s ***** error id=Octave:invalid-fun-call worldToIntrinsic (imref3d, 1, 2, 3, 4) 458s ***** error id=Octave:expected-real worldToIntrinsic (imref3d, 1j, 2, 3) 458s ***** error id=Octave:expected-real worldToIntrinsic (imref3d, 1, 2j, 3) 458s ***** error id=Octave:expected-real worldToIntrinsic (imref3d, 1, 2, 3j) 458s ***** error id=Octave:invalid-input-arg worldToIntrinsic (imref3d, [1, 2], 3, 4) 458s ***** error id=Octave:invalid-input-arg worldToIntrinsic (imref3d, 1, [2, 3], 4) 458s ***** error id=Octave:invalid-input-arg worldToIntrinsic (imref3d, 1, 2, [3, 4]) 458s ***** test 458s r = imref3d ([128, 128, 27], 2, 2, 4); 458s xW = [108, 108, 108.2, 2]; 458s yW = [92, 92, 92, -1]; 458s zW = [52, 55, 52, 0.33]; 458s [xI, yI, zI] = worldToIntrinsic (r, xW, yW, zW); 458s assert (xI, [54, 54, 54.1, 1], 1e-6) 458s assert (yI, [46, 46, 46, -0.5], 1e-6) 458s assert (zI, [13, 13.75, 13, 0.0825], 1e-6) 458s 10 tests, 10 passed, 0 known failure, 0 skipped 458s [inst/otf2psf.m] 458s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/otf2psf.m 458s ***** function otf = rand_otf (varargin) 458s otf = complex (rand (varargin{:}), rand (varargin{:})); 458s ***** endfunction 458s ***** test 458s otf = rand_otf (6, 1); 458s assert (otf2psf (otf), circshift (ifft (otf), 3), eps); 458s ***** test 458s otf = rand_otf (6, 6); 458s assert (otf2psf (otf), circshift (ifft2 (otf), [3 3]), eps); 458s ***** test 458s otf = rand_otf (6, 6, 6); 458s assert (otf2psf (otf), circshift (ifftn (otf), [3 3 3]), eps); 458s ***** test 458s otf = rand_otf (7, 1); 458s assert (otf2psf (otf), circshift (ifft (otf), 3), eps); 458s ***** test 458s otf = rand_otf (7, 7); 458s assert (otf2psf (otf), circshift (ifft2 (otf), [3 3]), eps); 458s ***** test 458s otf = rand_otf (6, 7, 8); 458s assert (otf2psf (otf), circshift (ifftn (otf), [3 3 4]), eps); 458s ***** test 458s otf = rand_otf (7, 1); 458s ppsf = circshift (ifft (otf), 3); 458s assert (otf2psf (otf, 6), ppsf(1:6), eps); 458s assert (otf2psf (otf, [6 1]), ppsf(1:6), eps); 458s ***** test 458s otf = rand_otf (7, 7); 458s ppsf = circshift (ifft2 (otf), [3 3]); 458s assert (otf2psf (otf, [6 1]), ppsf(1:6,4), eps); 458s ***** test 458s otf = rand_otf (6, 7); 458s ppsf = circshift (ifft2 (otf), [3 3]); 458s assert (otf2psf (otf, [6 6]), ppsf(:,1:6), eps); 458s ***** error otf2psf ("not a otf") 458s ***** error otf2psf (rand_otf (16), 18) 458s ***** error otf2psf (rand_otf (16), [14 18]) 458s ***** error otf2psf (rand_otf (16), [18 18]) 458s ***** error otf2psf (rand_otf (16, 1), 18) 458s ***** test 458s psf = fspecial ("gaussian", 16); 458s otf = psf2otf (psf); 458s assert (otf2psf (otf), psf, eps); 458s ***** xtest 458s psf = rand (16); 458s otf = psf2otf (psf); 458s assert (otf2psf (otf), psf, 4*eps); 458s ***** test 458s psf = rand (8); 458s otf = psf2otf (psf, [16 16]); 458s assert (otf2psf (otf, [8 8]), psf, 2*eps); 458s 17 tests, 17 passed, 0 known failure, 0 skipped 458s [inst/viscircles.m] 458s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/viscircles.m 458s ***** demo 458s centers = randi ([0 100], 5, 2); 458s radii = randi ([10 100], 5, 1); 458s axis equal 458s viscircles (centers, radii, 458s "Color", "magenta", 458s "LineStyle", ":", 458s "LineWidth", 5); 458s title ("5 random circles"); 458s #---------------------------------------------- 458s # the figure window shows 5 circles with random 458s # radii and positions 458s ***** test # old undocumented property 458s h = viscircles ([0 0], 1, "EdgeColor", "black"); 458s assert (get (get (h, "children")(1), "color"), [0 0 0]) 458s ***** test # old undocumented property 458s h = viscircles ([0 0], 1, "DrawBackgroundCircle", false); 458s assert (numel (get (h, "children")), 1) 458s ***** error ... 458s viscircles ([0 0], 1, "Color", "magenta", "EdgeColor", "black") 458s ***** test 458s centers = randi ([0 100], 5, 2); 458s radii = randi ([0 100], 5, 1); 458s h = viscircles (centers, radii); 458s close; 458s ***** test 458s centers = randi ([0 100], 5, 2); 458s radii = randi ([0 100], 5, 1); 458s figure (); 458s h = viscircles (gca (), centers, radii); 458s close; 458s ***** test 458s centers = randi ([0 100], 5, 2); 458s radii = randi ([0 100], 5, 1); 458s h = viscircles (centers, radii, "Color", "magenta", 458s "LineStyle", ":", "LineWidth", 5); 458s close; 458s ***** test 458s centers = randi ([0 100],5,2); 458s radii = randi ([0 100],5,1); 458s figure (); 458s h = viscircles (centers, radii, "Color", "magenta", 458s "LineStyle", ":", "LineWidth", 5); 458s close; 458s 7 tests, 7 passed, 0 known failure, 0 skipped 458s [inst/imcrop.m] 458s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imcrop.m 458s ***** test 458s a = randi (255, [100 100]); 458s rect = [20 30 3 5]; 458s assert (nthargout ([1 2], @imcrop, a, rect), {a(30:35, 20:23) rect}); 458s assert (nthargout (2, @imcrop, a, rect), rect); 458s assert (nthargout ([3 4], 4, @imcrop, a, rect), {a(30:35, 20:23) rect}); 458s ***** test 458s rgb = randi (255, [100 100 3]); 458s rect = [20 30 3 5]; 458s assert (nthargout ([1 2], @imcrop, rgb, rect), {rgb(30:35, 20:23,:) rect}); 458s assert (nthargout (2, @imcrop, rgb, rect), rect); 458s assert (nthargout ([3 4], 4, @imcrop, rgb, rect), {rgb(30:35, 20:23,:) rect}); 458s ***** test 458s a = randi (255, [100 100]); 458s rect = [20 30 3 5]; 458s cmap = jet (255); 458s assert (nthargout ([1 2], @imcrop, a, cmap, rect), {a(30:35, 20:23) rect}); 458s assert (nthargout (2, @imcrop, a, cmap, rect), rect); 458s assert (nthargout ([3 4], 4, @imcrop, a, cmap, rect), {a(30:35, 20:23) rect}); 458s ***** test 458s a = rand (100) > 0.5; 458s rect = [20 30 3 5]; 458s assert (nthargout ([1 2], @imcrop, a, rect), {a(30:35, 20:23) rect}); 458s assert (nthargout (2, @imcrop, a, rect), rect); 458s assert (nthargout ([3 4], 4, @imcrop, a, rect), {a(30:35, 20:23) rect}); 458s ***** assert (imcrop (0, [0.5 0.5 0.9 0.9]), 0); 458s ***** assert (imcrop (zeros (5), [1 1 1 1]), zeros (2)); 458s ***** test 458s im = magic (5); 458s assert (imcrop (im, [1 1 5 5]), im) 458s assert (imcrop (im, [0 0 5 5]), im) 458s assert (imcrop (im, [1 1 2 5]), im(:,1:3)) 458s assert (imcrop (im, [1 -3 2 5]), im(1:2,1:3)) 458s assert (imcrop (im, [5 -3 2 5]), im(1:2,5)) 458s ***** test 458s im = [1:7] .* [1; 2; 3; 4; 5]; 458s assert (imcrop (im, [1 1 5 5]), im(:,1:6)) 458s assert (imcrop (im, [0 0 5 5]), im(:,1:5)) 458s assert (imcrop (im, [1 1 2 5]), im(:,1:3)) 458s assert (imcrop (im, [1 -3 2 7]), im(1:4,1:3)) 458s assert (imcrop (im, [7 -3 2 7]), im(1:4,7)) 458s ***** test 458s ## Matlab returns [] (size 0x0) for this cases, while we return 458s ## [] (size 2x0). We are not compatible by design. If it ever 458s ## becomes an issue to anyone we can review this decision. 458s assert (imcrop (magic (5), [6 -3 2 5]), zeros (2, 0)) 458s 9 tests, 9 passed, 0 known failure, 0 skipped 458s [inst/imsubtract.m] 458s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/imsubtract.m 458s ***** assert (imsubtract (uint8 ([23 250]), uint8 ([24 50])), uint8 ([ 0 200])); # default to first class and truncate 458s ***** assert (imsubtract (uint8 ([23 250]), 10), uint8 ([13 240])); # works subtracting a scalar 458s ***** assert (imsubtract (uint8 ([23 250]), uint8 ([24 50]), "uint16"), uint16 ([ 0 200])); # defining output class works (not in matlab) 458s ***** assert (imsubtract (logical ([ 1 0]), logical ([ 1 1])), double ([ 0 -1])); # return double for two logical images 458s ***** assert (imsubtract (logical ([ 1 0]), logical ([ 1 1]), "logical"), logical ([ 0 0])); # this is matlab incompatible on purpose 458s ***** error imsubtract (uint8 ([23 250]), uint16 ([23 250])); 458s ***** warning imsubtract (uint8 ([23 250]), uint8 ([24 255]), "int8"); 458s ***** test 458s warning ("off", "all"); 458s assert (imsubtract (uint8 ([23 250]), uint8 ([24 255]), "int8"), 458s int8 ([-1 0])) 458s 8 tests, 8 passed, 0 known failure, 0 skipped 458s [inst/bwpack.m] 458s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/bwpack.m 458s ***** error id=Octave:invalid-fun-call bwpack () 458s ***** error id=Octave:invalid-input-arg bwpack ("text") 458s ***** xtest 458s ## bug #55521 458s assert (bwpack (eye (5)), uint32 ([1 2 4 8 16])) 458s !!!!! known failure 458s ASSERT errors for: assert (bwpack (eye (5)),uint32 ([1, 2, 4, 8, 16])) 458s 458s Location | Observed | Expected | Reason 458s (1) 16777216 1 Abs err 1.6777e+07 exceeds tol 0 by 2e+07 458s (2) 33554432 2 Abs err 3.3554e+07 exceeds tol 0 by 3e+07 458s (3) 67108864 4 Abs err 6.7109e+07 exceeds tol 0 by 7e+07 458s (4) 134217728 8 Abs err 1.3422e+08 exceeds tol 0 by 1e+08 458s (5) 268435456 16 Abs err 2.6844e+08 exceeds tol 0 by 3e+08 458s ***** xtest 458s ## bug #55521 458s assert (bwpack (repmat (eye (4), 15, 1)), 458s uint32 ([286331153 572662306 1145324612 2290649224 458s 17895697 35791394 71582788 143165576])) 458s !!!!! known failure 458s ASSERT errors for: assert (bwpack (repmat (eye (4), 15, 1)),uint32 ([286331153, 572662306, 1145324612, 2290649224; 17895697, 35791394, 71582788, 143165576])) 458s 458s Location | Observed | Expected | Reason 458s (2,1) 286331137 17895697 Abs err 2.6844e+08 exceeds tol 0 by 3e+08 458s (2,2) 572662274 35791394 Abs err 5.3687e+08 exceeds tol 0 by 5e+08 458s (2,3) 1145324548 71582788 Abs err 1.0737e+09 exceeds tol 0 by 1e+09 458s (2,4) 2290649096 143165576 Abs err 2.1475e+09 exceeds tol 0 by 2e+09 458s ***** xtest 458s ## bug #55521 458s assert (bwpack (ones (3, 3, 3, 3)), repmat (uint32 (7), 1, 3, 3, 3)) 458s !!!!! known failure 458s ASSERT errors for: assert (bwpack (ones (3, 3, 3, 3)),repmat (uint32 (7), 1, 3, 3, 3)) 458s 458s Location | Observed | Expected | Reason 458s (1,1,1,1) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,2,1,1) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,3,1,1) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,1,2,1) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,2,2,1) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,3,2,1) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,1,3,1) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,2,3,1) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,3,3,1) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,1,1,2) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,2,1,2) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,3,1,2) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,1,2,2) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,2,2,2) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,3,2,2) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,1,3,2) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,2,3,2) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,3,3,2) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,1,1,3) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,2,1,3) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,3,1,3) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,1,2,3) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,2,2,3) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,3,2,3) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,1,3,3) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,2,3,3) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s (1,3,3,3) 117440512 7 Abs err 1.1744e+08 exceeds tol 0 by 1e+08 458s ***** assert (bwpack (false (0, 10)), uint32 (zeros (0, 10))) 458s ***** assert (bwpack (false (0, 0)), uint32 (zeros (0, 0))) 458s ***** assert (bwpack (false (32, 0)), uint32 (zeros (1, 0))) 458s ***** assert (bwpack (false (33, 0)), uint32 (zeros (2, 0))) 458s ***** assert (bwpack (false (0, 10, 3)), uint32 (zeros (0, 10, 3))) 458s ***** assert (bwpack (false (33, 0, 3)), uint32 (zeros (2, 0, 3))) 458s ***** assert (bwpack (i), bwpack (logical (i))) 458s 12 tests, 9 passed, 3 known failures, 0 skipped 458s [inst/im2single.m] 458s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/inst/im2single.m 458s ***** assert (im2single (single ([1 2 3])), single ([1 2 3])); 458s ***** assert (im2single ([1 2 3]), single ([1 2 3])); 458s ***** assert (im2single (uint8 ([0 127 128 255])), single ([0 127/255 128/255 1])); 458s ***** assert (im2single (uint16 ([0 127 128 65535])), single ([0 127/65535 128/65535 1])); 458s ***** assert (im2single (int16 ([-32768 -32767 -32766 32767])), single ([0 1/65535 2/65535 1])); 458s ***** assert (im2single (uint8 ([0 1 255]), "indexed"), single ([1 2 256])); 458s ***** assert (im2single (uint16 ([0 1 2557]), "indexed"), single ([1 2 2558])); 458s ***** assert (im2single ([3 25], "indexed"), single ([3 25])); 458s ***** error im2single ([0 1 2], "indexed"); 458s ***** error im2single (int16 ([17 8]), "indexed"); 458s ***** error im2single (int16 ([-7 8]), "indexed"); 458s ***** error im2single ([false true], "indexed"); 458s 12 tests, 12 passed, 0 known failure, 0 skipped 458s Checking C++ files ... 458s [src/watershed.cc] 458s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/watershed.cc 458s ***** test 458s ex = tril (ones (50), -1) + triu (repmat (2, [50 50]), 2); 458s ex(1, 1) = 1; 458s ex(end, end) = 1; 458s 458s in = ones (50); 458s in(end,1) = 0; 458s in(1,end) = 0; 458s assert (watershed (in), ex) 458s ***** test 458s ex = tril (ones (49), -1) + triu (repmat (2, [49 49]), 2); 458s ex(1, 1) = 1; 458s ex(end, end) = 1; 458s 458s in = ones (49); 458s in(end,1) = 0; 458s in(1,end) = 0; 458s assert (watershed (in), ex) 458s 458s c = (fspecial ('disk', 5) > 0) + 1; 458s in(20:30,20:30) = c; 458s c = (fspecial ('disk', 4) > 0) + 2; 458s in(21:29,21:29) = c; 458s assert (watershed (in), ex) 458s ***** test 458s ex = tril (ones (49), -1) + triu (repmat (2, [49 49]), 2); 458s ex(1:28,1:28) = (tril (ones (28) ,7) + triu (repmat (2, [28 28]), 10)); 458s ex(1,9) = 1; 458s ex(end,end) = 1; 458s ex(20:29, 29) = 0; 458s 458s in = ones (49); 458s in(end,1) = 0; 458s in(1,end) = 0; 458s c = (fspecial ("disk", 5) > 0) + 1; 458s in(1:11,38:48) = c; 458s 458s assert (watershed (in), ex) 458s ***** test 458s im = [ 458s 3 4 5 6 0 458s 2 3 4 5 6 458s 1 2 3 4 5 458s 0 1 2 3 4 458s 1 0 1 2 3]; 458s 458s labeled8 = [ 458s 1 1 1 0 2 458s 1 1 1 0 0 458s 1 1 1 1 1 458s 1 1 1 1 1 458s 1 1 1 1 1]; 458s labeled4 = [ 458s 1 1 1 0 3 458s 1 1 1 0 0 458s 1 1 0 2 2 458s 1 0 2 2 2 458s 0 2 2 2 2]; 458s labeled_weird = [ 458s 1 1 1 0 2 458s 1 1 1 1 0 458s 1 1 1 1 1 458s 1 1 1 1 1 458s 1 1 1 1 1]; 458s 458s assert (watershed (im), labeled8); 458s assert (watershed (im, 8), labeled8); 458s assert (watershed (im, 4), labeled4); 458s assert (watershed (im, [1 1 0; 1 1 1; 0 1 1]), labeled_weird); 458s ***** test 458s im = [ 458s 2 3 30 2 458s 3 30 3 30 458s 255 31 30 4 458s 2 255 31 30 458s 1 2 255 5]; 458s 458s labeled4 = [ 458s 1 1 0 4 458s 1 0 3 0 458s 0 2 0 5 458s 2 2 2 0 458s 2 2 0 6]; 458s labeled_weird = [ 458s 1 1 0 3 458s 1 1 1 0 458s 0 1 1 1 458s 2 0 0 0 458s 2 2 0 4]; 458s 458s assert (watershed (im, 4), labeled4); 458s assert (watershed (im, [1 1 0; 1 1 1; 0 1 1]), labeled_weird); 458s ***** xtest 458s ## The following test is required for Matlab compatibility. There must be 458s ## something specific about their implementation that causes it to return 458s ## this value. Even when solving it on paper, we get different results. 458s im = [ 458s 2 3 30 2 458s 3 30 3 30 458s 255 31 30 4 458s 2 255 31 30 458s 1 2 255 5]; 458s 458s labeled8 = [ 458s 1 1 0 3 458s 1 1 0 3 458s 0 0 0 0 458s 2 2 0 4 458s 2 2 0 4]; 458s assert (watershed (im), labeled8); 458s assert (watershed (im, 8), labeled8); 458s !!!!! known failure 458s ASSERT errors for: assert (watershed (im),labeled8) 458s 458s Location | Observed | Expected | Reason 458s (3,4) 3 0 Abs err 3 exceeds tol 0 by 3 458s (4,4) 0 4 Abs err 4 exceeds tol 0 by 4 458s ***** test 458s im = [ 458s 2 2 2 2 2 2 2 458s 2 2 30 30 30 2 2 458s 2 30 20 20 20 30 2 458s 40 40 20 20 20 40 40 458s 1 40 20 20 20 40 0 458s 1 1 40 20 40 0 0 458s 1 1 1 20 0 0 0]; 458s 458s labeled8 = [ 458s 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 458s 0 0 0 0 0 0 0 458s 2 2 2 0 3 3 3 458s 2 2 2 0 3 3 3 458s 2 2 2 0 3 3 3]; 458s labeled4 = [ 458s 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 458s 0 1 1 1 1 1 0 458s 2 0 1 1 1 0 3 458s 2 2 0 1 0 3 3 458s 2 2 2 0 3 3 3]; 458s labeled_weird = [ 458s 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 458s 0 1 1 0 0 0 0 458s 2 0 0 0 3 3 3 458s 2 2 0 3 3 3 3 458s 2 2 2 0 3 3 3]; 458s 458s assert (watershed (im), labeled8); 458s assert (watershed (im, 8), labeled8); 458s assert (watershed (im, 4), labeled4); 458s assert (watershed (im, [1 1 0; 1 1 1; 0 1 1]), labeled_weird); 458s ***** test 458s im = [ 458s 40 40 40 40 40 40 40 40 40 40 40 40 40 458s 40 3 3 5 5 5 10 10 10 10 15 20 40 458s 40 3 3 5 5 30 30 30 10 15 15 20 40 458s 40 3 3 5 30 20 20 20 30 15 15 20 40 458s 40 40 40 40 40 20 20 20 40 40 40 40 40 458s 40 10 10 10 40 20 20 20 40 10 10 10 40 458s 40 5 5 5 10 40 20 40 10 10 5 5 40 458s 40 1 3 5 10 15 20 15 10 5 1 0 40 458s 40 1 3 5 10 15 20 15 10 5 1 0 40 458s 40 40 40 40 40 40 40 40 40 40 40 40 40]; 458s 458s labeled8 = [ 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 0 0 0 0 0 0 0 0 0 0 0 0 0 458s 2 2 2 2 2 2 0 3 3 3 3 3 3 458s 2 2 2 2 2 2 0 3 3 3 3 3 3 458s 2 2 2 2 2 2 0 3 3 3 3 3 3 458s 2 2 2 2 2 2 0 3 3 3 3 3 3 458s 2 2 2 2 2 2 0 3 3 3 3 3 3]; 458s labeled4 = [ 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 0 0 0 0 1 1 1 1 1 0 0 0 0 458s 2 2 2 2 0 1 1 1 0 3 3 3 3 458s 2 2 2 2 2 0 1 0 3 3 3 3 3 458s 2 2 2 2 2 2 0 3 3 3 3 3 3 458s 2 2 2 2 2 2 0 3 3 3 3 3 3 458s 2 2 2 2 2 2 0 3 3 3 3 3 3]; 458s labeled_weird = [ 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 1 1 1 1 1 1 1 1 1 1 1 1 1 458s 0 0 0 0 1 1 0 0 0 0 0 0 0 458s 2 2 2 2 0 0 0 3 3 3 3 3 3 458s 2 2 2 2 2 0 3 3 3 3 3 3 3 458s 2 2 2 2 2 2 0 3 3 3 3 3 3 458s 2 2 2 2 2 2 0 3 3 3 3 3 3 458s 2 2 2 2 2 2 0 3 3 3 3 3 3]; 458s 458s assert (watershed (im), labeled8); 458s assert (watershed (im, 8), labeled8); 458s assert (watershed (im, 4), labeled4); 458s assert (watershed (im, [1 1 0; 1 1 1; 0 1 1]), labeled_weird); 458s ***** xtest 458s ## This test is failing for Matlab compatibility 458s im_full = [ 458s 1 2 10 3 8 7 5 458s 3 2 5 10 8 1 4 458s 1 8 2 3 8 3 6]; 458s 458s matlab_result_full = [ 458s 1 1 0 3 0 4 4 458s 0 0 0 0 0 4 4 458s 2 2 2 0 4 4 4]; 458s 458s assert (watershed (im_full), matlab_result_full); 458s 458s im_crop = [ 458s 2 10 3 8 7 5 458s 2 5 10 8 1 4 458s 8 2 3 8 3 6]; 458s 458s matlab_result_crop = [ 458s 1 0 2 0 3 3 458s 1 0 0 0 3 3 458s 1 1 1 0 3 3]; 458s 458s assert (watershed (im_crop), matlab_result_crop); 458s !!!!! known failure 458s ASSERT errors for: assert (watershed (im_full),matlab_result_full) 458s 458s Location | Observed | Expected | Reason 458s (3,4) 2 0 Abs err 2 exceeds tol 0 by 2 458s (3,5) 0 4 Abs err 4 exceeds tol 0 by 4 458s 9 tests, 7 passed, 2 known failures, 0 skipped 458s [src/hough_line.cc] 458s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/hough_line.cc 458s ***** test 458s I = zeros(100, 100); 458s I(1,1) = 1; I(100,100) = 1; I(1,100) = 1; I(100, 1) = 1; I(50,50) = 1; 458s [J, R] = houghtf(I); J = J / max(J(:)); 458s assert(size(J) == [length(R) 181]); 458s 458s ***** demo 458s I = zeros(100, 150); 458s I(30,:) = 1; I(:, 65) = 1; I(35:45, 35:50) = 1; 458s for i = 1:90, I(i,i) = 1;endfor 458s I = imnoise(I, 'salt & pepper'); 458s imshow(I); 458s J = houghtf(I); J = J / max(J(:)); 458s imshow(J); 458s 1 test, 1 passed, 0 known failure, 0 skipped 458s [src/bwdist.cc] 458s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/bwdist.cc 458s ***** shared bw 458s 458s bw = [0 1 0 1 0 1 1 0 458s 0 0 0 1 1 0 0 0 458s 0 0 0 1 1 0 0 0 458s 0 0 0 1 1 0 0 0 458s 0 0 1 1 1 1 1 1 458s 1 1 1 1 0 0 0 1 458s 1 1 1 0 0 0 1 0 458s 0 0 1 0 0 0 1 1]; 458s ***** test 458s out = [ 1.00000 0.00000 1.00000 0.00000 1.00000 0.00000 0.00000 1.00000 458s 1.41421 1.00000 1.00000 0.00000 0.00000 1.00000 1.00000 1.41421 458s 2.23607 2.00000 1.00000 0.00000 0.00000 1.00000 2.00000 2.00000 458s 2.00000 1.41421 1.00000 0.00000 0.00000 1.00000 1.00000 1.00000 458s 1.00000 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 458s 0.00000 0.00000 0.00000 0.00000 1.00000 1.00000 1.00000 0.00000 458s 0.00000 0.00000 0.00000 1.00000 1.41421 1.00000 0.00000 1.00000 458s 1.00000 1.00000 0.00000 1.00000 2.00000 1.00000 0.00000 0.00000]; 458s out = single (out); 458s 458s assert (bwdist (bw), out, 0.0001); # default is euclidean 458s assert (bwdist (bw, "euclidean"), out, 0.0001); 458s assert (bwdist (logical (bw), "euclidean"), out, 0.0001); 458s ***** test 458s out = [ 1 0 1 0 1 0 0 1 458s 1 1 1 0 0 1 1 1 458s 2 2 1 0 0 1 2 2 458s 2 1 1 0 0 1 1 1 458s 1 1 0 0 0 0 0 0 458s 0 0 0 0 1 1 1 0 458s 0 0 0 1 1 1 0 1 458s 1 1 0 1 2 1 0 0]; 458s out = single (out); 458s 458s assert (bwdist (bw, "chessboard"), out); 458s ***** test 458s out = [ 1 0 1 0 1 0 0 1 458s 2 1 1 0 0 1 1 2 458s 3 2 1 0 0 1 2 2 458s 2 2 1 0 0 1 1 1 458s 1 1 0 0 0 0 0 0 458s 0 0 0 0 1 1 1 0 458s 0 0 0 1 2 1 0 1 458s 1 1 0 1 2 1 0 0]; 458s out = single (out); 458s 458s assert (bwdist (bw, "cityblock"), out); 458s ***** test 458s out = [ 1.00000 0.00000 1.00000 0.00000 1.00000 0.00000 0.00000 1.00000 458s 1.41421 1.00000 1.00000 0.00000 0.00000 1.00000 1.00000 1.41421 458s 2.41421 2.00000 1.00000 0.00000 0.00000 1.00000 2.00000 2.00000 458s 2.00000 1.41421 1.00000 0.00000 0.00000 1.00000 1.00000 1.00000 458s 1.00000 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 458s 0.00000 0.00000 0.00000 0.00000 1.00000 1.00000 1.00000 0.00000 458s 0.00000 0.00000 0.00000 1.00000 1.41421 1.00000 0.00000 1.00000 458s 1.00000 1.00000 0.00000 1.00000 2.00000 1.00000 0.00000 0.00000]; 458s out = single (out); 458s 458s assert (bwdist (bw, "quasi-euclidean"), out, 0.0001); 458s 458s bw(logical (bw)) = 3; # there is no actual check if matrix is binary or 0 and 1 458s assert (bwdist (bw, "quasi-euclidean"), out, 0.0001); 458s 458s bw(logical (bw)) = -2; # anything non-zero is considered object 458s assert (bwdist (bw, "quasi-euclidean"), out, 0.0001); 458s ***** test 458s bw = [ 1 1 1 1 0 1 1 1 1 458s 1 1 1 1 0 1 1 1 1 458s 1 1 0 1 1 1 1 1 1 458s 0 1 1 1 1 1 1 1 1]; 458s 458s dist = [ 0 0 0 0 1 0 0 0 0 458s 0 0 0 0 1 0 0 0 0 458s 0 0 1 0 0 0 0 0 0 458s 1 0 0 0 0 0 0 0 0]; 458s dist = single (dist); 458s 458s c = [ 1 5 9 13 13 21 25 29 33 458s 2 6 10 14 14 22 26 30 34 458s 3 7 10 15 19 23 27 31 35 458s 8 8 12 16 20 24 28 32 36]; 458s c = uint32 (c); 458s 458s [dout, cout] = bwdist (bw, "euclidean"); 458s assert (dout, dist) 458s assert (cout, c) 458s ***** test 458s bw = [ 0 1 1 0 0 0 1 0 458s 0 0 0 0 0 0 0 0 458s 1 1 0 0 0 0 0 0 458s 0 0 0 0 0 0 1 0 458s 0 0 0 0 1 0 0 1 458s 0 0 0 0 0 0 0 0 458s 1 0 0 0 0 0 0 0 458s 0 0 1 0 0 1 1 0]; 458s out = single ([ 458s 1.00000 0.00000 0.00000 1.00000 2.00000 1.00000 0.00000 1.00000 458s 1.00000 1.00000 1.00000 sqrt(2) sqrt(2)+1 sqrt(2) 1.00000 sqrt(2) 458s 0.00000 0.00000 1.00000 2.00000 2.00000 sqrt(2) 1.00000 sqrt(2) 458s 1.00000 1.00000 sqrt(2) sqrt(2) 1.00000 1.00000 0.00000 1.00000 458s 2.00000 2.00000 2.00000 1.00000 0.00000 1.00000 1.00000 0.00000 458s 1.00000 sqrt(2) 2.00000 sqrt(2) 1.00000 sqrt(2) sqrt(2) 1.00000 458s 0.00000 1.00000 1.00000 sqrt(2) sqrt(2) 1.00000 1.00000 sqrt(2) 458s 1.00000 1.00000 0.00000 1.00000 1.00000 0.00000 0.00000 1.00000 458s ]); 458s assert (bwdist (bw, "quasi-euclidean"), out); 458s ***** error bwdist (bw, "not a valid method"); 458s ***** test 458s ## Special case of there being no foreground element (bug #50874) 458s expected_dist = single (Inf (2, 2)); 458s expected_idx = uint32 ([0 0; 0 0]); 458s 458s [dist, idx] = bwdist (false (2, 2)); 458s assert (dist, expected_dist) 458s assert (idx, expected_idx) 458s 458s [dist, idx] = bwdist (zeros (2, 2)); 458s assert (dist, expected_dist) 458s assert (idx, expected_idx) 458s ***** test 458s ## Special case of 1D input (bug #50874) 458s assert (bwdist ([1 0]), single ([0 1])) 458s assert (bwdist ([1 0]'), single ([0 1]')) 458s assert (bwdist ([0 1 0 0 0 0 1 1]), single ([1 0 1 2 2 1 0 0])) 458s assert (bwdist ([1 1 0 0 0 0 1 1]'), single ([0 0 1 2 2 1 0 0])') 458s assert (bwdist ([1 0], "euclidean"), single ([0 1])) 458s assert (bwdist ([1 0], "chessboard"), single ([0 1])) 458s assert (bwdist ([1 0], "cityblock"), single ([0 1])) 458s assert (bwdist ([1 0], "quasi-euclidean"), single ([0 1])) 458s ***** test 458s ## test 1D input with 2nd output argument (indices) (bug #50874) 458s expected_dist = single ([1 0 1]); 458s expected_idx = uint32 ([2 2 2]); 458s 458s [dist, idx] = bwdist ([0 1 0]); 458s assert (dist, expected_dist) 458s assert (idx, expected_idx) 458s 458s [dist, idx] = bwdist ([0 1 0]'); 458s assert (dist, expected_dist') 458s assert (idx, expected_idx') 458s 458s expected_dist = single ([0 0 1 0 0]); 458s expected_idx = uint32 ([1 2 2 4 5]); 458s [dist, idx] = bwdist ([1 1 0 1 1]); 458s assert (dist, expected_dist) 458s assert (idx, expected_idx) 458s 458s expected_dist = single ([1 0 1 2 1 0 0 0 1 1 0 0 0 0 1 2 3 4]); 458s expected_idx = uint32 ([2 2 2 2 6 6 7 8 8 11 11 12 13 14 14 14 14 14]); 458s [dist, idx] = bwdist ([0 1 0 0 0 1 1 1 0 0 1 1 1 1 0 0 0 0]); 458s assert (dist, expected_dist) 458s assert (idx, expected_idx) 458s 458s expected_dist = single ([0 0 1 2 1 0 0 0 1 1 0 0 0 0 1 2 1 0]); 458s expected_idx = uint32 ([1 2 2 2 6 6 7 8 8 11 11 12 13 14 14 14 18 18]); 458s [dist, idx] = bwdist ([1 1 0 0 0 1 1 1 0 0 1 1 1 1 0 0 0 1]); 458s assert (dist, expected_dist) 458s assert (idx, expected_idx) 458s ***** test 458s assert (bwdist ([0 0]), single ([Inf, Inf])) 458s assert (bwdist ([0 0]'), single ([Inf, Inf]')) 458s ***** xtest 458s ## This is Matlab incompatible because the bottom right corners is 458s ## equally distant to the top right and bottom left corners. However, 458s ## both are correct answers, and the returned value is just 458s ## implementation dependent. 458s bw = logical ([ 458s 0 0 1 458s 0 0 0 458s 1 0 0 458s ]); 458s expected_dist = single ([ 458s 2.0 1.0 0.0 458s 1.0 sqrt(2) 1.0 458s 0.0 1.0 2.0 458s ]); 458s expected_idx = uint32 ([ 458s 3 7 7 458s 3 3 7 458s 3 3 3 458s ]); 458s [dist, idx] = bwdist (bw); 458s assert (dist, expected_dist) 458s assert (idx, expected_idx) 458s !!!!! known failure 458s ASSERT errors for: assert (idx,expected_idx) 458s 458s Location | Observed | Expected | Reason 458s (3,3) 7 3 Abs err 4 exceeds tol 0 by 4 458s 12 tests, 11 passed, 1 known failure, 0 skipped 458s [src/graycomatrix.cc] 458s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/graycomatrix.cc 458s ***** shared a 458s ***** test 458s a = [0 0 0 1 2; 458s 1 1 0 1 1; 458s 2 2 1 0 0; 458s 1 1 0 2 0; 458s 0 0 1 0 1]; 458s squeeze(graycomatrix(a, 3, 1, -pi/4)) == [4 2 0; 458s 2 3 2; 458s 1 2 0]; 458s 458s ***** assert(size(graycomatrix(a, 3, 1:5, [0:3]*-pi/4)), [3, 3, 5, 4]) 458s ***** demo 458s 458s # Pattern Recognition Engineering (Nadler & Smith) 458s # Digital Image Processing (Gonzales & Woods), p. 668 458s 458s a = [0 0 0 1 2; 458s 1 1 0 1 1; 458s 2 2 1 0 0; 458s 1 1 0 2 0; 458s 0 0 1 0 1]; 458s 458s graycomatrix(a, 3, 1, [0 1]*-pi/4) 458s 458s 2 tests, 2 passed, 0 known failure, 0 skipped 458s [src/imerode.cc] 458s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/imerode.cc 458s ***** assert (imerode (eye (3), [1]), eye (3)); 458s ***** assert (imerode (eye (3), []), Inf (3, 3)); 458s ***** test 458s im = [0 1 0 458s 1 1 1 458s 0 1 0]; 458s se = [1 0 0 458s 0 1 0 458s 0 1 1]; 458s assert (imerode (im, se), [0 1 0; 0 0 0; 0 1 0]); 458s assert (imerode (logical(im), se), logical ([0 1 0; 0 0 0; 0 1 0])); 458s assert (imerode (im, se, "full"), 458s [ 0 0 0 0 Inf 458s 1 0 1 0 Inf 458s 0 0 0 0 0 458s Inf 0 1 0 1 458s Inf Inf 0 1 0]); 458s assert (imerode (logical(im), se, "full"), 458s logical([0 0 0 0 1 458s 1 0 1 0 1 458s 0 0 0 0 0 458s 1 0 1 0 1 458s 1 1 0 1 0])); 458s ***** xtest 458s a = rand ([10 40 15 6 8 5]) > 0.2; 458s se = ones ([5 3 7]); 458s 458s ## the image is not really indexed but this way it is padded with 1s 458s assert (imerode (a, se), colfilt (a, "indexed", size (se), "sliding", @all)) 458s 458s assert (imerode (a, se, "valid"), convn (a, se, "valid") == nnz (se)) 458s ## again, we need to pad it ourselves because convn pads with zeros 458s b = true (size (a) + [4 2 6 0 0 0]); 458s b(3:12, 2:41, 4:18,:,:,:) = a; 458s assert (imdilate (b, se, "same"), convn (b, se, "same") > 0) 458s b = true (size (a) + [8 4 12 0 0 0]); 458s b(5:14, 3:42, 7:21,:,:,:) = a; 458s assert (imdilate (b, se, "full"), convn (b, se, "full") > 0) 464s ***** test 464s im = [0 0 0 0 0 0 0 464s 0 0 1 0 1 0 0 464s 0 0 1 1 0 1 0 464s 0 0 1 1 1 0 0 464s 0 0 0 0 0 0 0]; 464s se = [0 0 0 464s 0 1 0 464s 0 1 1]; 464s out = [0 0 0 0 0 0 0 464s 0 0 1 0 0 0 0 464s 0 0 1 1 0 0 0 464s 0 0 0 0 0 0 0 464s 0 0 0 0 0 0 0]; 464s assert (imerode (im, se), out); 464s assert (imerode (logical (im), se), logical (out)); 464s assert (imerode (im, logical (se)), out); 464s assert (imerode (logical (im), logical (se)), logical (out)); 464s 464s # with an even-size SE 464s se = [0 0 0 1 464s 0 1 0 0 464s 0 1 1 1]; 464s out = [0 0 0 0 0 0 0 464s 0 0 0 0 0 0 0 464s 0 0 1 0 0 0 0 464s 0 0 0 0 0 0 0 464s 0 0 0 0 0 0 0]; 464s assert (imerode (im, se), out); 464s out = [ 0 0 0 0 1 0 1 464s 0 0 1 0 1 1 0 464s 0 0 1 1 1 1 1 464s 0 0 1 1 1 1 1 464s 0 0 1 1 1 1 1]; 464s assert (imdilate (im, se), out); 464s ***** test 464s a = [ 82 2 97 43 79 43 41 65 51 11 464s 60 65 21 56 94 77 36 38 75 39 464s 32 68 78 1 16 75 76 90 81 56 464s 43 90 82 41 36 1 87 19 18 63 464s 63 64 2 48 18 43 38 25 22 99 464s 12 46 90 79 3 92 39 79 10 22 464s 38 98 11 10 40 90 88 38 4 76 464s 54 37 9 4 33 98 36 47 53 57 464s 38 76 82 50 14 74 64 99 7 33 464s 88 96 41 62 84 89 97 23 41 3]; 464s 464s domain = ones (3); 464s out = [ 2 1 1 1 16 36 36 11 464s 21 1 1 1 1 1 18 18 464s 2 1 1 1 1 1 18 18 464s 2 2 2 1 1 1 10 10 464s 2 2 2 3 3 25 4 4 464s 9 4 3 3 3 36 4 4 464s 9 4 4 4 14 36 4 4 464s 9 4 4 4 14 23 7 3]; 464s assert (imerode (a, domain, "valid"), out); 464s assert (imerode (uint8 (a), domain, "valid"), uint8 (out)); 464s assert (imerode (uint8 (a), strel ("arbitrary", domain), "valid"), uint8 (out)); 464s assert (imerode (uint8 (a), strel ("square", 3), "valid"), uint8 (out)); 464s 464s ***** ## Test for non-flat strel 464s assert (imerode (a, strel ("arbitrary", domain, ones (3)), "valid"), out -1); 464s 464s out = [ 97 97 97 94 94 90 90 90 464s 90 90 94 94 94 90 90 90 464s 90 90 82 75 87 90 90 99 464s 90 90 90 92 92 92 87 99 464s 98 98 90 92 92 92 88 99 464s 98 98 90 98 98 98 88 79 464s 98 98 82 98 98 99 99 99 464s 96 96 84 98 98 99 99 99]; 464s assert (imdilate (a, domain, "valid"), out); 464s assert (imdilate (uint8 (a), domain, "valid"), uint8 (out)); 464s 464s ***** ## Test for non-flat strel 464s assert (imdilate (a, strel ("arbitrary", domain, ones (3)), "valid"), out +1); 464s 464s ## test while using SE that can be decomposed and an actual sequence 464s domain = ones (5); 464s out = [ 2 1 1 1 1 1 16 11 11 11 464s 2 1 1 1 1 1 1 1 11 11 464s 2 1 1 1 1 1 1 1 11 11 464s 2 1 1 1 1 1 1 1 10 10 464s 2 1 1 1 1 1 1 1 4 4 464s 2 2 2 1 1 1 1 1 4 4 464s 2 2 2 2 2 3 3 4 4 4 464s 9 4 3 3 3 3 3 3 3 3 464s 9 4 4 4 4 4 4 3 3 3 464s 9 4 4 4 4 4 7 3 3 3]; 464s assert (imerode (a, domain), out); 464s assert (imerode (a, strel ("square", 5)), out); 464s assert (imerode (a, getsequence (strel ("square", 5))), out); 464s 464s ## using a non-symmetric SE 464s domain = [ 1 1 0 464s 0 1 1 464s 0 1 0]; 464s 464s out = [ 2 2 1 16 36 36 38 39 464s 60 1 1 16 1 36 19 18 464s 32 2 1 1 1 19 18 18 464s 2 2 18 3 1 1 19 10 464s 46 2 2 3 18 38 10 4 464s 11 9 4 3 3 36 4 4 464s 9 4 4 10 36 36 38 4 464s 37 9 4 4 33 36 7 7]; 464s assert (imerode (a, domain, "valid"), out); 464s assert (imerode (a, strel ("arbitrary", domain, ones (3)), "valid"), out -1); 464s 464s out = [ 78 97 56 94 94 90 90 81 464s 90 82 78 94 87 87 90 90 464s 90 90 82 43 75 87 90 99 464s 90 90 79 92 92 87 79 25 464s 98 90 90 90 92 92 79 79 464s 98 98 79 98 98 90 88 57 464s 98 82 50 74 98 99 99 53 464s 96 82 84 89 98 97 99 99]; 464s assert (imdilate (a, domain, "valid"), out); 464s assert (imdilate (a, strel ("arbitrary", domain, ones (3)), "valid"), out +1); 464s ***** test 464s im = reshape (magic(16), [4 8 4 2]); 464s se = true (3, 3, 3); 464s out = zeros (4, 8, 4, 2); 464s out(:,:,1,1) = [ 464s 3 3 46 2 2 2 47 47 464s 3 3 30 2 2 2 31 31 464s 17 17 16 16 16 20 13 13 464s 33 33 16 16 16 36 13 13]; 464s out(:,:,2,1) = [ 464s 3 3 46 2 2 2 43 43 464s 3 3 30 2 2 2 27 27 464s 17 17 12 12 12 20 13 13 464s 33 33 12 12 12 36 13 13]; 464s out(:,:,3,1) = [ 464s 3 3 42 6 6 6 43 43 464s 3 3 26 6 6 6 27 27 464s 21 21 12 12 12 20 9 9 464s 37 37 12 12 12 36 9 9]; 464s out(:,:,4,1) = [ 464s 7 7 42 6 6 6 43 43 464s 7 7 26 6 6 6 27 27 464s 21 21 12 12 12 24 9 9 464s 37 37 12 12 12 40 9 9]; 464s out(:,:,1,2) = [ 464s 11 11 38 10 10 10 39 39 464s 11 11 22 10 10 10 23 23 464s 25 25 8 8 8 28 5 5 464s 41 41 8 8 8 44 5 5]; 464s out(:,:,2,2) = [ 464s 11 11 38 10 10 10 35 35 464s 11 11 22 10 10 10 19 19 464s 25 25 4 4 4 28 5 5 464s 41 41 4 4 4 44 5 5]; 464s out(:,:,3,2) = [ 464s 11 11 34 14 14 14 35 35 464s 11 11 18 14 14 14 19 19 464s 29 29 4 4 4 28 1 1 464s 45 45 4 4 4 44 1 1]; 464s out(:,:,4,2) = [ 464s 15 15 34 14 14 14 35 35 464s 15 15 18 14 14 14 19 19 464s 29 29 4 4 4 32 1 1 464s 45 45 4 4 4 48 1 1]; 464s assert (imerode (im, se), out); 464s assert (imerode (uint16 (im), se), uint16 (out)); 464s 464s ## trying a more weird SE 464s se(:,:,1) = [1 0 1; 0 1 1; 0 0 0]; 464s se(:,:,3) = [1 0 1; 0 1 1; 0 0 1]; 464s out(:,:,1,1) = [ 464s 3 17 46 2 2 2 47 47 464s 17 3 30 2 2 2 31 31 464s 17 17 16 16 16 20 13 31 464s 33 33 16 16 16 36 13 13]; 464s out(:,:,2,1) = [ 464s 3 3 46 2 2 20 43 61 464s 3 3 30 2 20 2 27 43 464s 33 17 12 20 20 20 13 13 464s 51 33 12 12 30 36 13 13]; 464s out(:,:,3,1) = [ 464s 3 21 42 6 6 6 43 43 464s 21 3 26 6 6 6 27 27 464s 21 21 12 12 12 20 9 27 464s 37 37 12 12 12 36 9 9]; 464s out(:,:,4,1) = [ 464s 7 7 42 6 6 24 57 57 464s 7 7 26 6 24 6 43 43 464s 37 21 26 24 24 24 9 9 464s 55 37 12 12 26 40 9 9]; 464s out(:,:,1,2) = [ 464s 11 25 38 10 10 10 39 39 464s 25 11 22 10 10 10 23 23 464s 25 25 8 8 8 28 5 23 464s 41 41 8 8 8 44 5 5]; 464s out(:,:,2,2) = [ 464s 11 11 38 10 10 28 35 53 464s 11 11 22 10 22 10 19 35 464s 41 25 4 22 22 28 5 5 464s 59 41 4 4 22 44 5 5]; 464s out(:,:,3,2) = [ 464s 11 29 34 14 14 14 35 35 464s 29 11 18 14 14 14 19 19 464s 29 29 4 4 4 28 1 19 464s 45 45 4 4 4 44 1 1]; 464s out(:,:,4,2) = [ 464s 15 15 34 14 14 32 49 49 464s 15 15 18 14 18 14 35 35 464s 45 29 18 18 18 32 1 1 464s 63 45 4 4 18 48 1 1]; 464s assert (imerode (im, se), out); 464s assert (imerode (uint16 (im), se), uint16 (out)); 464s ***** error imerode (ones (10), 45) 464s ***** error imerode (ones (10), "some text") 464s ***** error imerode (ones (10), {23, 45}) 464s ***** error imerode (rand (10) > 10 , strel ("arbitrary", true (3), ones (3))) 464s ***** xtest 464s a = rand ([10 40 15 6 8 5]) > 0.8; 464s se = ones ([5 3 7]); 464s assert (imdilate (a, se), convn (a, se, "same") > 0) 464s assert (imdilate (a, se, "full"), convn (a, se, "full") > 0) 464s assert (imdilate (a, se, "valid"), convn (a, se, "valid") > 0) 464s assert (imdilate (a, se), colfilt (a, size (se), "sliding", @any)) 468s ***** test 468s im = reshape (magic(16), [4 8 4 2]); 468s se = true (3, 3, 3); 468s out = zeros (4, 8, 4, 2); 468s 468s out(:,:,1,1) = [ 468s 256 256 209 253 253 253 212 212 468s 256 256 225 253 253 253 228 228 468s 238 238 243 243 243 239 242 242 468s 222 222 243 243 243 223 242 242]; 468s out(:,:,2,1) = [ 468s 256 256 213 253 253 253 212 212 468s 256 256 229 253 253 253 228 228 468s 238 238 243 243 243 239 246 246 468s 222 222 243 243 243 223 246 246]; 468s out(:,:,3,1) = [ 468s 252 252 213 253 253 253 216 216 468s 252 252 229 253 253 253 232 232 468s 238 238 247 247 247 235 246 246 468s 222 222 247 247 247 219 246 246]; 468s out(:,:,4,1) = [ 468s 252 252 213 249 249 249 216 216 468s 252 252 229 249 249 249 232 232 468s 234 234 247 247 247 235 246 246 468s 218 218 247 247 247 219 246 246]; 468s out(:,:,1,2) = [ 468s 248 248 217 245 245 245 220 220 468s 248 248 233 245 245 245 236 236 468s 230 230 251 251 251 231 250 250 468s 214 214 251 251 251 215 250 250]; 468s out(:,:,2,2) = [ 468s 248 248 221 245 245 245 220 220 468s 248 248 237 245 245 245 236 236 468s 230 230 251 251 251 231 254 254 468s 214 214 251 251 251 215 254 254]; 468s out(:,:,3,2) = [ 468s 244 244 221 245 245 245 224 224 468s 244 244 237 245 245 245 240 240 468s 230 230 255 255 255 227 254 254 468s 214 214 255 255 255 211 254 254]; 468s out(:,:,4,2) = [ 468s 244 244 221 241 241 241 224 224 468s 244 244 237 241 241 241 240 240 468s 226 226 255 255 255 227 254 254 468s 210 210 255 255 255 211 254 254]; 468s assert (imdilate (im, se), out); 468s assert (imdilate (uint16 (im), se), uint16 (out)); 468s 468s ## trying a more weird SE 468s se(:,:,1) = [1 0 1; 0 1 1; 0 0 0]; 468s se(:,:,3) = [1 0 1; 0 1 1; 0 0 1]; 468s out(:,:,1,1) = [ 468s 256 256 209 239 253 253 212 194 468s 256 256 225 239 239 239 228 212 468s 222 222 243 239 243 239 242 242 468s 208 208 225 243 243 223 242 242]; 468s out(:,:,2,1) = [ 468s 256 256 213 253 253 253 212 212 468s 238 256 229 253 253 253 228 228 468s 238 238 243 243 243 239 246 228 468s 222 222 243 243 243 223 228 246]; 468s out(:,:,3,1) = [ 468s 252 252 213 235 253 253 216 198 468s 252 252 229 235 235 253 232 216 468s 222 238 247 235 247 235 246 246 468s 204 222 229 247 247 219 246 246]; 468s out(:,:,4,1) = [ 468s 252 252 213 249 249 249 216 216 468s 234 252 229 249 249 249 232 232 468s 234 234 247 247 247 235 246 232 468s 218 218 247 247 247 219 232 246]; 468s out(:,:,1,2) = [ 468s 248 248 217 231 245 245 220 202 468s 248 248 233 233 233 231 236 220 468s 214 214 251 233 251 231 250 250 468s 200 200 233 251 251 215 250 250]; 468s out(:,:,2,2) = [ 468s 248 248 221 245 245 245 220 220 468s 230 248 237 245 245 245 236 236 468s 230 230 251 251 251 231 254 236 468s 214 214 251 251 251 215 236 254]; 468s out(:,:,3,2) = [ 468s 244 244 221 227 245 245 224 206 468s 244 244 237 237 237 245 240 224 468s 214 230 255 237 255 227 254 254 468s 196 214 237 255 255 211 254 254]; 468s out(:,:,4,2) = [ 468s 244 244 221 241 241 241 224 224 468s 226 244 237 241 241 241 240 240 468s 226 226 255 255 255 227 254 240 468s 210 210 255 255 255 211 240 254]; 468s assert (imdilate (im, se), out); 468s assert (imdilate (uint16 (im), se), uint16 (out)); 468s ***** test # scalar blank SE 468s se = 0; 468s assert (imerode (5, se), Inf) 468s assert (imerode (true, se), true) 468s assert (imerode (false, se), true) 468s assert (imerode (uint8 (3), se), uint8 (255)) 468s 468s assert (imdilate (5, se), -Inf) 468s assert (imdilate (true, se), false) 468s assert (imdilate (false, se), false) 468s assert (imdilate (uint8 (3), se), uint8 (0)) 468s ***** test # empty SE 468s se = []; 468s assert (imerode (5, se), Inf) 468s assert (imerode (true, se), true) 468s assert (imerode (false, se), true) 468s assert (imerode (uint8 (3), se), uint8 (255)) 468s 468s assert (imdilate (5, se), -Inf) 468s assert (imdilate (true, se), false) 468s assert (imdilate (false, se), false) 468s assert (imdilate (uint8 (3), se), uint8 (0)) 468s ***** test # non-scalar blank SE 468s se = zeros (3, 3); 468s assert (imerode (5, se), Inf) 468s assert (imerode (true, se), true) 468s assert (imerode (false, se), true) 468s assert (imerode (uint8 (3), se), uint8 (255)) 468s 468s assert (imdilate (5, se), -Inf) 468s assert (imdilate(true, se), false) 468s assert (imdilate (false, se), false) 468s assert (imdilate (uint8 (3), se), uint8 (0)) 468s ***** test # erode only with out-of-border elements 468s se = [1 1 1; 1 0 1; 1 1 1]; 468s assert (imerode (5, se), Inf) 468s assert (imerode (true, se), true) 468s 468s assert (imdilate (5, se), -Inf) 468s assert (imdilate (true, se), false) 468s ***** test # only true elements of SE are out-of-border 468s se = [0 0 0; 1 0 0; 1 1 0]; 468s assert (imerode (zeros (3), se), [0 0 0; 0 0 0; Inf 0 0]) 468s assert (imerode (false (3), se), logical ([0 0 0; 0 0 0; 1 0 0])) 468s assert (imdilate (zeros (3), se), [0 0 -Inf; 0 0 0; 0 0 0]) 468s assert (imdilate (false (3), se), false (3, 3)) 468s 468s se = [0 0 0; 0 0 0; 1 1 1]; 468s assert (imerode (zeros (3, 3), se), [0 0 0; 0 0 0; Inf Inf Inf]) 468s assert (imerode (false (3, 3), se), logical ([0 0 0; 0 0 0; 1 1 1])) 468s assert (imdilate (zeros (3, 3), se), [-Inf -Inf -Inf; 0 0 0; 0 0 0]) 468s assert (imdilate (false (3, 3), se), false (3, 3)) 468s ***** test # only true elements of even-sized SE are out-of-border 468s se = logical ([0 1; 1 1]); 468s assert (imerode (false (3, 3), se), logical ([0 0 0; 0 0 0; 0 0 1])) 468s assert (imerode (zeros (3, 3), se), [0 0 0; 0 0 0; 0 0 Inf]) 468s 468s assert (imdilate (false (3, 3), se), false (3, 3)) 468s assert (imdilate (zeros (3, 3), se), [-Inf 0 0; 0 0 0; 0 0 0]) 468s 19 tests, 19 passed, 0 known failure, 0 skipped 468s [src/bwfill.cc] 468s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/bwfill.cc 468s ***** test 468s A = [0 1 0 0 1; 1 0 1 0 0; 1 0 1 1 0; 1 1 1 0 0; 1 0 0 1 0]; 468s R4 = logical(ones(5)); 468s R8 = logical([1 1 0 0 1; 1 0 1 0 0; 1 0 1 1 0; 1 1 1 0 0; 1 0 0 1 0]); 468s assert (bwfill (A,1,1,4), R4) 468s assert (bwfill (A,1,1,8), R8) 468s assert (bwfill (A,1,1), R8) 468s B = logical([0 1 0 0 1; 1 0 1 0 0; 1 0 1 1 0; 1 1 1 0 0; 1 0 0 1 0]); 468s assert (bwfill (A,3,3,4), B) 468s assert (bwfill (A,3,3,8), B) 468s assert (bwfill (A,3,3), B) 468s C = logical ([0 1 1 1 1; 1 0 1 1 1; 1 0 1 1 1; 1 1 1 1 1; 1 0 0 1 1]); 468s assert (bwfill (A,3,1,8), C) 468s assert (bwfill (A,3,1,4), R4) 468s assert (bwfill (A, [3 1], [1 3], 4), R4); 468s D = logical([0 1 1 1 1; 1 0 1 1 1; 1 0 1 1 1; 1 1 1 1 1; 1 0 0 1 1]); 468s assert (bwfill (A, [3 1], [1 3], 8), D); 468s assert (bwfill (A, [3 1], [1 3]), D); 468s E = logical ([0 1 0 0 1; 1 0 1 0 0; 1 0 1 1 0; 1 1 1 0 0; 1 0 0 1 0]); 468s assert (bwfill (A, "holes", 4), E); 468s F = logical ([1 1 0 0 1; 1 1 1 0 0; 1 1 1 1 0; 1 1 1 0 0; 1 0 0 1 0]); 468s assert (bwfill (A, "holes", 8), F); 468s assert (bwfill (A, "holes"), F); 468s ***** error id=Octave:invalid-fun-call bwfill () 468s ***** error id=Octave:invalid-fun-call bwfill ("aaa") 468s ***** error id=Octave:invalid-fun-call bwfill (rand (5) > 0.5) 468s ***** error id=Octave:invalid-fun-call bwfill (rand (5) > 0.5, 2) 468s ***** error bwfill (rand (5) > 0.5, "holes", 1) 468s ***** error bwfill (rand (5) > 0.5, 2, 2, 5) 468s ***** error id=Octave:invalid-fun-call bwfill (rand (5) > 0.5, "xxx") 468s ***** error id=Octave:invalid-fun-call bwfill (rand (5) > 0.5, 2, 2, 4, 5) 468s ***** error id=Octave:invalid-fun-call bwfill (rand (5) > 0.5, "holes", 4, 2) 468s 10 tests, 10 passed, 0 known failure, 0 skipped 468s [src/intlut.cc] 468s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/intlut.cc 468s ***** assert (intlut (uint8 (1:4), uint8 ( 255:-1:0)), uint8 (254:-1:251)); 468s ***** assert (intlut (uint16 (1:4), uint16 (65535:-1:0)), uint16 (65534:-1:65531)); 468s ***** assert (intlut (int16 (1:4), int16 (32767:-1:-32768)), int16 (-2:-1:-5)); 468s ***** assert (intlut (uint8 (255), uint8 (0:255)), uint8 (255)); 468s ***** assert (intlut (uint16 (65535), uint16 (0:65535)), uint16 (65535)); 468s ***** assert (intlut (int16 (32767), int16 (-32768:32767)), int16 (32767)); 468s ***** error intlut () 469s ***** error intlut ("text") 469s ***** error intlut (1:20, uint8 (0:255)); 469s ***** error intlut (uint16 (1:20), uint8 (0:255)); 469s ***** error intlut (uint8 (1:20), uint8 (0:200)); 469s ***** error intlut (uint16 (1:20), uint16 (0:500)); 469s ***** error intlut (uint8 (56), uint8 (magic (16) -1)) 469s 13 tests, 13 passed, 0 known failure, 0 skipped 469s [src/imreconstruct.cc] 469s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/imreconstruct.cc 469s ***** function recon = parallel_reconstruction (marker, mask, 469s conn = conndef (ndims (marker), "maximal")) 469s do 469s previous = marker; 469s marker = imdilate (marker, conn); 469s ## FIXME https://savannah.gnu.org/bugs/index.php?43712 469s if (strcmp (class (marker), "logical")) 469s marker = marker & mask; 469s else 469s marker = min (marker, mask); 469s endif 469s until (all ((marker == previous)(:))) 469s recon = marker; 469s ***** endfunction 469s ***** test 469s for cl = {"int8", "uint8", "int16", "uint16", "int32", "uint32"} 469s cl = cl{1}; 469s a = randi ([intmin(cl) intmax(cl)-30], 100, 100, cl); 469s b = a + randi (20, 100, 100, cl); 469s assert (imreconstruct (a, b), parallel_reconstruction (a, b)) 469s endfor 469s for cl = {"double", "single"} 469s cl = cl{1}; 469s a = (rand (100, 100, cl) - 0.5) .* 1000; 469s b = a + rand (100, 100, cl) * 100; 469s assert (imreconstruct (a, b), parallel_reconstruction (a, b)) 469s endfor 469s ***** test 469s for cl = {"int8", "uint8", "int16", "uint16", "int32", "uint32"} 469s cl = cl{1}; 469s a = randi ([intmin(cl) intmax(cl)-30], 100, 100, cl); 469s b = a + randi (20, 100, 100, cl); 469s c = [0 1 0; 1 1 1; 0 1 0]; 469s assert (imreconstruct (a, b, c), parallel_reconstruction (a, b, c)) 469s endfor 469s ***** test 469s a = randi (210, 100, 100); 469s b = a + randi (20, 100, 100); 469s c = ones (3, 1); 469s assert (imreconstruct (a, b, c), parallel_reconstruction (a, b, c)) 469s ***** test 469s a = randi (210, 500, 500, 10, 4); 469s b = a + randi (20, 500, 500, 10, 4); 469s c = ones (3, 3, 3); 469s assert (imreconstruct (a, b, c), parallel_reconstruction (a, b, c)) 484s ***** test 484s a = randi (210, 500, 500, 10, 4); 484s b = a + randi (20, 500, 500, 10, 4); 484s c = conndef (4, "minimal"); 484s assert (imreconstruct (a, b, c), parallel_reconstruction (a, b, c)) 494s ***** test 494s a = [ 0 0 0 0 0 0 0 1 0 0 494s 0 0 0 0 0 0 0 1 0 0 494s 1 0 0 0 0 0 0 0 0 0 494s 0 0 0 0 0 0 0 0 0 0 494s 0 0 0 0 0 0 0 1 0 0 494s 0 0 0 0 0 0 1 0 0 0 494s 0 0 0 0 0 0 0 0 0 0 494s 0 0 0 0 0 0 0 0 0 0 494s 0 0 0 0 1 0 0 0 0 0 494s 0 0 0 0 0 0 0 1 0 0]; 494s 494s b = [ 0 1 0 0 0 0 0 1 1 0 494s 1 1 0 0 0 1 0 1 1 0 494s 1 1 0 0 1 0 0 0 0 0 494s 1 1 0 0 0 1 1 0 0 0 494s 1 0 0 0 0 0 1 1 0 0 494s 0 1 0 0 0 0 1 1 0 0 494s 0 0 0 1 0 0 0 0 0 0 494s 0 0 0 0 1 1 0 0 0 0 494s 0 0 0 1 1 0 0 0 0 0 494s 1 0 0 0 1 0 0 1 0 1]; 494s 494s c = [ 0 1 0 0 0 0 0 1 1 0 494s 1 1 0 0 0 1 0 1 1 0 494s 1 1 0 0 1 0 0 0 0 0 494s 1 1 0 0 0 1 1 0 0 0 494s 1 0 0 0 0 0 1 1 0 0 494s 0 1 0 0 0 0 1 1 0 0 494s 0 0 0 1 0 0 0 0 0 0 494s 0 0 0 0 1 1 0 0 0 0 494s 0 0 0 1 1 0 0 0 0 0 494s 0 0 0 0 1 0 0 1 0 0]; 494s assert (imreconstruct (logical (a), logical (b)), logical (c)); 494s 494s c = [ 0 1 0 0 0 0 0 1 1 0 494s 1 1 0 0 0 0 0 1 1 0 494s 1 1 0 0 0 0 0 0 0 0 494s 1 1 0 0 0 1 1 0 0 0 494s 1 0 0 0 0 0 1 1 0 0 494s 0 0 0 0 0 0 1 1 0 0 494s 0 0 0 0 0 0 0 0 0 0 494s 0 0 0 0 1 1 0 0 0 0 494s 0 0 0 1 1 0 0 0 0 0 494s 0 0 0 0 1 0 0 1 0 0]; 494s assert (imreconstruct (logical (a), logical (b), [0 1 0; 1 1 1; 0 1 0]), 494s logical (c)); 494s ***** test 494s do 494s b = rand (100, 100, 100) > 0.98; 494s until (nnz (b) > 4) 494s b = imdilate (b, ones (5, 5, 5)); 494s a = false (size (b)); 494s f = find (b); 494s a(f(randi (numel (f), 6, 1))) = true; 494s assert (imreconstruct (a, b), parallel_reconstruction (a, b)) 495s ***** test 495s a = randi (200, 100,100, 10, 10); 495s b = a + randi (20, 100,100, 10, 10); 495s c1 = ones (3, 3, 3); 495s c2 = zeros (3, 3, 3, 3); 495s c2(:,:,:,2) = c1; 495s assert (imreconstruct (a, b, c1), imreconstruct (a, b, c2)) 496s ***** test 496s ## Values in MARKER above MASK should be clipped (bug #48794) 496s ## (well, treated internally as if they were clipped) 496s mask = logical ([1 1 1; 1 0 1; 1 1 1]); 496s assert (imreconstruct (true (3, 3), mask), mask) 496s 496s mask = ones (5, 5); 496s mask(2:4,2:4) = 0; 496s assert (imreconstruct (ones (5, 5), mask), mask) 496s 496s mask = ones (5, 5); 496s mask(2:4,2:4) = 0; 496s assert (imreconstruct (repmat (2, [5, 5]), mask), mask) 496s 496s mask = ones (5, 5); 496s mask(2:4,2:4) = 0; 496s assert (imreconstruct (repmat (2, [5, 5]), mask), mask) 496s 496s marker = ones (3, 3, 3, 3); 496s mask = marker; 496s mask(2, 2, 2, 2) = 0; 496s assert (imreconstruct (marker, mask), mask) 496s 496s marker = randi (210, 100, 100); 496s assert (imreconstruct (marker +1, marker), marker) 496s assert (imreconstruct (marker +1, marker), imreconstruct (marker, marker)) 496s 9 tests, 9 passed, 0 known failure, 0 skipped 496s [src/conndef.cc] 496s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/conndef.cc 496s ***** assert (conndef (1, "minimal"), [1; 1; 1]); 496s ***** assert (conndef (2, "minimal"), [0 1 0; 1 1 1; 0 1 0]); 496s ***** test 496s C = zeros (3, 3, 3); 496s C(:,2,2) = 1; 496s C(2,:,2) = 1; 496s C(2,2,:) = 1; 496s assert (conndef (3, "minimal"), C); 496s ***** test 496s C = zeros (3, 3, 3, 3); 496s C(:,:,2,1) = [0 0 0 496s 0 1 0 496s 0 0 0]; 496s C(:,:,1,2) = [0 0 0 496s 0 1 0 496s 0 0 0]; 496s C(:,:,2,2) = [0 1 0 496s 1 1 1 496s 0 1 0]; 496s C(:,:,3,2) = [0 0 0 496s 0 1 0 496s 0 0 0]; 496s C(:,:,2,3) = [0 0 0 496s 0 1 0 496s 0 0 0]; 496s assert (conndef (4, "minimal"), C); 496s ***** assert (conndef (1, "maximal"), ones (3, 1)); 496s ***** assert (conndef (2, "maximal"), ones (3, 3)); 496s ***** assert (conndef (3, "maximal"), ones (3, 3, 3)); 496s ***** assert (conndef (4, "maximal"), ones (3, 3, 3, 3)); 496s ***** assert (nnz (conndef (3, "minimal")), 7) 496s ***** assert (nnz (conndef (4, "minimal")), 9) 496s ***** assert (nnz (conndef (5, "minimal")), 11) 496s ***** assert (nnz (conndef (6, "minimal")), 13) 496s ***** assert (find (conndef (3, "minimal")), [5 11 13 14 15 17 23](:)) 496s ***** assert (find (conndef (4, "minimal")), [14 32 38 40 41 42 44 50 68](:)) 496s ***** assert (find (conndef (5, "minimal")), 496s [ 41 95 113 119 121 122 123 125 131 149 203](:)) 496s ***** assert (find (conndef (6, "minimal")), 496s [ 122 284 338 356 362 364 365 366 368 374 392 446 608](:)) 496s ***** error conndef () 496s ***** error conndef (-2, "minimal") 496s ***** error conndef (char (2), "minimal") 496s ***** error conndef ("minimal", 3) 496s ***** error conndef (3, "invalid") 496s ***** error conndef (10) 496s ***** assert (conndef (2, "minimal"), conndef (4)) 496s ***** assert (conndef (2, "maximal"), conndef (8)) 496s ***** assert (conndef (3, "minimal"), conndef (6)) 496s ***** assert (conndef (3, "maximal"), conndef (26)) 496s ***** assert (conndef (18), reshape ([0 1 0 1 1 1 0 1 0 496s 1 1 1 1 1 1 1 1 1 496s 0 1 0 1 1 1 0 1 0], [3 3 3])) 496s ***** test iptcheckconn ( 4, "func", "var") 496s ***** test iptcheckconn ( 6, "func", "var") 496s ***** test iptcheckconn ( 8, "func", "var") 496s ***** test iptcheckconn (18, "func", "var") 496s ***** test iptcheckconn (26, "func", "var") 496s ***** test iptcheckconn (1, "func", "var") 496s ***** test iptcheckconn (ones (3, 1), "func", "var") 496s ***** test iptcheckconn (ones (3, 3), "func", "var") 496s ***** test iptcheckconn (ones (3, 3, 3), "func", "var") 496s ***** test iptcheckconn (ones (3, 3, 3, 3), "func", "var") 496s ***** error 496s iptcheckconn (3, "func", "VAR"); 496s ***** error 496s iptcheckconn ([1 1 1; 1 0 1; 1 1 1], "func", "VAR"); 496s ***** error 496s iptcheckconn ([1 2 1; 1 1 1; 1 1 1], "func", "VAR"); 496s ***** error 496s iptcheckconn ([0 1 1; 1 1 1; 1 1 1], "func", "VAR"); 496s ***** error 496s iptcheckconn (ones (3, 3, 3, 4), "func", "VAR"); 496s 42 tests, 42 passed, 0 known failure, 0 skipped 496s [src/bwconncomp.cc] 496s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/bwconncomp.cc 496s ***** test 496s a = rand (10) > 0.5; 496s cc = bwconncomp (a, 4); 496s assert (cc.Connectivity, 4) 496s assert (cc.ImageSize, [10 10]) 496s 496s b = false (10); 496s for i = 1:numel (cc.PixelIdxList) 496s b(cc.PixelIdxList{i}) = true; 496s endfor 496s assert (a, b) 496s ***** test 496s a = rand (10, 13) > 0.5; 496s cc = bwconncomp (a, 4); 496s assert (cc.ImageSize, [10 13]) 496s 496s b = false (10, 13); 496s for i = 1:numel (cc.PixelIdxList) 496s b(cc.PixelIdxList{i}) = true; 496s endfor 496s assert (a, b) 496s ***** test 496s a = rand (15) > 0.5; 496s conn_8 = bwconncomp (a, 8); 496s assert (conn_8, bwconncomp (a)) 496s assert (conn_8, bwconncomp (a, ones (3))) 496s assert (conn_8.Connectivity, 8) 496s assert (bwconncomp (a, ones (3)).Connectivity, 8) 496s assert (bwconncomp (a, [0 1 0; 1 1 1; 0 1 0]).Connectivity, 4) 496s ***** test 496s bw = logical ([ 496s 1 0 0 1 0 1 0 496s 1 0 0 1 0 1 0 496s 0 0 0 0 0 1 0 496s 0 0 0 0 1 0 0 496s 1 1 0 1 1 0 0 496s 0 1 0 0 0 0 0 496s 1 1 0 0 0 0 0 496s ]); 496s cc = bwconncomp (bw); 496s cc = struct (); 496s cc.Connectivity = 8; 496s cc.ImageSize = [7 7]; 496s cc.NumObjects = 4; 496s ## The commented line has the results from Matlab. We return the 496s ## same result but in a slightly different order. Since the order 496s ## is not defined, it is not required for compatibility. 496s #cc.PixelIdxList = {[1;2], [5;7;12;13;14], [22;23], [26;32;33;36;37;38]}; 496s cc.PixelIdxList = {[1;2], [5;12;13;7;14], [22;23], [26;32;33;38;37;36]}; 496s assert (bwconncomp (bw), cc) 496s ***** test 496s ## test that PixelIdxList is a row vector 496s a = rand (40, 40) > 0.2; 496s cc = bwconncomp (a, 4); 496s assert (rows (cc.PixelIdxList), 1) 496s assert (columns (cc.PixelIdxList), cc.NumObjects) 496s ***** assert (bwconncomp (false (5)), struct ("ImageSize", [5 5], "NumObjects", 0, 496s "PixelIdxList", {cell(1, 0)}, 496s "Connectivity", 8)) 496s ***** test 496s in = [ 0 0 1 0 0 1 0 1 0 0 496s 0 0 1 0 0 0 0 0 1 1 496s 1 0 0 0 0 1 1 0 0 0 496s 1 0 0 0 1 0 0 0 0 0 496s 1 1 1 1 0 0 0 0 0 1 496s 0 1 0 1 1 0 0 1 0 0 496s 1 0 0 0 1 0 0 0 0 0 496s 0 0 0 1 1 0 0 1 0 0 496s 0 1 0 1 1 0 0 1 1 0 496s 0 1 0 1 1 1 0 0 1 0]; 496s assert (bwareaopen (in, 1, 4), logical (in)) 496s 496s out = [0 0 0 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 1 0 0 0 0 0 0 0 0 0 496s 1 0 0 0 0 0 0 0 0 0 496s 1 1 1 1 0 0 0 0 0 0 496s 0 1 0 1 1 0 0 0 0 0 496s 0 0 0 0 1 0 0 0 0 0 496s 0 0 0 1 1 0 0 0 0 0 496s 0 0 0 1 1 0 0 0 0 0 496s 0 0 0 1 1 1 0 0 0 0]; 496s assert (bwareaopen (logical (in), 10, 4), logical (out)) 496s assert (bwareaopen (in, 10, 4), logical (out)) 496s assert (bwareaopen (in, 10, [0 1 0; 1 1 1; 0 1 0]), logical (out)) 496s 496s out = [0 0 0 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 1 0 0 0 0 1 1 0 0 0 496s 1 0 0 0 1 0 0 0 0 0 496s 1 1 1 1 0 0 0 0 0 0 496s 0 1 0 1 1 0 0 0 0 0 496s 1 0 0 0 1 0 0 0 0 0 496s 0 0 0 1 1 0 0 0 0 0 496s 0 0 0 1 1 0 0 0 0 0 496s 0 0 0 1 1 1 0 0 0 0]; 496s assert (bwareaopen (in, 10, 8), logical (out)) 496s assert (bwareaopen (in, 10, ones (3)), logical (out)) 496s assert (bwareaopen (in, 10), logical (out)) 496s 496s out = [0 0 0 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 1 0 0 0 0 0 0 0 0 0 496s 1 0 0 0 0 0 0 0 0 0 496s 1 1 1 1 0 0 0 0 0 0 496s 0 1 0 1 1 0 0 0 0 0 496s 0 0 0 0 1 0 0 0 0 0 496s 0 0 0 1 1 0 0 1 0 0 496s 0 0 0 1 1 0 0 1 1 0 496s 0 0 0 1 1 1 0 0 1 0]; 496s assert (bwareaopen (in, 4, [1 1 0; 1 1 1; 0 1 1]), logical (out)) 496s ***** error bwareaopen ("not an image", 78, 8) 496s ***** error bwareaopen (rand (10) > 0.5, 10, 100) 496s ***** error bwareaopen (rand (10) > 0.5, 10, "maximal") 496s ***** error bwareaopen (rand (10) > 0.5, 10, [1 1 1; 0 1 1; 0 1 0]) 496s 11 tests, 11 passed, 0 known failure, 0 skipped 496s [src/bwlabeln.cc] 496s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/bwlabeln.cc 496s ***** shared a2d, a3d 496s a2d = [1 0 0 0 0 0 1 0 0 1 496s 1 0 0 1 0 1 0 1 0 1 496s 1 0 1 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 1 0 0 0 0 0 0 0 0 496s 1 1 0 1 1 1 0 0 0 0 496s 1 1 0 1 0 0 0 1 0 0 496s 1 1 0 0 0 0 1 0 1 0 496s 1 1 0 0 0 0 0 0 0 0 496s 1 1 0 0 0 1 1 0 0 1]; 496s 496s a3d = a2d; 496s a3d(:,:,2) = [ 496s 0 0 0 0 0 0 0 0 0 0 496s 1 0 0 1 1 0 0 1 0 0 496s 0 0 0 1 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 1 0 0 0 0 0 0 0 0 496s 1 1 0 0 1 1 0 0 0 0 496s 1 1 0 1 0 0 0 0 0 0 496s 1 0 0 0 0 0 1 0 0 0 496s 0 1 0 0 0 0 0 0 0 1 496s 1 1 0 0 0 0 1 0 0 0]; 496s 496s a3d(:,:,3) = [ 496s 1 0 0 0 0 0 0 0 0 0 496s 0 1 0 1 1 0 0 1 0 0 496s 0 0 0 1 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 1 1 1 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 1 0 0 0 0 0 0 0 0 0 496s 1 1 0 0 0 0 0 0 0 1 496s 1 1 0 0 0 0 0 0 0 0]; 496s ***** test 496s label2dc4 = [ 496s 1 0 0 0 0 0 8 0 0 13 496s 1 0 0 4 0 6 0 10 0 13 496s 1 0 3 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 2 0 0 0 0 0 0 0 0 496s 2 2 0 5 5 5 0 0 0 0 496s 2 2 0 5 0 0 0 11 0 0 496s 2 2 0 0 0 0 9 0 12 0 496s 2 2 0 0 0 0 0 0 0 0 496s 2 2 0 0 0 7 7 0 0 14]; 496s assert (bwlabeln (a2d, 4), label2dc4) 496s assert (bwlabeln (a2d, [0 1 0; 1 1 1; 0 1 0]), label2dc4) 496s assert (bwlabeln (a2d, conndef (2, "minimal")), label2dc4) 496s assert (bwlabeln (a2d, conndef (3, "minimal")), label2dc4) 496s ***** test 496s label2dc8 = [ 496s 1 0 0 0 0 0 5 0 0 8 496s 1 0 0 3 0 5 0 5 0 8 496s 1 0 3 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 2 0 0 0 0 0 0 0 0 496s 2 2 0 4 4 4 0 0 0 0 496s 2 2 0 4 0 0 0 7 0 0 496s 2 2 0 0 0 0 7 0 7 0 496s 2 2 0 0 0 0 0 0 0 0 496s 2 2 0 0 0 6 6 0 0 9]; 496s assert (bwlabeln (a2d, 8), label2dc8) 496s assert (bwlabeln (a2d, ones (3)), label2dc8) 496s assert (bwlabeln (a2d, conndef (2, "maximal")), label2dc8) 496s assert (bwlabeln (a2d, conndef (3, "maximal")), label2dc8) 496s ***** test 496s label3dc8 = [ 496s 1 0 0 0 0 0 5 0 0 8 496s 1 0 0 3 0 5 0 5 0 8 496s 1 0 3 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 2 0 0 0 0 0 0 0 0 496s 2 2 0 4 4 4 0 0 0 0 496s 2 2 0 4 0 0 0 7 0 0 496s 2 2 0 0 0 0 7 0 7 0 496s 2 2 0 0 0 0 0 0 0 0 496s 2 2 0 0 0 6 6 0 0 9]; 496s label3dc8(:,:,2) = [ 496s 0 0 0 0 0 0 0 0 0 0 496s 10 0 0 12 12 0 0 16 0 0 496s 0 0 0 12 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 11 0 0 0 0 0 0 0 0 496s 11 11 0 0 13 13 0 0 0 0 496s 11 11 0 13 0 0 0 0 0 0 496s 11 0 0 0 0 0 14 0 0 0 496s 0 11 0 0 0 0 0 0 0 17 496s 11 11 0 0 0 0 15 0 0 0]; 496s label3dc8(:,:,3) = [ 496s 18 0 0 0 0 0 0 0 0 0 496s 0 18 0 20 20 0 0 22 0 0 496s 0 0 0 20 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 21 21 21 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 19 0 0 0 0 0 0 0 0 0 496s 19 19 0 0 0 0 0 0 0 23 496s 19 19 0 0 0 0 0 0 0 0]; 496s assert (bwlabeln (a3d, 8), label3dc8) 496s assert (bwlabeln (a3d, ones (3, 3)), label3dc8) 496s assert (bwlabeln (a3d, conndef (2, "maximal")), label3dc8) 496s ***** test 496s label3dc26 = [ 496s 1 0 0 0 0 0 3 0 0 7 496s 1 0 0 3 0 3 0 3 0 7 496s 1 0 3 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 2 0 0 0 0 0 0 0 0 496s 2 2 0 4 4 4 0 0 0 0 496s 2 2 0 4 0 0 0 6 0 0 496s 2 2 0 0 0 0 6 0 6 0 496s 2 2 0 0 0 0 0 0 0 0 496s 2 2 0 0 0 5 5 0 0 6]; 496s label3dc26(:,:,2) = [ 496s 0 0 0 0 0 0 0 0 0 0 496s 1 0 0 3 3 0 0 3 0 0 496s 0 0 0 3 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 2 0 0 0 0 0 0 0 0 496s 2 2 0 0 4 4 0 0 0 0 496s 2 2 0 4 0 0 0 0 0 0 496s 2 0 0 0 0 0 6 0 0 0 496s 0 2 0 0 0 0 0 0 0 6 496s 2 2 0 0 0 0 5 0 0 0]; 496s label3dc26(:,:,3) = [ 496s 1 0 0 0 0 0 0 0 0 0 496s 0 1 0 3 3 0 0 3 0 0 496s 0 0 0 3 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 4 4 4 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 2 0 0 0 0 0 0 0 0 0 496s 2 2 0 0 0 0 0 0 0 6 496s 2 2 0 0 0 0 0 0 0 0]; 496s assert (bwlabeln (a3d, 26), label3dc26) 496s assert (bwlabeln (a3d, ones (3, 3, 3)), label3dc26) 496s assert (bwlabeln (a3d, conndef (3, "maximal")), label3dc26) 496s ***** test 496s label3dc18 = [ 496s 1 0 0 0 0 0 3 0 0 7 496s 1 0 0 3 0 3 0 3 0 7 496s 1 0 3 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 2 0 0 0 0 0 0 0 0 496s 2 2 0 4 4 4 0 0 0 0 496s 2 2 0 4 0 0 0 6 0 0 496s 2 2 0 0 0 0 6 0 6 0 496s 2 2 0 0 0 0 0 0 0 0 496s 2 2 0 0 0 5 5 0 0 8]; 496s label3dc18(:,:,2) = [ 496s 0 0 0 0 0 0 0 0 0 0 496s 1 0 0 3 3 0 0 3 0 0 496s 0 0 0 3 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 2 0 0 0 0 0 0 0 0 496s 2 2 0 0 4 4 0 0 0 0 496s 2 2 0 4 0 0 0 0 0 0 496s 2 0 0 0 0 0 6 0 0 0 496s 0 2 0 0 0 0 0 0 0 8 496s 2 2 0 0 0 0 5 0 0 0]; 496s label3dc18(:,:,3) = [ 496s 1 0 0 0 0 0 0 0 0 0 496s 0 1 0 3 3 0 0 3 0 0 496s 0 0 0 3 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 4 4 4 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 2 0 0 0 0 0 0 0 0 0 496s 2 2 0 0 0 0 0 0 0 8 496s 2 2 0 0 0 0 0 0 0 0]; 496s assert (bwlabeln (a3d, 18), label3dc18) 496s ***** test 496s label2dc3 = [ 496s 1 0 0 0 0 0 11 0 0 17 496s 1 0 0 5 0 8 0 14 0 17 496s 1 0 4 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 3 0 0 0 0 0 0 0 0 496s 2 3 0 6 7 9 0 0 0 0 496s 2 3 0 6 0 0 0 15 0 0 496s 2 3 0 0 0 0 12 0 16 0 496s 2 3 0 0 0 0 0 0 0 0 496s 2 3 0 0 0 10 13 0 0 18]; 496s assert (bwlabeln (a2d, [1 1 1]'), label2dc3) 496s 496s label3dc3 = label2dc3; 496s label3dc3(:,:,2) = [ 496s 0 0 0 0 0 0 0 0 0 0 496s 19 0 0 24 26 0 0 31 0 0 496s 0 0 0 24 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 22 0 0 0 0 0 0 0 0 496s 20 22 0 0 27 28 0 0 0 0 496s 20 22 0 25 0 0 0 0 0 0 496s 20 0 0 0 0 0 29 0 0 0 496s 0 23 0 0 0 0 0 0 0 32 496s 21 23 0 0 0 0 30 0 0 0]; 496s label3dc3(:,:,3) = [ 496s 33 0 0 0 0 0 0 0 0 0 496s 0 35 0 37 39 0 0 42 0 0 496s 0 0 0 37 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 38 40 41 0 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 34 0 0 0 0 0 0 0 0 0 496s 34 36 0 0 0 0 0 0 0 43 496s 34 36 0 0 0 0 0 0 0 0]; 496s assert (bwlabeln (a3d, [1 1 1]'), label3dc3) 496s ***** test 496s label2dc1 = zeros (size (a2d)); 496s label2dc1(a2d != 0) = 1:nnz (a2d); 496s assert (bwlabeln (a2d, [1]), label2dc1); 496s assert (bwlabeln (a2d, [0 1 0]'), label2dc1); 496s 496s label3dc1 = zeros (size (a3d)); 496s label3dc1(a3d != 0) = 1:nnz (a3d); 496s assert (bwlabeln (a3d, [1]), label3dc1); 496s assert (bwlabeln (a3d, [0 1 0]'), label3dc1); 496s ***** shared in 496s in = rand (10) > 0.8; 496s ***** assert (bwlabel (in, 4), bwlabeln (in, 4)); 496s ***** assert (bwlabel (in, 4), bwlabeln (in, [0 1 0; 1 1 1; 0 1 0])); 496s ***** assert (bwlabel (in, 8), bwlabeln (in, 8)); 496s ***** assert (bwlabel (in, 8), bwlabeln (in, [1 1 1; 1 1 1; 1 1 1])); 496s ***** assert (bwlabel (logical ([0 1 0; 0 0 0; 1 0 1])), [0 2 0; 0 0 0; 1 0 3]); 496s ***** assert (bwlabel ([0 1 0; 0 0 0; 1 0 1]), [0 2 0; 0 0 0; 1 0 3]); 496s ***** assert (bwlabel ([0 -1 0; 0 0 0; 5 0 0.2]), [0 2 0; 0 0 0; 1 0 3]); 496s ***** shared in, out 496s 496s in = [ 0 1 1 0 0 1 0 0 0 0 496s 0 0 0 1 0 0 0 0 0 1 496s 0 1 1 0 0 0 0 0 1 1 496s 1 0 0 0 0 0 0 1 0 0 496s 0 0 0 0 0 1 1 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 1 0 0 0 0 0 0 496s 0 0 0 0 1 1 0 1 0 0 496s 0 0 0 1 0 1 0 1 0 1 496s 1 1 0 0 0 0 0 1 1 0]; 496s 496s out = [ 0 3 3 0 0 9 0 0 0 0 496s 0 0 0 5 0 0 0 0 0 13 496s 0 4 4 0 0 0 0 0 13 13 496s 1 0 0 0 0 0 0 11 0 0 496s 0 0 0 0 0 10 10 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 6 0 0 0 0 0 0 496s 0 0 0 0 8 8 0 12 0 0 496s 0 0 0 7 0 8 0 12 0 14 496s 2 2 0 0 0 0 0 12 12 0]; 496s ***** assert (nthargout ([1 2], @bwlabel, in, 4), {out, 14}); 496s ***** assert (nthargout ([1 2], @bwlabel, logical (in), 4), {out, 14}); 496s 496s out = [ 0 3 3 0 0 7 0 0 0 0 496s 0 0 0 3 0 0 0 0 0 11 496s 0 4 4 0 0 0 0 0 11 11 496s 1 0 0 0 0 0 0 9 0 0 496s 0 0 0 0 0 8 8 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 5 0 0 0 0 0 0 496s 0 0 0 0 5 5 0 10 0 0 496s 0 0 0 6 0 5 0 10 0 12 496s 2 2 0 0 0 0 0 10 10 0]; 496s ***** assert (nthargout ([1 2], @bwlabel, in, 6), {out, 12}); 496s ***** assert (nthargout ([1 2], @bwlabel, logical (in), 6), {out, 12}); 496s 496s ## The labeled image is not the same as Matlab, but they are 496s ## labeled correctly. Do we really need to get them properly 496s ## ordered? (the algorithm in bwlabeln does it) 496s mout = [0 1 1 0 0 4 0 0 0 0 496s 0 0 0 1 0 0 0 0 0 5 496s 0 1 1 0 0 0 0 0 5 5 496s 1 0 0 0 0 0 0 5 0 0 496s 0 0 0 0 0 5 5 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 3 0 0 0 0 0 0 496s 0 0 0 0 3 3 0 6 0 0 496s 0 0 0 3 0 3 0 6 0 6 496s 2 2 0 0 0 0 0 6 6 0]; 496s 496s out = [ 0 2 2 0 0 4 0 0 0 0 496s 0 0 0 2 0 0 0 0 0 5 496s 0 2 2 0 0 0 0 0 5 5 496s 2 0 0 0 0 0 0 5 0 0 496s 0 0 0 0 0 5 5 0 0 0 496s 0 0 0 0 0 0 0 0 0 0 496s 0 0 0 3 0 0 0 0 0 0 496s 0 0 0 0 3 3 0 6 0 0 496s 0 0 0 3 0 3 0 6 0 6 496s 1 1 0 0 0 0 0 6 6 0]; 496s ***** assert (nthargout ([1 2], @bwlabel, in, 8), {out, 6}); 496s ***** assert (nthargout ([1 2], @bwlabel, logical (in), 8), {out, 6}); 496s 496s ***** error bwlabel (rand (10, 10, 10) > 0.8, 4) 496s ***** error bwlabel (rand (10) > 0.8, "text") 496s ***** error bwlabel ("text", 6) 496s 23 tests, 23 passed, 0 known failure, 0 skipped 496s [src/__spatial_filtering__.cc] 496s >>>>> /tmp/autopkgtest.90mrby/build.LzN/src/src/__spatial_filtering__.cc 496s ***** error 496s __spatial_filtering__ (ones (10), ones (3), "std", ones (10), 0) 496s ***** error 496s __spatial_filtering__ (ones (10), ones (3), "std", ones (3, 3, 3), 0) 496s ***** error 496s __spatial_filtering__ (ones (10), ones (3), "std", ones (1, 9), 0) 496s ***** shared a, domain, s, out 496s a = [ 82 2 97 43 79 43 41 65 51 11 496s 60 65 21 56 94 77 36 38 75 39 496s 32 68 78 1 16 75 76 90 81 56 496s 43 90 82 41 36 1 87 19 18 63 496s 63 64 2 48 18 43 38 25 22 99 496s 12 46 90 79 3 92 39 79 10 22 496s 38 98 11 10 40 90 88 38 4 76 496s 54 37 9 4 33 98 36 47 53 57 496s 38 76 82 50 14 74 64 99 7 33 496s 88 96 41 62 84 89 97 23 41 3]; 496s 496s domain = ones (3); 496s s = zeros (3); 496s 496s out = [ 2 1 1 1 16 36 36 11 496s 21 1 1 1 1 1 18 18 496s 2 1 1 1 1 1 18 18 496s 2 2 2 1 1 1 10 10 496s 2 2 2 3 3 25 4 4 496s 9 4 3 3 3 36 4 4 496s 9 4 4 4 14 36 4 4 496s 9 4 4 4 14 23 7 3]; 496s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 1), out); 496s 496s out = [ 97 97 97 94 94 90 90 90 496s 90 90 94 94 94 90 90 90 496s 90 90 82 75 87 90 90 99 496s 90 90 90 92 92 92 87 99 496s 98 98 90 92 92 92 88 99 496s 98 98 90 98 98 98 88 79 496s 98 98 82 98 98 99 99 99 496s 96 96 84 98 98 99 99 99]; 496s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, nnz (domain)), out); 496s 496s out = [ 60 43 43 43 43 43 51 51 496s 60 56 36 36 36 38 38 39 496s 63 48 18 18 36 38 25 25 496s 46 48 36 36 36 38 22 22 496s 38 46 11 40 39 39 25 22 496s 37 11 10 33 39 47 38 38 496s 38 11 11 33 40 64 38 38 496s 41 41 33 50 64 64 41 33]; 496s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 4), out); 496s 496s out = [ 31.223 33.788 35.561 31.011 26.096 20.630 20.403 24.712 496s 23.428 29.613 32.376 34.002 33.593 32.470 29.605 26.333 496s 27.834 32.890 29.903 24.207 30.083 32.497 31.898 32.600 496s 32.027 28.995 33.530 31.002 32.241 32.004 27.501 32.070 496s 34.682 36.030 33.046 33.745 32.509 27.352 28.607 34.180 496s 32.709 37.690 32.992 40.036 34.456 26.656 27.685 26.863 496s 30.971 36.227 25.775 34.873 29.917 25.269 32.292 30.410 496s 29.135 31.626 30.056 33.594 30.814 28.853 30.917 29.120]; 496s ***** assert (__spatial_filtering__ (a, domain, "std", s), out, 0.001); 496s 496s out = [ 95 96 96 93 78 54 54 79 496s 69 89 93 93 93 89 72 72 496s 88 89 81 74 86 89 72 81 496s 88 88 88 91 91 91 77 89 496s 96 96 88 89 89 67 84 95 496s 89 94 87 95 95 62 84 75 496s 89 94 78 94 84 63 95 95 496s 87 92 80 94 84 76 92 96]; 496s ***** assert (__spatial_filtering__ (a, domain, "range", s), out); 496s 496s domain = [ 1 1 0 496s 0 1 1 496s 0 1 0]; 496s 496s out = [ 2 2 1 16 36 36 38 39 496s 60 1 1 16 1 36 19 18 496s 32 2 1 1 1 19 18 18 496s 2 2 18 3 1 1 19 10 496s 46 2 2 3 18 38 10 4 496s 11 9 4 3 3 36 4 4 496s 9 4 4 10 36 36 38 4 496s 37 9 4 4 33 36 7 7]; 496s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 1), out); 496s 496s out = [ 82 97 97 94 79 76 90 81 496s 90 82 56 94 94 90 90 81 496s 90 82 78 36 87 87 90 90 496s 90 90 82 43 92 87 87 99 496s 98 90 79 92 92 88 79 25 496s 98 90 90 90 98 92 79 79 496s 98 98 50 98 98 90 99 57 496s 96 82 62 84 98 99 99 53]; 496s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, nnz (domain)), out); 496s 496s out = [ 68 78 94 79 77 43 75 75 496s 78 78 41 75 77 87 81 75 496s 82 78 48 18 75 76 76 81 496s 64 90 79 41 43 39 79 22 496s 90 79 48 48 90 79 38 22 496s 46 46 79 79 92 88 47 76 496s 76 82 33 40 90 88 88 53 496s 82 50 50 74 89 98 47 47]; 496s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 4), out); 496s 496s out = [ 34.2389 39.2772 39.6699 31.6812 20.7364 16.5439 22.2419 17.2395 496s 11.9248 36.3084 21.6217 30.8350 36.4047 21.6726 30.9144 26.1017 496s 22.2980 33.2746 27.5808 14.5017 36.8890 29.0259 34.6020 33.2521 496s 32.2490 37.9579 26.9685 17.1959 32.5346 31.3847 33.5976 36.8280 496s 21.3354 40.1833 34.0044 33.9882 32.9894 24.1102 25.6613 9.0995 496s 35.4641 35.3794 39.0871 35.4753 39.9775 28.7193 26.7451 35.6553 496s 35.2179 45.3398 19.3210 35.2987 28.4042 24.0832 26.8421 25.0539 496s 23.4307 26.2812 26.3287 35.6959 25.2646 28.1016 34.9829 17.9221]; 496s ***** assert (__spatial_filtering__ (a, domain, "std", s), out, 0.001); 496s 496s out = [ 80 95 96 78 43 40 52 42 496s 30 81 55 78 93 54 71 63 496s 58 80 77 35 86 68 72 72 496s 88 88 64 40 91 86 68 89 496s 52 88 77 89 74 50 69 21 496s 87 81 86 87 95 56 75 75 496s 89 94 46 88 62 54 61 53 496s 59 73 58 80 65 63 92 46]; 496s ***** assert (__spatial_filtering__ (a, domain, "range", s), out); 496s 496s s = [ 1 -3 4 496s 6 -7 2 496s -1 3 -5]; 496s 496s out = [ -1 3 4 19 38 29 31 41 496s 61 3 -6 9 4 33 22 21 496s 33 5 -2 2 -6 21 12 11 496s 4 -5 20 6 -2 2 16 13 496s 39 -1 3 -4 19 32 12 3 496s 13 4 3 0 4 36 6 -3 496s 11 2 -3 11 38 29 35 1 496s 34 6 1 5 34 33 9 0]; 496s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 1), out); 496s 496s out = [ 83 94 98 87 80 79 93 84 496s 93 85 53 91 95 92 83 74 496s 84 75 79 29 89 80 87 91 496s 87 93 83 45 95 84 88 101 496s 101 83 72 94 93 91 72 26 496s 91 87 91 92 101 93 76 80 496s 95 99 53 100 91 91 102 59 496s 99 75 65 87 95 101 92 50]; 496s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, nnz (domain)), out); 496s 496s out = [ 71 81 96 79 78 44 77 68 496s 80 71 44 77 78 90 83 72 496s 83 75 51 21 72 76 77 78 496s 57 91 82 42 40 42 82 20 496s 92 81 45 49 85 81 41 24 496s 43 47 76 80 90 81 50 78 496s 79 85 35 37 87 85 89 46 496s 84 52 43 76 92 100 44 48]; 496s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 4), out); 496s 496s out = [ 34.903 40.206 39.885 28.627 20.620 19.248 25.209 17.111 496s 14.536 35.865 23.221 32.230 34.903 23.923 28.879 22.621 496s 20.635 30.113 29.351 11.610 38.863 25.936 34.608 34.482 496s 29.811 40.998 28.279 17.897 34.666 29.978 36.150 38.213 496s 25.066 39.240 30.013 37.300 31.856 27.428 22.884 10.281 496s 31.890 34.761 39.645 37.526 39.336 27.031 25.648 39.285 496s 35.017 47.776 22.764 35.912 25.460 25.636 29.861 24.566 496s 25.213 25.000 26.391 38.451 24.631 31.305 31.118 20.611]; 496s ***** assert (__spatial_filtering__ (a, domain, "std", s), out, 0.001); 496s 496s out = [ 84 91 94 68 42 50 62 43 496s 32 82 59 82 91 59 61 53 496s 51 70 81 27 95 59 75 80 496s 83 98 63 39 97 82 72 88 496s 62 84 69 98 74 59 60 23 496s 78 83 88 92 97 57 70 83 496s 84 97 56 89 53 62 67 58 496s 65 69 64 82 61 68 83 50]; 496s ***** assert (__spatial_filtering__ (a, domain, "range", s), out); 496s 18 tests, 18 passed, 0 known failure, 0 skipped 496s Done running the unit tests. 496s Summary: 2033 tests, 1993 passed, 40 known failures, 0 skipped 496s autopkgtest [16:15:22]: test command1: -----------------------] 497s command1 PASS 497s autopkgtest [16:15:23]: test command1: - - - - - - - - - - results - - - - - - - - - - 497s autopkgtest [16:15:23]: @@@@@@@@@@@@@@@@@@@@ summary 497s command1 PASS 516s nova [W] Using flock in prodstack6-s390x 516s Creating nova instance adt-plucky-s390x-octave-image-20250315-160705-juju-7f2275-prod-proposed-migration-environment-2-8a1e9c3a-2fe0-4228-b022-ecd330b69878 from image adt/ubuntu-plucky-s390x-server-20250315.img (UUID 3d3557fa-fd0f-4bba-9b89-8d5964e09f61)... 516s nova [W] Timed out waiting for da67b49d-9876-49a8-b77a-137c9d6145b5 to get deleted.