0s autopkgtest [19:34:19]: starting date and time: 2024-03-20 19:34:19+0000 0s autopkgtest [19:34:19]: git checkout: 4a1cd702 l/adt_testbed: don't blame the testbed for unsolvable build deps 0s autopkgtest [19:34:19]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.cz8xlqyi/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:octave --apt-upgrade octave-image --timeout-short=300 --timeout-copy=20000 --timeout-test=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=octave/8.4.0-1build4 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-big --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-arm64-2.secgroup --name adt-noble-arm64-octave-image-20240320-193419-juju-7f2275-prod-proposed-migration-environment-2 --image adt/ubuntu-noble-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration -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,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 74s autopkgtest [19:35:33]: testbed dpkg architecture: arm64 74s autopkgtest [19:35:33]: testbed apt version: 2.7.12 74s autopkgtest [19:35:33]: @@@@@@@@@@@@@@@@@@@@ test bed setup 74s Get:1 http://ftpmaster.internal/ubuntu noble-proposed InRelease [117 kB] 75s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main Sources [502 kB] 75s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/universe Sources [3754 kB] 75s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/restricted Sources [6540 B] 75s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/multiverse Sources [53.9 kB] 75s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 Packages [697 kB] 75s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 c-n-f Metadata [3144 B] 75s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/restricted arm64 Packages [41.7 kB] 75s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/restricted arm64 c-n-f Metadata [116 B] 75s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 Packages [4226 kB] 75s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 c-n-f Metadata [8528 B] 75s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/multiverse arm64 Packages [67.6 kB] 75s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/multiverse arm64 c-n-f Metadata [116 B] 77s Fetched 9477 kB in 2s (5834 kB/s) 77s Reading package lists... 80s Reading package lists... 80s Building dependency tree... 80s Reading state information... 80s Calculating upgrade... 81s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 81s Reading package lists... 81s Building dependency tree... 81s Reading state information... 82s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 82s Hit:1 http://ftpmaster.internal/ubuntu noble InRelease 82s Hit:2 http://ftpmaster.internal/ubuntu noble-updates InRelease 82s Hit:3 http://ftpmaster.internal/ubuntu noble-security InRelease 82s Hit:4 http://ftpmaster.internal/ubuntu noble-proposed InRelease 84s Reading package lists... 84s Reading package lists... 84s Building dependency tree... 84s Reading state information... 84s Calculating upgrade... 85s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 85s Reading package lists... 85s Building dependency tree... 85s Reading state information... 86s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 89s autopkgtest [19:35:48]: testbed running kernel: Linux 6.8.0-11-generic #11-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 14 02:53:31 UTC 2024 89s autopkgtest [19:35:48]: @@@@@@@@@@@@@@@@@@@@ apt-source octave-image 91s Get:1 http://ftpmaster.internal/ubuntu noble/universe octave-image 2.14.0-5 (dsc) [2243 B] 91s Get:2 http://ftpmaster.internal/ubuntu noble/universe octave-image 2.14.0-5 (tar) [468 kB] 91s Get:3 http://ftpmaster.internal/ubuntu noble/universe octave-image 2.14.0-5 (diff) [11.7 kB] 91s gpgv: Signature made Sun Oct 8 16:40:13 2023 UTC 91s gpgv: using RSA key 3F464391498FE874BDB5D98F2124AA1983785C90 91s gpgv: issuer "rafael@debian.org" 91s gpgv: Can't check signature: No public key 91s dpkg-source: warning: cannot verify inline signature for ./octave-image_2.14.0-5.dsc: no acceptable signature found 91s autopkgtest [19:35:50]: testing package octave-image version 2.14.0-5 91s autopkgtest [19:35:50]: build not needed 92s autopkgtest [19:35:51]: test command1: preparing testbed 101s Reading package lists... 101s Building dependency tree... 101s Reading state information... 101s Starting pkgProblemResolver with broken count: 4 101s Starting 2 pkgProblemResolver with broken count: 4 101s Investigating (0) gir1.2-glib-2.0:arm64 < 2.79.2-1~ubuntu1 @ii mK Ib > 101s Broken gir1.2-glib-2.0:arm64 Depends on libglib2.0-0:arm64 < 2.79.2-1~ubuntu1 @ii pmR > (= 2.79.2-1~ubuntu1) 101s Considering libglib2.0-0:arm64 0 as a solution to gir1.2-glib-2.0:arm64 19 101s Added libglib2.0-0:arm64 to the remove list 101s Investigating (0) curl:arm64 < 8.5.0-2ubuntu2 @ii mK Ib > 101s Broken curl:arm64 Depends on libcurl4:arm64 < 8.5.0-2ubuntu2 @ii pmR > (= 8.5.0-2ubuntu2) 101s Considering libcurl4:arm64 0 as a solution to curl:arm64 4 101s Added libcurl4:arm64 to the remove list 101s Investigating (0) octave-dev:arm64 < none -> 8.4.0-1build4 @un puN Ib > 101s Broken octave-dev:arm64 Depends on libhdf5-dev:arm64 < none @un H > 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-openmpi-dev:arm64 < none @un H > 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-mpich-dev:arm64 < none @un H > 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Investigating (0) libreadline-dev:arm64 < none -> 8.2-3 @un puN Ib > 101s Broken libreadline-dev:arm64 Depends on libreadline8:arm64 < 8.2-3 @ii pmR > (= 8.2-3) 101s Considering libreadline8:arm64 0 as a solution to libreadline-dev:arm64 0 101s Investigating (1) gir1.2-glib-2.0:arm64 < 2.79.2-1~ubuntu1 @ii mK Ib > 101s Broken gir1.2-glib-2.0:arm64 Depends on libglib2.0-0:arm64 < 2.79.2-1~ubuntu1 @ii pmR > (= 2.79.2-1~ubuntu1) 101s Considering libglib2.0-0:arm64 19 as a solution to gir1.2-glib-2.0:arm64 19 101s Removing gir1.2-glib-2.0:arm64 rather than change libglib2.0-0:arm64 101s Investigating (1) python3-gi:arm64 < 3.47.0-3 @ii mK Ib > 101s Broken python3-gi:arm64 Depends on gir1.2-glib-2.0:arm64 < 2.79.2-1~ubuntu1 @ii mR > (>= 1.64.0) 101s Considering gir1.2-glib-2.0:arm64 19 as a solution to python3-gi:arm64 18 101s Removing python3-gi:arm64 rather than change gir1.2-glib-2.0:arm64 101s Investigating (1) gir1.2-girepository-2.0:arm64 < 1.79.1-1 @ii mK Ib > 101s Broken gir1.2-girepository-2.0:arm64 Depends on gir1.2-gobject-2.0:arm64 < none @un mH > (>= 2.79.0) 101s Considering gir1.2-glib-2.0:arm64 19 as a solution to gir1.2-girepository-2.0:arm64 7 101s Removing gir1.2-girepository-2.0:arm64 rather than change gir1.2-gobject-2.0:arm64 101s Investigating (1) apport:arm64 < 2.28.0-0ubuntu1 @ii mK Ib > 101s Broken apport:arm64 Depends on gir1.2-glib-2.0:arm64 < 2.79.2-1~ubuntu1 @ii mR > (>= 1.29.17) 101s Considering gir1.2-glib-2.0:arm64 19 as a solution to apport:arm64 6 101s Removing apport:arm64 rather than change gir1.2-glib-2.0:arm64 101s Investigating (1) apport-core-dump-handler:arm64 < 2.28.0-0ubuntu1 @ii mK Ib > 101s Broken apport-core-dump-handler:arm64 Depends on apport:arm64 < 2.28.0-0ubuntu1 @ii mR > (>= 2.27.0-0ubuntu7~) 101s Considering apport:arm64 6 as a solution to apport-core-dump-handler:arm64 4 101s Removing apport-core-dump-handler:arm64 rather than change apport:arm64 101s Investigating (1) curl:arm64 < 8.5.0-2ubuntu2 @ii mK Ib > 101s Broken curl:arm64 Depends on libcurl4:arm64 < 8.5.0-2ubuntu2 @ii pmR > (= 8.5.0-2ubuntu2) 101s Considering libcurl4:arm64 4 as a solution to curl:arm64 4 101s Removing curl:arm64 rather than change libcurl4:arm64 101s Investigating (1) pollinate:arm64 < 4.33-3.1ubuntu1 @ii mK Ib > 101s Broken pollinate:arm64 Depends on curl:arm64 < 8.5.0-2ubuntu2 @ii mR > 101s Considering curl:arm64 4 as a solution to pollinate:arm64 0 101s Removing pollinate:arm64 rather than change curl:arm64 101s Investigating (1) octave-dev:arm64 < none -> 8.4.0-1build4 @un puN Ib > 101s Broken octave-dev:arm64 Depends on libhdf5-dev:arm64 < none @un H > 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-openmpi-dev:arm64 < none @un H > 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-mpich-dev:arm64 < none @un H > 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Investigating (1) libreadline-dev:arm64 < none -> 8.2-3 @un puN Ib > 101s Broken libreadline-dev:arm64 Depends on libreadline8:arm64 < 8.2-3 @ii pmR > (= 8.2-3) 101s Considering libreadline8:arm64 0 as a solution to libreadline-dev:arm64 0 101s Investigating (2) networkd-dispatcher:arm64 < 2.2.4-1 @ii mK Ib > 101s Broken networkd-dispatcher:arm64 Depends on gir1.2-glib-2.0:arm64 < 2.79.2-1~ubuntu1 @ii mR > 101s Considering gir1.2-glib-2.0:arm64 19 as a solution to networkd-dispatcher:arm64 23 101s Added gir1.2-glib-2.0:arm64 to the remove list 101s Broken networkd-dispatcher:arm64 Depends on python3-gi:arm64 < 3.47.0-3 @ii mR > 101s Considering python3-gi:arm64 18 as a solution to networkd-dispatcher:arm64 23 101s Added python3-gi:arm64 to the remove list 101s Fixing networkd-dispatcher:arm64 via keep of gir1.2-glib-2.0:arm64 101s Fixing networkd-dispatcher:arm64 via keep of python3-gi:arm64 101s Investigating (2) gir1.2-glib-2.0:arm64 < 2.79.2-1~ubuntu1 @ii mK Ib > 101s Broken gir1.2-glib-2.0:arm64 Depends on libglib2.0-0:arm64 < 2.79.2-1~ubuntu1 @ii pmR > (= 2.79.2-1~ubuntu1) 101s Considering libglib2.0-0:arm64 19 as a solution to gir1.2-glib-2.0:arm64 23 101s Added libglib2.0-0:arm64 to the remove list 101s Investigating (2) python3-gi:arm64 < 3.47.0-3 @ii mK Ib > 101s Broken python3-gi:arm64 Depends on gir1.2-girepository-2.0:arm64 < 1.79.1-1 @ii mR > 101s Considering gir1.2-girepository-2.0:arm64 7 as a solution to python3-gi:arm64 23 101s Added gir1.2-girepository-2.0:arm64 to the remove list 101s Fixing python3-gi:arm64 via keep of gir1.2-girepository-2.0:arm64 101s Investigating (2) octave-dev:arm64 < none -> 8.4.0-1build4 @un puN Ib > 101s Broken octave-dev:arm64 Depends on libhdf5-dev:arm64 < none @un H > 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-openmpi-dev:arm64 < none @un H > 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-mpich-dev:arm64 < none @un H > 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Investigating (2) libreadline-dev:arm64 < none -> 8.2-3 @un puN Ib > 101s Broken libreadline-dev:arm64 Depends on libreadline8:arm64 < 8.2-3 @ii pmR > (= 8.2-3) 101s Considering libreadline8:arm64 0 as a solution to libreadline-dev:arm64 0 101s Investigating (3) gir1.2-glib-2.0:arm64 < 2.79.2-1~ubuntu1 @ii mK Ib > 101s Broken gir1.2-glib-2.0:arm64 Depends on libglib2.0-0:arm64 < 2.79.2-1~ubuntu1 @ii pmR > (= 2.79.2-1~ubuntu1) 101s Considering libglib2.0-0:arm64 23 as a solution to gir1.2-glib-2.0:arm64 23 101s Removing gir1.2-glib-2.0:arm64 rather than change libglib2.0-0:arm64 101s Investigating (3) python3-gi:arm64 < 3.47.0-3 @ii mK Ib > 101s Broken python3-gi:arm64 Depends on gir1.2-glib-2.0:arm64 < 2.79.2-1~ubuntu1 @ii mR > (>= 1.64.0) 101s Considering gir1.2-glib-2.0:arm64 23 as a solution to python3-gi:arm64 23 101s Removing python3-gi:arm64 rather than change gir1.2-glib-2.0:arm64 101s Investigating (3) gir1.2-girepository-2.0:arm64 < 1.79.1-1 @ii mK Ib > 101s Broken gir1.2-girepository-2.0:arm64 Depends on gir1.2-gobject-2.0:arm64 < none @un mH > (>= 2.79.0) 101s Considering gir1.2-glib-2.0:arm64 23 as a solution to gir1.2-girepository-2.0:arm64 23 101s Removing gir1.2-girepository-2.0:arm64 rather than change gir1.2-gobject-2.0:arm64 101s Investigating (3) octave-dev:arm64 < none -> 8.4.0-1build4 @un puN Ib > 101s Broken octave-dev:arm64 Depends on libhdf5-dev:arm64 < none @un H > 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-openmpi-dev:arm64 < none @un H > 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-mpich-dev:arm64 < none @un H > 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Investigating (3) libreadline-dev:arm64 < none -> 8.2-3 @un puN Ib > 101s Broken libreadline-dev:arm64 Depends on libreadline8:arm64 < 8.2-3 @ii pmR > (= 8.2-3) 101s Considering libreadline8:arm64 0 as a solution to libreadline-dev:arm64 0 101s Investigating (4) networkd-dispatcher:arm64 < 2.2.4-1 @ii mK Ib > 101s Broken networkd-dispatcher:arm64 Depends on gir1.2-glib-2.0:arm64 < 2.79.2-1~ubuntu1 @ii mR > 101s Considering gir1.2-glib-2.0:arm64 23 as a solution to networkd-dispatcher:arm64 23 101s Removing networkd-dispatcher:arm64 rather than change gir1.2-glib-2.0:arm64 101s Investigating (4) octave-dev:arm64 < none -> 8.4.0-1build4 @un puN Ib > 101s Broken octave-dev:arm64 Depends on libhdf5-dev:arm64 < none @un H > 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-openmpi-dev:arm64 < none @un H > 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-mpich-dev:arm64 < none @un H > 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Investigating (4) libreadline-dev:arm64 < none -> 8.2-3 @un puN Ib > 101s Broken libreadline-dev:arm64 Depends on libreadline8:arm64 < 8.2-3 @ii pmR > (= 8.2-3) 101s Considering libreadline8:arm64 0 as a solution to libreadline-dev:arm64 0 101s Investigating (5) octave-dev:arm64 < none -> 8.4.0-1build4 @un puN Ib > 101s Broken octave-dev:arm64 Depends on libhdf5-dev:arm64 < none @un H > 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-openmpi-dev:arm64 < none @un H > 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-openmpi-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Broken octave-dev:arm64 Depends on libhdf5-mpich-dev:arm64 < none @un H > 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Considering libhdf5-mpich-dev:arm64 1 as a solution to octave-dev:arm64 0 101s Investigating (5) libreadline-dev:arm64 < none -> 8.2-3 @un puN Ib > 101s Broken libreadline-dev:arm64 Depends on libreadline8:arm64 < 8.2-3 @ii pmR > (= 8.2-3) 101s Considering libreadline8:arm64 0 as a solution to libreadline-dev:arm64 0 101s Done 101s Some packages could not be installed. This may mean that you have 101s requested an impossible situation or if you are using the unstable 101s distribution that some required packages have not yet been created 101s or been moved out of Incoming. 101s The following information may help to resolve the situation: 101s 101s The following packages have unmet dependencies: 101s libreadline-dev : Depends: libreadline8 (= 8.2-3) 101s octave-dev : Depends: libhdf5-dev but it is not installable or 101s libhdf5-openmpi-dev but it is not installable or 101s libhdf5-mpich-dev but it is not installable 101s E: Unable to correct problems, you have held broken packages. 101s autopkgtest: WARNING: Test dependencies are unsatisfiable with using apt pinning. Retrying with using all packages from noble-proposed 102s Reading package lists... 102s Building dependency tree... 102s Reading state information... 103s Starting pkgProblemResolver with broken count: 0 103s Starting 2 pkgProblemResolver with broken count: 0 103s Done 103s The following additional packages will be installed: 103s aglfn apt apt-utils autoconf automake autopoint autotools-dev cme cpp cpp-13 103s cpp-13-aarch64-linux-gnu cpp-aarch64-linux-gnu curl debhelper debugedit 103s dh-autoreconf dh-octave dh-octave-autopkgtest dh-strip-nondeterminism 103s diffstat dwz fontconfig fontconfig-config fonts-dejavu-core 103s fonts-dejavu-mono fonts-freefont-otf g++ g++-13 g++-13-aarch64-linux-gnu 103s g++-aarch64-linux-gnu gcc gcc-13 gcc-13-aarch64-linux-gnu gcc-13-base 103s gcc-14-base gcc-aarch64-linux-gnu gettext gfortran gfortran-13 103s gfortran-13-aarch64-linux-gnu gfortran-aarch64-linux-gnu gir1.2-glib-2.0 103s gnuplot-data gnuplot-nox hdf5-helpers ibverbs-providers info install-info 103s intltool-debian libaec-dev libaec0 libalgorithm-c3-perl libaliased-perl 103s libamd-comgr2 libamd3 libamdhip64-5 libapp-cmd-perl libapt-pkg-perl 103s libapt-pkg6.0t64 libarchive-zip-perl libarpack2t64 libarray-intspan-perl 103s libasan8 libasound2-data libasound2t64 libatomic1 libavahi-client3 103s libavahi-common-data libavahi-common3 libb-hooks-endofscope-perl 103s libb-hooks-op-check-perl libberkeleydb-perl libblas-dev libblas3 103s libboolean-perl libbtf2 libc-bin libc-dev-bin libc6 libc6-dev libcairo2 103s libcamd3 libcapture-tiny-perl libcarp-assert-more-perl libcc1-0 libccolamd3 103s libcgi-pm-perl libcholmod5 libclass-c3-perl libclass-data-inheritable-perl 103s libclass-load-perl libclass-method-modifiers-perl libclass-xsaccessor-perl 103s libclone-choose-perl libclone-perl libcolamd3 libcombblas2.0.0t64 103s libconfig-model-backend-yaml-perl libconfig-model-dpkg-perl 103s libconfig-model-perl libconfig-tiny-perl libconst-fast-perl 103s libconvert-binhex-perl libcpanel-json-xs-perl libcrypt-dev libcups2t64 103s libcurl3t64-gnutls libcurl4-openssl-dev libcurl4t64 libcxsparse4 103s libdata-dpath-perl libdata-messagepack-perl libdata-optlist-perl 103s libdata-section-perl libdata-validate-domain-perl libdata-validate-ip-perl 103s libdata-validate-uri-perl libdatrie1 libdav1d7 libdb5.3t64 libde265-0 103s libdebhelper-perl libdeflate0 libdevel-callchecker-perl libdevel-size-perl 103s libdevel-stacktrace-perl libdouble-conversion3 libdrm-amdgpu1 103s libdrm-nouveau2 libdrm-radeon1 libdw1t64 libdynaloader-functions-perl 103s libegl-mesa0 libegl1 libelf1t64 libemail-address-xs-perl 103s libencode-locale-perl liberror-perl libevent-core-2.1-7 103s libevent-pthreads-2.1-7 libexception-class-perl libexporter-lite-perl 103s libexporter-tiny-perl libfabric1 libfftw3-bin libfftw3-dev libfftw3-double3 103s libfftw3-long3 libfftw3-mpi3 libfftw3-single3 libfile-basedir-perl 103s libfile-find-rule-perl libfile-homedir-perl libfile-listing-perl 103s libfile-stripnondeterminism-perl libfile-which-perl libflac12t64 103s libfltk-gl1.3t64 libfltk1.3t64 libfont-ttf-perl libfontconfig1 libfontenc1 103s libgbm1 libgcc-13-dev libgcc-s1 libgd3 libgdbm-compat4t64 libgdbm6t64 103s libgetopt-long-descriptive-perl libgfortran-13-dev libgfortran5 libgl-dev 103s libgl1 libgl1-mesa-dri libgl2ps1.4 libglapi-mesa libglib2.0-0t64 103s libglib2.0-data libglpk40 libglu1-mesa libglvnd0 libglx-dev libglx-mesa0 103s libglx0 libgnutls30t64 libgomp1 libgraphicsmagick++-q16-12t64 103s libgraphicsmagick-q16-3t64 libgraphite2-3 libharfbuzz0b libhash-merge-perl 103s libhdf5-103-1t64 libhdf5-cpp-103-1t64 libhdf5-dev libhdf5-fortran-102t64 103s libhdf5-hl-100t64 libhdf5-hl-cpp-100t64 libhdf5-hl-fortran-100t64 103s libhdf5-openmpi-103-1t64 libheif-plugin-dav1d libheif-plugin-libde265 103s libheif1 libhogweed6t64 libhsa-runtime64-1 libhsakmt1 libhtml-form-perl 103s libhtml-html5-entities-perl libhtml-parser-perl libhtml-tagset-perl 103s libhtml-tokeparser-simple-perl libhtml-tree-perl libhttp-cookies-perl 103s libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libhwasan0 103s libhwloc-plugins libhwloc15 libhwy1t64 libhypre-2.28.0 libibverbs1 libice6 103s libimport-into-perl libindirect-perl libinput-bin libinput10 libio-html-perl 103s libio-interactive-perl libio-socket-ssl-perl libio-string-perl 103s libio-stringy-perl libio-tiecombine-perl libipc-run3-perl 103s libipc-system-simple-perl libisl23 libiterator-perl libiterator-util-perl 103s libitm1 libjack-jackd2-0 libjbig0 libjpeg-dev libjpeg-turbo8 103s libjpeg-turbo8-dev libjpeg8 libjpeg8-dev libjson-maybexs-perl libjson-perl 103s libjxl0.7 libklu2 liblapack-dev liblapack3 liblcms2-2 liblerc4 103s liblist-compare-perl liblist-moreutils-perl liblist-moreutils-xs-perl 103s liblist-someutils-perl liblist-utilsby-perl libllvm17t64 103s liblog-any-adapter-screen-perl liblog-any-perl liblog-log4perl-perl liblsan0 103s libltdl7 liblua5.4-0 liblwp-mediatypes-perl liblwp-protocol-https-perl 103s libmailtools-perl libmarkdown2 libmd4c0 libmetis5 libmime-tools-perl 103s libmldbm-perl libmodule-implementation-perl libmodule-pluggable-perl 103s libmodule-runtime-perl libmoo-perl libmoox-aliases-perl libmouse-perl 103s libmousex-nativetraits-perl libmousex-strictconstructor-perl libmp3lame0 103s libmpc3 libmpg123-0 libmro-compat-perl libmtdev1t64 libmumps-5.6t64 103s libmunge2 libnamespace-clean-perl libncurses-dev libnet-domain-tld-perl 103s libnet-http-perl libnet-ipv6addr-perl libnet-netmask-perl 103s libnet-smtp-ssl-perl libnet-ssleay-perl libnetaddr-ip-perl libnettle8t64 103s libnumber-compare-perl libobject-pad-perl libogg0 libopengl0 libopenmpi3t64 103s libopus0 libpackage-stash-perl libpango-1.0-0 libpangocairo-1.0-0 103s libpangoft2-1.0-0 libparams-classify-perl libparams-util-perl 103s libparams-validate-perl libparse-debcontrol-perl libparse-recdescent-perl 103s libpath-iterator-rule-perl libpath-tiny-perl libpciaccess0 libpcre2-16-0 103s libperl5.38t64 libperlio-gzip-perl libperlio-utf8-strict-perl 103s libpetsc-real3.19t64 libpixman-1-0 libpmix2t64 libpng16-16t64 103s libpod-constants-perl libpod-parser-perl libpod-pom-perl libportaudio2 103s libproc-processtable-perl libpsl5t64 libpthread-stubs0-dev libptscotch-7.0 103s libqhull-r8.0 libqrupdate1 libqscintilla2-qt5-15 libqscintilla2-qt5-l10n 103s libqt5core5t64 libqt5dbus5t64 libqt5gui5t64 libqt5help5 libqt5network5t64 103s libqt5printsupport5t64 libqt5sql5t64 libqt5widgets5t64 libqt5xml5t64 103s librdmacm1t64 libreadline-dev libreadline8t64 libregexp-common-perl 103s libregexp-pattern-license-perl libregexp-pattern-perl 103s libregexp-wildcards-perl librole-tiny-perl libsamplerate0 103s libscalapack-openmpi2.2 libscotch-7.0 libsereal-decoder-perl 103s libsereal-encoder-perl libset-intspan-perl libsharpyuv0 libsm6 libsndfile1 103s libsoftware-copyright-perl libsoftware-license-perl 103s libsoftware-licensemoreutils-perl libsort-versions-perl libspqr4 libssl-dev 103s libssl3t64 libstdc++-13-dev libstdc++6 libstrictures-perl 103s libstring-copyright-perl libstring-escape-perl libstring-license-perl 103s libstring-rewriteprefix-perl libsub-exporter-perl 103s libsub-exporter-progressive-perl libsub-identify-perl libsub-install-perl 103s libsub-name-perl libsub-override-perl libsub-quote-perl libsub-uplevel-perl 103s libsuitesparseconfig7 libsundials-ida6 libsundials-nvecparallel-petsc6 103s libsundials-sunlinsol3 libsundials-sunmatrix4 libsuperlu-dist8 libsuperlu6 103s libsyntax-keyword-try-perl libsz2 libterm-readkey-perl 103s libtest-exception-perl libtext-autoformat-perl libtext-glob-perl 103s libtext-levenshtein-damerau-perl libtext-levenshteinxs-perl 103s libtext-markdown-discount-perl libtext-reform-perl libtext-template-perl 103s libtext-unidecode-perl libtext-xslate-perl libthai-data libthai0 libtiff6 103s libtime-duration-perl libtime-moment-perl libtimedate-perl libtoml-tiny-perl 103s libtool libtrilinos-amesos-13.2 libtrilinos-aztecoo-13.2 103s libtrilinos-epetra-13.2 libtrilinos-epetraext-13.2 libtrilinos-galeri-13.2 103s libtrilinos-ifpack-13.2 libtrilinos-kokkos-13.2 libtrilinos-ml-13.2 103s libtrilinos-teuchos-13.2 libtrilinos-trilinosss-13.2 103s libtrilinos-triutils-13.2 libtrilinos-zoltan-13.2 libtry-tiny-perl libtsan2 103s libubsan1 libucx0 libumfpack6 libunicode-utf8-perl libunwind8 liburi-perl 103s libvariable-magic-perl libvorbis0a libvorbisenc2 libvulkan1 libwacom-common 103s libwacom9 libwayland-client0 libwayland-server0 libwebp7 libwebpmux3 103s libwmflite-0.2-7 libwww-mechanize-perl libwww-perl libwww-robotrules-perl 103s libx11-dev libx11-xcb1 libxau-dev libxaw7 libxcb-dri2-0 libxcb-dri3-0 103s libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 103s libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 103s libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xinput0 103s libxcb-xkb1 libxcb1-dev libxcursor1 libxdmcp-dev libxfixes3 libxfont2 103s libxft2 libxinerama1 libxkbcommon-x11-0 libxkbfile1 libxml-libxml-perl 103s libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-perl libxmu6 103s libxmuu1 libxnvctrl0 libxpm4 libxrandr2 libxrender1 libxs-parse-keyword-perl 103s libxs-parse-sublike-perl libxshmfence1 libxt6t64 libxxf86vm1 103s libyaml-libyaml-perl libyaml-pp-perl libyaml-tiny-perl licensecheck lintian 103s linux-libc-dev locales lzip lzop m4 mpi-default-bin ocl-icd-libopencl1 103s octave octave-common octave-dev octave-image openmpi-bin openmpi-common 103s openssl patchutils perl perl-base perl-modules-5.38 perl-openssl-defaults 103s po-debconf readline-common rpcsvc-proto t1utils tex-common texinfo 103s texinfo-lib unzip x11-common x11-xkb-utils x11proto-dev xorg-sgml-doctools 103s xserver-common xtrans-dev xvfb zlib1g zlib1g-dev 103s Suggested packages: 103s apt-doc aptitude | synaptic | wajig autoconf-archive gnu-standards 103s autoconf-doc libconfig-model-cursesui-perl libconfig-model-itself-perl 103s cpp-doc gcc-13-locales cpp-13-doc dh-make gcc-13-doc gcc-multilib 103s manpages-dev flex bison gdb gcc-doc gdb-aarch64-linux-gnu gettext-doc 103s libasprintf-dev libgettextpo-dev gfortran-doc gfortran-13-doc 103s libcoarrays-dev gnuplot-doc alsa-utils libasound2-plugins liblapack-doc 103s manpages glibc-doc libconfig-model-openssh-perl libterm-readline-perl-perl 103s | libterm-readline-gnu-perl cups-common libcurl4-doc libidn-dev libkrb5-dev 103s libldap2-dev librtmp-dev libssh2-1-dev pkg-config libfftw3-doc 103s libfftw3-mpi-dev libxml-parser-perl libgd-tools gdbm-l10n low-memory-monitor 103s libiodbc2-dev default-libmysqlclient-dev gnutls-bin graphicsmagick-dbg 103s libhdf5-doc libheif-plugin-ffmpegdec libheif-plugin-jpegdec 103s libheif-plugin-jpegenc libheif-plugin-j2kdec libheif-plugin-j2kenc 103s libheif-plugin-rav1e libheif-plugin-svtenc libdata-dump-perl 103s libio-compress-brotli-perl jackd2 liblcms2-utils libdbd-csv-perl 103s liblog-dispatch-filerotate-perl librrds-perl libxml-dom-perl 103s libcrypt-ssleay-perl ncurses-doc opus-tools libscalar-number-perl 103s libqscintilla2-doc qgnomeplatform-qt5 qt5-image-formats-plugins readline-doc 103s scalapack-doc libssl-doc libstdc++-13-doc libbareword-filehandles-perl 103s libmultidimensional-perl libxstring-perl libdatetime-format-rfc3339-perl 103s libtool-doc gcj-jdk libbusiness-isbn-perl libregexp-ipv6-perl libwacom-bin 103s libauthen-ntlm-perl libx11-doc libxcb-doc binutils-multiarch m4-doc 103s opencl-icd perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl 103s libtap-harness-archive-perl libmail-box-perl texlive-base texlive-latex-base 103s texlive-plain-generic texlive-fonts-recommended zip 103s Recommended packages: 103s libconfig-model-approx-perl libconfig-model-lcdproc-perl 103s libconfig-model-openssh-perl libconfig-model-systemd-perl 103s libconfig-model-tkui-perl fonts-liberation groff alsa-ucm-conf 103s alsa-topology-conf manpages manpages-dev libc-devtools libcgi-fast-perl 103s libclass-c3-xs-perl libfuse-perl libarchive-cpio-perl libgl1-amber-dri 103s xdg-user-dirs ghostscript fonts-urw-base35 libheif-plugin-aomenc 103s libheif-plugin-x265 libhtml-format-perl libjson-xs-perl 103s liblist-someutils-xs-perl libipc-shareable-perl liblog-dispatch-perl 103s libfreezethaw-perl libmath-base85-perl libauthen-sasl-perl libsocket6-perl 103s libpackage-stash-xs-perl libtie-ixhash-perl qttranslations5-l10n libqt5svg5 103s qt5-gtk-platformtheme qtwayland5 libqt5sql5-sqlite | libqt5sql5-mysql 103s | libqt5sql5-odbc | libqt5sql5-psql | libqt5sql5-tds | libqt5sql5-ibase 103s libre-engine-re2-perl libtypes-serialiser-perl libltdl-dev 103s mesa-vulkan-drivers | vulkan-icd libdata-dump-perl libhttp-daemon-perl 103s libxml-sax-expat-perl libopenblas0 | libblis4 pstoedit epstool 103s default-jre-headless octave-doc libmail-sendmail-perl xfonts-base 104s The following packages will be REMOVED: 104s libapt-pkg6.0 libcurl3-gnutls libcurl4 libdb5.3 libelf1 libgdbm-compat4 104s libgdbm6 libglib2.0-0 libgnutls30 libhogweed6 libnettle8 libperl5.38 104s libpng16-16 libpsl5 libreadline8 libssl3 104s The following NEW packages will be installed: 104s aglfn autoconf automake autopkgtest-satdep autopoint autotools-dev cme cpp 104s cpp-13 cpp-13-aarch64-linux-gnu cpp-aarch64-linux-gnu debhelper debugedit 104s dh-autoreconf dh-octave dh-octave-autopkgtest dh-strip-nondeterminism 104s diffstat dwz fontconfig fontconfig-config fonts-dejavu-core 104s fonts-dejavu-mono fonts-freefont-otf g++ g++-13 g++-13-aarch64-linux-gnu 104s g++-aarch64-linux-gnu gcc gcc-13 gcc-13-aarch64-linux-gnu 104s gcc-aarch64-linux-gnu gettext gfortran gfortran-13 104s gfortran-13-aarch64-linux-gnu gfortran-aarch64-linux-gnu gnuplot-data 104s gnuplot-nox hdf5-helpers intltool-debian libaec-dev libaec0 104s libalgorithm-c3-perl libaliased-perl libamd-comgr2 libamd3 libamdhip64-5 104s libapp-cmd-perl libapt-pkg-perl libapt-pkg6.0t64 libarchive-zip-perl 104s libarpack2t64 libarray-intspan-perl libasan8 libasound2-data libasound2t64 104s libatomic1 libavahi-client3 libavahi-common-data libavahi-common3 104s libb-hooks-endofscope-perl libb-hooks-op-check-perl libberkeleydb-perl 104s libblas-dev libblas3 libboolean-perl libbtf2 libc-dev-bin libc6-dev 104s libcairo2 libcamd3 libcapture-tiny-perl libcarp-assert-more-perl libcc1-0 104s libccolamd3 libcgi-pm-perl libcholmod5 libclass-c3-perl 104s libclass-data-inheritable-perl libclass-load-perl 104s libclass-method-modifiers-perl libclass-xsaccessor-perl libclone-choose-perl 104s libclone-perl libcolamd3 libcombblas2.0.0t64 104s libconfig-model-backend-yaml-perl libconfig-model-dpkg-perl 104s libconfig-model-perl libconfig-tiny-perl libconst-fast-perl 104s libconvert-binhex-perl libcpanel-json-xs-perl libcrypt-dev libcups2t64 104s libcurl3t64-gnutls libcurl4-openssl-dev libcurl4t64 libcxsparse4 104s libdata-dpath-perl libdata-messagepack-perl libdata-optlist-perl 104s libdata-section-perl libdata-validate-domain-perl libdata-validate-ip-perl 104s libdata-validate-uri-perl libdatrie1 libdav1d7 libdb5.3t64 libde265-0 104s libdebhelper-perl libdeflate0 libdevel-callchecker-perl libdevel-size-perl 104s libdevel-stacktrace-perl libdouble-conversion3 libdrm-amdgpu1 104s libdrm-nouveau2 libdrm-radeon1 libdw1t64 libdynaloader-functions-perl 104s libegl-mesa0 libegl1 libelf1t64 libemail-address-xs-perl 104s libencode-locale-perl liberror-perl libevent-pthreads-2.1-7 104s libexception-class-perl libexporter-lite-perl libexporter-tiny-perl 104s libfabric1 libfftw3-bin libfftw3-dev libfftw3-double3 libfftw3-long3 104s libfftw3-mpi3 libfftw3-single3 libfile-basedir-perl libfile-find-rule-perl 104s libfile-homedir-perl libfile-listing-perl libfile-stripnondeterminism-perl 104s libfile-which-perl libflac12t64 libfltk-gl1.3t64 libfltk1.3t64 104s libfont-ttf-perl libfontconfig1 libfontenc1 libgbm1 libgcc-13-dev libgd3 104s libgdbm-compat4t64 libgdbm6t64 libgetopt-long-descriptive-perl 104s libgfortran-13-dev libgfortran5 libgl-dev libgl1 libgl1-mesa-dri libgl2ps1.4 104s libglapi-mesa libglib2.0-0t64 libglpk40 libglu1-mesa libglvnd0 libglx-dev 104s libglx-mesa0 libglx0 libgnutls30t64 libgomp1 libgraphicsmagick++-q16-12t64 104s libgraphicsmagick-q16-3t64 libgraphite2-3 libharfbuzz0b libhash-merge-perl 104s libhdf5-103-1t64 libhdf5-cpp-103-1t64 libhdf5-dev libhdf5-fortran-102t64 104s libhdf5-hl-100t64 libhdf5-hl-cpp-100t64 libhdf5-hl-fortran-100t64 104s libhdf5-openmpi-103-1t64 libheif-plugin-dav1d libheif-plugin-libde265 104s libheif1 libhogweed6t64 libhsa-runtime64-1 libhsakmt1 libhtml-form-perl 104s libhtml-html5-entities-perl libhtml-parser-perl libhtml-tagset-perl 104s libhtml-tokeparser-simple-perl libhtml-tree-perl libhttp-cookies-perl 104s libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libhwasan0 104s libhwloc-plugins libhwloc15 libhwy1t64 libhypre-2.28.0 libice6 104s libimport-into-perl libindirect-perl libinput-bin libinput10 libio-html-perl 104s libio-interactive-perl libio-socket-ssl-perl libio-string-perl 104s libio-stringy-perl libio-tiecombine-perl libipc-run3-perl 104s libipc-system-simple-perl libisl23 libiterator-perl libiterator-util-perl 104s libitm1 libjack-jackd2-0 libjbig0 libjpeg-dev libjpeg-turbo8 104s libjpeg-turbo8-dev libjpeg8 libjpeg8-dev libjson-maybexs-perl libjson-perl 104s libjxl0.7 libklu2 liblapack-dev liblapack3 liblcms2-2 liblerc4 104s liblist-compare-perl liblist-moreutils-perl liblist-moreutils-xs-perl 104s liblist-someutils-perl liblist-utilsby-perl libllvm17t64 104s liblog-any-adapter-screen-perl liblog-any-perl liblog-log4perl-perl liblsan0 104s libltdl7 liblua5.4-0 liblwp-mediatypes-perl liblwp-protocol-https-perl 104s libmailtools-perl libmarkdown2 libmd4c0 libmetis5 libmime-tools-perl 104s libmldbm-perl libmodule-implementation-perl libmodule-pluggable-perl 104s libmodule-runtime-perl libmoo-perl libmoox-aliases-perl libmouse-perl 104s libmousex-nativetraits-perl libmousex-strictconstructor-perl libmp3lame0 104s libmpc3 libmpg123-0 libmro-compat-perl libmtdev1t64 libmumps-5.6t64 104s libmunge2 libnamespace-clean-perl libncurses-dev libnet-domain-tld-perl 104s libnet-http-perl libnet-ipv6addr-perl libnet-netmask-perl 104s libnet-smtp-ssl-perl libnet-ssleay-perl libnetaddr-ip-perl libnettle8t64 104s libnumber-compare-perl libobject-pad-perl libogg0 libopengl0 libopenmpi3t64 104s libopus0 libpackage-stash-perl libpango-1.0-0 libpangocairo-1.0-0 104s libpangoft2-1.0-0 libparams-classify-perl libparams-util-perl 104s libparams-validate-perl libparse-debcontrol-perl libparse-recdescent-perl 104s libpath-iterator-rule-perl libpath-tiny-perl libpciaccess0 libpcre2-16-0 104s libperl5.38t64 libperlio-gzip-perl libperlio-utf8-strict-perl 104s libpetsc-real3.19t64 libpixman-1-0 libpmix2t64 libpng16-16t64 104s libpod-constants-perl libpod-parser-perl libpod-pom-perl libportaudio2 104s libproc-processtable-perl libpsl5t64 libpthread-stubs0-dev libptscotch-7.0 104s libqhull-r8.0 libqrupdate1 libqscintilla2-qt5-15 libqscintilla2-qt5-l10n 104s libqt5core5t64 libqt5dbus5t64 libqt5gui5t64 libqt5help5 libqt5network5t64 104s libqt5printsupport5t64 libqt5sql5t64 libqt5widgets5t64 libqt5xml5t64 104s librdmacm1t64 libreadline-dev libreadline8t64 libregexp-common-perl 104s libregexp-pattern-license-perl libregexp-pattern-perl 104s libregexp-wildcards-perl librole-tiny-perl libsamplerate0 104s libscalapack-openmpi2.2 libscotch-7.0 libsereal-decoder-perl 104s libsereal-encoder-perl libset-intspan-perl libsharpyuv0 libsm6 libsndfile1 104s libsoftware-copyright-perl libsoftware-license-perl 104s libsoftware-licensemoreutils-perl libsort-versions-perl libspqr4 libssl-dev 104s libssl3t64 libstdc++-13-dev libstrictures-perl libstring-copyright-perl 104s libstring-escape-perl libstring-license-perl libstring-rewriteprefix-perl 104s libsub-exporter-perl libsub-exporter-progressive-perl libsub-identify-perl 104s libsub-install-perl libsub-name-perl libsub-override-perl libsub-quote-perl 104s libsub-uplevel-perl libsuitesparseconfig7 libsundials-ida6 104s libsundials-nvecparallel-petsc6 libsundials-sunlinsol3 104s libsundials-sunmatrix4 libsuperlu-dist8 libsuperlu6 104s libsyntax-keyword-try-perl libsz2 libterm-readkey-perl 104s libtest-exception-perl libtext-autoformat-perl libtext-glob-perl 104s libtext-levenshtein-damerau-perl libtext-levenshteinxs-perl 104s libtext-markdown-discount-perl libtext-reform-perl libtext-template-perl 104s libtext-unidecode-perl libtext-xslate-perl libthai-data libthai0 libtiff6 104s libtime-duration-perl libtime-moment-perl libtimedate-perl libtoml-tiny-perl 104s libtool libtrilinos-amesos-13.2 libtrilinos-aztecoo-13.2 104s libtrilinos-epetra-13.2 libtrilinos-epetraext-13.2 libtrilinos-galeri-13.2 104s libtrilinos-ifpack-13.2 libtrilinos-kokkos-13.2 libtrilinos-ml-13.2 104s libtrilinos-teuchos-13.2 libtrilinos-trilinosss-13.2 104s libtrilinos-triutils-13.2 libtrilinos-zoltan-13.2 libtry-tiny-perl libtsan2 104s libubsan1 libucx0 libumfpack6 libunicode-utf8-perl libunwind8 liburi-perl 104s libvariable-magic-perl libvorbis0a libvorbisenc2 libvulkan1 libwacom-common 104s libwacom9 libwayland-client0 libwayland-server0 libwebp7 libwebpmux3 104s libwmflite-0.2-7 libwww-mechanize-perl libwww-perl libwww-robotrules-perl 104s libx11-dev libx11-xcb1 libxau-dev libxaw7 libxcb-dri2-0 libxcb-dri3-0 104s libxcb-glx0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-present0 104s libxcb-randr0 libxcb-render-util0 libxcb-render0 libxcb-shape0 libxcb-shm0 104s libxcb-sync1 libxcb-util1 libxcb-xfixes0 libxcb-xinerama0 libxcb-xinput0 104s libxcb-xkb1 libxcb1-dev libxcursor1 libxdmcp-dev libxfixes3 libxfont2 104s libxft2 libxinerama1 libxkbcommon-x11-0 libxkbfile1 libxml-libxml-perl 104s libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-perl libxmu6 104s libxnvctrl0 libxpm4 libxrandr2 libxrender1 libxs-parse-keyword-perl 104s libxs-parse-sublike-perl libxshmfence1 libxt6t64 libxxf86vm1 104s libyaml-libyaml-perl libyaml-pp-perl libyaml-tiny-perl licensecheck lintian 104s linux-libc-dev lzip lzop m4 mpi-default-bin ocl-icd-libopencl1 octave 104s octave-common octave-dev octave-image openmpi-bin openmpi-common patchutils 104s perl-openssl-defaults po-debconf rpcsvc-proto t1utils tex-common texinfo 104s texinfo-lib unzip x11-common x11-xkb-utils x11proto-dev xorg-sgml-doctools 104s xserver-common xtrans-dev xvfb zlib1g-dev 104s The following packages will be upgraded: 104s apt apt-utils curl gcc-13-base gcc-14-base gir1.2-glib-2.0 ibverbs-providers 104s info install-info libc-bin libc6 libevent-core-2.1-7 libgcc-s1 104s libglib2.0-data libibverbs1 libstdc++6 libxmuu1 locales openssl perl 104s perl-base perl-modules-5.38 readline-common zlib1g 104s 24 upgraded, 510 newly installed, 16 to remove and 220 not upgraded. 104s Need to get 267 MB/267 MB of archives. 104s After this operation, 916 MB of additional disk space will be used. 104s Get:1 /tmp/autopkgtest.LXs3YZ/1-autopkgtest-satdep.deb autopkgtest-satdep arm64 0 [756 B] 104s Get:2 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libdb5.3t64 arm64 5.3.28+dfsg2-5build1 [719 kB] 104s Get:3 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libgdbm6t64 arm64 1.23-5.1 [34.3 kB] 104s Get:4 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libgdbm-compat4t64 arm64 1.23-5.1 [6576 B] 104s Get:5 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libperl5.38t64 arm64 5.38.2-3.2 [4771 kB] 104s Get:6 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 perl arm64 5.38.2-3.2 [231 kB] 104s Get:7 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 perl-base arm64 5.38.2-3.2 [1777 kB] 104s Get:8 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 perl-modules-5.38 all 5.38.2-3.2 [3110 kB] 104s Get:9 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 gcc-14-base arm64 14-20240315-1ubuntu1 [47.0 kB] 104s Get:10 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libgcc-s1 arm64 14-20240315-1ubuntu1 [49.9 kB] 104s Get:11 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libstdc++6 arm64 14-20240315-1ubuntu1 [748 kB] 104s Get:12 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libc6 arm64 2.39-0ubuntu6 [2776 kB] 105s Get:13 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 zlib1g arm64 1:1.3.dfsg-3.1ubuntu1 [61.7 kB] 105s Get:14 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libc-bin arm64 2.39-0ubuntu6 [591 kB] 105s Get:15 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libnettle8t64 arm64 3.9.1-2.2 [192 kB] 105s Get:16 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libhogweed6t64 arm64 3.9.1-2.2 [199 kB] 105s Get:17 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libgnutls30t64 arm64 3.8.3-1.1ubuntu2 [1042 kB] 105s Get:18 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 openssl arm64 3.0.13-0ubuntu2 [985 kB] 105s Get:19 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libssl3t64 arm64 3.0.13-0ubuntu2 [1793 kB] 105s Get:20 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libcurl4t64 arm64 8.5.0-2ubuntu7 [332 kB] 105s Get:21 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 curl arm64 8.5.0-2ubuntu7 [222 kB] 105s Get:22 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libpsl5t64 arm64 0.21.2-1.1 [57.4 kB] 105s Get:23 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libcurl3t64-gnutls arm64 8.5.0-2ubuntu7 [327 kB] 105s Get:24 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libapt-pkg6.0t64 arm64 2.7.13ubuntu1 [933 kB] 105s Get:25 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 apt arm64 2.7.13ubuntu1 [1335 kB] 105s Get:26 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 apt-utils arm64 2.7.13ubuntu1 [205 kB] 105s Get:27 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libelf1t64 arm64 0.190-1.1build2 [57.9 kB] 105s Get:28 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 gir1.2-glib-2.0 arm64 2.79.3-3ubuntu5 [182 kB] 105s Get:29 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libglib2.0-0t64 arm64 2.79.3-3ubuntu5 [1527 kB] 105s Get:30 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libpng16-16t64 arm64 1.6.43-3 [185 kB] 105s Get:31 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 readline-common all 8.2-3.1 [56.4 kB] 105s Get:32 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libreadline8t64 arm64 8.2-3.1 [153 kB] 105s Get:33 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 install-info arm64 7.1-3build1 [61.4 kB] 105s Get:34 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 gcc-13-base arm64 13.2.0-19ubuntu1 [47.8 kB] 105s Get:35 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libglib2.0-data all 2.79.3-3ubuntu5 [46.6 kB] 105s Get:36 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 locales all 2.39-0ubuntu6 [4232 kB] 105s Get:37 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 info arm64 7.1-3build1 [141 kB] 105s Get:38 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libxmuu1 arm64 2:1.1.3-3build1 [9252 B] 105s Get:39 http://ftpmaster.internal/ubuntu noble/main arm64 m4 arm64 1.4.19-4 [240 kB] 105s Get:40 http://ftpmaster.internal/ubuntu noble/main arm64 autoconf all 2.71-3 [339 kB] 105s Get:41 http://ftpmaster.internal/ubuntu noble/main arm64 autotools-dev all 20220109.1 [44.9 kB] 105s Get:42 http://ftpmaster.internal/ubuntu noble/main arm64 automake all 1:1.16.5-1.3ubuntu1 [558 kB] 105s Get:43 http://ftpmaster.internal/ubuntu noble/main arm64 autopoint all 0.21-14ubuntu1 [422 kB] 105s Get:44 http://ftpmaster.internal/ubuntu noble/main arm64 libcapture-tiny-perl all 0.48-2 [20.2 kB] 105s Get:45 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libparams-util-perl arm64 1.102-2build2 [20.5 kB] 105s Get:46 http://ftpmaster.internal/ubuntu noble/main arm64 libsub-install-perl all 0.929-1 [9764 B] 105s Get:47 http://ftpmaster.internal/ubuntu noble/main arm64 libdata-optlist-perl all 0.114-1 [9708 B] 105s Get:48 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libb-hooks-op-check-perl arm64 0.22-3 [9380 B] 105s Get:49 http://ftpmaster.internal/ubuntu noble/main arm64 libdynaloader-functions-perl all 0.003-3 [12.1 kB] 105s Get:50 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libdevel-callchecker-perl arm64 0.008-2build2 [13.4 kB] 105s Get:51 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libparams-classify-perl arm64 0.015-2build4 [19.6 kB] 105s Get:52 http://ftpmaster.internal/ubuntu noble/main arm64 libmodule-runtime-perl all 0.016-2 [16.4 kB] 105s Get:53 http://ftpmaster.internal/ubuntu noble/main arm64 libtry-tiny-perl all 0.31-2 [20.8 kB] 105s Get:54 http://ftpmaster.internal/ubuntu noble/main arm64 libmodule-implementation-perl all 0.09-2 [12.0 kB] 105s Get:55 http://ftpmaster.internal/ubuntu noble/main arm64 libpackage-stash-perl all 0.40-1 [19.5 kB] 105s Get:56 http://ftpmaster.internal/ubuntu noble/universe arm64 libclass-load-perl all 0.25-2 [12.7 kB] 105s Get:57 http://ftpmaster.internal/ubuntu noble/main arm64 libio-stringy-perl all 2.111-3 [55.8 kB] 105s Get:58 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libparams-validate-perl arm64 1.31-2build2 [52.1 kB] 105s Get:59 http://ftpmaster.internal/ubuntu noble/main arm64 libsub-exporter-perl all 0.990-1 [49.0 kB] 105s Get:60 http://ftpmaster.internal/ubuntu noble/main arm64 libgetopt-long-descriptive-perl all 0.111-1 [25.5 kB] 105s Get:61 http://ftpmaster.internal/ubuntu noble/universe arm64 libio-tiecombine-perl all 1.005-3 [9464 B] 105s Get:62 http://ftpmaster.internal/ubuntu noble/universe arm64 libmodule-pluggable-perl all 5.2-4 [20.0 kB] 105s Get:63 http://ftpmaster.internal/ubuntu noble/universe arm64 libstring-rewriteprefix-perl all 0.009-1 [6310 B] 105s Get:64 http://ftpmaster.internal/ubuntu noble/universe arm64 libapp-cmd-perl all 0.336-1 [62.1 kB] 105s Get:65 http://ftpmaster.internal/ubuntu noble/universe arm64 libboolean-perl all 0.46-3 [8430 B] 105s Get:66 http://ftpmaster.internal/ubuntu noble/universe arm64 libsub-uplevel-perl all 0.2800-3 [11.6 kB] 105s Get:67 http://ftpmaster.internal/ubuntu noble/universe arm64 libtest-exception-perl all 0.43-3 [13.4 kB] 105s Get:68 http://ftpmaster.internal/ubuntu noble/universe arm64 libcarp-assert-more-perl all 2.3.0-1 [17.6 kB] 105s Get:69 http://ftpmaster.internal/ubuntu noble/main arm64 libfile-which-perl all 1.27-2 [12.5 kB] 105s Get:70 http://ftpmaster.internal/ubuntu noble/main arm64 libfile-homedir-perl all 1.006-2 [37.0 kB] 105s Get:71 http://ftpmaster.internal/ubuntu noble/universe arm64 libclone-choose-perl all 0.010-2 [7738 B] 105s Get:72 http://ftpmaster.internal/ubuntu noble/universe arm64 libhash-merge-perl all 0.302-1 [13.0 kB] 105s Get:73 http://ftpmaster.internal/ubuntu noble/main arm64 libjson-perl all 4.10000-1 [81.9 kB] 105s Get:74 http://ftpmaster.internal/ubuntu noble/main arm64 libexporter-tiny-perl all 1.006002-1 [36.8 kB] 105s Get:75 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 liblist-moreutils-xs-perl arm64 0.430-3build4 [41.0 kB] 105s Get:76 http://ftpmaster.internal/ubuntu noble/universe arm64 liblist-moreutils-perl all 0.430-2 [38.2 kB] 105s Get:77 http://ftpmaster.internal/ubuntu noble/universe arm64 liblog-log4perl-perl all 1.57-1 [345 kB] 105s Get:78 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libmouse-perl arm64 2.5.10-1build7 [133 kB] 105s Get:79 http://ftpmaster.internal/ubuntu noble/universe arm64 libmousex-nativetraits-perl all 1.09-3 [53.2 kB] 105s Get:80 http://ftpmaster.internal/ubuntu noble/universe arm64 libmousex-strictconstructor-perl all 0.02-3 [4582 B] 105s Get:81 http://ftpmaster.internal/ubuntu noble/universe arm64 libparse-recdescent-perl all 1.967015+dfsg-4 [139 kB] 105s Get:82 http://ftpmaster.internal/ubuntu noble/main arm64 libpath-tiny-perl all 0.144-1 [47.7 kB] 105s Get:83 http://ftpmaster.internal/ubuntu noble/universe arm64 libpod-pom-perl all 2.01-4 [61.3 kB] 105s Get:84 http://ftpmaster.internal/ubuntu noble/universe arm64 libregexp-common-perl all 2017060201-3 [171 kB] 105s Get:85 http://ftpmaster.internal/ubuntu noble/main arm64 libyaml-tiny-perl all 1.74-1 [25.3 kB] 105s Get:86 http://ftpmaster.internal/ubuntu noble/universe arm64 libconfig-model-perl all 2.153-3 [408 kB] 105s Get:87 http://ftpmaster.internal/ubuntu noble/universe arm64 libyaml-pp-perl all 0.38.0-1 [105 kB] 105s Get:88 http://ftpmaster.internal/ubuntu noble/universe arm64 cme all 1.040-1 [64.8 kB] 105s Get:89 http://ftpmaster.internal/ubuntu noble/main arm64 libisl23 arm64 0.26-3 [713 kB] 105s Get:90 http://ftpmaster.internal/ubuntu noble/main arm64 libmpc3 arm64 1.3.1-1 [55.3 kB] 105s Get:91 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 cpp-13-aarch64-linux-gnu arm64 13.2.0-19ubuntu1 [10.3 MB] 106s Get:92 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 cpp-13 arm64 13.2.0-19ubuntu1 [1032 B] 106s Get:93 http://ftpmaster.internal/ubuntu noble/main arm64 cpp-aarch64-linux-gnu arm64 4:13.2.0-7ubuntu1 [5316 B] 106s Get:94 http://ftpmaster.internal/ubuntu noble/main arm64 cpp arm64 4:13.2.0-7ubuntu1 [22.4 kB] 106s Get:95 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libdebhelper-perl all 13.14.1ubuntu5 [89.8 kB] 106s Get:96 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libcc1-0 arm64 14-20240315-1ubuntu1 [44.7 kB] 106s Get:97 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libgomp1 arm64 14-20240315-1ubuntu1 [144 kB] 106s Get:98 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libitm1 arm64 14-20240315-1ubuntu1 [27.8 kB] 106s Get:99 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libatomic1 arm64 14-20240315-1ubuntu1 [11.4 kB] 106s Get:100 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libasan8 arm64 14-20240315-1ubuntu1 [2919 kB] 106s Get:101 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 liblsan0 arm64 14-20240315-1ubuntu1 [1282 kB] 106s Get:102 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libtsan2 arm64 14-20240315-1ubuntu1 [2687 kB] 106s Get:103 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libubsan1 arm64 14-20240315-1ubuntu1 [1150 kB] 106s Get:104 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libhwasan0 arm64 14-20240315-1ubuntu1 [1597 kB] 107s Get:105 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libgcc-13-dev arm64 13.2.0-19ubuntu1 [2464 kB] 107s Get:106 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 gcc-13-aarch64-linux-gnu arm64 13.2.0-19ubuntu1 [20.1 MB] 107s Get:107 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 gcc-13 arm64 13.2.0-19ubuntu1 [467 kB] 107s Get:108 http://ftpmaster.internal/ubuntu noble/main arm64 gcc-aarch64-linux-gnu arm64 4:13.2.0-7ubuntu1 [1198 B] 107s Get:109 http://ftpmaster.internal/ubuntu noble/main arm64 gcc arm64 4:13.2.0-7ubuntu1 [5018 B] 107s Get:110 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libc-dev-bin arm64 2.39-0ubuntu6 [19.7 kB] 107s Get:111 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 linux-libc-dev arm64 6.8.0-20.20 [1570 kB] 107s Get:112 http://ftpmaster.internal/ubuntu noble/main arm64 libcrypt-dev arm64 1:4.4.36-4 [136 kB] 107s Get:113 http://ftpmaster.internal/ubuntu noble/main arm64 rpcsvc-proto arm64 1.4.2-0ubuntu6 [65.4 kB] 107s Get:114 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libc6-dev arm64 2.39-0ubuntu6 [1596 kB] 107s Get:115 http://ftpmaster.internal/ubuntu noble/main arm64 libtool all 2.4.7-7 [166 kB] 107s Get:116 http://ftpmaster.internal/ubuntu noble/main arm64 dh-autoreconf all 20 [16.1 kB] 107s Get:117 http://ftpmaster.internal/ubuntu noble/main arm64 libarchive-zip-perl all 1.68-1 [90.2 kB] 107s Get:118 http://ftpmaster.internal/ubuntu noble/main arm64 libsub-override-perl all 0.10-1 [10.0 kB] 107s Get:119 http://ftpmaster.internal/ubuntu noble/main arm64 libfile-stripnondeterminism-perl all 1.13.1-1 [18.1 kB] 107s Get:120 http://ftpmaster.internal/ubuntu noble/main arm64 dh-strip-nondeterminism all 1.13.1-1 [5362 B] 107s Get:121 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libdw1t64 arm64 0.190-1.1build2 [258 kB] 107s Get:122 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 debugedit arm64 1:5.0-5build1 [45.4 kB] 107s Get:123 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 dwz arm64 0.15-1build5 [113 kB] 107s Get:124 http://ftpmaster.internal/ubuntu noble/main arm64 gettext arm64 0.21-14ubuntu1 [846 kB] 107s Get:125 http://ftpmaster.internal/ubuntu noble/main arm64 intltool-debian all 0.35.0+20060710.6 [23.2 kB] 107s Get:126 http://ftpmaster.internal/ubuntu noble/main arm64 po-debconf all 1.0.21+nmu1 [233 kB] 107s Get:127 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 debhelper all 13.14.1ubuntu5 [869 kB] 107s Get:128 http://ftpmaster.internal/ubuntu noble/universe arm64 aglfn all 1.7+git20191031.4036a9c-2 [30.6 kB] 107s Get:129 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 gnuplot-data all 6.0.0+dfsg1-1ubuntu2 [75.3 kB] 107s Get:130 http://ftpmaster.internal/ubuntu noble/main arm64 fonts-dejavu-mono all 2.37-8 [502 kB] 107s Get:131 http://ftpmaster.internal/ubuntu noble/main arm64 fonts-dejavu-core all 2.37-8 [835 kB] 107s Get:132 http://ftpmaster.internal/ubuntu noble/universe arm64 fonts-freefont-otf all 20211204+svn4273-2 [4596 kB] 107s Get:133 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 fontconfig-config arm64 2.15.0-1.1ubuntu1 [37.4 kB] 107s Get:134 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libfontconfig1 arm64 2.15.0-1.1ubuntu1 [142 kB] 107s Get:135 http://ftpmaster.internal/ubuntu noble/main arm64 libpixman-1-0 arm64 0.42.2-1 [193 kB] 107s Get:136 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-render0 arm64 1.15-1 [16.1 kB] 107s Get:137 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-shm0 arm64 1.15-1 [5780 B] 107s Get:138 http://ftpmaster.internal/ubuntu noble/main arm64 libxrender1 arm64 1:0.9.10-1.1 [19.1 kB] 107s Get:139 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libcairo2 arm64 1.18.0-1ubuntu1 [555 kB] 107s Get:140 http://ftpmaster.internal/ubuntu noble/main arm64 libjpeg-turbo8 arm64 2.1.5-2ubuntu1 [160 kB] 107s Get:141 http://ftpmaster.internal/ubuntu noble/main arm64 libjpeg8 arm64 8c-2ubuntu11 [2148 B] 107s Get:142 http://ftpmaster.internal/ubuntu noble/main arm64 libdeflate0 arm64 1.19-1 [43.4 kB] 108s Get:143 http://ftpmaster.internal/ubuntu noble/main arm64 libjbig0 arm64 2.1-6.1ubuntu1 [28.9 kB] 108s Get:144 http://ftpmaster.internal/ubuntu noble/main arm64 liblerc4 arm64 4.0.0+ds-4ubuntu1 [153 kB] 108s Get:145 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libsharpyuv0 arm64 1.3.2-0.4build2 [14.5 kB] 108s Get:146 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libwebp7 arm64 1.3.2-0.4build2 [191 kB] 108s Get:147 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libtiff6 arm64 4.5.1+git230720-4ubuntu1 [191 kB] 108s Get:148 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libxpm4 arm64 1:3.5.17-1build1 [35.4 kB] 108s Get:149 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libgd3 arm64 2.3.3-9ubuntu3 [121 kB] 108s Get:150 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 liblua5.4-0 arm64 5.4.6-3build1 [158 kB] 108s Get:151 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 fontconfig arm64 2.15.0-1.1ubuntu1 [190 kB] 108s Get:152 http://ftpmaster.internal/ubuntu noble/main arm64 libgraphite2-3 arm64 1.3.14-2 [81.5 kB] 108s Get:153 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libharfbuzz0b arm64 8.3.0-2build1 [463 kB] 108s Get:154 http://ftpmaster.internal/ubuntu noble/main arm64 libthai-data all 0.1.29-2 [158 kB] 108s Get:155 http://ftpmaster.internal/ubuntu noble/main arm64 libdatrie1 arm64 0.2.13-3 [21.7 kB] 108s Get:156 http://ftpmaster.internal/ubuntu noble/main arm64 libthai0 arm64 0.1.29-2 [18.1 kB] 108s Get:157 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libpango-1.0-0 arm64 1.52.1+ds-1 [228 kB] 108s Get:158 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libpangoft2-1.0-0 arm64 1.52.1+ds-1 [41.9 kB] 108s Get:159 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libpangocairo-1.0-0 arm64 1.52.1+ds-1 [27.3 kB] 108s Get:160 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libwebpmux3 arm64 1.3.2-0.4build2 [25.0 kB] 108s Get:161 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 gnuplot-nox arm64 6.0.0+dfsg1-1ubuntu2 [956 kB] 108s Get:162 http://ftpmaster.internal/ubuntu noble/universe arm64 dh-octave-autopkgtest all 1.8.0 [10.1 kB] 108s Get:163 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libapt-pkg-perl arm64 0.1.40build5 [66.9 kB] 108s Get:164 http://ftpmaster.internal/ubuntu noble/main arm64 libarray-intspan-perl all 2.004-2 [25.0 kB] 108s Get:165 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libyaml-libyaml-perl arm64 0.89+ds-1build1 [29.8 kB] 108s Get:166 http://ftpmaster.internal/ubuntu noble/universe arm64 libconfig-model-backend-yaml-perl all 2.134-2 [10.5 kB] 108s Get:167 http://ftpmaster.internal/ubuntu noble/universe arm64 libexporter-lite-perl all 0.09-2 [9748 B] 108s Get:168 http://ftpmaster.internal/ubuntu noble/main arm64 libencode-locale-perl all 1.05-3 [11.6 kB] 108s Get:169 http://ftpmaster.internal/ubuntu noble/main arm64 libtimedate-perl all 2.3300-2 [34.0 kB] 108s Get:170 http://ftpmaster.internal/ubuntu noble/main arm64 libhttp-date-perl all 6.06-1 [10.2 kB] 108s Get:171 http://ftpmaster.internal/ubuntu noble/main arm64 libfile-listing-perl all 6.16-1 [11.3 kB] 108s Get:172 http://ftpmaster.internal/ubuntu noble/main arm64 libhtml-tagset-perl all 3.20-6 [11.3 kB] 108s Get:173 http://ftpmaster.internal/ubuntu noble/main arm64 liburi-perl all 5.27-1 [88.0 kB] 108s Get:174 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libhtml-parser-perl arm64 3.81-1build2 [84.9 kB] 108s Get:175 http://ftpmaster.internal/ubuntu noble/main arm64 libhtml-tree-perl all 5.07-3 [200 kB] 108s Get:176 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libclone-perl arm64 0.46-1build2 [10.4 kB] 108s Get:177 http://ftpmaster.internal/ubuntu noble/main arm64 libio-html-perl all 1.004-3 [15.9 kB] 108s Get:178 http://ftpmaster.internal/ubuntu noble/main arm64 liblwp-mediatypes-perl all 6.04-2 [20.1 kB] 108s Get:179 http://ftpmaster.internal/ubuntu noble/main arm64 libhttp-message-perl all 6.45-1ubuntu1 [78.2 kB] 108s Get:180 http://ftpmaster.internal/ubuntu noble/main arm64 libhttp-cookies-perl all 6.11-1 [18.2 kB] 108s Get:181 http://ftpmaster.internal/ubuntu noble/main arm64 libhttp-negotiate-perl all 6.01-2 [12.4 kB] 108s Get:182 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 perl-openssl-defaults arm64 7build1 [6542 B] 108s Get:183 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libnet-ssleay-perl arm64 1.94-1build2 [311 kB] 108s Get:184 http://ftpmaster.internal/ubuntu noble/main arm64 libio-socket-ssl-perl all 2.085-1 [195 kB] 108s Get:185 http://ftpmaster.internal/ubuntu noble/main arm64 libnet-http-perl all 6.23-1 [22.3 kB] 108s Get:186 http://ftpmaster.internal/ubuntu noble/main arm64 liblwp-protocol-https-perl all 6.13-1 [9006 B] 108s Get:187 http://ftpmaster.internal/ubuntu noble/main arm64 libwww-robotrules-perl all 6.02-1 [12.6 kB] 108s Get:188 http://ftpmaster.internal/ubuntu noble/main arm64 libwww-perl all 6.76-1 [138 kB] 108s Get:189 http://ftpmaster.internal/ubuntu noble/main arm64 liberror-perl all 0.17029-2 [25.6 kB] 108s Get:190 http://ftpmaster.internal/ubuntu noble/universe arm64 libparse-debcontrol-perl all 2.005-6 [20.4 kB] 108s Get:191 http://ftpmaster.internal/ubuntu noble/universe arm64 libsoftware-copyright-perl all 0.012-2 [17.4 kB] 108s Get:192 http://ftpmaster.internal/ubuntu noble/universe arm64 libalgorithm-c3-perl all 0.11-2 [10.2 kB] 108s Get:193 http://ftpmaster.internal/ubuntu noble/universe arm64 libclass-c3-perl all 0.35-2 [18.4 kB] 108s Get:194 http://ftpmaster.internal/ubuntu noble/universe arm64 libmro-compat-perl all 0.15-2 [10.1 kB] 108s Get:195 http://ftpmaster.internal/ubuntu noble/universe arm64 libdata-section-perl all 0.200008-1 [11.6 kB] 108s Get:196 http://ftpmaster.internal/ubuntu noble/universe arm64 libtext-template-perl all 1.61-1 [48.5 kB] 108s Get:197 http://ftpmaster.internal/ubuntu noble/universe arm64 libsoftware-license-perl all 0.104006-1 [117 kB] 108s Get:198 http://ftpmaster.internal/ubuntu noble/universe arm64 libsoftware-licensemoreutils-perl all 1.009-1 [21.5 kB] 108s Get:199 http://ftpmaster.internal/ubuntu noble/main arm64 libsort-versions-perl all 1.62-3 [7378 B] 108s Get:200 http://ftpmaster.internal/ubuntu noble/universe arm64 libtext-reform-perl all 1.20-5 [35.4 kB] 108s Get:201 http://ftpmaster.internal/ubuntu noble/universe arm64 libtext-autoformat-perl all 1.750000-2 [29.8 kB] 108s Get:202 http://ftpmaster.internal/ubuntu noble/universe arm64 libtext-levenshtein-damerau-perl all 0.41-3 [10.8 kB] 108s Get:203 http://ftpmaster.internal/ubuntu noble/universe arm64 libtoml-tiny-perl all 0.16-1 [22.0 kB] 108s Get:204 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libindirect-perl arm64 0.39-2build3 [21.5 kB] 108s Get:205 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libxs-parse-keyword-perl arm64 0.39-1build2 [53.7 kB] 108s Get:206 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libxs-parse-sublike-perl arm64 0.21-2build2 [39.0 kB] 108s Get:207 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libobject-pad-perl arm64 0.808-1build2 [107 kB] 108s Get:208 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libsyntax-keyword-try-perl arm64 0.29-1build2 [24.0 kB] 108s Get:209 http://ftpmaster.internal/ubuntu noble/main arm64 libio-interactive-perl all 1.025-1 [10.4 kB] 108s Get:210 http://ftpmaster.internal/ubuntu noble/main arm64 liblog-any-perl all 1.717-1 [73.2 kB] 108s Get:211 http://ftpmaster.internal/ubuntu noble/main arm64 liblog-any-adapter-screen-perl all 0.140-2 [12.4 kB] 108s Get:212 http://ftpmaster.internal/ubuntu noble/main arm64 libsub-exporter-progressive-perl all 0.001013-3 [6718 B] 108s Get:213 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libvariable-magic-perl arm64 0.63-1build2 [34.2 kB] 108s Get:214 http://ftpmaster.internal/ubuntu noble/main arm64 libb-hooks-endofscope-perl all 0.28-1 [15.8 kB] 108s Get:215 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libsub-identify-perl arm64 0.14-3build2 [9606 B] 108s Get:216 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libsub-name-perl arm64 0.27-1build2 [10.4 kB] 108s Get:217 http://ftpmaster.internal/ubuntu noble/main arm64 libnamespace-clean-perl all 0.27-2 [14.0 kB] 108s Get:218 http://ftpmaster.internal/ubuntu noble/main arm64 libnumber-compare-perl all 0.03-3 [5974 B] 108s Get:219 http://ftpmaster.internal/ubuntu noble/main arm64 libtext-glob-perl all 0.11-3 [6780 B] 109s Get:220 http://ftpmaster.internal/ubuntu noble/main arm64 libpath-iterator-rule-perl all 1.015-2 [39.9 kB] 109s Get:221 http://ftpmaster.internal/ubuntu noble/main arm64 libpod-parser-perl all 1.67-1 [80.6 kB] 109s Get:222 http://ftpmaster.internal/ubuntu noble/main arm64 libpod-constants-perl all 0.19-2 [16.3 kB] 109s Get:223 http://ftpmaster.internal/ubuntu noble/main arm64 libset-intspan-perl all 1.19-3 [24.8 kB] 109s Get:224 http://ftpmaster.internal/ubuntu noble/main arm64 libstring-copyright-perl all 0.003014-1 [20.5 kB] 109s Get:225 http://ftpmaster.internal/ubuntu noble/main arm64 libstring-escape-perl all 2010.002-3 [16.1 kB] 109s Get:226 http://ftpmaster.internal/ubuntu noble/main arm64 libregexp-pattern-license-perl all 3.11.0-1 [85.8 kB] 109s Get:227 http://ftpmaster.internal/ubuntu noble/main arm64 libregexp-pattern-perl all 0.2.14-2 [17.6 kB] 109s Get:228 http://ftpmaster.internal/ubuntu noble/main arm64 libstring-license-perl all 0.0.9-2ubuntu1 [35.0 kB] 109s Get:229 http://ftpmaster.internal/ubuntu noble/main arm64 licensecheck all 3.3.9-1ubuntu1 [37.7 kB] 109s Get:230 http://ftpmaster.internal/ubuntu noble/main arm64 diffstat arm64 1.66-1 [28.0 kB] 109s Get:231 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libberkeleydb-perl arm64 0.64-2build2 [122 kB] 109s Get:232 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libclass-xsaccessor-perl arm64 1.19-4build3 [32.9 kB] 109s Get:233 http://ftpmaster.internal/ubuntu noble/main arm64 libconfig-tiny-perl all 2.30-1 [14.7 kB] 109s Get:234 http://ftpmaster.internal/ubuntu noble/main arm64 libconst-fast-perl all 0.014-2 [8034 B] 109s Get:235 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libcpanel-json-xs-perl arm64 4.37-1build2 [113 kB] 109s Get:236 http://ftpmaster.internal/ubuntu noble/main arm64 libaliased-perl all 0.34-3 [12.8 kB] 109s Get:237 http://ftpmaster.internal/ubuntu noble/main arm64 libclass-data-inheritable-perl all 0.08-3 [8084 B] 109s Get:238 http://ftpmaster.internal/ubuntu noble/main arm64 libdevel-stacktrace-perl all 2.0500-1 [22.1 kB] 109s Get:239 http://ftpmaster.internal/ubuntu noble/main arm64 libexception-class-perl all 1.45-1 [28.6 kB] 109s Get:240 http://ftpmaster.internal/ubuntu noble/main arm64 libiterator-perl all 0.03+ds1-2 [18.8 kB] 109s Get:241 http://ftpmaster.internal/ubuntu noble/main arm64 libiterator-util-perl all 0.02+ds1-2 [14.1 kB] 109s Get:242 http://ftpmaster.internal/ubuntu noble/main arm64 libdata-dpath-perl all 0.59-1 [39.2 kB] 109s Get:243 http://ftpmaster.internal/ubuntu noble/main arm64 libnet-domain-tld-perl all 1.75-3 [29.4 kB] 109s Get:244 http://ftpmaster.internal/ubuntu noble/main arm64 libdata-validate-domain-perl all 0.10-1.1 [9992 B] 109s Get:245 http://ftpmaster.internal/ubuntu noble/main arm64 libnet-ipv6addr-perl all 1.02-1 [21.0 kB] 109s Get:246 http://ftpmaster.internal/ubuntu noble/main arm64 libnet-netmask-perl all 2.0002-2 [24.8 kB] 109s Get:247 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libnetaddr-ip-perl arm64 4.079+dfsg-2build3 [79.7 kB] 109s Get:248 http://ftpmaster.internal/ubuntu noble/main arm64 libdata-validate-ip-perl all 0.31-1 [17.2 kB] 109s Get:249 http://ftpmaster.internal/ubuntu noble/main arm64 libdata-validate-uri-perl all 0.07-3 [10.8 kB] 109s Get:250 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libdevel-size-perl arm64 0.83-2build3 [19.1 kB] 109s Get:251 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libemail-address-xs-perl arm64 1.05-1build3 [28.9 kB] 109s Get:252 http://ftpmaster.internal/ubuntu noble/main arm64 libipc-system-simple-perl all 1.30-2 [22.3 kB] 109s Get:253 http://ftpmaster.internal/ubuntu noble/main arm64 libfile-basedir-perl all 0.09-2 [14.4 kB] 109s Get:254 http://ftpmaster.internal/ubuntu noble/main arm64 libfile-find-rule-perl all 0.34-3 [24.4 kB] 109s Get:255 http://ftpmaster.internal/ubuntu noble/main arm64 libio-string-perl all 1.08-4 [11.1 kB] 109s Get:256 http://ftpmaster.internal/ubuntu noble/main arm64 libfont-ttf-perl all 1.06-2 [323 kB] 109s Get:257 http://ftpmaster.internal/ubuntu noble/main arm64 libhtml-html5-entities-perl all 0.004-3 [21.6 kB] 109s Get:258 http://ftpmaster.internal/ubuntu noble/main arm64 libhtml-tokeparser-simple-perl all 3.16-4 [38.0 kB] 109s Get:259 http://ftpmaster.internal/ubuntu noble/main arm64 libipc-run3-perl all 0.049-1 [28.8 kB] 109s Get:260 http://ftpmaster.internal/ubuntu noble/main arm64 libjson-maybexs-perl all 1.004005-1 [11.3 kB] 109s Get:261 http://ftpmaster.internal/ubuntu noble/main arm64 liblist-compare-perl all 0.55-2 [62.9 kB] 109s Get:262 http://ftpmaster.internal/ubuntu noble/main arm64 liblist-someutils-perl all 0.59-1 [30.4 kB] 109s Get:263 http://ftpmaster.internal/ubuntu noble/main arm64 liblist-utilsby-perl all 0.12-2 [14.9 kB] 109s Get:264 http://ftpmaster.internal/ubuntu noble/main arm64 libmldbm-perl all 2.05-4 [16.0 kB] 109s Get:265 http://ftpmaster.internal/ubuntu noble/main arm64 libclass-method-modifiers-perl all 2.15-1 [16.1 kB] 109s Get:266 http://ftpmaster.internal/ubuntu noble/main arm64 libimport-into-perl all 1.002005-2 [10.7 kB] 109s Get:267 http://ftpmaster.internal/ubuntu noble/main arm64 librole-tiny-perl all 2.002004-1 [16.3 kB] 109s Get:268 http://ftpmaster.internal/ubuntu noble/main arm64 libsub-quote-perl all 2.006008-1ubuntu1 [20.7 kB] 109s Get:269 http://ftpmaster.internal/ubuntu noble/main arm64 libmoo-perl all 2.005005-1 [47.4 kB] 109s Get:270 http://ftpmaster.internal/ubuntu noble/main arm64 libstrictures-perl all 2.000006-1 [16.3 kB] 109s Get:271 http://ftpmaster.internal/ubuntu noble/main arm64 libmoox-aliases-perl all 0.001006-2 [6796 B] 109s Get:272 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libperlio-gzip-perl arm64 0.20-1build3 [14.5 kB] 109s Get:273 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libperlio-utf8-strict-perl arm64 0.010-1build2 [10.9 kB] 109s Get:274 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libproc-processtable-perl arm64 0.636-1build2 [35.3 kB] 109s Get:275 http://ftpmaster.internal/ubuntu noble/main arm64 libregexp-wildcards-perl all 1.05-3 [12.9 kB] 109s Get:276 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libsereal-decoder-perl arm64 5.004+ds-1build2 [99.6 kB] 109s Get:277 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libsereal-encoder-perl arm64 5.004+ds-1build2 [102 kB] 109s Get:278 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libterm-readkey-perl arm64 2.38-2build3 [23.0 kB] 109s Get:279 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libtext-levenshteinxs-perl arm64 0.03-5build3 [7832 B] 109s Get:280 http://ftpmaster.internal/ubuntu noble/main arm64 libmarkdown2 arm64 2.2.7-2 [37.0 kB] 109s Get:281 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libtext-markdown-discount-perl arm64 0.16-1build2 [12.1 kB] 109s Get:282 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libdata-messagepack-perl arm64 1.02-1build3 [29.9 kB] 109s Get:283 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libtext-xslate-perl arm64 3.5.9-1build4 [161 kB] 109s Get:284 http://ftpmaster.internal/ubuntu noble/main arm64 libtime-duration-perl all 1.21-2 [12.3 kB] 109s Get:285 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libtime-moment-perl arm64 0.44-2build3 [72.1 kB] 109s Get:286 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libunicode-utf8-perl arm64 0.62-2build2 [18.1 kB] 109s Get:287 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libcgi-pm-perl all 4.63-1 [185 kB] 109s Get:288 http://ftpmaster.internal/ubuntu noble/main arm64 libhtml-form-perl all 6.11-1 [32.1 kB] 109s Get:289 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libwww-mechanize-perl all 2.18-1ubuntu1 [93.1 kB] 109s Get:290 http://ftpmaster.internal/ubuntu noble/main arm64 libxml-namespacesupport-perl all 1.12-2 [13.5 kB] 109s Get:291 http://ftpmaster.internal/ubuntu noble/main arm64 libxml-sax-base-perl all 1.09-3 [18.9 kB] 109s Get:292 http://ftpmaster.internal/ubuntu noble/main arm64 libxml-sax-perl all 1.02+dfsg-3 [57.0 kB] 109s Get:293 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libxml-libxml-perl arm64 2.0207+dfsg+really+2.0134-1build3 [296 kB] 109s Get:294 http://ftpmaster.internal/ubuntu noble/main arm64 lzip arm64 1.24.1-1 [81.6 kB] 109s Get:295 http://ftpmaster.internal/ubuntu noble/main arm64 lzop arm64 1.04-2build2 [84.0 kB] 109s Get:296 http://ftpmaster.internal/ubuntu noble/main arm64 patchutils arm64 0.4.2-1build2 [75.8 kB] 110s Get:297 http://ftpmaster.internal/ubuntu noble/main arm64 t1utils arm64 1.41-4build2 [61.5 kB] 110s Get:298 http://ftpmaster.internal/ubuntu noble/main arm64 unzip arm64 6.0-28ubuntu3 [171 kB] 110s Get:299 http://ftpmaster.internal/ubuntu noble/main arm64 lintian all 2.117.0ubuntu1 [1065 kB] 110s Get:300 http://ftpmaster.internal/ubuntu noble/universe arm64 libconfig-model-dpkg-perl all 3.004 [174 kB] 110s Get:301 http://ftpmaster.internal/ubuntu noble/main arm64 libconvert-binhex-perl all 1.125-3 [27.1 kB] 110s Get:302 http://ftpmaster.internal/ubuntu noble/main arm64 libnet-smtp-ssl-perl all 1.04-2 [6218 B] 110s Get:303 http://ftpmaster.internal/ubuntu noble/main arm64 libmailtools-perl all 2.21-2 [80.4 kB] 110s Get:304 http://ftpmaster.internal/ubuntu noble/main arm64 libmime-tools-perl all 5.514-1 [187 kB] 110s Get:305 http://ftpmaster.internal/ubuntu noble/main arm64 libsuitesparseconfig7 arm64 1:7.6.1+dfsg-1 [12.4 kB] 110s Get:306 http://ftpmaster.internal/ubuntu noble/universe arm64 libamd3 arm64 1:7.6.1+dfsg-1 [25.7 kB] 110s Get:307 http://ftpmaster.internal/ubuntu noble/main arm64 libblas3 arm64 3.12.0-3 [143 kB] 110s Get:308 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libgfortran5 arm64 14-20240315-1ubuntu1 [444 kB] 110s Get:309 http://ftpmaster.internal/ubuntu noble/main arm64 liblapack3 arm64 3.12.0-3 [2241 kB] 110s Get:310 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libarpack2t64 arm64 3.9.1-1.1build1 [90.6 kB] 110s Get:311 http://ftpmaster.internal/ubuntu noble/universe arm64 libccolamd3 arm64 1:7.6.1+dfsg-1 [25.2 kB] 110s Get:312 http://ftpmaster.internal/ubuntu noble/universe arm64 libcamd3 arm64 1:7.6.1+dfsg-1 [22.0 kB] 110s Get:313 http://ftpmaster.internal/ubuntu noble/main arm64 libcolamd3 arm64 1:7.6.1+dfsg-1 [18.1 kB] 110s Get:314 http://ftpmaster.internal/ubuntu noble/universe arm64 libcholmod5 arm64 1:7.6.1+dfsg-1 [582 kB] 110s Get:315 http://ftpmaster.internal/ubuntu noble/universe arm64 libcxsparse4 arm64 1:7.6.1+dfsg-1 [70.6 kB] 110s Get:316 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libfftw3-double3 arm64 3.3.10-1ubuntu2 [384 kB] 110s Get:317 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libfftw3-single3 arm64 3.3.10-1ubuntu2 [584 kB] 110s Get:318 http://ftpmaster.internal/ubuntu noble/main arm64 libxfixes3 arm64 1:6.0.0-2 [11.0 kB] 110s Get:319 http://ftpmaster.internal/ubuntu noble/main arm64 libxcursor1 arm64 1:1.2.1-1 [21.3 kB] 110s Get:320 http://ftpmaster.internal/ubuntu noble/main arm64 libxft2 arm64 2.3.6-1 [43.3 kB] 110s Get:321 http://ftpmaster.internal/ubuntu noble/main arm64 libxinerama1 arm64 2:1.1.4-3 [7056 B] 110s Get:322 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libfltk1.3t64 arm64 1.3.8-6.1 [597 kB] 110s Get:323 http://ftpmaster.internal/ubuntu noble/main arm64 libglvnd0 arm64 1.7.0-1 [60.0 kB] 110s Get:324 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libglapi-mesa arm64 24.0.2-1ubuntu8 [58.0 kB] 110s Get:325 http://ftpmaster.internal/ubuntu noble/main arm64 libx11-xcb1 arm64 2:1.8.7-1 [7836 B] 110s Get:326 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-dri2-0 arm64 1.15-1 [7244 B] 110s Get:327 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-dri3-0 arm64 1.15-1 [7108 B] 110s Get:328 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-glx0 arm64 1.15-1 [25.2 kB] 110s Get:329 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-present0 arm64 1.15-1 [5732 B] 110s Get:330 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-randr0 arm64 1.15-1 [18.2 kB] 110s Get:331 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-sync1 arm64 1.15-1 [9412 B] 110s Get:332 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-xfixes0 arm64 1.15-1 [10.3 kB] 110s Get:333 http://ftpmaster.internal/ubuntu noble/main arm64 libxshmfence1 arm64 1.3-1build4 [5444 B] 110s Get:334 http://ftpmaster.internal/ubuntu noble/main arm64 libxxf86vm1 arm64 1:1.1.4-1build3 [10.3 kB] 110s Get:335 http://ftpmaster.internal/ubuntu noble/main arm64 libvulkan1 arm64 1.3.275.0-1 [150 kB] 110s Get:336 http://ftpmaster.internal/ubuntu noble/main arm64 libdrm-amdgpu1 arm64 2.4.120-2 [20.4 kB] 110s Get:337 http://ftpmaster.internal/ubuntu noble/main arm64 libdrm-nouveau2 arm64 2.4.120-2 [17.8 kB] 110s Get:338 http://ftpmaster.internal/ubuntu noble/main arm64 libdrm-radeon1 arm64 2.4.120-2 [20.9 kB] 110s Get:339 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libllvm17t64 arm64 1:17.0.6-9build1 [25.0 MB] 111s Get:340 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libgl1-mesa-dri arm64 24.0.2-1ubuntu8 [8237 kB] 112s Get:341 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libglx-mesa0 arm64 24.0.2-1ubuntu8 [177 kB] 112s Get:342 http://ftpmaster.internal/ubuntu noble/main arm64 libglx0 arm64 1.7.0-1 [32.4 kB] 112s Get:343 http://ftpmaster.internal/ubuntu noble/main arm64 libgl1 arm64 1.7.0-1 [107 kB] 112s Get:344 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libfltk-gl1.3t64 arm64 1.3.8-6.1 [42.1 kB] 112s Get:345 http://ftpmaster.internal/ubuntu noble/universe arm64 libgl2ps1.4 arm64 1.4.2+dfsg1-2 [41.5 kB] 112s Get:346 http://ftpmaster.internal/ubuntu noble/main arm64 libltdl7 arm64 2.4.7-7 [40.3 kB] 112s Get:347 http://ftpmaster.internal/ubuntu noble/universe arm64 libglpk40 arm64 5.0-1build1 [336 kB] 112s Get:348 http://ftpmaster.internal/ubuntu noble/main arm64 libopengl0 arm64 1.7.0-1 [35.9 kB] 112s Get:349 http://ftpmaster.internal/ubuntu noble/main arm64 libglu1-mesa arm64 9.0.2-1.1 [137 kB] 112s Get:350 http://ftpmaster.internal/ubuntu noble/universe arm64 libdav1d7 arm64 1.4.0-1 [297 kB] 112s Get:351 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libheif-plugin-dav1d arm64 1.17.6-1ubuntu2 [9914 B] 112s Get:352 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libde265-0 arm64 1.0.15-1build1 [143 kB] 112s Get:353 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libheif-plugin-libde265 arm64 1.17.6-1ubuntu2 [8030 B] 112s Get:354 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libheif1 arm64 1.17.6-1ubuntu2 [260 kB] 112s Get:355 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libhwy1t64 arm64 1.0.7-8.1 [437 kB] 112s Get:356 http://ftpmaster.internal/ubuntu noble/main arm64 liblcms2-2 arm64 2.14-2 [159 kB] 112s Get:357 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libjxl0.7 arm64 0.7.0-10.2ubuntu3 [690 kB] 112s Get:358 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libwmflite-0.2-7 arm64 0.2.13-1.1build2 [68.5 kB] 112s Get:359 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libgraphicsmagick-q16-3t64 arm64 1.4+really1.3.42-1.1build1 [1197 kB] 112s Get:360 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libgraphicsmagick++-q16-12t64 arm64 1.4+really1.3.42-1.1build1 [111 kB] 112s Get:361 http://ftpmaster.internal/ubuntu noble/universe arm64 libaec0 arm64 1.1.2-1 [21.7 kB] 112s Get:362 http://ftpmaster.internal/ubuntu noble/universe arm64 libsz2 arm64 1.1.2-1 [5168 B] 112s Get:363 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libhdf5-103-1t64 arm64 1.10.10+repack-3.1ubuntu3 [1192 kB] 112s Get:364 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libasound2-data all 1.2.11-1build1 [21.0 kB] 112s Get:365 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libasound2t64 arm64 1.2.11-1build1 [386 kB] 112s Get:366 http://ftpmaster.internal/ubuntu noble/main arm64 libopus0 arm64 1.4-1 [194 kB] 112s Get:367 http://ftpmaster.internal/ubuntu noble/main arm64 libsamplerate0 arm64 0.2.2-4 [1342 kB] 112s Get:368 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libjack-jackd2-0 arm64 1.9.21~dfsg-3ubuntu1 [285 kB] 112s Get:369 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libportaudio2 arm64 19.6.0-1.2build1 [65.6 kB] 112s Get:370 http://ftpmaster.internal/ubuntu noble/universe arm64 libqhull-r8.0 arm64 2020.2-6 [188 kB] 112s Get:371 http://ftpmaster.internal/ubuntu noble/universe arm64 libqrupdate1 arm64 1.1.2-4 [30.0 kB] 112s Get:372 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libqscintilla2-qt5-l10n all 2.14.1+dfsg-1build2 [56.4 kB] 112s Get:373 http://ftpmaster.internal/ubuntu noble/universe arm64 libdouble-conversion3 arm64 3.3.0-1 [37.2 kB] 112s Get:374 http://ftpmaster.internal/ubuntu noble/main arm64 libpcre2-16-0 arm64 10.42-4ubuntu1 [195 kB] 112s Get:375 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libqt5core5t64 arm64 5.15.12+dfsg-3ubuntu6 [1971 kB] 112s Get:376 http://ftpmaster.internal/ubuntu noble/main arm64 libwayland-server0 arm64 1.22.0-2.1 [34.0 kB] 112s Get:377 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libgbm1 arm64 24.0.2-1ubuntu8 [43.3 kB] 112s Get:378 http://ftpmaster.internal/ubuntu noble/main arm64 libwayland-client0 arm64 1.22.0-2.1 [25.6 kB] 112s Get:379 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libegl-mesa0 arm64 24.0.2-1ubuntu8 [127 kB] 112s Get:380 http://ftpmaster.internal/ubuntu noble/main arm64 libegl1 arm64 1.7.0-1 [29.2 kB] 112s Get:381 http://ftpmaster.internal/ubuntu noble/main arm64 x11-common all 1:7.7+23ubuntu2 [23.4 kB] 112s Get:382 http://ftpmaster.internal/ubuntu noble/main arm64 libice6 arm64 2:1.0.10-1build2 [41.7 kB] 112s Get:383 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libmtdev1t64 arm64 1.1.6-1.1 [14.3 kB] 112s Get:384 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libwacom-common all 2.10.0-1build1 [63.5 kB] 112s Get:385 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libwacom9 arm64 2.10.0-1build1 [23.8 kB] 112s Get:386 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libinput-bin arm64 1.25.0-1build1 [22.0 kB] 112s Get:387 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libinput10 arm64 1.25.0-1build1 [129 kB] 112s Get:388 http://ftpmaster.internal/ubuntu noble/universe arm64 libmd4c0 arm64 0.4.8-1 [41.2 kB] 112s Get:389 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libqt5dbus5t64 arm64 5.15.12+dfsg-3ubuntu6 [224 kB] 112s Get:390 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libqt5network5t64 arm64 5.15.12+dfsg-3ubuntu6 [740 kB] 112s Get:391 http://ftpmaster.internal/ubuntu noble/main arm64 libsm6 arm64 2:1.2.3-1build2 [16.1 kB] 112s Get:392 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-icccm4 arm64 0.4.1-1.1build2 [11.0 kB] 112s Get:393 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-util1 arm64 0.4.0-1build2 [11.2 kB] 112s Get:394 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-image0 arm64 0.4.0-2 [11.1 kB] 112s Get:395 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-keysyms1 arm64 0.4.0-1build3 [8606 B] 112s Get:396 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-render-util0 arm64 0.3.9-1build3 [10.2 kB] 112s Get:397 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-shape0 arm64 1.15-1 [6106 B] 112s Get:398 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-xinerama0 arm64 1.15-1 [5434 B] 112s Get:399 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-xinput0 arm64 1.15-1 [33.5 kB] 112s Get:400 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb-xkb1 arm64 1.15-1 [31.7 kB] 112s Get:401 http://ftpmaster.internal/ubuntu noble/main arm64 libxkbcommon-x11-0 arm64 1.6.0-1 [13.6 kB] 112s Get:402 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libqt5gui5t64 arm64 5.15.12+dfsg-3ubuntu6 [3616 kB] 112s Get:403 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libavahi-common-data arm64 0.8-13ubuntu4 [29.5 kB] 112s Get:404 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libavahi-common3 arm64 0.8-13ubuntu4 [23.3 kB] 112s Get:405 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libavahi-client3 arm64 0.8-13ubuntu4 [27.2 kB] 112s Get:406 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libcups2t64 arm64 2.4.7-1.2ubuntu1 [273 kB] 113s Get:407 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libqt5widgets5t64 arm64 5.15.12+dfsg-3ubuntu6 [2569 kB] 113s Get:408 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libqt5printsupport5t64 arm64 5.15.12+dfsg-3ubuntu6 [210 kB] 113s Get:409 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libqscintilla2-qt5-15 arm64 2.14.1+dfsg-1build2 [1130 kB] 113s Get:410 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libqt5sql5t64 arm64 5.15.12+dfsg-3ubuntu6 [123 kB] 113s Get:411 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libqt5help5 arm64 5.15.12-2build2 [165 kB] 113s Get:412 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libqt5xml5t64 arm64 5.15.12+dfsg-3ubuntu6 [125 kB] 113s Get:413 http://ftpmaster.internal/ubuntu noble/main arm64 libogg0 arm64 1.3.5-3 [22.1 kB] 113s Get:414 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libflac12t64 arm64 1.4.3+ds-2.1ubuntu1 [169 kB] 113s Get:415 http://ftpmaster.internal/ubuntu noble/main arm64 libmp3lame0 arm64 3.100-6 [141 kB] 113s Get:416 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libmpg123-0 arm64 1.32.5-1build1 [171 kB] 113s Get:417 http://ftpmaster.internal/ubuntu noble/main arm64 libvorbis0a arm64 1.3.7-1build2 [95.5 kB] 113s Get:418 http://ftpmaster.internal/ubuntu noble/main arm64 libvorbisenc2 arm64 1.3.7-1build2 [82.3 kB] 113s Get:419 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libsndfile1 arm64 1.2.2-1ubuntu3 [208 kB] 113s Get:420 http://ftpmaster.internal/ubuntu noble/universe arm64 libspqr4 arm64 1:7.6.1+dfsg-1 [125 kB] 113s Get:421 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libsundials-ida6 arm64 6.4.1+dfsg1-3build3 [123 kB] 113s Get:422 http://ftpmaster.internal/ubuntu noble/universe arm64 libbtf2 arm64 1:7.6.1+dfsg-1 [13.0 kB] 113s Get:423 http://ftpmaster.internal/ubuntu noble/universe arm64 libklu2 arm64 1:7.6.1+dfsg-1 [72.3 kB] 113s Get:424 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libfftw3-long3 arm64 3.3.10-1ubuntu2 [642 kB] 113s Get:425 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libevent-core-2.1-7 arm64 2.1.12-stable-9build1 [89.6 kB] 113s Get:426 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libevent-pthreads-2.1-7 arm64 2.1.12-stable-9build1 [7754 B] 113s Get:427 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libibverbs1 arm64 50.0-2build1 [67.3 kB] 113s Get:428 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 ibverbs-providers arm64 50.0-2build1 [367 kB] 113s Get:429 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 librdmacm1t64 arm64 50.0-2build1 [70.6 kB] 113s Get:430 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libfabric1 arm64 1.17.0-3build1 [541 kB] 113s Get:431 http://ftpmaster.internal/ubuntu noble/universe arm64 libhwloc15 arm64 2.10.0-1 [158 kB] 113s Get:432 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libmunge2 arm64 0.5.15-4 [14.9 kB] 113s Get:433 http://ftpmaster.internal/ubuntu noble/main arm64 libpciaccess0 arm64 0.17-3 [18.6 kB] 113s Get:434 http://ftpmaster.internal/ubuntu noble/main arm64 libxnvctrl0 arm64 510.47.03-0ubuntu1 [11.1 kB] 113s Get:435 http://ftpmaster.internal/ubuntu noble/universe arm64 ocl-icd-libopencl1 arm64 2.3.2-1 [37.3 kB] 113s Get:436 http://ftpmaster.internal/ubuntu noble/universe arm64 libhwloc-plugins arm64 2.10.0-1 [15.7 kB] 113s Get:437 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libpmix2t64 arm64 5.0.1-4.1 [655 kB] 113s Get:438 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libamd-comgr2 arm64 6.0+git20231212.4510c28+dfsg-3build1 [14.1 MB] 114s Get:439 http://ftpmaster.internal/ubuntu noble/universe arm64 libhsakmt1 arm64 5.7.0-1 [63.6 kB] 114s Get:440 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libhsa-runtime64-1 arm64 5.7.1-1build1 [286 kB] 114s Get:441 http://ftpmaster.internal/ubuntu noble/universe arm64 libamdhip64-5 arm64 5.2.3-12 [5134 kB] 114s Get:442 http://ftpmaster.internal/ubuntu noble/universe arm64 libucx0 arm64 1.16.0+ds-4 [1076 kB] 114s Get:443 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libopenmpi3t64 arm64 4.1.6-7ubuntu1 [2463 kB] 114s Get:444 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libfftw3-mpi3 arm64 3.3.10-1ubuntu2 [45.0 kB] 114s Get:445 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libhdf5-openmpi-103-1t64 arm64 1.10.10+repack-3.1ubuntu3 [1242 kB] 114s Get:446 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libcombblas2.0.0t64 arm64 2.0.0-3.1build1 [267 kB] 114s Get:447 http://ftpmaster.internal/ubuntu noble/universe arm64 libmetis5 arm64 5.1.0.dfsg-7build2 [175 kB] 114s Get:448 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libptscotch-7.0 arm64 7.0.4-1ubuntu1 [709 kB] 114s Get:449 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libsuperlu-dist8 arm64 8.2.1+dfsg1-1build1 [579 kB] 114s Get:450 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libhypre-2.28.0 arm64 2.28.0-8build1 [1630 kB] 114s Get:451 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 openmpi-common all 4.1.6-7ubuntu1 [170 kB] 114s Get:452 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 openmpi-bin arm64 4.1.6-7ubuntu1 [113 kB] 114s Get:453 http://ftpmaster.internal/ubuntu noble/universe arm64 mpi-default-bin arm64 1.15 [2336 B] 114s Get:454 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libscalapack-openmpi2.2 arm64 2.2.1-3build1 [1581 kB] 114s Get:455 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libmumps-5.6t64 arm64 5.6.2-2.1build1 [1853 kB] 114s Get:456 http://ftpmaster.internal/ubuntu noble/universe arm64 libsuperlu6 arm64 6.0.1+dfsg1-1 [166 kB] 114s Get:457 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libscotch-7.0 arm64 7.0.4-1ubuntu1 [426 kB] 114s Get:458 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-kokkos-13.2 arm64 13.2.0-5build1 [104 kB] 114s Get:459 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-teuchos-13.2 arm64 13.2.0-5build1 [1073 kB] 115s Get:460 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-epetra-13.2 arm64 13.2.0-5build1 [414 kB] 115s Get:461 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-triutils-13.2 arm64 13.2.0-5build1 [117 kB] 115s Get:462 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-epetraext-13.2 arm64 13.2.0-5build1 [408 kB] 115s Get:463 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-trilinosss-13.2 arm64 13.2.0-5build1 [87.2 kB] 115s Get:464 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-amesos-13.2 arm64 13.2.0-5build1 [101 kB] 115s Get:465 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-aztecoo-13.2 arm64 13.2.0-5build1 [205 kB] 115s Get:466 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-galeri-13.2 arm64 13.2.0-5build1 [87.5 kB] 115s Get:467 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-ifpack-13.2 arm64 13.2.0-5build1 [397 kB] 115s Get:468 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-zoltan-13.2 arm64 13.2.0-5build1 [380 kB] 115s Get:469 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libtrilinos-ml-13.2 arm64 13.2.0-5build1 [926 kB] 115s Get:470 http://ftpmaster.internal/ubuntu noble/universe arm64 libumfpack6 arm64 1:7.6.1+dfsg-1 [234 kB] 115s Get:471 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libpetsc-real3.19t64 arm64 3.19.6+dfsg1-2.2ubuntu1 [5767 kB] 115s Get:472 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libsundials-nvecparallel-petsc6 arm64 6.4.1+dfsg1-3build3 [35.4 kB] 115s Get:473 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libsundials-sunmatrix4 arm64 6.4.1+dfsg1-3build3 [83.0 kB] 115s Get:474 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libsundials-sunlinsol3 arm64 6.4.1+dfsg1-3build3 [175 kB] 115s Get:475 http://ftpmaster.internal/ubuntu noble/universe arm64 libtext-unidecode-perl all 1.30-3 [105 kB] 115s Get:476 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 texinfo-lib arm64 7.1-3build1 [130 kB] 115s Get:477 http://ftpmaster.internal/ubuntu noble/universe arm64 tex-common all 6.18 [32.8 kB] 115s Get:478 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 texinfo all 7.1-3build1 [1273 kB] 115s Get:479 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 octave-common all 8.4.0-1build4 [5925 kB] 115s Get:480 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 octave arm64 8.4.0-1build4 [9018 kB] 115s Get:481 http://ftpmaster.internal/ubuntu noble/main arm64 libncurses-dev arm64 6.4+20240113-1ubuntu1 [385 kB] 115s Get:482 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libreadline-dev arm64 8.2-3.1 [177 kB] 115s Get:483 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libhdf5-fortran-102t64 arm64 1.10.10+repack-3.1ubuntu3 [86.3 kB] 115s Get:484 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libhdf5-hl-100t64 arm64 1.10.10+repack-3.1ubuntu3 [55.8 kB] 115s Get:485 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libhdf5-hl-fortran-100t64 arm64 1.10.10+repack-3.1ubuntu3 [31.0 kB] 115s Get:486 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libhdf5-cpp-103-1t64 arm64 1.10.10+repack-3.1ubuntu3 [120 kB] 115s Get:487 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libhdf5-hl-cpp-100t64 arm64 1.10.10+repack-3.1ubuntu3 [11.0 kB] 115s Get:488 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 zlib1g-dev arm64 1:1.3.dfsg-3.1ubuntu1 [894 kB] 116s Get:489 http://ftpmaster.internal/ubuntu noble/main arm64 libjpeg-turbo8-dev arm64 2.1.5-2ubuntu1 [304 kB] 116s Get:490 http://ftpmaster.internal/ubuntu noble/main arm64 libjpeg8-dev arm64 8c-2ubuntu11 [1484 B] 116s Get:491 http://ftpmaster.internal/ubuntu noble/main arm64 libjpeg-dev arm64 8c-2ubuntu11 [1482 B] 116s Get:492 http://ftpmaster.internal/ubuntu noble/universe arm64 libaec-dev arm64 1.1.2-1 [18.8 kB] 116s Get:493 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libcurl4-openssl-dev arm64 8.5.0-2ubuntu7 [454 kB] 116s Get:494 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libssl-dev arm64 3.0.13-0ubuntu2 [2335 kB] 116s Get:495 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 hdf5-helpers arm64 1.10.10+repack-3.1ubuntu3 [15.8 kB] 116s Get:496 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 libhdf5-dev arm64 1.10.10+repack-3.1ubuntu3 [3038 kB] 116s Get:497 http://ftpmaster.internal/ubuntu noble/main arm64 xorg-sgml-doctools all 1:1.11-1.1 [10.9 kB] 116s Get:498 http://ftpmaster.internal/ubuntu noble/main arm64 x11proto-dev all 2023.2-1 [602 kB] 116s Get:499 http://ftpmaster.internal/ubuntu noble/main arm64 libxau-dev arm64 1:1.0.9-1build5 [10.1 kB] 116s Get:500 http://ftpmaster.internal/ubuntu noble/main arm64 libxdmcp-dev arm64 1:1.1.3-0ubuntu5 [26.4 kB] 116s Get:501 http://ftpmaster.internal/ubuntu noble/main arm64 xtrans-dev all 1.4.0-1 [68.9 kB] 116s Get:502 http://ftpmaster.internal/ubuntu noble/main arm64 libpthread-stubs0-dev arm64 0.4-1build2 [5496 B] 116s Get:503 http://ftpmaster.internal/ubuntu noble/main arm64 libxcb1-dev arm64 1.15-1 [89.6 kB] 116s Get:504 http://ftpmaster.internal/ubuntu noble/main arm64 libx11-dev arm64 2:1.8.7-1 [738 kB] 116s Get:505 http://ftpmaster.internal/ubuntu noble/main arm64 libglx-dev arm64 1.7.0-1 [14.2 kB] 116s Get:506 http://ftpmaster.internal/ubuntu noble/main arm64 libgl-dev arm64 1.7.0-1 [102 kB] 116s Get:507 http://ftpmaster.internal/ubuntu noble/main arm64 libblas-dev arm64 3.12.0-3 [111 kB] 116s Get:508 http://ftpmaster.internal/ubuntu noble/main arm64 liblapack-dev arm64 3.12.0-3 [4293 kB] 117s Get:509 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libfftw3-bin arm64 3.3.10-1ubuntu2 [33.0 kB] 117s Get:510 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libfftw3-dev arm64 3.3.10-1ubuntu2 [1473 kB] 117s Get:511 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libgfortran-13-dev arm64 13.2.0-19ubuntu1 [478 kB] 117s Get:512 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 gfortran-13-aarch64-linux-gnu arm64 13.2.0-19ubuntu1 [10.8 MB] 117s Get:513 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 gfortran-13 arm64 13.2.0-19ubuntu1 [10.4 kB] 117s Get:514 http://ftpmaster.internal/ubuntu noble/main arm64 gfortran-aarch64-linux-gnu arm64 4:13.2.0-7ubuntu1 [1022 B] 117s Get:515 http://ftpmaster.internal/ubuntu noble/main arm64 gfortran arm64 4:13.2.0-7ubuntu1 [1164 B] 117s Get:516 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libstdc++-13-dev arm64 13.2.0-19ubuntu1 [2322 kB] 117s Get:517 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 g++-13-aarch64-linux-gnu arm64 13.2.0-19ubuntu1 [11.7 MB] 117s Get:518 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 g++-13 arm64 13.2.0-19ubuntu1 [14.5 kB] 117s Get:519 http://ftpmaster.internal/ubuntu noble/main arm64 g++-aarch64-linux-gnu arm64 4:13.2.0-7ubuntu1 [962 B] 117s Get:520 http://ftpmaster.internal/ubuntu noble/main arm64 g++ arm64 4:13.2.0-7ubuntu1 [1082 B] 117s Get:521 http://ftpmaster.internal/ubuntu noble-proposed/universe arm64 octave-dev arm64 8.4.0-1build4 [469 kB] 117s Get:522 http://ftpmaster.internal/ubuntu noble/universe arm64 dh-octave all 1.8.0 [19.7 kB] 117s Get:523 http://ftpmaster.internal/ubuntu noble/main arm64 libfontenc1 arm64 1:1.1.8-1 [13.9 kB] 117s Get:524 http://ftpmaster.internal/ubuntu noble/main arm64 libunwind8 arm64 1.6.2-3 [55.1 kB] 117s Get:525 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libxt6t64 arm64 1:1.2.1-1.2 [168 kB] 117s Get:526 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libxmu6 arm64 2:1.1.3-3build1 [47.4 kB] 117s Get:527 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 libxaw7 arm64 2:1.0.14-1build1 [183 kB] 117s Get:528 http://ftpmaster.internal/ubuntu noble/main arm64 libxfont2 arm64 1:2.0.6-1 [88.8 kB] 117s Get:529 http://ftpmaster.internal/ubuntu noble/main arm64 libxkbfile1 arm64 1:1.1.0-1build3 [71.2 kB] 117s Get:530 http://ftpmaster.internal/ubuntu noble/main arm64 libxrandr2 arm64 2:1.5.2-2 [19.6 kB] 117s Get:531 http://ftpmaster.internal/ubuntu noble/universe arm64 octave-image arm64 2.14.0-5 [607 kB] 117s Get:532 http://ftpmaster.internal/ubuntu noble-proposed/main arm64 x11-xkb-utils arm64 7.7+8build1 [165 kB] 117s Get:533 http://ftpmaster.internal/ubuntu noble/main arm64 xserver-common all 2:21.1.11-2ubuntu1 [32.6 kB] 117s Get:534 http://ftpmaster.internal/ubuntu noble/universe arm64 xvfb arm64 2:21.1.11-2ubuntu1 [871 kB] 119s Preconfiguring packages ... 120s Fetched 267 MB in 14s (19.3 MB/s) 120s dpkg: libperl5.38:arm64: dependency problems, but removing anyway as you requested: 120s perl depends on libperl5.38 (= 5.38.2-3). 120s 120s (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 ... 74758 files and directories currently installed.) 120s Removing libperl5.38:arm64 (5.38.2-3) ... 120s dpkg: libdb5.3:arm64: dependency problems, but removing anyway as you requested: 120s libsasl2-modules-db:arm64 depends on libdb5.3. 120s libpython3.12-stdlib:arm64 depends on libdb5.3. 120s libpam-modules:arm64 depends on libdb5.3. 120s iproute2 depends on libdb5.3. 120s apt-utils depends on libdb5.3. 120s 120s Removing libdb5.3:arm64 (5.3.28+dfsg2-4) ... 120s Selecting previously unselected package libdb5.3t64:arm64. 120s (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 ... 74223 files and directories currently installed.) 120s Preparing to unpack .../libdb5.3t64_5.3.28+dfsg2-5build1_arm64.deb ... 120s Unpacking libdb5.3t64:arm64 (5.3.28+dfsg2-5build1) ... 120s (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 ... 74229 files and directories currently installed.) 120s Removing libgdbm-compat4:arm64 (1.23-5) ... 120s dpkg: libgdbm6:arm64: dependency problems, but removing anyway as you requested: 120s python3-gdbm:arm64 depends on libgdbm6 (>= 1.16). 120s man-db depends on libgdbm6 (>= 1.16). 120s 120s Removing libgdbm6:arm64 (1.23-5) ... 120s Selecting previously unselected package libgdbm6t64:arm64. 120s (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 ... 74219 files and directories currently installed.) 120s Preparing to unpack .../libgdbm6t64_1.23-5.1_arm64.deb ... 120s Unpacking libgdbm6t64:arm64 (1.23-5.1) ... 120s Selecting previously unselected package libgdbm-compat4t64:arm64. 120s Preparing to unpack .../libgdbm-compat4t64_1.23-5.1_arm64.deb ... 120s Unpacking libgdbm-compat4t64:arm64 (1.23-5.1) ... 120s Selecting previously unselected package libperl5.38t64:arm64. 120s Preparing to unpack .../libperl5.38t64_5.38.2-3.2_arm64.deb ... 120s Unpacking libperl5.38t64:arm64 (5.38.2-3.2) ... 120s Preparing to unpack .../perl_5.38.2-3.2_arm64.deb ... 120s Unpacking perl (5.38.2-3.2) over (5.38.2-3) ... 120s Preparing to unpack .../perl-base_5.38.2-3.2_arm64.deb ... 121s Unpacking perl-base (5.38.2-3.2) over (5.38.2-3) ... 121s Setting up perl-base (5.38.2-3.2) ... 121s (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 ... 74760 files and directories currently installed.) 121s Preparing to unpack .../perl-modules-5.38_5.38.2-3.2_all.deb ... 121s Unpacking perl-modules-5.38 (5.38.2-3.2) over (5.38.2-3) ... 121s Preparing to unpack .../gcc-14-base_14-20240315-1ubuntu1_arm64.deb ... 121s Unpacking gcc-14-base:arm64 (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 121s Setting up gcc-14-base:arm64 (14-20240315-1ubuntu1) ... 121s (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 ... 74760 files and directories currently installed.) 121s Preparing to unpack .../libgcc-s1_14-20240315-1ubuntu1_arm64.deb ... 121s Unpacking libgcc-s1:arm64 (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 121s Setting up libgcc-s1:arm64 (14-20240315-1ubuntu1) ... 121s (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 ... 74760 files and directories currently installed.) 121s Preparing to unpack .../libstdc++6_14-20240315-1ubuntu1_arm64.deb ... 121s Unpacking libstdc++6:arm64 (14-20240315-1ubuntu1) over (14-20240303-1ubuntu1) ... 121s Setting up libstdc++6:arm64 (14-20240315-1ubuntu1) ... 121s (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 ... 74760 files and directories currently installed.) 121s Preparing to unpack .../libc6_2.39-0ubuntu6_arm64.deb ... 122s Unpacking libc6:arm64 (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 122s Setting up libc6:arm64 (2.39-0ubuntu6) ... 122s (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 ... 74760 files and directories currently installed.) 122s Preparing to unpack .../zlib1g_1%3a1.3.dfsg-3.1ubuntu1_arm64.deb ... 122s Unpacking zlib1g:arm64 (1:1.3.dfsg-3.1ubuntu1) over (1:1.3.dfsg-3ubuntu1) ... 122s Setting up zlib1g:arm64 (1:1.3.dfsg-3.1ubuntu1) ... 122s (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 ... 74760 files and directories currently installed.) 122s Preparing to unpack .../libc-bin_2.39-0ubuntu6_arm64.deb ... 122s Unpacking libc-bin (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 122s Setting up libc-bin (2.39-0ubuntu6) ... 122s dpkg: libnettle8:arm64: dependency problems, but removing anyway as you requested: 122s librtmp1:arm64 depends on libnettle8. 122s libhogweed6:arm64 depends on libnettle8. 122s libgnutls30:arm64 depends on libnettle8 (>= 3.9~). 122s libcurl3-gnutls:arm64 depends on libnettle8. 122s libarchive13:arm64 depends on libnettle8. 122s 122s (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 ... 74760 files and directories currently installed.) 122s Removing libnettle8:arm64 (3.9.1-2) ... 123s Selecting previously unselected package libnettle8t64:arm64. 123s (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 ... 74753 files and directories currently installed.) 123s Preparing to unpack .../libnettle8t64_3.9.1-2.2_arm64.deb ... 123s Unpacking libnettle8t64:arm64 (3.9.1-2.2) ... 123s Setting up libnettle8t64:arm64 (3.9.1-2.2) ... 123s dpkg: libhogweed6:arm64: dependency problems, but removing anyway as you requested: 123s librtmp1:arm64 depends on libhogweed6. 123s libjcat1:arm64 depends on libhogweed6. 123s libgnutls30:arm64 depends on libhogweed6 (>= 3.6). 123s 123s (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 ... 74761 files and directories currently installed.) 123s Removing libhogweed6:arm64 (3.9.1-2) ... 123s Selecting previously unselected package libhogweed6t64:arm64. 123s (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 ... 74756 files and directories currently installed.) 123s Preparing to unpack .../libhogweed6t64_3.9.1-2.2_arm64.deb ... 123s Unpacking libhogweed6t64:arm64 (3.9.1-2.2) ... 123s Setting up libhogweed6t64:arm64 (3.9.1-2.2) ... 123s dpkg: libgnutls30:arm64: dependency problems, but removing anyway as you requested: 123s u-boot-tools depends on libgnutls30 (>= 3.7.3). 123s librtmp1:arm64 depends on libgnutls30 (>= 3.7.2). 123s libldap2:arm64 depends on libgnutls30 (>= 3.8.2). 123s libjcat1:arm64 depends on libgnutls30 (>= 3.7.3). 123s libcurl3-gnutls:arm64 depends on libgnutls30 (>= 3.8.2). 123s fwupd depends on libgnutls30 (>= 3.7.3). 123s dirmngr depends on libgnutls30 (>= 3.8.1). 123s apt depends on libgnutls30 (>= 3.8.1). 123s 123s (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 ... 74762 files and directories currently installed.) 123s Removing libgnutls30:arm64 (3.8.3-1ubuntu1) ... 123s Selecting previously unselected package libgnutls30t64:arm64. 123s (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 ... 74753 files and directories currently installed.) 123s Preparing to unpack .../libgnutls30t64_3.8.3-1.1ubuntu2_arm64.deb ... 123s Unpacking libgnutls30t64:arm64 (3.8.3-1.1ubuntu2) ... 123s Setting up libgnutls30t64:arm64 (3.8.3-1.1ubuntu2) ... 123s (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 ... 74781 files and directories currently installed.) 123s Preparing to unpack .../openssl_3.0.13-0ubuntu2_arm64.deb ... 123s Unpacking openssl (3.0.13-0ubuntu2) over (3.0.10-1ubuntu4) ... 123s dpkg: libssl3:arm64: dependency problems, but removing anyway as you requested: 123s wget depends on libssl3 (>= 3.0.0). 123s u-boot-tools depends on libssl3 (>= 3.0.0). 123s tnftp depends on libssl3 (>= 3.0.0). 123s tcpdump depends on libssl3 (>= 3.0.0). 123s systemd-resolved depends on libssl3 (>= 3.0.0). 123s systemd depends on libssl3 (>= 3.0.0). 123s sudo depends on libssl3 (>= 3.0.0). 123s sbsigntool depends on libssl3 (>= 3.0.0). 123s rsync depends on libssl3 (>= 3.0.0). 123s python3-cryptography depends on libssl3 (>= 3.0.0). 123s openssh-server depends on libssl3 (>= 3.0.10). 123s openssh-client depends on libssl3 (>= 3.0.10). 123s mtd-utils depends on libssl3 (>= 3.0.0). 123s mokutil depends on libssl3 (>= 3.0.0). 123s linux-headers-6.8.0-11-generic depends on libssl3 (>= 3.0.0). 123s libsystemd-shared:arm64 depends on libssl3 (>= 3.0.0). 123s libssh-4:arm64 depends on libssl3 (>= 3.0.0). 123s libsasl2-modules:arm64 depends on libssl3 (>= 3.0.0). 123s libsasl2-2:arm64 depends on libssl3 (>= 3.0.0). 123s libpython3.12-minimal:arm64 depends on libssl3 (>= 3.0.0). 123s libnvme1 depends on libssl3 (>= 3.0.0). 123s libkrb5-3:arm64 depends on libssl3 (>= 3.0.0). 123s libkmod2:arm64 depends on libssl3 (>= 3.0.0). 123s libfido2-1:arm64 depends on libssl3 (>= 3.0.0). 123s libcurl4:arm64 depends on libssl3 (>= 3.0.0). 123s libcryptsetup12:arm64 depends on libssl3 (>= 3.0.0). 123s kmod depends on libssl3 (>= 3.0.0). 123s dhcpcd-base depends on libssl3 (>= 3.0.0). 123s bind9-libs:arm64 depends on libssl3 (>= 3.0.0). 123s 123s (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 ... 74781 files and directories currently installed.) 123s Removing libssl3:arm64 (3.0.10-1ubuntu4) ... 123s Selecting previously unselected package libssl3t64:arm64. 123s (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 ... 74770 files and directories currently installed.) 123s Preparing to unpack .../libssl3t64_3.0.13-0ubuntu2_arm64.deb ... 123s Unpacking libssl3t64:arm64 (3.0.13-0ubuntu2) ... 123s dpkg: libcurl4:arm64: dependency problems, but removing anyway as you requested: 123s curl depends on libcurl4 (= 8.5.0-2ubuntu2). 123s 123s (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 ... 74783 files and directories currently installed.) 123s Removing libcurl4:arm64 (8.5.0-2ubuntu2) ... 123s Selecting previously unselected package libcurl4t64:arm64. 123s (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 ... 74778 files and directories currently installed.) 123s Preparing to unpack .../libcurl4t64_8.5.0-2ubuntu7_arm64.deb ... 123s Unpacking libcurl4t64:arm64 (8.5.0-2ubuntu7) ... 123s Preparing to unpack .../curl_8.5.0-2ubuntu7_arm64.deb ... 123s Unpacking curl (8.5.0-2ubuntu7) over (8.5.0-2ubuntu2) ... 123s dpkg: libpsl5:arm64: dependency problems, but removing anyway as you requested: 123s wget depends on libpsl5 (>= 0.16.0). 123s libcurl3-gnutls:arm64 depends on libpsl5 (>= 0.16.0). 123s 123s (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 ... 74784 files and directories currently installed.) 123s Removing libpsl5:arm64 (0.21.2-1build1) ... 123s Selecting previously unselected package libpsl5t64:arm64. 123s (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 ... 74779 files and directories currently installed.) 123s Preparing to unpack .../libpsl5t64_0.21.2-1.1_arm64.deb ... 123s Unpacking libpsl5t64:arm64 (0.21.2-1.1) ... 124s dpkg: libcurl3-gnutls:arm64: dependency problems, but removing anyway as you requested: 124s libfwupd2:arm64 depends on libcurl3-gnutls (>= 7.63.0). 124s fwupd depends on libcurl3-gnutls (>= 7.63.0). 124s 124s (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 ... 74785 files and directories currently installed.) 124s Removing libcurl3-gnutls:arm64 (8.5.0-2ubuntu2) ... 124s Selecting previously unselected package libcurl3t64-gnutls:arm64. 124s (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 ... 74778 files and directories currently installed.) 124s Preparing to unpack .../libcurl3t64-gnutls_8.5.0-2ubuntu7_arm64.deb ... 124s Unpacking libcurl3t64-gnutls:arm64 (8.5.0-2ubuntu7) ... 124s dpkg: libapt-pkg6.0:arm64: dependency problems, but removing anyway as you requested: 124s ubuntu-pro-client depends on libapt-pkg6.0 (>= 1.9~). 124s python3-apt depends on libapt-pkg6.0 (>= 2.7.11). 124s apt-utils depends on libapt-pkg6.0 (>= 2.7.12). 124s apt depends on libapt-pkg6.0 (>= 2.7.12). 124s 124s (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 ... 74785 files and directories currently installed.) 124s Removing libapt-pkg6.0:arm64 (2.7.12) ... 124s Selecting previously unselected package libapt-pkg6.0t64:arm64. 124s (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 ... 74736 files and directories currently installed.) 124s Preparing to unpack .../libapt-pkg6.0t64_2.7.13ubuntu1_arm64.deb ... 124s Unpacking libapt-pkg6.0t64:arm64 (2.7.13ubuntu1) ... 124s Setting up libapt-pkg6.0t64:arm64 (2.7.13ubuntu1) ... 124s (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 ... 74786 files and directories currently installed.) 124s Preparing to unpack .../apt_2.7.13ubuntu1_arm64.deb ... 124s Unpacking apt (2.7.13ubuntu1) over (2.7.12) ... 124s Setting up apt (2.7.13ubuntu1) ... 125s (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 ... 74786 files and directories currently installed.) 125s Preparing to unpack .../apt-utils_2.7.13ubuntu1_arm64.deb ... 125s Unpacking apt-utils (2.7.13ubuntu1) over (2.7.12) ... 125s dpkg: libelf1:arm64: dependency problems, but removing anyway as you requested: 125s linux-headers-6.8.0-11-generic depends on libelf1 (>= 0.144). 125s libbpf1:arm64 depends on libelf1 (>= 0.144). 125s iproute2 depends on libelf1 (>= 0.131). 125s 125s (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 ... 74786 files and directories currently installed.) 125s Removing libelf1:arm64 (0.190-1) ... 125s Selecting previously unselected package libelf1t64:arm64. 125s (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 ... 74781 files and directories currently installed.) 125s Preparing to unpack .../libelf1t64_0.190-1.1build2_arm64.deb ... 125s Unpacking libelf1t64:arm64 (0.190-1.1build2) ... 125s Preparing to unpack .../gir1.2-glib-2.0_2.79.3-3ubuntu5_arm64.deb ... 125s Unpacking gir1.2-glib-2.0:arm64 (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 125s dpkg: libglib2.0-0:arm64: dependency problems, but removing anyway as you requested: 125s udisks2 depends on libglib2.0-0 (>= 2.77.0). 125s shared-mime-info depends on libglib2.0-0 (>= 2.75.3). 125s python3-gi depends on libglib2.0-0 (>= 2.77.0). 125s python3-dbus depends on libglib2.0-0 (>= 2.16.0). 125s netplan.io depends on libglib2.0-0 (>= 2.70.0). 125s netplan-generator depends on libglib2.0-0 (>= 2.70.0). 125s libxmlb2:arm64 depends on libglib2.0-0 (>= 2.54.0). 125s libvolume-key1:arm64 depends on libglib2.0-0 (>= 2.18.0). 125s libudisks2-0:arm64 depends on libglib2.0-0 (>= 2.75.3). 125s libqrtr-glib0:arm64 depends on libglib2.0-0 (>= 2.56). 125s libqmi-proxy depends on libglib2.0-0 (>= 2.30.0). 125s libqmi-glib5:arm64 depends on libglib2.0-0 (>= 2.54.0). 125s libpolkit-gobject-1-0:arm64 depends on libglib2.0-0 (>= 2.38.0). 125s libpolkit-agent-1-0:arm64 depends on libglib2.0-0 (>= 2.38.0). 125s libnetplan0:arm64 depends on libglib2.0-0 (>= 2.75.3). 125s libmm-glib0:arm64 depends on libglib2.0-0 (>= 2.62.0). 125s libmbim-proxy depends on libglib2.0-0 (>= 2.56). 125s libmbim-glib4:arm64 depends on libglib2.0-0 (>= 2.56). 125s libjson-glib-1.0-0:arm64 depends on libglib2.0-0 (>= 2.75.3). 125s libjcat1:arm64 depends on libglib2.0-0 (>= 2.75.3). 125s libgusb2:arm64 depends on libglib2.0-0 (>= 2.75.3). 125s libgudev-1.0-0:arm64 depends on libglib2.0-0 (>= 2.38.0). 125s libgirepository-1.0-1:arm64 depends on libglib2.0-0 (>= 2.79.0). 125s libfwupd2:arm64 depends on libglib2.0-0 (>= 2.79.0). 125s libblockdev3:arm64 depends on libglib2.0-0 (>= 2.42.2). 125s libblockdev-utils3:arm64 depends on libglib2.0-0 (>= 2.75.3). 125s libblockdev-swap3:arm64 depends on libglib2.0-0 (>= 2.42.2). 125s libblockdev-part3:arm64 depends on libglib2.0-0 (>= 2.42.2). 125s libblockdev-nvme3:arm64 depends on libglib2.0-0 (>= 2.42.2). 125s libblockdev-mdraid3:arm64 depends on libglib2.0-0 (>= 2.42.2). 125s libblockdev-loop3:arm64 depends on libglib2.0-0 (>= 2.42.2). 125s libblockdev-fs3:arm64 depends on libglib2.0-0 (>= 2.42.2). 125s libblockdev-crypto3:arm64 depends on libglib2.0-0 (>= 2.42.2). 125s fwupd depends on libglib2.0-0 (>= 2.79.0). 125s bolt depends on libglib2.0-0 (>= 2.56.0). 125s 125s (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 ... 74786 files and directories currently installed.) 125s Removing libglib2.0-0:arm64 (2.79.2-1~ubuntu1) ... 125s Selecting previously unselected package libglib2.0-0t64:arm64. 125s (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 ... 74761 files and directories currently installed.) 125s Preparing to unpack .../libglib2.0-0t64_2.79.3-3ubuntu5_arm64.deb ... 125s libglib2.0-0t64.preinst: Removing /var/lib/dpkg/info/libglib2.0-0:arm64.postrm to avoid loss of /usr/share/glib-2.0/schemas/gschemas.compiled... 125s removed '/var/lib/dpkg/info/libglib2.0-0:arm64.postrm' 125s Unpacking libglib2.0-0t64:arm64 (2.79.3-3ubuntu5) ... 125s dpkg: libpng16-16:arm64: dependency problems, but removing anyway as you requested: 125s libplymouth5:arm64 depends on libpng16-16 (>= 1.6.2). 125s libfreetype6:arm64 depends on libpng16-16 (>= 1.6.2-1). 125s 125s (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 ... 74786 files and directories currently installed.) 125s Removing libpng16-16:arm64 (1.6.43-1) ... 125s Selecting previously unselected package libpng16-16t64:arm64. 125s (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 ... 74776 files and directories currently installed.) 125s Preparing to unpack .../libpng16-16t64_1.6.43-3_arm64.deb ... 125s Unpacking libpng16-16t64:arm64 (1.6.43-3) ... 125s Preparing to unpack .../readline-common_8.2-3.1_all.deb ... 125s Unpacking readline-common (8.2-3.1) over (8.2-3) ... 125s dpkg: libreadline8:arm64: dependency problems, but removing anyway as you requested: 125s parted depends on libreadline8 (>= 6.0). 125s libpython3.12-stdlib:arm64 depends on libreadline8 (>= 7.0~beta). 125s gpgsm depends on libreadline8 (>= 6.0). 125s gpgconf depends on libreadline8 (>= 6.0). 125s gpg depends on libreadline8 (>= 6.0). 125s gawk depends on libreadline8 (>= 6.0). 125s fdisk depends on libreadline8 (>= 6.0). 125s 125s (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 ... 74787 files and directories currently installed.) 125s Removing libreadline8:arm64 (8.2-3) ... 125s Selecting previously unselected package libreadline8t64:arm64. 125s (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 ... 74775 files and directories currently installed.) 125s Preparing to unpack .../libreadline8t64_8.2-3.1_arm64.deb ... 125s Adding 'diversion of /lib/aarch64-linux-gnu/libhistory.so.8 to /lib/aarch64-linux-gnu/libhistory.so.8.usr-is-merged by libreadline8t64' 125s Adding 'diversion of /lib/aarch64-linux-gnu/libhistory.so.8.2 to /lib/aarch64-linux-gnu/libhistory.so.8.2.usr-is-merged by libreadline8t64' 125s Adding 'diversion of /lib/aarch64-linux-gnu/libreadline.so.8 to /lib/aarch64-linux-gnu/libreadline.so.8.usr-is-merged by libreadline8t64' 125s Adding 'diversion of /lib/aarch64-linux-gnu/libreadline.so.8.2 to /lib/aarch64-linux-gnu/libreadline.so.8.2.usr-is-merged by libreadline8t64' 125s Unpacking libreadline8t64:arm64 (8.2-3.1) ... 125s Preparing to unpack .../install-info_7.1-3build1_arm64.deb ... 125s Unpacking install-info (7.1-3build1) over (7.1-3) ... 126s Setting up install-info (7.1-3build1) ... 126s (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 ... 74795 files and directories currently installed.) 126s Preparing to unpack .../000-gcc-13-base_13.2.0-19ubuntu1_arm64.deb ... 126s Unpacking gcc-13-base:arm64 (13.2.0-19ubuntu1) over (13.2.0-17ubuntu2) ... 126s Preparing to unpack .../001-libglib2.0-data_2.79.3-3ubuntu5_all.deb ... 126s Unpacking libglib2.0-data (2.79.3-3ubuntu5) over (2.79.2-1~ubuntu1) ... 126s Preparing to unpack .../002-locales_2.39-0ubuntu6_all.deb ... 126s Unpacking locales (2.39-0ubuntu6) over (2.39-0ubuntu2) ... 126s Preparing to unpack .../003-info_7.1-3build1_arm64.deb ... 126s Unpacking info (7.1-3build1) over (7.1-3) ... 126s Preparing to unpack .../004-libxmuu1_2%3a1.1.3-3build1_arm64.deb ... 126s Unpacking libxmuu1:arm64 (2:1.1.3-3build1) over (2:1.1.3-3) ... 126s Selecting previously unselected package m4. 126s Preparing to unpack .../005-m4_1.4.19-4_arm64.deb ... 126s Unpacking m4 (1.4.19-4) ... 126s Selecting previously unselected package autoconf. 126s Preparing to unpack .../006-autoconf_2.71-3_all.deb ... 126s Unpacking autoconf (2.71-3) ... 126s Selecting previously unselected package autotools-dev. 126s Preparing to unpack .../007-autotools-dev_20220109.1_all.deb ... 126s Unpacking autotools-dev (20220109.1) ... 126s Selecting previously unselected package automake. 126s Preparing to unpack .../008-automake_1%3a1.16.5-1.3ubuntu1_all.deb ... 126s Unpacking automake (1:1.16.5-1.3ubuntu1) ... 126s Selecting previously unselected package autopoint. 126s Preparing to unpack .../009-autopoint_0.21-14ubuntu1_all.deb ... 126s Unpacking autopoint (0.21-14ubuntu1) ... 126s Selecting previously unselected package libcapture-tiny-perl. 126s Preparing to unpack .../010-libcapture-tiny-perl_0.48-2_all.deb ... 126s Unpacking libcapture-tiny-perl (0.48-2) ... 126s Selecting previously unselected package libparams-util-perl. 126s Preparing to unpack .../011-libparams-util-perl_1.102-2build2_arm64.deb ... 126s Unpacking libparams-util-perl (1.102-2build2) ... 127s Selecting previously unselected package libsub-install-perl. 127s Preparing to unpack .../012-libsub-install-perl_0.929-1_all.deb ... 127s Unpacking libsub-install-perl (0.929-1) ... 127s Selecting previously unselected package libdata-optlist-perl. 127s Preparing to unpack .../013-libdata-optlist-perl_0.114-1_all.deb ... 127s Unpacking libdata-optlist-perl (0.114-1) ... 127s Selecting previously unselected package libb-hooks-op-check-perl:arm64. 127s Preparing to unpack .../014-libb-hooks-op-check-perl_0.22-3_arm64.deb ... 127s Unpacking libb-hooks-op-check-perl:arm64 (0.22-3) ... 127s Selecting previously unselected package libdynaloader-functions-perl. 127s Preparing to unpack .../015-libdynaloader-functions-perl_0.003-3_all.deb ... 127s Unpacking libdynaloader-functions-perl (0.003-3) ... 127s Selecting previously unselected package libdevel-callchecker-perl:arm64. 127s Preparing to unpack .../016-libdevel-callchecker-perl_0.008-2build2_arm64.deb ... 127s Unpacking libdevel-callchecker-perl:arm64 (0.008-2build2) ... 127s Selecting previously unselected package libparams-classify-perl:arm64. 127s Preparing to unpack .../017-libparams-classify-perl_0.015-2build4_arm64.deb ... 127s Unpacking libparams-classify-perl:arm64 (0.015-2build4) ... 127s Selecting previously unselected package libmodule-runtime-perl. 127s Preparing to unpack .../018-libmodule-runtime-perl_0.016-2_all.deb ... 127s Unpacking libmodule-runtime-perl (0.016-2) ... 127s Selecting previously unselected package libtry-tiny-perl. 127s Preparing to unpack .../019-libtry-tiny-perl_0.31-2_all.deb ... 127s Unpacking libtry-tiny-perl (0.31-2) ... 127s Selecting previously unselected package libmodule-implementation-perl. 127s Preparing to unpack .../020-libmodule-implementation-perl_0.09-2_all.deb ... 127s Unpacking libmodule-implementation-perl (0.09-2) ... 127s Selecting previously unselected package libpackage-stash-perl. 127s Preparing to unpack .../021-libpackage-stash-perl_0.40-1_all.deb ... 127s Unpacking libpackage-stash-perl (0.40-1) ... 127s Selecting previously unselected package libclass-load-perl. 127s Preparing to unpack .../022-libclass-load-perl_0.25-2_all.deb ... 127s Unpacking libclass-load-perl (0.25-2) ... 127s Selecting previously unselected package libio-stringy-perl. 127s Preparing to unpack .../023-libio-stringy-perl_2.111-3_all.deb ... 127s Unpacking libio-stringy-perl (2.111-3) ... 127s Selecting previously unselected package libparams-validate-perl:arm64. 127s Preparing to unpack .../024-libparams-validate-perl_1.31-2build2_arm64.deb ... 127s Unpacking libparams-validate-perl:arm64 (1.31-2build2) ... 127s Selecting previously unselected package libsub-exporter-perl. 127s Preparing to unpack .../025-libsub-exporter-perl_0.990-1_all.deb ... 127s Unpacking libsub-exporter-perl (0.990-1) ... 127s Selecting previously unselected package libgetopt-long-descriptive-perl. 127s Preparing to unpack .../026-libgetopt-long-descriptive-perl_0.111-1_all.deb ... 127s Unpacking libgetopt-long-descriptive-perl (0.111-1) ... 127s Selecting previously unselected package libio-tiecombine-perl. 127s Preparing to unpack .../027-libio-tiecombine-perl_1.005-3_all.deb ... 127s Unpacking libio-tiecombine-perl (1.005-3) ... 127s Selecting previously unselected package libmodule-pluggable-perl. 127s Preparing to unpack .../028-libmodule-pluggable-perl_5.2-4_all.deb ... 127s Unpacking libmodule-pluggable-perl (5.2-4) ... 127s Selecting previously unselected package libstring-rewriteprefix-perl. 127s Preparing to unpack .../029-libstring-rewriteprefix-perl_0.009-1_all.deb ... 127s Unpacking libstring-rewriteprefix-perl (0.009-1) ... 127s Selecting previously unselected package libapp-cmd-perl. 127s Preparing to unpack .../030-libapp-cmd-perl_0.336-1_all.deb ... 127s Unpacking libapp-cmd-perl (0.336-1) ... 127s Selecting previously unselected package libboolean-perl. 127s Preparing to unpack .../031-libboolean-perl_0.46-3_all.deb ... 127s Unpacking libboolean-perl (0.46-3) ... 127s Selecting previously unselected package libsub-uplevel-perl. 127s Preparing to unpack .../032-libsub-uplevel-perl_0.2800-3_all.deb ... 127s Unpacking libsub-uplevel-perl (0.2800-3) ... 127s Selecting previously unselected package libtest-exception-perl. 127s Preparing to unpack .../033-libtest-exception-perl_0.43-3_all.deb ... 127s Unpacking libtest-exception-perl (0.43-3) ... 127s Selecting previously unselected package libcarp-assert-more-perl. 127s Preparing to unpack .../034-libcarp-assert-more-perl_2.3.0-1_all.deb ... 127s Unpacking libcarp-assert-more-perl (2.3.0-1) ... 127s Selecting previously unselected package libfile-which-perl. 127s Preparing to unpack .../035-libfile-which-perl_1.27-2_all.deb ... 127s Unpacking libfile-which-perl (1.27-2) ... 127s Selecting previously unselected package libfile-homedir-perl. 127s Preparing to unpack .../036-libfile-homedir-perl_1.006-2_all.deb ... 127s Unpacking libfile-homedir-perl (1.006-2) ... 127s Selecting previously unselected package libclone-choose-perl. 127s Preparing to unpack .../037-libclone-choose-perl_0.010-2_all.deb ... 127s Unpacking libclone-choose-perl (0.010-2) ... 127s Selecting previously unselected package libhash-merge-perl. 127s Preparing to unpack .../038-libhash-merge-perl_0.302-1_all.deb ... 127s Unpacking libhash-merge-perl (0.302-1) ... 127s Selecting previously unselected package libjson-perl. 127s Preparing to unpack .../039-libjson-perl_4.10000-1_all.deb ... 127s Unpacking libjson-perl (4.10000-1) ... 127s Selecting previously unselected package libexporter-tiny-perl. 127s Preparing to unpack .../040-libexporter-tiny-perl_1.006002-1_all.deb ... 127s Unpacking libexporter-tiny-perl (1.006002-1) ... 127s Selecting previously unselected package liblist-moreutils-xs-perl. 127s Preparing to unpack .../041-liblist-moreutils-xs-perl_0.430-3build4_arm64.deb ... 127s Unpacking liblist-moreutils-xs-perl (0.430-3build4) ... 128s Selecting previously unselected package liblist-moreutils-perl. 128s Preparing to unpack .../042-liblist-moreutils-perl_0.430-2_all.deb ... 128s Unpacking liblist-moreutils-perl (0.430-2) ... 128s Selecting previously unselected package liblog-log4perl-perl. 128s Preparing to unpack .../043-liblog-log4perl-perl_1.57-1_all.deb ... 128s Unpacking liblog-log4perl-perl (1.57-1) ... 128s Selecting previously unselected package libmouse-perl. 128s Preparing to unpack .../044-libmouse-perl_2.5.10-1build7_arm64.deb ... 128s Unpacking libmouse-perl (2.5.10-1build7) ... 128s Selecting previously unselected package libmousex-nativetraits-perl. 128s Preparing to unpack .../045-libmousex-nativetraits-perl_1.09-3_all.deb ... 128s Unpacking libmousex-nativetraits-perl (1.09-3) ... 128s Selecting previously unselected package libmousex-strictconstructor-perl. 128s Preparing to unpack .../046-libmousex-strictconstructor-perl_0.02-3_all.deb ... 128s Unpacking libmousex-strictconstructor-perl (0.02-3) ... 128s Selecting previously unselected package libparse-recdescent-perl. 128s Preparing to unpack .../047-libparse-recdescent-perl_1.967015+dfsg-4_all.deb ... 128s Unpacking libparse-recdescent-perl (1.967015+dfsg-4) ... 128s Selecting previously unselected package libpath-tiny-perl. 128s Preparing to unpack .../048-libpath-tiny-perl_0.144-1_all.deb ... 128s Unpacking libpath-tiny-perl (0.144-1) ... 128s Selecting previously unselected package libpod-pom-perl. 128s Preparing to unpack .../049-libpod-pom-perl_2.01-4_all.deb ... 128s Unpacking libpod-pom-perl (2.01-4) ... 128s Selecting previously unselected package libregexp-common-perl. 128s Preparing to unpack .../050-libregexp-common-perl_2017060201-3_all.deb ... 128s Unpacking libregexp-common-perl (2017060201-3) ... 128s Selecting previously unselected package libyaml-tiny-perl. 128s Preparing to unpack .../051-libyaml-tiny-perl_1.74-1_all.deb ... 128s Unpacking libyaml-tiny-perl (1.74-1) ... 128s Selecting previously unselected package libconfig-model-perl. 128s Preparing to unpack .../052-libconfig-model-perl_2.153-3_all.deb ... 128s Unpacking libconfig-model-perl (2.153-3) ... 128s Selecting previously unselected package libyaml-pp-perl. 128s Preparing to unpack .../053-libyaml-pp-perl_0.38.0-1_all.deb ... 128s Unpacking libyaml-pp-perl (0.38.0-1) ... 128s Selecting previously unselected package cme. 128s Preparing to unpack .../054-cme_1.040-1_all.deb ... 128s Unpacking cme (1.040-1) ... 128s Selecting previously unselected package libisl23:arm64. 128s Preparing to unpack .../055-libisl23_0.26-3_arm64.deb ... 128s Unpacking libisl23:arm64 (0.26-3) ... 128s Selecting previously unselected package libmpc3:arm64. 128s Preparing to unpack .../056-libmpc3_1.3.1-1_arm64.deb ... 128s Unpacking libmpc3:arm64 (1.3.1-1) ... 128s Selecting previously unselected package cpp-13-aarch64-linux-gnu. 128s Preparing to unpack .../057-cpp-13-aarch64-linux-gnu_13.2.0-19ubuntu1_arm64.deb ... 128s Unpacking cpp-13-aarch64-linux-gnu (13.2.0-19ubuntu1) ... 128s Selecting previously unselected package cpp-13. 128s Preparing to unpack .../058-cpp-13_13.2.0-19ubuntu1_arm64.deb ... 128s Unpacking cpp-13 (13.2.0-19ubuntu1) ... 128s Selecting previously unselected package cpp-aarch64-linux-gnu. 128s Preparing to unpack .../059-cpp-aarch64-linux-gnu_4%3a13.2.0-7ubuntu1_arm64.deb ... 128s Unpacking cpp-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 128s Selecting previously unselected package cpp. 128s Preparing to unpack .../060-cpp_4%3a13.2.0-7ubuntu1_arm64.deb ... 128s Unpacking cpp (4:13.2.0-7ubuntu1) ... 128s Selecting previously unselected package libdebhelper-perl. 128s Preparing to unpack .../061-libdebhelper-perl_13.14.1ubuntu5_all.deb ... 128s Unpacking libdebhelper-perl (13.14.1ubuntu5) ... 128s Selecting previously unselected package libcc1-0:arm64. 128s Preparing to unpack .../062-libcc1-0_14-20240315-1ubuntu1_arm64.deb ... 128s Unpacking libcc1-0:arm64 (14-20240315-1ubuntu1) ... 128s Selecting previously unselected package libgomp1:arm64. 128s Preparing to unpack .../063-libgomp1_14-20240315-1ubuntu1_arm64.deb ... 128s Unpacking libgomp1:arm64 (14-20240315-1ubuntu1) ... 128s Selecting previously unselected package libitm1:arm64. 128s Preparing to unpack .../064-libitm1_14-20240315-1ubuntu1_arm64.deb ... 128s Unpacking libitm1:arm64 (14-20240315-1ubuntu1) ... 128s Selecting previously unselected package libatomic1:arm64. 128s Preparing to unpack .../065-libatomic1_14-20240315-1ubuntu1_arm64.deb ... 128s Unpacking libatomic1:arm64 (14-20240315-1ubuntu1) ... 128s Selecting previously unselected package libasan8:arm64. 128s Preparing to unpack .../066-libasan8_14-20240315-1ubuntu1_arm64.deb ... 128s Unpacking libasan8:arm64 (14-20240315-1ubuntu1) ... 129s Selecting previously unselected package liblsan0:arm64. 129s Preparing to unpack .../067-liblsan0_14-20240315-1ubuntu1_arm64.deb ... 129s Unpacking liblsan0:arm64 (14-20240315-1ubuntu1) ... 129s Selecting previously unselected package libtsan2:arm64. 129s Preparing to unpack .../068-libtsan2_14-20240315-1ubuntu1_arm64.deb ... 129s Unpacking libtsan2:arm64 (14-20240315-1ubuntu1) ... 129s Selecting previously unselected package libubsan1:arm64. 129s Preparing to unpack .../069-libubsan1_14-20240315-1ubuntu1_arm64.deb ... 129s Unpacking libubsan1:arm64 (14-20240315-1ubuntu1) ... 129s Selecting previously unselected package libhwasan0:arm64. 129s Preparing to unpack .../070-libhwasan0_14-20240315-1ubuntu1_arm64.deb ... 129s Unpacking libhwasan0:arm64 (14-20240315-1ubuntu1) ... 129s Selecting previously unselected package libgcc-13-dev:arm64. 129s Preparing to unpack .../071-libgcc-13-dev_13.2.0-19ubuntu1_arm64.deb ... 129s Unpacking libgcc-13-dev:arm64 (13.2.0-19ubuntu1) ... 129s Selecting previously unselected package gcc-13-aarch64-linux-gnu. 129s Preparing to unpack .../072-gcc-13-aarch64-linux-gnu_13.2.0-19ubuntu1_arm64.deb ... 129s Unpacking gcc-13-aarch64-linux-gnu (13.2.0-19ubuntu1) ... 129s Selecting previously unselected package gcc-13. 129s Preparing to unpack .../073-gcc-13_13.2.0-19ubuntu1_arm64.deb ... 129s Unpacking gcc-13 (13.2.0-19ubuntu1) ... 129s Selecting previously unselected package gcc-aarch64-linux-gnu. 129s Preparing to unpack .../074-gcc-aarch64-linux-gnu_4%3a13.2.0-7ubuntu1_arm64.deb ... 129s Unpacking gcc-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 129s Selecting previously unselected package gcc. 129s Preparing to unpack .../075-gcc_4%3a13.2.0-7ubuntu1_arm64.deb ... 129s Unpacking gcc (4:13.2.0-7ubuntu1) ... 129s Selecting previously unselected package libc-dev-bin. 129s Preparing to unpack .../076-libc-dev-bin_2.39-0ubuntu6_arm64.deb ... 129s Unpacking libc-dev-bin (2.39-0ubuntu6) ... 129s Selecting previously unselected package linux-libc-dev:arm64. 129s Preparing to unpack .../077-linux-libc-dev_6.8.0-20.20_arm64.deb ... 129s Unpacking linux-libc-dev:arm64 (6.8.0-20.20) ... 129s Selecting previously unselected package libcrypt-dev:arm64. 129s Preparing to unpack .../078-libcrypt-dev_1%3a4.4.36-4_arm64.deb ... 130s Unpacking libcrypt-dev:arm64 (1:4.4.36-4) ... 130s Selecting previously unselected package rpcsvc-proto. 130s Preparing to unpack .../079-rpcsvc-proto_1.4.2-0ubuntu6_arm64.deb ... 130s Unpacking rpcsvc-proto (1.4.2-0ubuntu6) ... 130s Selecting previously unselected package libc6-dev:arm64. 130s Preparing to unpack .../080-libc6-dev_2.39-0ubuntu6_arm64.deb ... 130s Unpacking libc6-dev:arm64 (2.39-0ubuntu6) ... 130s Selecting previously unselected package libtool. 130s Preparing to unpack .../081-libtool_2.4.7-7_all.deb ... 130s Unpacking libtool (2.4.7-7) ... 130s Selecting previously unselected package dh-autoreconf. 130s Preparing to unpack .../082-dh-autoreconf_20_all.deb ... 130s Unpacking dh-autoreconf (20) ... 130s Selecting previously unselected package libarchive-zip-perl. 130s Preparing to unpack .../083-libarchive-zip-perl_1.68-1_all.deb ... 130s Unpacking libarchive-zip-perl (1.68-1) ... 130s Selecting previously unselected package libsub-override-perl. 130s Preparing to unpack .../084-libsub-override-perl_0.10-1_all.deb ... 130s Unpacking libsub-override-perl (0.10-1) ... 130s Selecting previously unselected package libfile-stripnondeterminism-perl. 130s Preparing to unpack .../085-libfile-stripnondeterminism-perl_1.13.1-1_all.deb ... 130s Unpacking libfile-stripnondeterminism-perl (1.13.1-1) ... 130s Selecting previously unselected package dh-strip-nondeterminism. 130s Preparing to unpack .../086-dh-strip-nondeterminism_1.13.1-1_all.deb ... 130s Unpacking dh-strip-nondeterminism (1.13.1-1) ... 130s Selecting previously unselected package libdw1t64:arm64. 130s Preparing to unpack .../087-libdw1t64_0.190-1.1build2_arm64.deb ... 130s Unpacking libdw1t64:arm64 (0.190-1.1build2) ... 130s Selecting previously unselected package debugedit. 130s Preparing to unpack .../088-debugedit_1%3a5.0-5build1_arm64.deb ... 130s Unpacking debugedit (1:5.0-5build1) ... 130s Selecting previously unselected package dwz. 130s Preparing to unpack .../089-dwz_0.15-1build5_arm64.deb ... 130s Unpacking dwz (0.15-1build5) ... 130s Selecting previously unselected package gettext. 130s Preparing to unpack .../090-gettext_0.21-14ubuntu1_arm64.deb ... 130s Unpacking gettext (0.21-14ubuntu1) ... 130s Selecting previously unselected package intltool-debian. 130s Preparing to unpack .../091-intltool-debian_0.35.0+20060710.6_all.deb ... 130s Unpacking intltool-debian (0.35.0+20060710.6) ... 130s Selecting previously unselected package po-debconf. 130s Preparing to unpack .../092-po-debconf_1.0.21+nmu1_all.deb ... 130s Unpacking po-debconf (1.0.21+nmu1) ... 130s Selecting previously unselected package debhelper. 130s Preparing to unpack .../093-debhelper_13.14.1ubuntu5_all.deb ... 130s Unpacking debhelper (13.14.1ubuntu5) ... 130s Selecting previously unselected package aglfn. 130s Preparing to unpack .../094-aglfn_1.7+git20191031.4036a9c-2_all.deb ... 130s Unpacking aglfn (1.7+git20191031.4036a9c-2) ... 130s Selecting previously unselected package gnuplot-data. 130s Preparing to unpack .../095-gnuplot-data_6.0.0+dfsg1-1ubuntu2_all.deb ... 130s Unpacking gnuplot-data (6.0.0+dfsg1-1ubuntu2) ... 130s Selecting previously unselected package fonts-dejavu-mono. 130s Preparing to unpack .../096-fonts-dejavu-mono_2.37-8_all.deb ... 130s Unpacking fonts-dejavu-mono (2.37-8) ... 130s Selecting previously unselected package fonts-dejavu-core. 130s Preparing to unpack .../097-fonts-dejavu-core_2.37-8_all.deb ... 130s Unpacking fonts-dejavu-core (2.37-8) ... 130s Selecting previously unselected package fonts-freefont-otf. 130s Preparing to unpack .../098-fonts-freefont-otf_20211204+svn4273-2_all.deb ... 130s Unpacking fonts-freefont-otf (20211204+svn4273-2) ... 131s Selecting previously unselected package fontconfig-config. 131s Preparing to unpack .../099-fontconfig-config_2.15.0-1.1ubuntu1_arm64.deb ... 131s Unpacking fontconfig-config (2.15.0-1.1ubuntu1) ... 131s Selecting previously unselected package libfontconfig1:arm64. 131s Preparing to unpack .../100-libfontconfig1_2.15.0-1.1ubuntu1_arm64.deb ... 131s Unpacking libfontconfig1:arm64 (2.15.0-1.1ubuntu1) ... 131s Selecting previously unselected package libpixman-1-0:arm64. 131s Preparing to unpack .../101-libpixman-1-0_0.42.2-1_arm64.deb ... 131s Unpacking libpixman-1-0:arm64 (0.42.2-1) ... 131s Selecting previously unselected package libxcb-render0:arm64. 131s Preparing to unpack .../102-libxcb-render0_1.15-1_arm64.deb ... 131s Unpacking libxcb-render0:arm64 (1.15-1) ... 131s Selecting previously unselected package libxcb-shm0:arm64. 131s Preparing to unpack .../103-libxcb-shm0_1.15-1_arm64.deb ... 131s Unpacking libxcb-shm0:arm64 (1.15-1) ... 131s Selecting previously unselected package libxrender1:arm64. 131s Preparing to unpack .../104-libxrender1_1%3a0.9.10-1.1_arm64.deb ... 131s Unpacking libxrender1:arm64 (1:0.9.10-1.1) ... 131s Selecting previously unselected package libcairo2:arm64. 131s Preparing to unpack .../105-libcairo2_1.18.0-1ubuntu1_arm64.deb ... 131s Unpacking libcairo2:arm64 (1.18.0-1ubuntu1) ... 131s Selecting previously unselected package libjpeg-turbo8:arm64. 131s Preparing to unpack .../106-libjpeg-turbo8_2.1.5-2ubuntu1_arm64.deb ... 131s Unpacking libjpeg-turbo8:arm64 (2.1.5-2ubuntu1) ... 131s Selecting previously unselected package libjpeg8:arm64. 131s Preparing to unpack .../107-libjpeg8_8c-2ubuntu11_arm64.deb ... 131s Unpacking libjpeg8:arm64 (8c-2ubuntu11) ... 131s Selecting previously unselected package libdeflate0:arm64. 131s Preparing to unpack .../108-libdeflate0_1.19-1_arm64.deb ... 131s Unpacking libdeflate0:arm64 (1.19-1) ... 131s Selecting previously unselected package libjbig0:arm64. 131s Preparing to unpack .../109-libjbig0_2.1-6.1ubuntu1_arm64.deb ... 131s Unpacking libjbig0:arm64 (2.1-6.1ubuntu1) ... 131s Selecting previously unselected package liblerc4:arm64. 131s Preparing to unpack .../110-liblerc4_4.0.0+ds-4ubuntu1_arm64.deb ... 131s Unpacking liblerc4:arm64 (4.0.0+ds-4ubuntu1) ... 131s Selecting previously unselected package libsharpyuv0:arm64. 131s Preparing to unpack .../111-libsharpyuv0_1.3.2-0.4build2_arm64.deb ... 131s Unpacking libsharpyuv0:arm64 (1.3.2-0.4build2) ... 131s Selecting previously unselected package libwebp7:arm64. 131s Preparing to unpack .../112-libwebp7_1.3.2-0.4build2_arm64.deb ... 131s Unpacking libwebp7:arm64 (1.3.2-0.4build2) ... 131s Selecting previously unselected package libtiff6:arm64. 131s Preparing to unpack .../113-libtiff6_4.5.1+git230720-4ubuntu1_arm64.deb ... 131s Unpacking libtiff6:arm64 (4.5.1+git230720-4ubuntu1) ... 131s Selecting previously unselected package libxpm4:arm64. 131s Preparing to unpack .../114-libxpm4_1%3a3.5.17-1build1_arm64.deb ... 131s Unpacking libxpm4:arm64 (1:3.5.17-1build1) ... 131s Selecting previously unselected package libgd3:arm64. 131s Preparing to unpack .../115-libgd3_2.3.3-9ubuntu3_arm64.deb ... 131s Unpacking libgd3:arm64 (2.3.3-9ubuntu3) ... 131s Selecting previously unselected package liblua5.4-0:arm64. 131s Preparing to unpack .../116-liblua5.4-0_5.4.6-3build1_arm64.deb ... 131s Unpacking liblua5.4-0:arm64 (5.4.6-3build1) ... 131s Selecting previously unselected package fontconfig. 131s Preparing to unpack .../117-fontconfig_2.15.0-1.1ubuntu1_arm64.deb ... 131s Unpacking fontconfig (2.15.0-1.1ubuntu1) ... 131s Selecting previously unselected package libgraphite2-3:arm64. 131s Preparing to unpack .../118-libgraphite2-3_1.3.14-2_arm64.deb ... 131s Unpacking libgraphite2-3:arm64 (1.3.14-2) ... 131s Selecting previously unselected package libharfbuzz0b:arm64. 131s Preparing to unpack .../119-libharfbuzz0b_8.3.0-2build1_arm64.deb ... 131s Unpacking libharfbuzz0b:arm64 (8.3.0-2build1) ... 131s Selecting previously unselected package libthai-data. 132s Preparing to unpack .../120-libthai-data_0.1.29-2_all.deb ... 132s Unpacking libthai-data (0.1.29-2) ... 132s Selecting previously unselected package libdatrie1:arm64. 132s Preparing to unpack .../121-libdatrie1_0.2.13-3_arm64.deb ... 132s Unpacking libdatrie1:arm64 (0.2.13-3) ... 132s Selecting previously unselected package libthai0:arm64. 132s Preparing to unpack .../122-libthai0_0.1.29-2_arm64.deb ... 132s Unpacking libthai0:arm64 (0.1.29-2) ... 132s Selecting previously unselected package libpango-1.0-0:arm64. 132s Preparing to unpack .../123-libpango-1.0-0_1.52.1+ds-1_arm64.deb ... 132s Unpacking libpango-1.0-0:arm64 (1.52.1+ds-1) ... 132s Selecting previously unselected package libpangoft2-1.0-0:arm64. 132s Preparing to unpack .../124-libpangoft2-1.0-0_1.52.1+ds-1_arm64.deb ... 132s Unpacking libpangoft2-1.0-0:arm64 (1.52.1+ds-1) ... 132s Selecting previously unselected package libpangocairo-1.0-0:arm64. 132s Preparing to unpack .../125-libpangocairo-1.0-0_1.52.1+ds-1_arm64.deb ... 132s Unpacking libpangocairo-1.0-0:arm64 (1.52.1+ds-1) ... 132s Selecting previously unselected package libwebpmux3:arm64. 132s Preparing to unpack .../126-libwebpmux3_1.3.2-0.4build2_arm64.deb ... 132s Unpacking libwebpmux3:arm64 (1.3.2-0.4build2) ... 132s Selecting previously unselected package gnuplot-nox. 132s Preparing to unpack .../127-gnuplot-nox_6.0.0+dfsg1-1ubuntu2_arm64.deb ... 132s Unpacking gnuplot-nox (6.0.0+dfsg1-1ubuntu2) ... 132s Selecting previously unselected package dh-octave-autopkgtest. 132s Preparing to unpack .../128-dh-octave-autopkgtest_1.8.0_all.deb ... 132s Unpacking dh-octave-autopkgtest (1.8.0) ... 132s Selecting previously unselected package libapt-pkg-perl. 132s Preparing to unpack .../129-libapt-pkg-perl_0.1.40build5_arm64.deb ... 132s Unpacking libapt-pkg-perl (0.1.40build5) ... 132s Selecting previously unselected package libarray-intspan-perl. 132s Preparing to unpack .../130-libarray-intspan-perl_2.004-2_all.deb ... 132s Unpacking libarray-intspan-perl (2.004-2) ... 132s Selecting previously unselected package libyaml-libyaml-perl. 132s Preparing to unpack .../131-libyaml-libyaml-perl_0.89+ds-1build1_arm64.deb ... 132s Unpacking libyaml-libyaml-perl (0.89+ds-1build1) ... 132s Selecting previously unselected package libconfig-model-backend-yaml-perl. 132s Preparing to unpack .../132-libconfig-model-backend-yaml-perl_2.134-2_all.deb ... 132s Unpacking libconfig-model-backend-yaml-perl (2.134-2) ... 132s Selecting previously unselected package libexporter-lite-perl. 132s Preparing to unpack .../133-libexporter-lite-perl_0.09-2_all.deb ... 132s Unpacking libexporter-lite-perl (0.09-2) ... 132s Selecting previously unselected package libencode-locale-perl. 132s Preparing to unpack .../134-libencode-locale-perl_1.05-3_all.deb ... 132s Unpacking libencode-locale-perl (1.05-3) ... 132s Selecting previously unselected package libtimedate-perl. 132s Preparing to unpack .../135-libtimedate-perl_2.3300-2_all.deb ... 132s Unpacking libtimedate-perl (2.3300-2) ... 132s Selecting previously unselected package libhttp-date-perl. 132s Preparing to unpack .../136-libhttp-date-perl_6.06-1_all.deb ... 132s Unpacking libhttp-date-perl (6.06-1) ... 132s Selecting previously unselected package libfile-listing-perl. 132s Preparing to unpack .../137-libfile-listing-perl_6.16-1_all.deb ... 132s Unpacking libfile-listing-perl (6.16-1) ... 132s Selecting previously unselected package libhtml-tagset-perl. 132s Preparing to unpack .../138-libhtml-tagset-perl_3.20-6_all.deb ... 132s Unpacking libhtml-tagset-perl (3.20-6) ... 132s Selecting previously unselected package liburi-perl. 132s Preparing to unpack .../139-liburi-perl_5.27-1_all.deb ... 132s Unpacking liburi-perl (5.27-1) ... 132s Selecting previously unselected package libhtml-parser-perl:arm64. 132s Preparing to unpack .../140-libhtml-parser-perl_3.81-1build2_arm64.deb ... 132s Unpacking libhtml-parser-perl:arm64 (3.81-1build2) ... 132s Selecting previously unselected package libhtml-tree-perl. 132s Preparing to unpack .../141-libhtml-tree-perl_5.07-3_all.deb ... 132s Unpacking libhtml-tree-perl (5.07-3) ... 132s Selecting previously unselected package libclone-perl:arm64. 132s Preparing to unpack .../142-libclone-perl_0.46-1build2_arm64.deb ... 132s Unpacking libclone-perl:arm64 (0.46-1build2) ... 132s Selecting previously unselected package libio-html-perl. 132s Preparing to unpack .../143-libio-html-perl_1.004-3_all.deb ... 132s Unpacking libio-html-perl (1.004-3) ... 132s Selecting previously unselected package liblwp-mediatypes-perl. 132s Preparing to unpack .../144-liblwp-mediatypes-perl_6.04-2_all.deb ... 132s Unpacking liblwp-mediatypes-perl (6.04-2) ... 132s Selecting previously unselected package libhttp-message-perl. 132s Preparing to unpack .../145-libhttp-message-perl_6.45-1ubuntu1_all.deb ... 132s Unpacking libhttp-message-perl (6.45-1ubuntu1) ... 132s Selecting previously unselected package libhttp-cookies-perl. 132s Preparing to unpack .../146-libhttp-cookies-perl_6.11-1_all.deb ... 132s Unpacking libhttp-cookies-perl (6.11-1) ... 132s Selecting previously unselected package libhttp-negotiate-perl. 132s Preparing to unpack .../147-libhttp-negotiate-perl_6.01-2_all.deb ... 132s Unpacking libhttp-negotiate-perl (6.01-2) ... 132s Selecting previously unselected package perl-openssl-defaults:arm64. 132s Preparing to unpack .../148-perl-openssl-defaults_7build1_arm64.deb ... 132s Unpacking perl-openssl-defaults:arm64 (7build1) ... 132s Selecting previously unselected package libnet-ssleay-perl:arm64. 132s Preparing to unpack .../149-libnet-ssleay-perl_1.94-1build2_arm64.deb ... 132s Unpacking libnet-ssleay-perl:arm64 (1.94-1build2) ... 133s Selecting previously unselected package libio-socket-ssl-perl. 133s Preparing to unpack .../150-libio-socket-ssl-perl_2.085-1_all.deb ... 133s Unpacking libio-socket-ssl-perl (2.085-1) ... 133s Selecting previously unselected package libnet-http-perl. 133s Preparing to unpack .../151-libnet-http-perl_6.23-1_all.deb ... 133s Unpacking libnet-http-perl (6.23-1) ... 133s Selecting previously unselected package liblwp-protocol-https-perl. 133s Preparing to unpack .../152-liblwp-protocol-https-perl_6.13-1_all.deb ... 133s Unpacking liblwp-protocol-https-perl (6.13-1) ... 133s Selecting previously unselected package libwww-robotrules-perl. 133s Preparing to unpack .../153-libwww-robotrules-perl_6.02-1_all.deb ... 133s Unpacking libwww-robotrules-perl (6.02-1) ... 133s Selecting previously unselected package libwww-perl. 133s Preparing to unpack .../154-libwww-perl_6.76-1_all.deb ... 133s Unpacking libwww-perl (6.76-1) ... 133s Selecting previously unselected package liberror-perl. 133s Preparing to unpack .../155-liberror-perl_0.17029-2_all.deb ... 133s Unpacking liberror-perl (0.17029-2) ... 133s Selecting previously unselected package libparse-debcontrol-perl. 133s Preparing to unpack .../156-libparse-debcontrol-perl_2.005-6_all.deb ... 133s Unpacking libparse-debcontrol-perl (2.005-6) ... 133s Selecting previously unselected package libsoftware-copyright-perl. 133s Preparing to unpack .../157-libsoftware-copyright-perl_0.012-2_all.deb ... 133s Unpacking libsoftware-copyright-perl (0.012-2) ... 133s Selecting previously unselected package libalgorithm-c3-perl. 133s Preparing to unpack .../158-libalgorithm-c3-perl_0.11-2_all.deb ... 133s Unpacking libalgorithm-c3-perl (0.11-2) ... 133s Selecting previously unselected package libclass-c3-perl. 133s Preparing to unpack .../159-libclass-c3-perl_0.35-2_all.deb ... 133s Unpacking libclass-c3-perl (0.35-2) ... 133s Selecting previously unselected package libmro-compat-perl. 133s Preparing to unpack .../160-libmro-compat-perl_0.15-2_all.deb ... 133s Unpacking libmro-compat-perl (0.15-2) ... 133s Selecting previously unselected package libdata-section-perl. 133s Preparing to unpack .../161-libdata-section-perl_0.200008-1_all.deb ... 133s Unpacking libdata-section-perl (0.200008-1) ... 133s Selecting previously unselected package libtext-template-perl. 133s Preparing to unpack .../162-libtext-template-perl_1.61-1_all.deb ... 133s Unpacking libtext-template-perl (1.61-1) ... 133s Selecting previously unselected package libsoftware-license-perl. 133s Preparing to unpack .../163-libsoftware-license-perl_0.104006-1_all.deb ... 133s Unpacking libsoftware-license-perl (0.104006-1) ... 133s Selecting previously unselected package libsoftware-licensemoreutils-perl. 133s Preparing to unpack .../164-libsoftware-licensemoreutils-perl_1.009-1_all.deb ... 133s Unpacking libsoftware-licensemoreutils-perl (1.009-1) ... 133s Selecting previously unselected package libsort-versions-perl. 133s Preparing to unpack .../165-libsort-versions-perl_1.62-3_all.deb ... 133s Unpacking libsort-versions-perl (1.62-3) ... 133s Selecting previously unselected package libtext-reform-perl. 133s Preparing to unpack .../166-libtext-reform-perl_1.20-5_all.deb ... 133s Unpacking libtext-reform-perl (1.20-5) ... 133s Selecting previously unselected package libtext-autoformat-perl. 133s Preparing to unpack .../167-libtext-autoformat-perl_1.750000-2_all.deb ... 133s Unpacking libtext-autoformat-perl (1.750000-2) ... 133s Selecting previously unselected package libtext-levenshtein-damerau-perl. 133s Preparing to unpack .../168-libtext-levenshtein-damerau-perl_0.41-3_all.deb ... 133s Unpacking libtext-levenshtein-damerau-perl (0.41-3) ... 133s Selecting previously unselected package libtoml-tiny-perl. 133s Preparing to unpack .../169-libtoml-tiny-perl_0.16-1_all.deb ... 133s Unpacking libtoml-tiny-perl (0.16-1) ... 133s Selecting previously unselected package libindirect-perl. 133s Preparing to unpack .../170-libindirect-perl_0.39-2build3_arm64.deb ... 133s Unpacking libindirect-perl (0.39-2build3) ... 133s Selecting previously unselected package libxs-parse-keyword-perl. 133s Preparing to unpack .../171-libxs-parse-keyword-perl_0.39-1build2_arm64.deb ... 133s Unpacking libxs-parse-keyword-perl (0.39-1build2) ... 133s Selecting previously unselected package libxs-parse-sublike-perl:arm64. 133s Preparing to unpack .../172-libxs-parse-sublike-perl_0.21-2build2_arm64.deb ... 133s Unpacking libxs-parse-sublike-perl:arm64 (0.21-2build2) ... 133s Selecting previously unselected package libobject-pad-perl. 133s Preparing to unpack .../173-libobject-pad-perl_0.808-1build2_arm64.deb ... 133s Unpacking libobject-pad-perl (0.808-1build2) ... 133s Selecting previously unselected package libsyntax-keyword-try-perl. 133s Preparing to unpack .../174-libsyntax-keyword-try-perl_0.29-1build2_arm64.deb ... 133s Unpacking libsyntax-keyword-try-perl (0.29-1build2) ... 133s Selecting previously unselected package libio-interactive-perl. 133s Preparing to unpack .../175-libio-interactive-perl_1.025-1_all.deb ... 133s Unpacking libio-interactive-perl (1.025-1) ... 133s Selecting previously unselected package liblog-any-perl. 133s Preparing to unpack .../176-liblog-any-perl_1.717-1_all.deb ... 133s Unpacking liblog-any-perl (1.717-1) ... 133s Selecting previously unselected package liblog-any-adapter-screen-perl. 133s Preparing to unpack .../177-liblog-any-adapter-screen-perl_0.140-2_all.deb ... 133s Unpacking liblog-any-adapter-screen-perl (0.140-2) ... 134s Selecting previously unselected package libsub-exporter-progressive-perl. 134s Preparing to unpack .../178-libsub-exporter-progressive-perl_0.001013-3_all.deb ... 134s Unpacking libsub-exporter-progressive-perl (0.001013-3) ... 134s Selecting previously unselected package libvariable-magic-perl. 134s Preparing to unpack .../179-libvariable-magic-perl_0.63-1build2_arm64.deb ... 134s Unpacking libvariable-magic-perl (0.63-1build2) ... 134s Selecting previously unselected package libb-hooks-endofscope-perl. 134s Preparing to unpack .../180-libb-hooks-endofscope-perl_0.28-1_all.deb ... 134s Unpacking libb-hooks-endofscope-perl (0.28-1) ... 134s Selecting previously unselected package libsub-identify-perl. 134s Preparing to unpack .../181-libsub-identify-perl_0.14-3build2_arm64.deb ... 134s Unpacking libsub-identify-perl (0.14-3build2) ... 134s Selecting previously unselected package libsub-name-perl:arm64. 134s Preparing to unpack .../182-libsub-name-perl_0.27-1build2_arm64.deb ... 134s Unpacking libsub-name-perl:arm64 (0.27-1build2) ... 134s Selecting previously unselected package libnamespace-clean-perl. 134s Preparing to unpack .../183-libnamespace-clean-perl_0.27-2_all.deb ... 134s Unpacking libnamespace-clean-perl (0.27-2) ... 134s Selecting previously unselected package libnumber-compare-perl. 134s Preparing to unpack .../184-libnumber-compare-perl_0.03-3_all.deb ... 134s Unpacking libnumber-compare-perl (0.03-3) ... 134s Selecting previously unselected package libtext-glob-perl. 134s Preparing to unpack .../185-libtext-glob-perl_0.11-3_all.deb ... 134s Unpacking libtext-glob-perl (0.11-3) ... 134s Selecting previously unselected package libpath-iterator-rule-perl. 134s Preparing to unpack .../186-libpath-iterator-rule-perl_1.015-2_all.deb ... 134s Unpacking libpath-iterator-rule-perl (1.015-2) ... 134s Selecting previously unselected package libpod-parser-perl. 134s Preparing to unpack .../187-libpod-parser-perl_1.67-1_all.deb ... 134s Adding 'diversion of /usr/bin/podselect to /usr/bin/podselect.bundled by libpod-parser-perl' 134s Adding 'diversion of /usr/share/man/man1/podselect.1.gz to /usr/share/man/man1/podselect.bundled.1.gz by libpod-parser-perl' 134s Unpacking libpod-parser-perl (1.67-1) ... 134s Selecting previously unselected package libpod-constants-perl. 134s Preparing to unpack .../188-libpod-constants-perl_0.19-2_all.deb ... 134s Unpacking libpod-constants-perl (0.19-2) ... 134s Selecting previously unselected package libset-intspan-perl. 134s Preparing to unpack .../189-libset-intspan-perl_1.19-3_all.deb ... 134s Unpacking libset-intspan-perl (1.19-3) ... 134s Selecting previously unselected package libstring-copyright-perl. 134s Preparing to unpack .../190-libstring-copyright-perl_0.003014-1_all.deb ... 134s Unpacking libstring-copyright-perl (0.003014-1) ... 134s Selecting previously unselected package libstring-escape-perl. 134s Preparing to unpack .../191-libstring-escape-perl_2010.002-3_all.deb ... 134s Unpacking libstring-escape-perl (2010.002-3) ... 134s Selecting previously unselected package libregexp-pattern-license-perl. 134s Preparing to unpack .../192-libregexp-pattern-license-perl_3.11.0-1_all.deb ... 134s Unpacking libregexp-pattern-license-perl (3.11.0-1) ... 134s Selecting previously unselected package libregexp-pattern-perl. 134s Preparing to unpack .../193-libregexp-pattern-perl_0.2.14-2_all.deb ... 134s Unpacking libregexp-pattern-perl (0.2.14-2) ... 134s Selecting previously unselected package libstring-license-perl. 134s Preparing to unpack .../194-libstring-license-perl_0.0.9-2ubuntu1_all.deb ... 134s Unpacking libstring-license-perl (0.0.9-2ubuntu1) ... 134s Selecting previously unselected package licensecheck. 134s Preparing to unpack .../195-licensecheck_3.3.9-1ubuntu1_all.deb ... 134s Unpacking licensecheck (3.3.9-1ubuntu1) ... 134s Selecting previously unselected package diffstat. 134s Preparing to unpack .../196-diffstat_1.66-1_arm64.deb ... 134s Unpacking diffstat (1.66-1) ... 134s Selecting previously unselected package libberkeleydb-perl:arm64. 134s Preparing to unpack .../197-libberkeleydb-perl_0.64-2build2_arm64.deb ... 134s Unpacking libberkeleydb-perl:arm64 (0.64-2build2) ... 134s Selecting previously unselected package libclass-xsaccessor-perl. 134s Preparing to unpack .../198-libclass-xsaccessor-perl_1.19-4build3_arm64.deb ... 134s Unpacking libclass-xsaccessor-perl (1.19-4build3) ... 134s Selecting previously unselected package libconfig-tiny-perl. 134s Preparing to unpack .../199-libconfig-tiny-perl_2.30-1_all.deb ... 134s Unpacking libconfig-tiny-perl (2.30-1) ... 134s Selecting previously unselected package libconst-fast-perl. 134s Preparing to unpack .../200-libconst-fast-perl_0.014-2_all.deb ... 134s Unpacking libconst-fast-perl (0.014-2) ... 134s Selecting previously unselected package libcpanel-json-xs-perl:arm64. 134s Preparing to unpack .../201-libcpanel-json-xs-perl_4.37-1build2_arm64.deb ... 134s Unpacking libcpanel-json-xs-perl:arm64 (4.37-1build2) ... 134s Selecting previously unselected package libaliased-perl. 134s Preparing to unpack .../202-libaliased-perl_0.34-3_all.deb ... 134s Unpacking libaliased-perl (0.34-3) ... 134s Selecting previously unselected package libclass-data-inheritable-perl. 134s Preparing to unpack .../203-libclass-data-inheritable-perl_0.08-3_all.deb ... 134s Unpacking libclass-data-inheritable-perl (0.08-3) ... 134s Selecting previously unselected package libdevel-stacktrace-perl. 134s Preparing to unpack .../204-libdevel-stacktrace-perl_2.0500-1_all.deb ... 134s Unpacking libdevel-stacktrace-perl (2.0500-1) ... 134s Selecting previously unselected package libexception-class-perl. 134s Preparing to unpack .../205-libexception-class-perl_1.45-1_all.deb ... 134s Unpacking libexception-class-perl (1.45-1) ... 135s Selecting previously unselected package libiterator-perl. 135s Preparing to unpack .../206-libiterator-perl_0.03+ds1-2_all.deb ... 135s Unpacking libiterator-perl (0.03+ds1-2) ... 135s Selecting previously unselected package libiterator-util-perl. 135s Preparing to unpack .../207-libiterator-util-perl_0.02+ds1-2_all.deb ... 135s Unpacking libiterator-util-perl (0.02+ds1-2) ... 135s Selecting previously unselected package libdata-dpath-perl. 135s Preparing to unpack .../208-libdata-dpath-perl_0.59-1_all.deb ... 135s Unpacking libdata-dpath-perl (0.59-1) ... 135s Selecting previously unselected package libnet-domain-tld-perl. 135s Preparing to unpack .../209-libnet-domain-tld-perl_1.75-3_all.deb ... 135s Unpacking libnet-domain-tld-perl (1.75-3) ... 135s Selecting previously unselected package libdata-validate-domain-perl. 135s Preparing to unpack .../210-libdata-validate-domain-perl_0.10-1.1_all.deb ... 135s Unpacking libdata-validate-domain-perl (0.10-1.1) ... 135s Selecting previously unselected package libnet-ipv6addr-perl. 135s Preparing to unpack .../211-libnet-ipv6addr-perl_1.02-1_all.deb ... 135s Unpacking libnet-ipv6addr-perl (1.02-1) ... 135s Selecting previously unselected package libnet-netmask-perl. 135s Preparing to unpack .../212-libnet-netmask-perl_2.0002-2_all.deb ... 135s Unpacking libnet-netmask-perl (2.0002-2) ... 135s Selecting previously unselected package libnetaddr-ip-perl. 135s Preparing to unpack .../213-libnetaddr-ip-perl_4.079+dfsg-2build3_arm64.deb ... 135s Unpacking libnetaddr-ip-perl (4.079+dfsg-2build3) ... 135s Selecting previously unselected package libdata-validate-ip-perl. 135s Preparing to unpack .../214-libdata-validate-ip-perl_0.31-1_all.deb ... 135s Unpacking libdata-validate-ip-perl (0.31-1) ... 135s Selecting previously unselected package libdata-validate-uri-perl. 135s Preparing to unpack .../215-libdata-validate-uri-perl_0.07-3_all.deb ... 135s Unpacking libdata-validate-uri-perl (0.07-3) ... 135s Selecting previously unselected package libdevel-size-perl. 135s Preparing to unpack .../216-libdevel-size-perl_0.83-2build3_arm64.deb ... 135s Unpacking libdevel-size-perl (0.83-2build3) ... 135s Selecting previously unselected package libemail-address-xs-perl. 135s Preparing to unpack .../217-libemail-address-xs-perl_1.05-1build3_arm64.deb ... 135s Unpacking libemail-address-xs-perl (1.05-1build3) ... 135s Selecting previously unselected package libipc-system-simple-perl. 135s Preparing to unpack .../218-libipc-system-simple-perl_1.30-2_all.deb ... 135s Unpacking libipc-system-simple-perl (1.30-2) ... 135s Selecting previously unselected package libfile-basedir-perl. 135s Preparing to unpack .../219-libfile-basedir-perl_0.09-2_all.deb ... 135s Unpacking libfile-basedir-perl (0.09-2) ... 135s Selecting previously unselected package libfile-find-rule-perl. 135s Preparing to unpack .../220-libfile-find-rule-perl_0.34-3_all.deb ... 135s Unpacking libfile-find-rule-perl (0.34-3) ... 135s Selecting previously unselected package libio-string-perl. 135s Preparing to unpack .../221-libio-string-perl_1.08-4_all.deb ... 135s Unpacking libio-string-perl (1.08-4) ... 135s Selecting previously unselected package libfont-ttf-perl. 135s Preparing to unpack .../222-libfont-ttf-perl_1.06-2_all.deb ... 135s Unpacking libfont-ttf-perl (1.06-2) ... 135s Selecting previously unselected package libhtml-html5-entities-perl. 135s Preparing to unpack .../223-libhtml-html5-entities-perl_0.004-3_all.deb ... 135s Unpacking libhtml-html5-entities-perl (0.004-3) ... 135s Selecting previously unselected package libhtml-tokeparser-simple-perl. 135s Preparing to unpack .../224-libhtml-tokeparser-simple-perl_3.16-4_all.deb ... 135s Unpacking libhtml-tokeparser-simple-perl (3.16-4) ... 135s Selecting previously unselected package libipc-run3-perl. 135s Preparing to unpack .../225-libipc-run3-perl_0.049-1_all.deb ... 135s Unpacking libipc-run3-perl (0.049-1) ... 135s Selecting previously unselected package libjson-maybexs-perl. 135s Preparing to unpack .../226-libjson-maybexs-perl_1.004005-1_all.deb ... 135s Unpacking libjson-maybexs-perl (1.004005-1) ... 135s Selecting previously unselected package liblist-compare-perl. 135s Preparing to unpack .../227-liblist-compare-perl_0.55-2_all.deb ... 135s Unpacking liblist-compare-perl (0.55-2) ... 135s Selecting previously unselected package liblist-someutils-perl. 135s Preparing to unpack .../228-liblist-someutils-perl_0.59-1_all.deb ... 135s Unpacking liblist-someutils-perl (0.59-1) ... 135s Selecting previously unselected package liblist-utilsby-perl. 135s Preparing to unpack .../229-liblist-utilsby-perl_0.12-2_all.deb ... 135s Unpacking liblist-utilsby-perl (0.12-2) ... 135s Selecting previously unselected package libmldbm-perl. 135s Preparing to unpack .../230-libmldbm-perl_2.05-4_all.deb ... 135s Unpacking libmldbm-perl (2.05-4) ... 135s Selecting previously unselected package libclass-method-modifiers-perl. 135s Preparing to unpack .../231-libclass-method-modifiers-perl_2.15-1_all.deb ... 135s Unpacking libclass-method-modifiers-perl (2.15-1) ... 135s Selecting previously unselected package libimport-into-perl. 135s Preparing to unpack .../232-libimport-into-perl_1.002005-2_all.deb ... 135s Unpacking libimport-into-perl (1.002005-2) ... 136s Selecting previously unselected package librole-tiny-perl. 136s Preparing to unpack .../233-librole-tiny-perl_2.002004-1_all.deb ... 136s Unpacking librole-tiny-perl (2.002004-1) ... 136s Selecting previously unselected package libsub-quote-perl. 136s Preparing to unpack .../234-libsub-quote-perl_2.006008-1ubuntu1_all.deb ... 136s Unpacking libsub-quote-perl (2.006008-1ubuntu1) ... 136s Selecting previously unselected package libmoo-perl. 136s Preparing to unpack .../235-libmoo-perl_2.005005-1_all.deb ... 136s Unpacking libmoo-perl (2.005005-1) ... 136s Selecting previously unselected package libstrictures-perl. 136s Preparing to unpack .../236-libstrictures-perl_2.000006-1_all.deb ... 136s Unpacking libstrictures-perl (2.000006-1) ... 136s Selecting previously unselected package libmoox-aliases-perl. 136s Preparing to unpack .../237-libmoox-aliases-perl_0.001006-2_all.deb ... 136s Unpacking libmoox-aliases-perl (0.001006-2) ... 136s Selecting previously unselected package libperlio-gzip-perl. 136s Preparing to unpack .../238-libperlio-gzip-perl_0.20-1build3_arm64.deb ... 136s Unpacking libperlio-gzip-perl (0.20-1build3) ... 136s Selecting previously unselected package libperlio-utf8-strict-perl. 136s Preparing to unpack .../239-libperlio-utf8-strict-perl_0.010-1build2_arm64.deb ... 136s Unpacking libperlio-utf8-strict-perl (0.010-1build2) ... 136s Selecting previously unselected package libproc-processtable-perl:arm64. 136s Preparing to unpack .../240-libproc-processtable-perl_0.636-1build2_arm64.deb ... 136s Unpacking libproc-processtable-perl:arm64 (0.636-1build2) ... 136s Selecting previously unselected package libregexp-wildcards-perl. 136s Preparing to unpack .../241-libregexp-wildcards-perl_1.05-3_all.deb ... 136s Unpacking libregexp-wildcards-perl (1.05-3) ... 136s Selecting previously unselected package libsereal-decoder-perl. 136s Preparing to unpack .../242-libsereal-decoder-perl_5.004+ds-1build2_arm64.deb ... 136s Unpacking libsereal-decoder-perl (5.004+ds-1build2) ... 136s Selecting previously unselected package libsereal-encoder-perl. 136s Preparing to unpack .../243-libsereal-encoder-perl_5.004+ds-1build2_arm64.deb ... 136s Unpacking libsereal-encoder-perl (5.004+ds-1build2) ... 136s Selecting previously unselected package libterm-readkey-perl. 136s Preparing to unpack .../244-libterm-readkey-perl_2.38-2build3_arm64.deb ... 136s Unpacking libterm-readkey-perl (2.38-2build3) ... 136s Selecting previously unselected package libtext-levenshteinxs-perl. 136s Preparing to unpack .../245-libtext-levenshteinxs-perl_0.03-5build3_arm64.deb ... 136s Unpacking libtext-levenshteinxs-perl (0.03-5build3) ... 136s Selecting previously unselected package libmarkdown2:arm64. 136s Preparing to unpack .../246-libmarkdown2_2.2.7-2_arm64.deb ... 136s Unpacking libmarkdown2:arm64 (2.2.7-2) ... 137s Selecting previously unselected package libtext-markdown-discount-perl. 137s Preparing to unpack .../247-libtext-markdown-discount-perl_0.16-1build2_arm64.deb ... 137s Unpacking libtext-markdown-discount-perl (0.16-1build2) ... 137s Selecting previously unselected package libdata-messagepack-perl. 137s Preparing to unpack .../248-libdata-messagepack-perl_1.02-1build3_arm64.deb ... 137s Unpacking libdata-messagepack-perl (1.02-1build3) ... 137s Selecting previously unselected package libtext-xslate-perl:arm64. 137s Preparing to unpack .../249-libtext-xslate-perl_3.5.9-1build4_arm64.deb ... 137s Unpacking libtext-xslate-perl:arm64 (3.5.9-1build4) ... 137s Selecting previously unselected package libtime-duration-perl. 137s Preparing to unpack .../250-libtime-duration-perl_1.21-2_all.deb ... 137s Unpacking libtime-duration-perl (1.21-2) ... 137s Selecting previously unselected package libtime-moment-perl. 137s Preparing to unpack .../251-libtime-moment-perl_0.44-2build3_arm64.deb ... 137s Unpacking libtime-moment-perl (0.44-2build3) ... 137s Selecting previously unselected package libunicode-utf8-perl. 137s Preparing to unpack .../252-libunicode-utf8-perl_0.62-2build2_arm64.deb ... 137s Unpacking libunicode-utf8-perl (0.62-2build2) ... 137s Selecting previously unselected package libcgi-pm-perl. 137s Preparing to unpack .../253-libcgi-pm-perl_4.63-1_all.deb ... 137s Unpacking libcgi-pm-perl (4.63-1) ... 137s Selecting previously unselected package libhtml-form-perl. 137s Preparing to unpack .../254-libhtml-form-perl_6.11-1_all.deb ... 137s Unpacking libhtml-form-perl (6.11-1) ... 137s Selecting previously unselected package libwww-mechanize-perl. 137s Preparing to unpack .../255-libwww-mechanize-perl_2.18-1ubuntu1_all.deb ... 137s Unpacking libwww-mechanize-perl (2.18-1ubuntu1) ... 137s Selecting previously unselected package libxml-namespacesupport-perl. 137s Preparing to unpack .../256-libxml-namespacesupport-perl_1.12-2_all.deb ... 137s Unpacking libxml-namespacesupport-perl (1.12-2) ... 137s Selecting previously unselected package libxml-sax-base-perl. 137s Preparing to unpack .../257-libxml-sax-base-perl_1.09-3_all.deb ... 137s Unpacking libxml-sax-base-perl (1.09-3) ... 137s Selecting previously unselected package libxml-sax-perl. 137s Preparing to unpack .../258-libxml-sax-perl_1.02+dfsg-3_all.deb ... 137s Unpacking libxml-sax-perl (1.02+dfsg-3) ... 137s Selecting previously unselected package libxml-libxml-perl. 137s Preparing to unpack .../259-libxml-libxml-perl_2.0207+dfsg+really+2.0134-1build3_arm64.deb ... 137s Unpacking libxml-libxml-perl (2.0207+dfsg+really+2.0134-1build3) ... 137s Selecting previously unselected package lzip. 137s Preparing to unpack .../260-lzip_1.24.1-1_arm64.deb ... 137s Unpacking lzip (1.24.1-1) ... 137s Selecting previously unselected package lzop. 137s Preparing to unpack .../261-lzop_1.04-2build2_arm64.deb ... 137s Unpacking lzop (1.04-2build2) ... 137s Selecting previously unselected package patchutils. 137s Preparing to unpack .../262-patchutils_0.4.2-1build2_arm64.deb ... 137s Unpacking patchutils (0.4.2-1build2) ... 137s Selecting previously unselected package t1utils. 137s Preparing to unpack .../263-t1utils_1.41-4build2_arm64.deb ... 137s Unpacking t1utils (1.41-4build2) ... 137s Selecting previously unselected package unzip. 137s Preparing to unpack .../264-unzip_6.0-28ubuntu3_arm64.deb ... 137s Unpacking unzip (6.0-28ubuntu3) ... 137s Selecting previously unselected package lintian. 137s Preparing to unpack .../265-lintian_2.117.0ubuntu1_all.deb ... 137s Unpacking lintian (2.117.0ubuntu1) ... 138s Selecting previously unselected package libconfig-model-dpkg-perl. 138s Preparing to unpack .../266-libconfig-model-dpkg-perl_3.004_all.deb ... 138s Unpacking libconfig-model-dpkg-perl (3.004) ... 138s Selecting previously unselected package libconvert-binhex-perl. 138s Preparing to unpack .../267-libconvert-binhex-perl_1.125-3_all.deb ... 138s Unpacking libconvert-binhex-perl (1.125-3) ... 138s Selecting previously unselected package libnet-smtp-ssl-perl. 138s Preparing to unpack .../268-libnet-smtp-ssl-perl_1.04-2_all.deb ... 138s Unpacking libnet-smtp-ssl-perl (1.04-2) ... 138s Selecting previously unselected package libmailtools-perl. 138s Preparing to unpack .../269-libmailtools-perl_2.21-2_all.deb ... 138s Unpacking libmailtools-perl (2.21-2) ... 138s Selecting previously unselected package libmime-tools-perl. 138s Preparing to unpack .../270-libmime-tools-perl_5.514-1_all.deb ... 138s Unpacking libmime-tools-perl (5.514-1) ... 138s Selecting previously unselected package libsuitesparseconfig7:arm64. 138s Preparing to unpack .../271-libsuitesparseconfig7_1%3a7.6.1+dfsg-1_arm64.deb ... 138s Unpacking libsuitesparseconfig7:arm64 (1:7.6.1+dfsg-1) ... 138s Selecting previously unselected package libamd3:arm64. 138s Preparing to unpack .../272-libamd3_1%3a7.6.1+dfsg-1_arm64.deb ... 138s Unpacking libamd3:arm64 (1:7.6.1+dfsg-1) ... 138s Selecting previously unselected package libblas3:arm64. 138s Preparing to unpack .../273-libblas3_3.12.0-3_arm64.deb ... 138s Unpacking libblas3:arm64 (3.12.0-3) ... 138s Selecting previously unselected package libgfortran5:arm64. 138s Preparing to unpack .../274-libgfortran5_14-20240315-1ubuntu1_arm64.deb ... 138s Unpacking libgfortran5:arm64 (14-20240315-1ubuntu1) ... 138s Selecting previously unselected package liblapack3:arm64. 138s Preparing to unpack .../275-liblapack3_3.12.0-3_arm64.deb ... 138s Unpacking liblapack3:arm64 (3.12.0-3) ... 138s Selecting previously unselected package libarpack2t64:arm64. 138s Preparing to unpack .../276-libarpack2t64_3.9.1-1.1build1_arm64.deb ... 138s Unpacking libarpack2t64:arm64 (3.9.1-1.1build1) ... 138s Selecting previously unselected package libccolamd3:arm64. 138s Preparing to unpack .../277-libccolamd3_1%3a7.6.1+dfsg-1_arm64.deb ... 138s Unpacking libccolamd3:arm64 (1:7.6.1+dfsg-1) ... 138s Selecting previously unselected package libcamd3:arm64. 138s Preparing to unpack .../278-libcamd3_1%3a7.6.1+dfsg-1_arm64.deb ... 138s Unpacking libcamd3:arm64 (1:7.6.1+dfsg-1) ... 138s Selecting previously unselected package libcolamd3:arm64. 138s Preparing to unpack .../279-libcolamd3_1%3a7.6.1+dfsg-1_arm64.deb ... 138s Unpacking libcolamd3:arm64 (1:7.6.1+dfsg-1) ... 138s Selecting previously unselected package libcholmod5:arm64. 138s Preparing to unpack .../280-libcholmod5_1%3a7.6.1+dfsg-1_arm64.deb ... 138s Unpacking libcholmod5:arm64 (1:7.6.1+dfsg-1) ... 139s Selecting previously unselected package libcxsparse4:arm64. 139s Preparing to unpack .../281-libcxsparse4_1%3a7.6.1+dfsg-1_arm64.deb ... 139s Unpacking libcxsparse4:arm64 (1:7.6.1+dfsg-1) ... 139s Selecting previously unselected package libfftw3-double3:arm64. 139s Preparing to unpack .../282-libfftw3-double3_3.3.10-1ubuntu2_arm64.deb ... 139s Unpacking libfftw3-double3:arm64 (3.3.10-1ubuntu2) ... 139s Selecting previously unselected package libfftw3-single3:arm64. 139s Preparing to unpack .../283-libfftw3-single3_3.3.10-1ubuntu2_arm64.deb ... 139s Unpacking libfftw3-single3:arm64 (3.3.10-1ubuntu2) ... 139s Selecting previously unselected package libxfixes3:arm64. 139s Preparing to unpack .../284-libxfixes3_1%3a6.0.0-2_arm64.deb ... 139s Unpacking libxfixes3:arm64 (1:6.0.0-2) ... 139s Selecting previously unselected package libxcursor1:arm64. 139s Preparing to unpack .../285-libxcursor1_1%3a1.2.1-1_arm64.deb ... 139s Unpacking libxcursor1:arm64 (1:1.2.1-1) ... 139s Selecting previously unselected package libxft2:arm64. 139s Preparing to unpack .../286-libxft2_2.3.6-1_arm64.deb ... 139s Unpacking libxft2:arm64 (2.3.6-1) ... 139s Selecting previously unselected package libxinerama1:arm64. 139s Preparing to unpack .../287-libxinerama1_2%3a1.1.4-3_arm64.deb ... 139s Unpacking libxinerama1:arm64 (2:1.1.4-3) ... 139s Selecting previously unselected package libfltk1.3t64:arm64. 139s Preparing to unpack .../288-libfltk1.3t64_1.3.8-6.1_arm64.deb ... 139s Unpacking libfltk1.3t64:arm64 (1.3.8-6.1) ... 139s Selecting previously unselected package libglvnd0:arm64. 139s Preparing to unpack .../289-libglvnd0_1.7.0-1_arm64.deb ... 139s Unpacking libglvnd0:arm64 (1.7.0-1) ... 139s Selecting previously unselected package libglapi-mesa:arm64. 139s Preparing to unpack .../290-libglapi-mesa_24.0.2-1ubuntu8_arm64.deb ... 139s Unpacking libglapi-mesa:arm64 (24.0.2-1ubuntu8) ... 139s Selecting previously unselected package libx11-xcb1:arm64. 139s Preparing to unpack .../291-libx11-xcb1_2%3a1.8.7-1_arm64.deb ... 139s Unpacking libx11-xcb1:arm64 (2:1.8.7-1) ... 139s Selecting previously unselected package libxcb-dri2-0:arm64. 139s Preparing to unpack .../292-libxcb-dri2-0_1.15-1_arm64.deb ... 139s Unpacking libxcb-dri2-0:arm64 (1.15-1) ... 139s Selecting previously unselected package libxcb-dri3-0:arm64. 139s Preparing to unpack .../293-libxcb-dri3-0_1.15-1_arm64.deb ... 139s Unpacking libxcb-dri3-0:arm64 (1.15-1) ... 139s Selecting previously unselected package libxcb-glx0:arm64. 139s Preparing to unpack .../294-libxcb-glx0_1.15-1_arm64.deb ... 139s Unpacking libxcb-glx0:arm64 (1.15-1) ... 139s Selecting previously unselected package libxcb-present0:arm64. 139s Preparing to unpack .../295-libxcb-present0_1.15-1_arm64.deb ... 139s Unpacking libxcb-present0:arm64 (1.15-1) ... 139s Selecting previously unselected package libxcb-randr0:arm64. 139s Preparing to unpack .../296-libxcb-randr0_1.15-1_arm64.deb ... 139s Unpacking libxcb-randr0:arm64 (1.15-1) ... 139s Selecting previously unselected package libxcb-sync1:arm64. 139s Preparing to unpack .../297-libxcb-sync1_1.15-1_arm64.deb ... 139s Unpacking libxcb-sync1:arm64 (1.15-1) ... 139s Selecting previously unselected package libxcb-xfixes0:arm64. 139s Preparing to unpack .../298-libxcb-xfixes0_1.15-1_arm64.deb ... 139s Unpacking libxcb-xfixes0:arm64 (1.15-1) ... 139s Selecting previously unselected package libxshmfence1:arm64. 139s Preparing to unpack .../299-libxshmfence1_1.3-1build4_arm64.deb ... 139s Unpacking libxshmfence1:arm64 (1.3-1build4) ... 139s Selecting previously unselected package libxxf86vm1:arm64. 139s Preparing to unpack .../300-libxxf86vm1_1%3a1.1.4-1build3_arm64.deb ... 139s Unpacking libxxf86vm1:arm64 (1:1.1.4-1build3) ... 140s Selecting previously unselected package libvulkan1:arm64. 140s Preparing to unpack .../301-libvulkan1_1.3.275.0-1_arm64.deb ... 140s Unpacking libvulkan1:arm64 (1.3.275.0-1) ... 140s Selecting previously unselected package libdrm-amdgpu1:arm64. 140s Preparing to unpack .../302-libdrm-amdgpu1_2.4.120-2_arm64.deb ... 140s Unpacking libdrm-amdgpu1:arm64 (2.4.120-2) ... 140s Selecting previously unselected package libdrm-nouveau2:arm64. 140s Preparing to unpack .../303-libdrm-nouveau2_2.4.120-2_arm64.deb ... 140s Unpacking libdrm-nouveau2:arm64 (2.4.120-2) ... 140s Selecting previously unselected package libdrm-radeon1:arm64. 140s Preparing to unpack .../304-libdrm-radeon1_2.4.120-2_arm64.deb ... 140s Unpacking libdrm-radeon1:arm64 (2.4.120-2) ... 140s Selecting previously unselected package libllvm17t64:arm64. 140s Preparing to unpack .../305-libllvm17t64_1%3a17.0.6-9build1_arm64.deb ... 140s Unpacking libllvm17t64:arm64 (1:17.0.6-9build1) ... 140s Selecting previously unselected package libgl1-mesa-dri:arm64. 141s Preparing to unpack .../306-libgl1-mesa-dri_24.0.2-1ubuntu8_arm64.deb ... 141s Unpacking libgl1-mesa-dri:arm64 (24.0.2-1ubuntu8) ... 141s Selecting previously unselected package libglx-mesa0:arm64. 141s Preparing to unpack .../307-libglx-mesa0_24.0.2-1ubuntu8_arm64.deb ... 141s Unpacking libglx-mesa0:arm64 (24.0.2-1ubuntu8) ... 141s Selecting previously unselected package libglx0:arm64. 141s Preparing to unpack .../308-libglx0_1.7.0-1_arm64.deb ... 141s Unpacking libglx0:arm64 (1.7.0-1) ... 141s Selecting previously unselected package libgl1:arm64. 141s Preparing to unpack .../309-libgl1_1.7.0-1_arm64.deb ... 141s Unpacking libgl1:arm64 (1.7.0-1) ... 141s Selecting previously unselected package libfltk-gl1.3t64:arm64. 141s Preparing to unpack .../310-libfltk-gl1.3t64_1.3.8-6.1_arm64.deb ... 141s Unpacking libfltk-gl1.3t64:arm64 (1.3.8-6.1) ... 141s Selecting previously unselected package libgl2ps1.4. 141s Preparing to unpack .../311-libgl2ps1.4_1.4.2+dfsg1-2_arm64.deb ... 141s Unpacking libgl2ps1.4 (1.4.2+dfsg1-2) ... 141s Selecting previously unselected package libltdl7:arm64. 141s Preparing to unpack .../312-libltdl7_2.4.7-7_arm64.deb ... 141s Unpacking libltdl7:arm64 (2.4.7-7) ... 141s Selecting previously unselected package libglpk40:arm64. 141s Preparing to unpack .../313-libglpk40_5.0-1build1_arm64.deb ... 141s Unpacking libglpk40:arm64 (5.0-1build1) ... 141s Selecting previously unselected package libopengl0:arm64. 141s Preparing to unpack .../314-libopengl0_1.7.0-1_arm64.deb ... 141s Unpacking libopengl0:arm64 (1.7.0-1) ... 141s Selecting previously unselected package libglu1-mesa:arm64. 141s Preparing to unpack .../315-libglu1-mesa_9.0.2-1.1_arm64.deb ... 141s Unpacking libglu1-mesa:arm64 (9.0.2-1.1) ... 141s Selecting previously unselected package libdav1d7:arm64. 141s Preparing to unpack .../316-libdav1d7_1.4.0-1_arm64.deb ... 141s Unpacking libdav1d7:arm64 (1.4.0-1) ... 141s Selecting previously unselected package libheif-plugin-dav1d:arm64. 141s Preparing to unpack .../317-libheif-plugin-dav1d_1.17.6-1ubuntu2_arm64.deb ... 141s Unpacking libheif-plugin-dav1d:arm64 (1.17.6-1ubuntu2) ... 141s Selecting previously unselected package libde265-0:arm64. 141s Preparing to unpack .../318-libde265-0_1.0.15-1build1_arm64.deb ... 141s Unpacking libde265-0:arm64 (1.0.15-1build1) ... 141s Selecting previously unselected package libheif-plugin-libde265:arm64. 141s Preparing to unpack .../319-libheif-plugin-libde265_1.17.6-1ubuntu2_arm64.deb ... 141s Unpacking libheif-plugin-libde265:arm64 (1.17.6-1ubuntu2) ... 141s Selecting previously unselected package libheif1:arm64. 141s Preparing to unpack .../320-libheif1_1.17.6-1ubuntu2_arm64.deb ... 141s Unpacking libheif1:arm64 (1.17.6-1ubuntu2) ... 141s Selecting previously unselected package libhwy1t64:arm64. 141s Preparing to unpack .../321-libhwy1t64_1.0.7-8.1_arm64.deb ... 141s Unpacking libhwy1t64:arm64 (1.0.7-8.1) ... 141s Selecting previously unselected package liblcms2-2:arm64. 141s Preparing to unpack .../322-liblcms2-2_2.14-2_arm64.deb ... 141s Unpacking liblcms2-2:arm64 (2.14-2) ... 141s Selecting previously unselected package libjxl0.7:arm64. 141s Preparing to unpack .../323-libjxl0.7_0.7.0-10.2ubuntu3_arm64.deb ... 141s Unpacking libjxl0.7:arm64 (0.7.0-10.2ubuntu3) ... 141s Selecting previously unselected package libwmflite-0.2-7:arm64. 141s Preparing to unpack .../324-libwmflite-0.2-7_0.2.13-1.1build2_arm64.deb ... 141s Unpacking libwmflite-0.2-7:arm64 (0.2.13-1.1build2) ... 141s Selecting previously unselected package libgraphicsmagick-q16-3t64. 141s Preparing to unpack .../325-libgraphicsmagick-q16-3t64_1.4+really1.3.42-1.1build1_arm64.deb ... 141s Unpacking libgraphicsmagick-q16-3t64 (1.4+really1.3.42-1.1build1) ... 141s Selecting previously unselected package libgraphicsmagick++-q16-12t64. 141s Preparing to unpack .../326-libgraphicsmagick++-q16-12t64_1.4+really1.3.42-1.1build1_arm64.deb ... 141s Unpacking libgraphicsmagick++-q16-12t64 (1.4+really1.3.42-1.1build1) ... 142s Selecting previously unselected package libaec0:arm64. 142s Preparing to unpack .../327-libaec0_1.1.2-1_arm64.deb ... 142s Unpacking libaec0:arm64 (1.1.2-1) ... 142s Selecting previously unselected package libsz2:arm64. 142s Preparing to unpack .../328-libsz2_1.1.2-1_arm64.deb ... 142s Unpacking libsz2:arm64 (1.1.2-1) ... 142s Selecting previously unselected package libhdf5-103-1t64:arm64. 142s Preparing to unpack .../329-libhdf5-103-1t64_1.10.10+repack-3.1ubuntu3_arm64.deb ... 142s Unpacking libhdf5-103-1t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 142s Selecting previously unselected package libasound2-data. 142s Preparing to unpack .../330-libasound2-data_1.2.11-1build1_all.deb ... 142s Unpacking libasound2-data (1.2.11-1build1) ... 142s Selecting previously unselected package libasound2t64:arm64. 142s Preparing to unpack .../331-libasound2t64_1.2.11-1build1_arm64.deb ... 142s Unpacking libasound2t64:arm64 (1.2.11-1build1) ... 142s Selecting previously unselected package libopus0:arm64. 142s Preparing to unpack .../332-libopus0_1.4-1_arm64.deb ... 142s Unpacking libopus0:arm64 (1.4-1) ... 142s Selecting previously unselected package libsamplerate0:arm64. 142s Preparing to unpack .../333-libsamplerate0_0.2.2-4_arm64.deb ... 142s Unpacking libsamplerate0:arm64 (0.2.2-4) ... 142s Selecting previously unselected package libjack-jackd2-0:arm64. 142s Preparing to unpack .../334-libjack-jackd2-0_1.9.21~dfsg-3ubuntu1_arm64.deb ... 142s Unpacking libjack-jackd2-0:arm64 (1.9.21~dfsg-3ubuntu1) ... 142s Selecting previously unselected package libportaudio2:arm64. 142s Preparing to unpack .../335-libportaudio2_19.6.0-1.2build1_arm64.deb ... 142s Unpacking libportaudio2:arm64 (19.6.0-1.2build1) ... 142s Selecting previously unselected package libqhull-r8.0:arm64. 142s Preparing to unpack .../336-libqhull-r8.0_2020.2-6_arm64.deb ... 142s Unpacking libqhull-r8.0:arm64 (2020.2-6) ... 142s Selecting previously unselected package libqrupdate1:arm64. 142s Preparing to unpack .../337-libqrupdate1_1.1.2-4_arm64.deb ... 142s Unpacking libqrupdate1:arm64 (1.1.2-4) ... 142s Selecting previously unselected package libqscintilla2-qt5-l10n. 142s Preparing to unpack .../338-libqscintilla2-qt5-l10n_2.14.1+dfsg-1build2_all.deb ... 142s Unpacking libqscintilla2-qt5-l10n (2.14.1+dfsg-1build2) ... 142s Selecting previously unselected package libdouble-conversion3:arm64. 142s Preparing to unpack .../339-libdouble-conversion3_3.3.0-1_arm64.deb ... 142s Unpacking libdouble-conversion3:arm64 (3.3.0-1) ... 142s Selecting previously unselected package libpcre2-16-0:arm64. 142s Preparing to unpack .../340-libpcre2-16-0_10.42-4ubuntu1_arm64.deb ... 142s Unpacking libpcre2-16-0:arm64 (10.42-4ubuntu1) ... 142s Selecting previously unselected package libqt5core5t64:arm64. 142s Preparing to unpack .../341-libqt5core5t64_5.15.12+dfsg-3ubuntu6_arm64.deb ... 142s Unpacking libqt5core5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 142s Selecting previously unselected package libwayland-server0:arm64. 142s Preparing to unpack .../342-libwayland-server0_1.22.0-2.1_arm64.deb ... 142s Unpacking libwayland-server0:arm64 (1.22.0-2.1) ... 142s Selecting previously unselected package libgbm1:arm64. 142s Preparing to unpack .../343-libgbm1_24.0.2-1ubuntu8_arm64.deb ... 142s Unpacking libgbm1:arm64 (24.0.2-1ubuntu8) ... 142s Selecting previously unselected package libwayland-client0:arm64. 142s Preparing to unpack .../344-libwayland-client0_1.22.0-2.1_arm64.deb ... 142s Unpacking libwayland-client0:arm64 (1.22.0-2.1) ... 142s Selecting previously unselected package libegl-mesa0:arm64. 142s Preparing to unpack .../345-libegl-mesa0_24.0.2-1ubuntu8_arm64.deb ... 142s Unpacking libegl-mesa0:arm64 (24.0.2-1ubuntu8) ... 142s Selecting previously unselected package libegl1:arm64. 142s Preparing to unpack .../346-libegl1_1.7.0-1_arm64.deb ... 142s Unpacking libegl1:arm64 (1.7.0-1) ... 142s Selecting previously unselected package x11-common. 142s Preparing to unpack .../347-x11-common_1%3a7.7+23ubuntu2_all.deb ... 142s Unpacking x11-common (1:7.7+23ubuntu2) ... 142s Selecting previously unselected package libice6:arm64. 142s Preparing to unpack .../348-libice6_2%3a1.0.10-1build2_arm64.deb ... 142s Unpacking libice6:arm64 (2:1.0.10-1build2) ... 142s Selecting previously unselected package libmtdev1t64:arm64. 142s Preparing to unpack .../349-libmtdev1t64_1.1.6-1.1_arm64.deb ... 142s Unpacking libmtdev1t64:arm64 (1.1.6-1.1) ... 143s Selecting previously unselected package libwacom-common. 143s Preparing to unpack .../350-libwacom-common_2.10.0-1build1_all.deb ... 143s Unpacking libwacom-common (2.10.0-1build1) ... 143s Selecting previously unselected package libwacom9:arm64. 143s Preparing to unpack .../351-libwacom9_2.10.0-1build1_arm64.deb ... 143s Unpacking libwacom9:arm64 (2.10.0-1build1) ... 143s Selecting previously unselected package libinput-bin. 143s Preparing to unpack .../352-libinput-bin_1.25.0-1build1_arm64.deb ... 143s Unpacking libinput-bin (1.25.0-1build1) ... 143s Selecting previously unselected package libinput10:arm64. 143s Preparing to unpack .../353-libinput10_1.25.0-1build1_arm64.deb ... 143s Unpacking libinput10:arm64 (1.25.0-1build1) ... 143s Selecting previously unselected package libmd4c0:arm64. 143s Preparing to unpack .../354-libmd4c0_0.4.8-1_arm64.deb ... 143s Unpacking libmd4c0:arm64 (0.4.8-1) ... 143s Selecting previously unselected package libqt5dbus5t64:arm64. 143s Preparing to unpack .../355-libqt5dbus5t64_5.15.12+dfsg-3ubuntu6_arm64.deb ... 143s Unpacking libqt5dbus5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 143s Selecting previously unselected package libqt5network5t64:arm64. 143s Preparing to unpack .../356-libqt5network5t64_5.15.12+dfsg-3ubuntu6_arm64.deb ... 143s Unpacking libqt5network5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 143s Selecting previously unselected package libsm6:arm64. 143s Preparing to unpack .../357-libsm6_2%3a1.2.3-1build2_arm64.deb ... 143s Unpacking libsm6:arm64 (2:1.2.3-1build2) ... 143s Selecting previously unselected package libxcb-icccm4:arm64. 143s Preparing to unpack .../358-libxcb-icccm4_0.4.1-1.1build2_arm64.deb ... 143s Unpacking libxcb-icccm4:arm64 (0.4.1-1.1build2) ... 143s Selecting previously unselected package libxcb-util1:arm64. 143s Preparing to unpack .../359-libxcb-util1_0.4.0-1build2_arm64.deb ... 143s Unpacking libxcb-util1:arm64 (0.4.0-1build2) ... 143s Selecting previously unselected package libxcb-image0:arm64. 143s Preparing to unpack .../360-libxcb-image0_0.4.0-2_arm64.deb ... 143s Unpacking libxcb-image0:arm64 (0.4.0-2) ... 143s Selecting previously unselected package libxcb-keysyms1:arm64. 143s Preparing to unpack .../361-libxcb-keysyms1_0.4.0-1build3_arm64.deb ... 143s Unpacking libxcb-keysyms1:arm64 (0.4.0-1build3) ... 143s Selecting previously unselected package libxcb-render-util0:arm64. 143s Preparing to unpack .../362-libxcb-render-util0_0.3.9-1build3_arm64.deb ... 143s Unpacking libxcb-render-util0:arm64 (0.3.9-1build3) ... 143s Selecting previously unselected package libxcb-shape0:arm64. 143s Preparing to unpack .../363-libxcb-shape0_1.15-1_arm64.deb ... 143s Unpacking libxcb-shape0:arm64 (1.15-1) ... 143s Selecting previously unselected package libxcb-xinerama0:arm64. 143s Preparing to unpack .../364-libxcb-xinerama0_1.15-1_arm64.deb ... 143s Unpacking libxcb-xinerama0:arm64 (1.15-1) ... 143s Selecting previously unselected package libxcb-xinput0:arm64. 143s Preparing to unpack .../365-libxcb-xinput0_1.15-1_arm64.deb ... 143s Unpacking libxcb-xinput0:arm64 (1.15-1) ... 143s Selecting previously unselected package libxcb-xkb1:arm64. 143s Preparing to unpack .../366-libxcb-xkb1_1.15-1_arm64.deb ... 143s Unpacking libxcb-xkb1:arm64 (1.15-1) ... 143s Selecting previously unselected package libxkbcommon-x11-0:arm64. 143s Preparing to unpack .../367-libxkbcommon-x11-0_1.6.0-1_arm64.deb ... 143s Unpacking libxkbcommon-x11-0:arm64 (1.6.0-1) ... 143s Selecting previously unselected package libqt5gui5t64:arm64. 143s Preparing to unpack .../368-libqt5gui5t64_5.15.12+dfsg-3ubuntu6_arm64.deb ... 143s Unpacking libqt5gui5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 143s Selecting previously unselected package libavahi-common-data:arm64. 143s Preparing to unpack .../369-libavahi-common-data_0.8-13ubuntu4_arm64.deb ... 143s Unpacking libavahi-common-data:arm64 (0.8-13ubuntu4) ... 143s Selecting previously unselected package libavahi-common3:arm64. 143s Preparing to unpack .../370-libavahi-common3_0.8-13ubuntu4_arm64.deb ... 143s Unpacking libavahi-common3:arm64 (0.8-13ubuntu4) ... 143s Selecting previously unselected package libavahi-client3:arm64. 143s Preparing to unpack .../371-libavahi-client3_0.8-13ubuntu4_arm64.deb ... 143s Unpacking libavahi-client3:arm64 (0.8-13ubuntu4) ... 144s Selecting previously unselected package libcups2t64:arm64. 144s Preparing to unpack .../372-libcups2t64_2.4.7-1.2ubuntu1_arm64.deb ... 144s Unpacking libcups2t64:arm64 (2.4.7-1.2ubuntu1) ... 144s Selecting previously unselected package libqt5widgets5t64:arm64. 144s Preparing to unpack .../373-libqt5widgets5t64_5.15.12+dfsg-3ubuntu6_arm64.deb ... 144s Unpacking libqt5widgets5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 144s Selecting previously unselected package libqt5printsupport5t64:arm64. 144s Preparing to unpack .../374-libqt5printsupport5t64_5.15.12+dfsg-3ubuntu6_arm64.deb ... 144s Unpacking libqt5printsupport5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 144s Selecting previously unselected package libqscintilla2-qt5-15:arm64. 144s Preparing to unpack .../375-libqscintilla2-qt5-15_2.14.1+dfsg-1build2_arm64.deb ... 144s Unpacking libqscintilla2-qt5-15:arm64 (2.14.1+dfsg-1build2) ... 144s Selecting previously unselected package libqt5sql5t64:arm64. 144s Preparing to unpack .../376-libqt5sql5t64_5.15.12+dfsg-3ubuntu6_arm64.deb ... 144s Unpacking libqt5sql5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 144s Selecting previously unselected package libqt5help5:arm64. 144s Preparing to unpack .../377-libqt5help5_5.15.12-2build2_arm64.deb ... 144s Unpacking libqt5help5:arm64 (5.15.12-2build2) ... 144s Selecting previously unselected package libqt5xml5t64:arm64. 144s Preparing to unpack .../378-libqt5xml5t64_5.15.12+dfsg-3ubuntu6_arm64.deb ... 144s Unpacking libqt5xml5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 144s Selecting previously unselected package libogg0:arm64. 144s Preparing to unpack .../379-libogg0_1.3.5-3_arm64.deb ... 144s Unpacking libogg0:arm64 (1.3.5-3) ... 144s Selecting previously unselected package libflac12t64:arm64. 144s Preparing to unpack .../380-libflac12t64_1.4.3+ds-2.1ubuntu1_arm64.deb ... 144s Unpacking libflac12t64:arm64 (1.4.3+ds-2.1ubuntu1) ... 144s Selecting previously unselected package libmp3lame0:arm64. 144s Preparing to unpack .../381-libmp3lame0_3.100-6_arm64.deb ... 144s Unpacking libmp3lame0:arm64 (3.100-6) ... 144s Selecting previously unselected package libmpg123-0:arm64. 144s Preparing to unpack .../382-libmpg123-0_1.32.5-1build1_arm64.deb ... 144s Unpacking libmpg123-0:arm64 (1.32.5-1build1) ... 144s Selecting previously unselected package libvorbis0a:arm64. 144s Preparing to unpack .../383-libvorbis0a_1.3.7-1build2_arm64.deb ... 144s Unpacking libvorbis0a:arm64 (1.3.7-1build2) ... 144s Selecting previously unselected package libvorbisenc2:arm64. 144s Preparing to unpack .../384-libvorbisenc2_1.3.7-1build2_arm64.deb ... 144s Unpacking libvorbisenc2:arm64 (1.3.7-1build2) ... 144s Selecting previously unselected package libsndfile1:arm64. 144s Preparing to unpack .../385-libsndfile1_1.2.2-1ubuntu3_arm64.deb ... 144s Unpacking libsndfile1:arm64 (1.2.2-1ubuntu3) ... 144s Selecting previously unselected package libspqr4:arm64. 144s Preparing to unpack .../386-libspqr4_1%3a7.6.1+dfsg-1_arm64.deb ... 144s Unpacking libspqr4:arm64 (1:7.6.1+dfsg-1) ... 144s Selecting previously unselected package libsundials-ida6:arm64. 144s Preparing to unpack .../387-libsundials-ida6_6.4.1+dfsg1-3build3_arm64.deb ... 144s Unpacking libsundials-ida6:arm64 (6.4.1+dfsg1-3build3) ... 144s Selecting previously unselected package libbtf2:arm64. 144s Preparing to unpack .../388-libbtf2_1%3a7.6.1+dfsg-1_arm64.deb ... 144s Unpacking libbtf2:arm64 (1:7.6.1+dfsg-1) ... 144s Selecting previously unselected package libklu2:arm64. 144s Preparing to unpack .../389-libklu2_1%3a7.6.1+dfsg-1_arm64.deb ... 144s Unpacking libklu2:arm64 (1:7.6.1+dfsg-1) ... 144s Selecting previously unselected package libfftw3-long3:arm64. 144s Preparing to unpack .../390-libfftw3-long3_3.3.10-1ubuntu2_arm64.deb ... 144s Unpacking libfftw3-long3:arm64 (3.3.10-1ubuntu2) ... 145s Preparing to unpack .../391-libevent-core-2.1-7_2.1.12-stable-9build1_arm64.deb ... 145s Unpacking libevent-core-2.1-7:arm64 (2.1.12-stable-9build1) over (2.1.12-stable-9) ... 145s Selecting previously unselected package libevent-pthreads-2.1-7:arm64. 145s Preparing to unpack .../392-libevent-pthreads-2.1-7_2.1.12-stable-9build1_arm64.deb ... 145s Unpacking libevent-pthreads-2.1-7:arm64 (2.1.12-stable-9build1) ... 145s Preparing to unpack .../393-libibverbs1_50.0-2build1_arm64.deb ... 145s Unpacking libibverbs1:arm64 (50.0-2build1) over (50.0-2) ... 145s Preparing to unpack .../394-ibverbs-providers_50.0-2build1_arm64.deb ... 145s Unpacking ibverbs-providers:arm64 (50.0-2build1) over (50.0-2) ... 145s Selecting previously unselected package librdmacm1t64:arm64. 145s Preparing to unpack .../395-librdmacm1t64_50.0-2build1_arm64.deb ... 145s Unpacking librdmacm1t64:arm64 (50.0-2build1) ... 145s Selecting previously unselected package libfabric1:arm64. 145s Preparing to unpack .../396-libfabric1_1.17.0-3build1_arm64.deb ... 145s Unpacking libfabric1:arm64 (1.17.0-3build1) ... 145s Selecting previously unselected package libhwloc15:arm64. 145s Preparing to unpack .../397-libhwloc15_2.10.0-1_arm64.deb ... 145s Unpacking libhwloc15:arm64 (2.10.0-1) ... 145s Selecting previously unselected package libmunge2:arm64. 145s Preparing to unpack .../398-libmunge2_0.5.15-4_arm64.deb ... 145s Unpacking libmunge2:arm64 (0.5.15-4) ... 145s Selecting previously unselected package libpciaccess0:arm64. 145s Preparing to unpack .../399-libpciaccess0_0.17-3_arm64.deb ... 145s Unpacking libpciaccess0:arm64 (0.17-3) ... 145s Selecting previously unselected package libxnvctrl0:arm64. 145s Preparing to unpack .../400-libxnvctrl0_510.47.03-0ubuntu1_arm64.deb ... 145s Unpacking libxnvctrl0:arm64 (510.47.03-0ubuntu1) ... 145s Selecting previously unselected package ocl-icd-libopencl1:arm64. 145s Preparing to unpack .../401-ocl-icd-libopencl1_2.3.2-1_arm64.deb ... 145s Unpacking ocl-icd-libopencl1:arm64 (2.3.2-1) ... 145s Selecting previously unselected package libhwloc-plugins:arm64. 145s Preparing to unpack .../402-libhwloc-plugins_2.10.0-1_arm64.deb ... 145s Unpacking libhwloc-plugins:arm64 (2.10.0-1) ... 145s Selecting previously unselected package libpmix2t64:arm64. 145s Preparing to unpack .../403-libpmix2t64_5.0.1-4.1_arm64.deb ... 145s Unpacking libpmix2t64:arm64 (5.0.1-4.1) ... 145s Selecting previously unselected package libamd-comgr2:arm64. 145s Preparing to unpack .../404-libamd-comgr2_6.0+git20231212.4510c28+dfsg-3build1_arm64.deb ... 145s Unpacking libamd-comgr2:arm64 (6.0+git20231212.4510c28+dfsg-3build1) ... 145s Selecting previously unselected package libhsakmt1:arm64. 145s Preparing to unpack .../405-libhsakmt1_5.7.0-1_arm64.deb ... 145s Unpacking libhsakmt1:arm64 (5.7.0-1) ... 145s Selecting previously unselected package libhsa-runtime64-1. 145s Preparing to unpack .../406-libhsa-runtime64-1_5.7.1-1build1_arm64.deb ... 145s Unpacking libhsa-runtime64-1 (5.7.1-1build1) ... 146s Selecting previously unselected package libamdhip64-5. 146s Preparing to unpack .../407-libamdhip64-5_5.2.3-12_arm64.deb ... 146s Unpacking libamdhip64-5 (5.2.3-12) ... 146s Selecting previously unselected package libucx0:arm64. 146s Preparing to unpack .../408-libucx0_1.16.0+ds-4_arm64.deb ... 146s Unpacking libucx0:arm64 (1.16.0+ds-4) ... 146s Selecting previously unselected package libopenmpi3t64:arm64. 146s Preparing to unpack .../409-libopenmpi3t64_4.1.6-7ubuntu1_arm64.deb ... 146s Unpacking libopenmpi3t64:arm64 (4.1.6-7ubuntu1) ... 146s Selecting previously unselected package libfftw3-mpi3:arm64. 146s Preparing to unpack .../410-libfftw3-mpi3_3.3.10-1ubuntu2_arm64.deb ... 146s Unpacking libfftw3-mpi3:arm64 (3.3.10-1ubuntu2) ... 146s Selecting previously unselected package libhdf5-openmpi-103-1t64:arm64. 146s Preparing to unpack .../411-libhdf5-openmpi-103-1t64_1.10.10+repack-3.1ubuntu3_arm64.deb ... 146s Unpacking libhdf5-openmpi-103-1t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 146s Selecting previously unselected package libcombblas2.0.0t64:arm64. 146s Preparing to unpack .../412-libcombblas2.0.0t64_2.0.0-3.1build1_arm64.deb ... 146s Unpacking libcombblas2.0.0t64:arm64 (2.0.0-3.1build1) ... 146s Selecting previously unselected package libmetis5:arm64. 146s Preparing to unpack .../413-libmetis5_5.1.0.dfsg-7build2_arm64.deb ... 146s Unpacking libmetis5:arm64 (5.1.0.dfsg-7build2) ... 146s Selecting previously unselected package libptscotch-7.0:arm64. 146s Preparing to unpack .../414-libptscotch-7.0_7.0.4-1ubuntu1_arm64.deb ... 146s Unpacking libptscotch-7.0:arm64 (7.0.4-1ubuntu1) ... 146s Selecting previously unselected package libsuperlu-dist8:arm64. 146s Preparing to unpack .../415-libsuperlu-dist8_8.2.1+dfsg1-1build1_arm64.deb ... 146s Unpacking libsuperlu-dist8:arm64 (8.2.1+dfsg1-1build1) ... 146s Selecting previously unselected package libhypre-2.28.0:arm64. 146s Preparing to unpack .../416-libhypre-2.28.0_2.28.0-8build1_arm64.deb ... 146s Unpacking libhypre-2.28.0:arm64 (2.28.0-8build1) ... 146s Selecting previously unselected package openmpi-common. 146s Preparing to unpack .../417-openmpi-common_4.1.6-7ubuntu1_all.deb ... 146s Unpacking openmpi-common (4.1.6-7ubuntu1) ... 146s Selecting previously unselected package openmpi-bin. 146s Preparing to unpack .../418-openmpi-bin_4.1.6-7ubuntu1_arm64.deb ... 146s Unpacking openmpi-bin (4.1.6-7ubuntu1) ... 146s Selecting previously unselected package mpi-default-bin. 146s Preparing to unpack .../419-mpi-default-bin_1.15_arm64.deb ... 146s Unpacking mpi-default-bin (1.15) ... 146s Selecting previously unselected package libscalapack-openmpi2.2:arm64. 146s Preparing to unpack .../420-libscalapack-openmpi2.2_2.2.1-3build1_arm64.deb ... 146s Unpacking libscalapack-openmpi2.2:arm64 (2.2.1-3build1) ... 146s Selecting previously unselected package libmumps-5.6t64:arm64. 147s Preparing to unpack .../421-libmumps-5.6t64_5.6.2-2.1build1_arm64.deb ... 147s Unpacking libmumps-5.6t64:arm64 (5.6.2-2.1build1) ... 147s Selecting previously unselected package libsuperlu6:arm64. 147s Preparing to unpack .../422-libsuperlu6_6.0.1+dfsg1-1_arm64.deb ... 147s Unpacking libsuperlu6:arm64 (6.0.1+dfsg1-1) ... 147s Selecting previously unselected package libscotch-7.0:arm64. 147s Preparing to unpack .../423-libscotch-7.0_7.0.4-1ubuntu1_arm64.deb ... 147s Unpacking libscotch-7.0:arm64 (7.0.4-1ubuntu1) ... 147s Selecting previously unselected package libtrilinos-kokkos-13.2:arm64. 147s Preparing to unpack .../424-libtrilinos-kokkos-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-kokkos-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libtrilinos-teuchos-13.2:arm64. 147s Preparing to unpack .../425-libtrilinos-teuchos-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-teuchos-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libtrilinos-epetra-13.2:arm64. 147s Preparing to unpack .../426-libtrilinos-epetra-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-epetra-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libtrilinos-triutils-13.2:arm64. 147s Preparing to unpack .../427-libtrilinos-triutils-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-triutils-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libtrilinos-epetraext-13.2:arm64. 147s Preparing to unpack .../428-libtrilinos-epetraext-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-epetraext-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libtrilinos-trilinosss-13.2:arm64. 147s Preparing to unpack .../429-libtrilinos-trilinosss-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-trilinosss-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libtrilinos-amesos-13.2:arm64. 147s Preparing to unpack .../430-libtrilinos-amesos-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-amesos-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libtrilinos-aztecoo-13.2:arm64. 147s Preparing to unpack .../431-libtrilinos-aztecoo-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-aztecoo-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libtrilinos-galeri-13.2:arm64. 147s Preparing to unpack .../432-libtrilinos-galeri-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-galeri-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libtrilinos-ifpack-13.2:arm64. 147s Preparing to unpack .../433-libtrilinos-ifpack-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-ifpack-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libtrilinos-zoltan-13.2:arm64. 147s Preparing to unpack .../434-libtrilinos-zoltan-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-zoltan-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libtrilinos-ml-13.2:arm64. 147s Preparing to unpack .../435-libtrilinos-ml-13.2_13.2.0-5build1_arm64.deb ... 147s Unpacking libtrilinos-ml-13.2:arm64 (13.2.0-5build1) ... 147s Selecting previously unselected package libumfpack6:arm64. 147s Preparing to unpack .../436-libumfpack6_1%3a7.6.1+dfsg-1_arm64.deb ... 147s Unpacking libumfpack6:arm64 (1:7.6.1+dfsg-1) ... 147s Selecting previously unselected package libpetsc-real3.19t64:arm64. 147s Preparing to unpack .../437-libpetsc-real3.19t64_3.19.6+dfsg1-2.2ubuntu1_arm64.deb ... 147s Unpacking libpetsc-real3.19t64:arm64 (3.19.6+dfsg1-2.2ubuntu1) ... 147s Selecting previously unselected package libsundials-nvecparallel-petsc6:arm64. 147s Preparing to unpack .../438-libsundials-nvecparallel-petsc6_6.4.1+dfsg1-3build3_arm64.deb ... 147s Unpacking libsundials-nvecparallel-petsc6:arm64 (6.4.1+dfsg1-3build3) ... 147s Selecting previously unselected package libsundials-sunmatrix4:arm64. 147s Preparing to unpack .../439-libsundials-sunmatrix4_6.4.1+dfsg1-3build3_arm64.deb ... 147s Unpacking libsundials-sunmatrix4:arm64 (6.4.1+dfsg1-3build3) ... 148s Selecting previously unselected package libsundials-sunlinsol3:arm64. 148s Preparing to unpack .../440-libsundials-sunlinsol3_6.4.1+dfsg1-3build3_arm64.deb ... 148s Unpacking libsundials-sunlinsol3:arm64 (6.4.1+dfsg1-3build3) ... 148s Selecting previously unselected package libtext-unidecode-perl. 148s Preparing to unpack .../441-libtext-unidecode-perl_1.30-3_all.deb ... 148s Unpacking libtext-unidecode-perl (1.30-3) ... 148s Selecting previously unselected package texinfo-lib. 148s Preparing to unpack .../442-texinfo-lib_7.1-3build1_arm64.deb ... 148s Unpacking texinfo-lib (7.1-3build1) ... 148s Selecting previously unselected package tex-common. 148s Preparing to unpack .../443-tex-common_6.18_all.deb ... 148s Unpacking tex-common (6.18) ... 148s Selecting previously unselected package texinfo. 148s Preparing to unpack .../444-texinfo_7.1-3build1_all.deb ... 148s Unpacking texinfo (7.1-3build1) ... 148s Selecting previously unselected package octave-common. 148s Preparing to unpack .../445-octave-common_8.4.0-1build4_all.deb ... 148s Unpacking octave-common (8.4.0-1build4) ... 148s Selecting previously unselected package octave. 148s Preparing to unpack .../446-octave_8.4.0-1build4_arm64.deb ... 148s Unpacking octave (8.4.0-1build4) ... 149s Selecting previously unselected package libncurses-dev:arm64. 149s Preparing to unpack .../447-libncurses-dev_6.4+20240113-1ubuntu1_arm64.deb ... 149s Unpacking libncurses-dev:arm64 (6.4+20240113-1ubuntu1) ... 149s Selecting previously unselected package libreadline-dev:arm64. 149s Preparing to unpack .../448-libreadline-dev_8.2-3.1_arm64.deb ... 149s Unpacking libreadline-dev:arm64 (8.2-3.1) ... 149s Selecting previously unselected package libhdf5-fortran-102t64:arm64. 149s Preparing to unpack .../449-libhdf5-fortran-102t64_1.10.10+repack-3.1ubuntu3_arm64.deb ... 149s Unpacking libhdf5-fortran-102t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 149s Selecting previously unselected package libhdf5-hl-100t64:arm64. 149s Preparing to unpack .../450-libhdf5-hl-100t64_1.10.10+repack-3.1ubuntu3_arm64.deb ... 149s Unpacking libhdf5-hl-100t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 149s Selecting previously unselected package libhdf5-hl-fortran-100t64:arm64. 149s Preparing to unpack .../451-libhdf5-hl-fortran-100t64_1.10.10+repack-3.1ubuntu3_arm64.deb ... 149s Unpacking libhdf5-hl-fortran-100t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 149s Selecting previously unselected package libhdf5-cpp-103-1t64:arm64. 149s Preparing to unpack .../452-libhdf5-cpp-103-1t64_1.10.10+repack-3.1ubuntu3_arm64.deb ... 149s Unpacking libhdf5-cpp-103-1t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 149s Selecting previously unselected package libhdf5-hl-cpp-100t64:arm64. 149s Preparing to unpack .../453-libhdf5-hl-cpp-100t64_1.10.10+repack-3.1ubuntu3_arm64.deb ... 149s Unpacking libhdf5-hl-cpp-100t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 149s Selecting previously unselected package zlib1g-dev:arm64. 149s Preparing to unpack .../454-zlib1g-dev_1%3a1.3.dfsg-3.1ubuntu1_arm64.deb ... 149s Unpacking zlib1g-dev:arm64 (1:1.3.dfsg-3.1ubuntu1) ... 149s Selecting previously unselected package libjpeg-turbo8-dev:arm64. 149s Preparing to unpack .../455-libjpeg-turbo8-dev_2.1.5-2ubuntu1_arm64.deb ... 149s Unpacking libjpeg-turbo8-dev:arm64 (2.1.5-2ubuntu1) ... 149s Selecting previously unselected package libjpeg8-dev:arm64. 149s Preparing to unpack .../456-libjpeg8-dev_8c-2ubuntu11_arm64.deb ... 149s Unpacking libjpeg8-dev:arm64 (8c-2ubuntu11) ... 149s Selecting previously unselected package libjpeg-dev:arm64. 149s Preparing to unpack .../457-libjpeg-dev_8c-2ubuntu11_arm64.deb ... 149s Unpacking libjpeg-dev:arm64 (8c-2ubuntu11) ... 149s Selecting previously unselected package libaec-dev:arm64. 149s Preparing to unpack .../458-libaec-dev_1.1.2-1_arm64.deb ... 149s Unpacking libaec-dev:arm64 (1.1.2-1) ... 149s Selecting previously unselected package libcurl4-openssl-dev:arm64. 149s Preparing to unpack .../459-libcurl4-openssl-dev_8.5.0-2ubuntu7_arm64.deb ... 149s Unpacking libcurl4-openssl-dev:arm64 (8.5.0-2ubuntu7) ... 149s Selecting previously unselected package libssl-dev:arm64. 149s Preparing to unpack .../460-libssl-dev_3.0.13-0ubuntu2_arm64.deb ... 149s Unpacking libssl-dev:arm64 (3.0.13-0ubuntu2) ... 149s Selecting previously unselected package hdf5-helpers. 149s Preparing to unpack .../461-hdf5-helpers_1.10.10+repack-3.1ubuntu3_arm64.deb ... 149s Unpacking hdf5-helpers (1.10.10+repack-3.1ubuntu3) ... 149s Selecting previously unselected package libhdf5-dev. 149s Preparing to unpack .../462-libhdf5-dev_1.10.10+repack-3.1ubuntu3_arm64.deb ... 149s Unpacking libhdf5-dev (1.10.10+repack-3.1ubuntu3) ... 149s Selecting previously unselected package xorg-sgml-doctools. 149s Preparing to unpack .../463-xorg-sgml-doctools_1%3a1.11-1.1_all.deb ... 149s Unpacking xorg-sgml-doctools (1:1.11-1.1) ... 149s Selecting previously unselected package x11proto-dev. 149s Preparing to unpack .../464-x11proto-dev_2023.2-1_all.deb ... 149s Unpacking x11proto-dev (2023.2-1) ... 150s Selecting previously unselected package libxau-dev:arm64. 150s Preparing to unpack .../465-libxau-dev_1%3a1.0.9-1build5_arm64.deb ... 150s Unpacking libxau-dev:arm64 (1:1.0.9-1build5) ... 150s Selecting previously unselected package libxdmcp-dev:arm64. 150s Preparing to unpack .../466-libxdmcp-dev_1%3a1.1.3-0ubuntu5_arm64.deb ... 150s Unpacking libxdmcp-dev:arm64 (1:1.1.3-0ubuntu5) ... 150s Selecting previously unselected package xtrans-dev. 150s Preparing to unpack .../467-xtrans-dev_1.4.0-1_all.deb ... 150s Unpacking xtrans-dev (1.4.0-1) ... 150s Selecting previously unselected package libpthread-stubs0-dev:arm64. 150s Preparing to unpack .../468-libpthread-stubs0-dev_0.4-1build2_arm64.deb ... 150s Unpacking libpthread-stubs0-dev:arm64 (0.4-1build2) ... 150s Selecting previously unselected package libxcb1-dev:arm64. 150s Preparing to unpack .../469-libxcb1-dev_1.15-1_arm64.deb ... 150s Unpacking libxcb1-dev:arm64 (1.15-1) ... 150s Selecting previously unselected package libx11-dev:arm64. 150s Preparing to unpack .../470-libx11-dev_2%3a1.8.7-1_arm64.deb ... 150s Unpacking libx11-dev:arm64 (2:1.8.7-1) ... 150s Selecting previously unselected package libglx-dev:arm64. 150s Preparing to unpack .../471-libglx-dev_1.7.0-1_arm64.deb ... 150s Unpacking libglx-dev:arm64 (1.7.0-1) ... 150s Selecting previously unselected package libgl-dev:arm64. 150s Preparing to unpack .../472-libgl-dev_1.7.0-1_arm64.deb ... 150s Unpacking libgl-dev:arm64 (1.7.0-1) ... 150s Selecting previously unselected package libblas-dev:arm64. 150s Preparing to unpack .../473-libblas-dev_3.12.0-3_arm64.deb ... 150s Unpacking libblas-dev:arm64 (3.12.0-3) ... 150s Selecting previously unselected package liblapack-dev:arm64. 150s Preparing to unpack .../474-liblapack-dev_3.12.0-3_arm64.deb ... 150s Unpacking liblapack-dev:arm64 (3.12.0-3) ... 151s Selecting previously unselected package libfftw3-bin. 151s Preparing to unpack .../475-libfftw3-bin_3.3.10-1ubuntu2_arm64.deb ... 151s Unpacking libfftw3-bin (3.3.10-1ubuntu2) ... 151s Selecting previously unselected package libfftw3-dev:arm64. 151s Preparing to unpack .../476-libfftw3-dev_3.3.10-1ubuntu2_arm64.deb ... 151s Unpacking libfftw3-dev:arm64 (3.3.10-1ubuntu2) ... 151s Selecting previously unselected package libgfortran-13-dev:arm64. 151s Preparing to unpack .../477-libgfortran-13-dev_13.2.0-19ubuntu1_arm64.deb ... 151s Unpacking libgfortran-13-dev:arm64 (13.2.0-19ubuntu1) ... 151s Selecting previously unselected package gfortran-13-aarch64-linux-gnu. 151s Preparing to unpack .../478-gfortran-13-aarch64-linux-gnu_13.2.0-19ubuntu1_arm64.deb ... 151s Unpacking gfortran-13-aarch64-linux-gnu (13.2.0-19ubuntu1) ... 151s Selecting previously unselected package gfortran-13. 151s Preparing to unpack .../479-gfortran-13_13.2.0-19ubuntu1_arm64.deb ... 151s Unpacking gfortran-13 (13.2.0-19ubuntu1) ... 151s Selecting previously unselected package gfortran-aarch64-linux-gnu. 151s Preparing to unpack .../480-gfortran-aarch64-linux-gnu_4%3a13.2.0-7ubuntu1_arm64.deb ... 151s Unpacking gfortran-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 151s Selecting previously unselected package gfortran. 151s Preparing to unpack .../481-gfortran_4%3a13.2.0-7ubuntu1_arm64.deb ... 151s Unpacking gfortran (4:13.2.0-7ubuntu1) ... 151s Selecting previously unselected package libstdc++-13-dev:arm64. 151s Preparing to unpack .../482-libstdc++-13-dev_13.2.0-19ubuntu1_arm64.deb ... 151s Unpacking libstdc++-13-dev:arm64 (13.2.0-19ubuntu1) ... 152s Selecting previously unselected package g++-13-aarch64-linux-gnu. 152s Preparing to unpack .../483-g++-13-aarch64-linux-gnu_13.2.0-19ubuntu1_arm64.deb ... 152s Unpacking g++-13-aarch64-linux-gnu (13.2.0-19ubuntu1) ... 152s Selecting previously unselected package g++-13. 152s Preparing to unpack .../484-g++-13_13.2.0-19ubuntu1_arm64.deb ... 152s Unpacking g++-13 (13.2.0-19ubuntu1) ... 152s Selecting previously unselected package g++-aarch64-linux-gnu. 152s Preparing to unpack .../485-g++-aarch64-linux-gnu_4%3a13.2.0-7ubuntu1_arm64.deb ... 152s Unpacking g++-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 152s Selecting previously unselected package g++. 152s Preparing to unpack .../486-g++_4%3a13.2.0-7ubuntu1_arm64.deb ... 152s Unpacking g++ (4:13.2.0-7ubuntu1) ... 152s Selecting previously unselected package octave-dev. 152s Preparing to unpack .../487-octave-dev_8.4.0-1build4_arm64.deb ... 152s Unpacking octave-dev (8.4.0-1build4) ... 152s Selecting previously unselected package dh-octave. 152s Preparing to unpack .../488-dh-octave_1.8.0_all.deb ... 152s Unpacking dh-octave (1.8.0) ... 152s Selecting previously unselected package libfontenc1:arm64. 152s Preparing to unpack .../489-libfontenc1_1%3a1.1.8-1_arm64.deb ... 152s Unpacking libfontenc1:arm64 (1:1.1.8-1) ... 152s Selecting previously unselected package libunwind8:arm64. 153s Preparing to unpack .../490-libunwind8_1.6.2-3_arm64.deb ... 153s Unpacking libunwind8:arm64 (1.6.2-3) ... 153s Selecting previously unselected package libxt6t64:arm64. 153s Preparing to unpack .../491-libxt6t64_1%3a1.2.1-1.2_arm64.deb ... 153s Unpacking libxt6t64:arm64 (1:1.2.1-1.2) ... 153s Selecting previously unselected package libxmu6:arm64. 153s Preparing to unpack .../492-libxmu6_2%3a1.1.3-3build1_arm64.deb ... 153s Unpacking libxmu6:arm64 (2:1.1.3-3build1) ... 153s Selecting previously unselected package libxaw7:arm64. 153s Preparing to unpack .../493-libxaw7_2%3a1.0.14-1build1_arm64.deb ... 153s Unpacking libxaw7:arm64 (2:1.0.14-1build1) ... 153s Selecting previously unselected package libxfont2:arm64. 153s Preparing to unpack .../494-libxfont2_1%3a2.0.6-1_arm64.deb ... 153s Unpacking libxfont2:arm64 (1:2.0.6-1) ... 153s Selecting previously unselected package libxkbfile1:arm64. 153s Preparing to unpack .../495-libxkbfile1_1%3a1.1.0-1build3_arm64.deb ... 153s Unpacking libxkbfile1:arm64 (1:1.1.0-1build3) ... 153s Selecting previously unselected package libxrandr2:arm64. 153s Preparing to unpack .../496-libxrandr2_2%3a1.5.2-2_arm64.deb ... 153s Unpacking libxrandr2:arm64 (2:1.5.2-2) ... 153s Selecting previously unselected package octave-image:arm64. 153s Preparing to unpack .../497-octave-image_2.14.0-5_arm64.deb ... 153s Unpacking octave-image:arm64 (2.14.0-5) ... 153s Selecting previously unselected package x11-xkb-utils. 153s Preparing to unpack .../498-x11-xkb-utils_7.7+8build1_arm64.deb ... 153s Unpacking x11-xkb-utils (7.7+8build1) ... 153s Selecting previously unselected package xserver-common. 153s Preparing to unpack .../499-xserver-common_2%3a21.1.11-2ubuntu1_all.deb ... 153s Unpacking xserver-common (2:21.1.11-2ubuntu1) ... 153s Selecting previously unselected package xvfb. 153s Preparing to unpack .../500-xvfb_2%3a21.1.11-2ubuntu1_arm64.deb ... 153s Unpacking xvfb (2:21.1.11-2ubuntu1) ... 153s Selecting previously unselected package autopkgtest-satdep. 153s Preparing to unpack .../501-1-autopkgtest-satdep.deb ... 153s Unpacking autopkgtest-satdep (0) ... 154s Setting up libhwy1t64:arm64 (1.0.7-8.1) ... 154s Setting up libgraphite2-3:arm64 (1.3.14-2) ... 154s Setting up libxcb-dri3-0:arm64 (1.15-1) ... 154s Setting up liblcms2-2:arm64 (2.14-2) ... 154s Setting up libpixman-1-0:arm64 (0.42.2-1) ... 154s Setting up libsharpyuv0:arm64 (1.3.2-0.4build2) ... 154s Setting up libwayland-server0:arm64 (1.22.0-2.1) ... 154s Setting up libx11-xcb1:arm64 (2:1.8.7-1) ... 154s Setting up libpciaccess0:arm64 (0.17-3) ... 154s Setting up libibverbs1:arm64 (50.0-2build1) ... 154s Setting up libdouble-conversion3:arm64 (3.3.0-1) ... 154s Setting up libdrm-nouveau2:arm64 (2.4.120-2) ... 154s Setting up libmpg123-0:arm64 (1.32.5-1build1) ... 154s Setting up libxcb-xfixes0:arm64 (1.15-1) ... 154s Setting up libogg0:arm64 (1.3.5-3) ... 154s Setting up liblerc4:arm64 (4.0.0+ds-4ubuntu1) ... 154s Setting up libgdbm6t64:arm64 (1.23-5.1) ... 154s Setting up libxpm4:arm64 (1:3.5.17-1build1) ... 154s Setting up hdf5-helpers (1.10.10+repack-3.1ubuntu3) ... 154s Setting up libwmflite-0.2-7:arm64 (0.2.13-1.1build2) ... 154s Setting up libxcb-xinput0:arm64 (1.15-1) ... 154s Setting up libxrender1:arm64 (1:0.9.10-1.1) ... 154s Setting up libdatrie1:arm64 (0.2.13-3) ... 154s Setting up libtext-glob-perl (0.11-3) ... 154s Setting up libgdbm-compat4t64:arm64 (1.23-5.1) ... 154s Setting up ibverbs-providers:arm64 (50.0-2build1) ... 154s Setting up libxcb-render0:arm64 (1.15-1) ... 154s Setting up libssl3t64:arm64 (3.0.13-0ubuntu2) ... 154s Setting up libdrm-radeon1:arm64 (2.4.120-2) ... 154s Setting up libglvnd0:arm64 (1.7.0-1) ... 154s Setting up libscotch-7.0:arm64 (7.0.4-1ubuntu1) ... 154s Setting up libqscintilla2-qt5-l10n (2.14.1+dfsg-1build2) ... 154s Setting up libxcb-glx0:arm64 (1.15-1) ... 154s Setting up unzip (6.0-28ubuntu3) ... 154s Setting up fonts-freefont-otf (20211204+svn4273-2) ... 154s Setting up libxcb-keysyms1:arm64 (0.4.0-1build3) ... 154s Setting up libxcb-shape0:arm64 (1.15-1) ... 154s Setting up x11-common (1:7.7+23ubuntu2) ... 154s Setting up libcxsparse4:arm64 (1:7.6.1+dfsg-1) ... 154s Setting up libpsl5t64:arm64 (0.21.2-1.1) ... 154s Setting up libdeflate0:arm64 (1.19-1) ... 154s Setting up libcurl3t64-gnutls:arm64 (8.5.0-2ubuntu7) ... 154s Setting up perl-openssl-defaults:arm64 (7build1) ... 154s Setting up linux-libc-dev:arm64 (6.8.0-20.20) ... 154s Setting up m4 (1.4.19-4) ... 154s Setting up libqhull-r8.0:arm64 (2020.2-6) ... 154s Setting up libxcb-render-util0:arm64 (0.3.9-1build3) ... 154s Setting up libtrilinos-kokkos-13.2:arm64 (13.2.0-5build1) ... 154s Setting up libmetis5:arm64 (5.1.0.dfsg-7build2) ... 154s Setting up libxcb-shm0:arm64 (1.15-1) ... 154s Setting up libxcb-icccm4:arm64 (0.4.1-1.1build2) ... 154s Setting up libgomp1:arm64 (14-20240315-1ubuntu1) ... 154s Setting up locales (2.39-0ubuntu6) ... 155s Generating locales (this might take a while)... 157s en_US.UTF-8... done 157s Generation complete. 157s Setting up libunwind8:arm64 (1.6.2-3) ... 157s Setting up libpthread-stubs0-dev:arm64 (0.4-1build2) ... 157s Setting up libjbig0:arm64 (2.1-6.1ubuntu1) ... 157s Setting up octave-common (8.4.0-1build4) ... 157s Setting up libpcre2-16-0:arm64 (10.42-4ubuntu1) ... 157s Setting up libaec0:arm64 (1.1.2-1) ... 157s Setting up libopengl0:arm64 (1.7.0-1) ... 157s Setting up libelf1t64:arm64 (0.190-1.1build2) ... 157s Setting up libxcb-util1:arm64 (0.4.0-1build2) ... 157s Setting up libxxf86vm1:arm64 (1:1.1.4-1build3) ... 157s Setting up libxcb-xkb1:arm64 (1.15-1) ... 157s Setting up libxcb-image0:arm64 (0.4.0-2) ... 157s Setting up libnumber-compare-perl (0.03-3) ... 157s Setting up libdw1t64:arm64 (0.190-1.1build2) ... 157s Setting up libxnvctrl0:arm64 (510.47.03-0ubuntu1) ... 157s Setting up libxcb-present0:arm64 (1.15-1) ... 157s Setting up libtrilinos-trilinosss-13.2:arm64 (13.2.0-5build1) ... 157s Setting up libasound2-data (1.2.11-1build1) ... 157s Setting up tex-common (6.18) ... 157s update-language: texlive-base not installed and configured, doing nothing! 157s Setting up libbtf2:arm64 (1:7.6.1+dfsg-1) ... 157s Setting up xtrans-dev (1.4.0-1) ... 157s Setting up libfontenc1:arm64 (1:1.1.8-1) ... 157s Setting up autotools-dev (20220109.1) ... 157s Setting up libglib2.0-0t64:arm64 (2.79.3-3ubuntu5) ... 157s No schema files found: doing nothing. 157s Setting up libblas3:arm64 (3.12.0-3) ... 157s update-alternatives: using /usr/lib/aarch64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/aarch64-linux-gnu/libblas.so.3 (libblas.so.3-aarch64-linux-gnu) in auto mode 157s Setting up libglib2.0-data (2.79.3-3ubuntu5) ... 157s Setting up libxcb-xinerama0:arm64 (1.15-1) ... 157s Setting up rpcsvc-proto (1.4.2-0ubuntu6) ... 157s Setting up libasound2t64:arm64 (1.2.11-1build1) ... 157s Setting up gcc-13-base:arm64 (13.2.0-19ubuntu1) ... 157s Setting up libmunge2:arm64 (0.5.15-4) ... 157s Setting up libllvm17t64:arm64 (1:17.0.6-9build1) ... 157s Setting up libxfixes3:arm64 (1:6.0.0-2) ... 157s Setting up libxcb-sync1:arm64 (1.15-1) ... 157s Setting up aglfn (1.7+git20191031.4036a9c-2) ... 157s Setting up lzip (1.24.1-1) ... 157s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip (lzip) in auto mode 157s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-compressor (lzip-compressor) in auto mode 157s update-alternatives: using /usr/bin/lzip.lzip to provide /usr/bin/lzip-decompressor (lzip-decompressor) in auto mode 157s Setting up libavahi-common-data:arm64 (0.8-13ubuntu4) ... 157s Setting up perl-modules-5.38 (5.38.2-3.2) ... 157s Setting up libopus0:arm64 (1.4-1) ... 157s Setting up t1utils (1.41-4build2) ... 157s Setting up libxinerama1:arm64 (2:1.1.4-3) ... 157s Setting up diffstat (1.66-1) ... 157s Setting up libxkbcommon-x11-0:arm64 (1.6.0-1) ... 157s Setting up fonts-dejavu-mono (2.37-8) ... 157s Setting up libssl-dev:arm64 (3.0.13-0ubuntu2) ... 157s Setting up libpng16-16t64:arm64 (1.6.43-3) ... 157s Setting up libhwloc15:arm64 (2.10.0-1) ... 157s Setting up libmpc3:arm64 (1.3.1-1) ... 157s Setting up libevent-core-2.1-7:arm64 (2.1.12-stable-9build1) ... 157s Setting up libatomic1:arm64 (14-20240315-1ubuntu1) ... 157s Setting up libvorbis0a:arm64 (1.3.7-1build2) ... 157s Setting up libxrandr2:arm64 (2:1.5.2-2) ... 157s Setting up autopoint (0.21-14ubuntu1) ... 157s Setting up fonts-dejavu-core (2.37-8) ... 157s Setting up gir1.2-glib-2.0:arm64 (2.79.3-3ubuntu5) ... 157s Setting up libjxl0.7:arm64 (0.7.0-10.2ubuntu3) ... 157s Setting up libjpeg-turbo8:arm64 (2.1.5-2ubuntu1) ... 157s Setting up libltdl7:arm64 (2.4.7-7) ... 157s Setting up libfftw3-double3:arm64 (3.3.10-1ubuntu2) ... 157s Setting up libglapi-mesa:arm64 (24.0.2-1ubuntu8) ... 157s Setting up libgfortran5:arm64 (14-20240315-1ubuntu1) ... 157s Setting up libvulkan1:arm64 (1.3.275.0-1) ... 157s Setting up libwebp7:arm64 (1.3.2-0.4build2) ... 157s Setting up libdb5.3t64:arm64 (5.3.28+dfsg2-5build1) ... 157s Setting up libubsan1:arm64 (14-20240315-1ubuntu1) ... 157s Setting up libxcb-dri2-0:arm64 (1.15-1) ... 157s Setting up dwz (0.15-1build5) ... 157s Setting up libdav1d7:arm64 (1.4.0-1) ... 157s Setting up libmtdev1t64:arm64 (1.1.6-1.1) ... 157s Setting up ocl-icd-libopencl1:arm64 (2.3.2-1) ... 157s Setting up libxshmfence1:arm64 (1.3-1build4) ... 157s Setting up libhwasan0:arm64 (14-20240315-1ubuntu1) ... 157s Setting up libcrypt-dev:arm64 (1:4.4.36-4) ... 157s Setting up libxcb-randr0:arm64 (1.15-1) ... 157s Setting up libasan8:arm64 (14-20240315-1ubuntu1) ... 157s Setting up lzop (1.04-2build2) ... 157s Setting up openmpi-common (4.1.6-7ubuntu1) ... 157s Setting up debugedit (1:5.0-5build1) ... 157s Setting up libmd4c0:arm64 (0.4.8-1) ... 157s Setting up libsuitesparseconfig7:arm64 (1:7.6.1+dfsg-1) ... 157s Setting up librdmacm1t64:arm64 (50.0-2build1) ... 157s Setting up liblua5.4-0:arm64 (5.4.6-3build1) ... 157s Setting up libharfbuzz0b:arm64 (8.3.0-2build1) ... 157s Setting up libthai-data (0.1.29-2) ... 157s Setting up xorg-sgml-doctools (1:1.11-1.1) ... 157s Setting up libglu1-mesa:arm64 (9.0.2-1.1) ... 157s Setting up libamd-comgr2:arm64 (6.0+git20231212.4510c28+dfsg-3build1) ... 157s Setting up libflac12t64:arm64 (1.4.3+ds-2.1ubuntu1) ... 157s Setting up libperl5.38t64:arm64 (5.38.2-3.2) ... 157s Setting up libxkbfile1:arm64 (1:1.1.0-1build3) ... 157s Setting up libtsan2:arm64 (14-20240315-1ubuntu1) ... 157s Setting up libisl23:arm64 (0.26-3) ... 157s Setting up libde265-0:arm64 (1.0.15-1build1) ... 157s Setting up libc-dev-bin (2.39-0ubuntu6) ... 157s Setting up libsamplerate0:arm64 (0.2.2-4) ... 157s Setting up openssl (3.0.13-0ubuntu2) ... 157s Setting up libwebpmux3:arm64 (1.3.2-0.4build2) ... 157s Setting up libxfont2:arm64 (1:2.0.6-1) ... 157s Setting up readline-common (8.2-3.1) ... 157s Setting up libmarkdown2:arm64 (2.2.7-2) ... 157s Setting up libcc1-0:arm64 (14-20240315-1ubuntu1) ... 157s Setting up libxmuu1:arm64 (2:1.1.3-3build1) ... 157s Setting up info (7.1-3build1) ... 157s Setting up liblsan0:arm64 (14-20240315-1ubuntu1) ... 157s Setting up libmp3lame0:arm64 (3.100-6) ... 157s Setting up libblas-dev:arm64 (3.12.0-3) ... 157s update-alternatives: using /usr/lib/aarch64-linux-gnu/blas/libblas.so to provide /usr/lib/aarch64-linux-gnu/libblas.so (libblas.so-aarch64-linux-gnu) in auto mode 157s Setting up libsz2:arm64 (1.1.2-1) ... 157s Setting up libitm1:arm64 (14-20240315-1ubuntu1) ... 157s Setting up libvorbisenc2:arm64 (1.3.7-1build2) ... 157s Setting up libevent-pthreads-2.1-7:arm64 (2.1.12-stable-9build1) ... 157s Setting up libdrm-amdgpu1:arm64 (2.4.120-2) ... 157s Setting up libwacom-common (2.10.0-1build1) ... 157s Setting up libwayland-client0:arm64 (1.22.0-2.1) ... 157s Setting up libjpeg8:arm64 (8c-2ubuntu11) ... 157s Setting up x11proto-dev (2023.2-1) ... 157s Setting up libfabric1:arm64 (1.17.0-3build1) ... 157s Setting up gnuplot-data (6.0.0+dfsg1-1ubuntu2) ... 157s Setting up libice6:arm64 (2:1.0.10-1build2) ... 157s Setting up liblapack3:arm64 (3.12.0-3) ... 157s update-alternatives: using /usr/lib/aarch64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/aarch64-linux-gnu/liblapack.so.3 (liblapack.so.3-aarch64-linux-gnu) in auto mode 157s Setting up gettext (0.21-14ubuntu1) ... 157s Setting up libarpack2t64:arm64 (3.9.1-1.1build1) ... 157s Setting up libfftw3-single3:arm64 (3.3.10-1ubuntu2) ... 157s Setting up apt-utils (2.7.13ubuntu1) ... 157s Setting up libamd3:arm64 (1:7.6.1+dfsg-1) ... 157s Setting up libxau-dev:arm64 (1:1.0.9-1build5) ... 157s Setting up cpp-13-aarch64-linux-gnu (13.2.0-19ubuntu1) ... 157s Setting up libcurl4t64:arm64 (8.5.0-2ubuntu7) ... 157s Setting up libgbm1:arm64 (24.0.2-1ubuntu8) ... 157s Setting up libcolamd3:arm64 (1:7.6.1+dfsg-1) ... 157s Setting up libwacom9:arm64 (2.10.0-1build1) ... 157s Setting up fontconfig-config (2.15.0-1.1ubuntu1) ... 158s Setting up libxcursor1:arm64 (1:1.2.1-1) ... 158s Setting up libgl1-mesa-dri:arm64 (24.0.2-1ubuntu8) ... 158s Setting up libaec-dev:arm64 (1.1.2-1) ... 158s Setting up libavahi-common3:arm64 (0.8-13ubuntu4) ... 158s Setting up libfftw3-long3:arm64 (3.3.10-1ubuntu2) ... 158s Setting up libsundials-sunmatrix4:arm64 (6.4.1+dfsg1-3build3) ... 158s Setting up libsuperlu6:arm64 (6.0.1+dfsg1-1) ... 158s Setting up libhwloc-plugins:arm64 (2.10.0-1) ... 158s Setting up libqrupdate1:arm64 (1.1.2-4) ... 158s Setting up libsundials-ida6:arm64 (6.4.1+dfsg1-3build3) ... 158s Setting up libcamd3:arm64 (1:7.6.1+dfsg-1) ... 158s Setting up libinput-bin (1.25.0-1build1) ... 158s Setting up libthai0:arm64 (0.1.29-2) ... 158s Setting up libxdmcp-dev:arm64 (1:1.1.3-0ubuntu5) ... 158s Setting up libqt5core5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 158s Setting up perl (5.38.2-3.2) ... 158s Setting up cpp-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 158s Setting up libegl-mesa0:arm64 (24.0.2-1ubuntu8) ... 158s Setting up libclass-data-inheritable-perl (0.08-3) ... 158s Setting up libxs-parse-keyword-perl (0.39-1build2) ... 158s Setting up libalgorithm-c3-perl (0.11-2) ... 158s Setting up liblog-log4perl-perl (1.57-1) ... 158s Setting up libtext-reform-perl (1.20-5) ... 158s Setting up libglpk40:arm64 (5.0-1build1) ... 158s Setting up libfile-find-rule-perl (0.34-3) ... 158s Setting up libcurl4-openssl-dev:arm64 (8.5.0-2ubuntu7) ... 158s Setting up libipc-system-simple-perl (1.30-2) ... 158s Setting up libio-tiecombine-perl (1.005-3) ... 158s Setting up libnet-domain-tld-perl (1.75-3) ... 158s Setting up libperlio-utf8-strict-perl (0.010-1build2) ... 158s Setting up liblapack-dev:arm64 (3.12.0-3) ... 158s update-alternatives: using /usr/lib/aarch64-linux-gnu/lapack/liblapack.so to provide /usr/lib/aarch64-linux-gnu/liblapack.so (liblapack.so-aarch64-linux-gnu) in auto mode 158s Setting up libvariable-magic-perl (0.63-1build2) ... 158s Setting up libio-html-perl (1.004-3) ... 158s Setting up libtext-template-perl (1.61-1) ... 158s Setting up libpod-parser-perl (1.67-1) ... 158s Setting up libb-hooks-op-check-perl:arm64 (0.22-3) ... 158s Setting up liblist-moreutils-xs-perl (0.430-3build4) ... 158s Setting up libpmix2t64:arm64 (5.0.1-4.1) ... 158s Setting up libparams-util-perl (1.102-2build2) ... 158s Setting up libtime-duration-perl (1.21-2) ... 158s Setting up autoconf (2.71-3) ... 158s Setting up libsub-exporter-progressive-perl (0.001013-3) ... 158s Setting up libccolamd3:arm64 (1:7.6.1+dfsg-1) ... 158s Setting up libarray-intspan-perl (2.004-2) ... 158s Setting up libcapture-tiny-perl (0.48-2) ... 158s Setting up libtimedate-perl (2.3300-2) ... 158s Setting up libreadline8t64:arm64 (8.2-3.1) ... 158s Setting up libexporter-lite-perl (0.09-2) ... 158s Setting up libsub-name-perl:arm64 (0.27-1build2) ... 158s Setting up libsyntax-keyword-try-perl (0.29-1build2) ... 158s Setting up libjack-jackd2-0:arm64 (1.9.21~dfsg-3ubuntu1) ... 158s Setting up libdata-validate-domain-perl (0.10-1.1) ... 158s Setting up libproc-processtable-perl:arm64 (0.636-1build2) ... 158s Setting up libparse-recdescent-perl (1.967015+dfsg-4) ... 158s Setting up libgcc-13-dev:arm64 (13.2.0-19ubuntu1) ... 158s Setting up libtiff6:arm64 (4.5.1+git230720-4ubuntu1) ... 158s Setting up libpath-tiny-perl (0.144-1) ... 158s Setting up libjson-perl (4.10000-1) ... 158s Setting up libegl1:arm64 (1.7.0-1) ... 158s Setting up libqt5sql5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 158s Setting up libipc-run3-perl (0.049-1) ... 158s Setting up libregexp-wildcards-perl (1.05-3) ... 158s Setting up libsub-uplevel-perl (0.2800-3) ... 158s Setting up libsub-override-perl (0.10-1) ... 158s Setting up libc6-dev:arm64 (2.39-0ubuntu6) ... 158s Setting up libaliased-perl (0.34-3) ... 158s Setting up libstrictures-perl (2.000006-1) ... 158s Setting up libsub-quote-perl (2.006008-1ubuntu1) ... 158s Setting up libdevel-stacktrace-perl (2.0500-1) ... 158s Setting up libclass-xsaccessor-perl (1.19-4build3) ... 158s Setting up libtext-autoformat-perl (1.750000-2) ... 158s Setting up curl (8.5.0-2ubuntu7) ... 158s Setting up libtoml-tiny-perl (0.16-1) ... 158s Setting up libfontconfig1:arm64 (2.15.0-1.1ubuntu1) ... 158s Setting up libsndfile1:arm64 (1.2.2-1ubuntu3) ... 158s Setting up libsort-versions-perl (1.62-3) ... 158s Setting up libexporter-tiny-perl (1.006002-1) ... 158s Setting up libterm-readkey-perl (2.38-2build3) ... 158s Setting up libhdf5-103-1t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 158s Setting up libtext-unidecode-perl (1.30-3) ... 158s Setting up libgfortran-13-dev:arm64 (13.2.0-19ubuntu1) ... 158s Setting up libtext-levenshteinxs-perl (0.03-5build3) ... 158s Setting up libperlio-gzip-perl (0.20-1build3) ... 158s Setting up libsm6:arm64 (2:1.2.3-1build2) ... 158s Setting up libhtml-html5-entities-perl (0.004-3) ... 158s Setting up libtext-levenshtein-damerau-perl (0.41-3) ... 158s Setting up libavahi-client3:arm64 (0.8-13ubuntu4) ... 158s Setting up libsereal-decoder-perl (5.004+ds-1build2) ... 158s Setting up liburi-perl (5.27-1) ... 158s Setting up libnet-ipv6addr-perl (1.02-1) ... 158s Setting up libhsakmt1:arm64 (5.7.0-1) ... 158s Setting up libstdc++-13-dev:arm64 (13.2.0-19ubuntu1) ... 158s Setting up libemail-address-xs-perl (1.05-1build3) ... 158s Setting up libnet-ssleay-perl:arm64 (1.94-1build2) ... 158s Setting up automake (1:1.16.5-1.3ubuntu1) ... 158s update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode 158s Setting up libapt-pkg-perl (0.1.40build5) ... 158s Setting up libmodule-pluggable-perl (5.2-4) ... 158s Setting up libstring-escape-perl (2010.002-3) ... 158s Setting up libberkeleydb-perl:arm64 (0.64-2build2) ... 158s Setting up libinput10:arm64 (1.25.0-1build1) ... 158s Setting up libhdf5-hl-100t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 158s Setting up libportaudio2:arm64 (19.6.0-1.2build1) ... 158s Setting up libhttp-date-perl (6.06-1) ... 158s Setting up libfile-which-perl (1.27-2) ... 158s Setting up fontconfig (2.15.0-1.1ubuntu1) ... 160s Regenerating fonts cache... done. 160s Setting up libjpeg-turbo8-dev:arm64 (2.1.5-2ubuntu1) ... 160s Setting up libcholmod5:arm64 (1:7.6.1+dfsg-1) ... 160s Setting up libxft2:arm64 (2.3.6-1) ... 160s Setting up libncurses-dev:arm64 (6.4+20240113-1ubuntu1) ... 160s Setting up libqt5dbus5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 160s Setting up libfile-basedir-perl (0.09-2) ... 160s Setting up libunicode-utf8-perl (0.62-2build2) ... 160s Setting up libglx-mesa0:arm64 (24.0.2-1ubuntu8) ... 160s Setting up libset-intspan-perl (1.19-3) ... 160s Setting up libxcb1-dev:arm64 (1.15-1) ... 160s Setting up libmouse-perl (2.5.10-1build7) ... 160s Setting up libfile-listing-perl (6.16-1) ... 160s Setting up libpod-pom-perl (2.01-4) ... 160s Setting up libregexp-pattern-perl (0.2.14-2) ... 160s Setting up libglx0:arm64 (1.7.0-1) ... 160s Setting up cpp-13 (13.2.0-19ubuntu1) ... 160s Setting up libdata-messagepack-perl (1.02-1build3) ... 160s Setting up libdynaloader-functions-perl (0.003-3) ... 160s Setting up libclass-method-modifiers-perl (2.15-1) ... 160s Setting up liblist-compare-perl (0.55-2) ... 160s Setting up libspqr4:arm64 (1:7.6.1+dfsg-1) ... 160s Setting up libfftw3-bin (3.3.10-1ubuntu2) ... 160s Setting up libclone-perl:arm64 (0.46-1build2) ... 160s Setting up libarchive-zip-perl (1.68-1) ... 160s Setting up libsub-identify-perl (0.14-3build2) ... 160s Setting up libcpanel-json-xs-perl:arm64 (4.37-1build2) ... 160s Setting up libio-stringy-perl (2.111-3) ... 160s Setting up liblist-moreutils-perl (0.430-2) ... 160s Setting up libhtml-tagset-perl (3.20-6) ... 160s Setting up liblog-any-perl (1.717-1) ... 160s Setting up libyaml-pp-perl (0.38.0-1) ... 160s Setting up libdevel-size-perl (0.83-2build3) ... 160s Setting up libdebhelper-perl (13.14.1ubuntu5) ... 160s Setting up libpod-constants-perl (0.19-2) ... 160s Setting up libregexp-pattern-license-perl (3.11.0-1) ... 160s Setting up libconvert-binhex-perl (1.125-3) ... 160s Setting up libpango-1.0-0:arm64 (1.52.1+ds-1) ... 160s Setting up libhdf5-cpp-103-1t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 160s Setting up liblwp-mediatypes-perl (6.04-2) ... 160s Setting up libqt5network5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 160s Setting up libyaml-libyaml-perl (0.89+ds-1build1) ... 160s Setting up libio-interactive-perl (1.025-1) ... 160s Setting up libtry-tiny-perl (0.31-2) ... 160s Setting up libx11-dev:arm64 (2:1.8.7-1) ... 160s Setting up libmldbm-perl (2.05-4) ... 160s Setting up libxml-namespacesupport-perl (1.12-2) ... 160s Setting up libnet-http-perl (6.23-1) ... 160s Setting up libpath-iterator-rule-perl (1.015-2) ... 160s Setting up libtext-markdown-discount-perl (0.16-1build2) ... 160s Setting up libhdf5-fortran-102t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 160s Setting up libclone-choose-perl (0.010-2) ... 160s Setting up libqt5xml5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 160s Setting up libtime-moment-perl (0.44-2build3) ... 160s Setting up libencode-locale-perl (1.05-3) ... 160s Setting up libexception-class-perl (1.45-1) ... 160s Setting up gcc-13-aarch64-linux-gnu (13.2.0-19ubuntu1) ... 160s Setting up libclass-c3-perl (0.35-2) ... 160s Setting up texinfo-lib (7.1-3build1) ... 160s Setting up libreadline-dev:arm64 (8.2-3.1) ... 160s Setting up libconfig-tiny-perl (2.30-1) ... 160s Setting up libsereal-encoder-perl (5.004+ds-1build2) ... 160s Setting up libdevel-callchecker-perl:arm64 (0.008-2build2) ... 160s Setting up liblist-utilsby-perl (0.12-2) ... 160s Setting up libyaml-tiny-perl (1.74-1) ... 160s Setting up libcairo2:arm64 (1.18.0-1ubuntu1) ... 160s Setting up libregexp-common-perl (2017060201-3) ... 160s Setting up libnet-netmask-perl (2.0002-2) ... 160s Setting up libsub-install-perl (0.929-1) ... 160s Setting up libindirect-perl (0.39-2build3) ... 160s Setting up libxs-parse-sublike-perl:arm64 (0.21-2build2) ... 160s Setting up intltool-debian (0.35.0+20060710.6) ... 160s Setting up libobject-pad-perl (0.808-1build2) ... 160s Setting up liberror-perl (0.17029-2) ... 160s Setting up patchutils (0.4.2-1build2) ... 160s Setting up libjson-maybexs-perl (1.004005-1) ... 160s Setting up libxml-sax-base-perl (1.09-3) ... 160s Setting up libio-string-perl (1.08-4) ... 160s Setting up libboolean-perl (0.46-3) ... 160s Setting up libnetaddr-ip-perl (4.079+dfsg-2build3) ... 160s Setting up libgl1:arm64 (1.7.0-1) ... 160s Setting up libtest-exception-perl (0.43-3) ... 160s Setting up libstring-copyright-perl (0.003014-1) ... 160s Setting up libklu2:arm64 (1:7.6.1+dfsg-1) ... 160s Setting up libxt6t64:arm64 (1:1.2.1-1.2) ... 160s Setting up libgd3:arm64 (2.3.3-9ubuntu3) ... 160s Setting up gcc-13 (13.2.0-19ubuntu1) ... 160s Setting up libdata-optlist-perl (0.114-1) ... 160s Setting up libtext-xslate-perl:arm64 (3.5.9-1build4) ... 160s Setting up zlib1g-dev:arm64 (1:1.3.dfsg-3.1ubuntu1) ... 160s Setting up libwww-robotrules-perl (6.02-1) ... 160s Setting up libumfpack6:arm64 (1:7.6.1+dfsg-1) ... 160s Setting up libhsa-runtime64-1 (5.7.1-1build1) ... 160s Setting up cpp (4:13.2.0-7ubuntu1) ... 160s Setting up libhtml-parser-perl:arm64 (3.81-1build2) ... 160s Setting up liblog-any-adapter-screen-perl (0.140-2) ... 160s Setting up librole-tiny-perl (2.002004-1) ... 160s Setting up libmousex-strictconstructor-perl (0.02-3) ... 160s Setting up libglx-dev:arm64 (1.7.0-1) ... 160s Setting up libmro-compat-perl (0.15-2) ... 160s Setting up libpangoft2-1.0-0:arm64 (1.52.1+ds-1) ... 160s Setting up libjpeg8-dev:arm64 (8c-2ubuntu11) ... 160s Setting up libhdf5-hl-cpp-100t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 160s Setting up libfont-ttf-perl (1.06-2) ... 160s Setting up libfile-homedir-perl (1.006-2) ... 160s Setting up libfltk1.3t64:arm64 (1.3.8-6.1) ... 160s Setting up libfftw3-dev:arm64 (3.3.10-1ubuntu2) ... 160s Setting up libcups2t64:arm64 (2.4.7-1.2ubuntu1) ... 160s Setting up libgl-dev:arm64 (1.7.0-1) ... 160s Setting up libio-socket-ssl-perl (2.085-1) ... 160s Setting up libsub-exporter-perl (0.990-1) ... 160s Setting up libpangocairo-1.0-0:arm64 (1.52.1+ds-1) ... 160s Setting up libhttp-message-perl (6.45-1ubuntu1) ... 160s Setting up libdata-validate-ip-perl (0.31-1) ... 160s Setting up libmousex-nativetraits-perl (1.09-3) ... 160s Setting up libhtml-form-perl (6.11-1) ... 160s Setting up libiterator-perl (0.03+ds1-2) ... 160s Setting up g++-13-aarch64-linux-gnu (13.2.0-19ubuntu1) ... 160s Setting up libfile-stripnondeterminism-perl (1.13.1-1) ... 160s Setting up gcc-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 160s Setting up g++-13 (13.2.0-19ubuntu1) ... 160s Setting up libhttp-negotiate-perl (6.01-2) ... 160s Setting up libcarp-assert-more-perl (2.3.0-1) ... 160s Setting up libxmu6:arm64 (2:1.1.3-3build1) ... 160s Setting up libiterator-util-perl (0.02+ds1-2) ... 160s Setting up libhttp-cookies-perl (6.11-1) ... 160s Setting up libtool (2.4.7-7) ... 160s Setting up po-debconf (1.0.21+nmu1) ... 160s Setting up libhtml-tree-perl (5.07-3) ... 160s Setting up libparams-classify-perl:arm64 (0.015-2build4) ... 160s Setting up libcgi-pm-perl (4.63-1) ... 160s Setting up libhash-merge-perl (0.302-1) ... 160s Setting up libsoftware-copyright-perl (0.012-2) ... 160s Setting up libjpeg-dev:arm64 (8c-2ubuntu11) ... 160s Setting up gfortran-13-aarch64-linux-gnu (13.2.0-19ubuntu1) ... 160s Setting up libhdf5-hl-fortran-100t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 160s Setting up libxaw7:arm64 (2:1.0.14-1build1) ... 160s Setting up libxml-sax-perl (1.02+dfsg-3) ... 160s update-perl-sax-parsers: Registering Perl SAX parser XML::SAX::PurePerl with priority 10... 160s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 160s 160s Creating config file /etc/perl/XML/SAX/ParserDetails.ini with new version 160s Setting up gcc (4:13.2.0-7ubuntu1) ... 160s Setting up libgl2ps1.4 (1.4.2+dfsg1-2) ... 160s Setting up dh-autoreconf (20) ... 160s Setting up libfltk-gl1.3t64:arm64 (1.3.8-6.1) ... 160s Setting up libqt5gui5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 160s Setting up libdata-validate-uri-perl (0.07-3) ... 160s Setting up libamdhip64-5 (5.2.3-12) ... 160s Setting up libnet-smtp-ssl-perl (1.04-2) ... 160s Setting up libmodule-runtime-perl (0.016-2) ... 160s Setting up libmailtools-perl (2.21-2) ... 160s Setting up gfortran-13 (13.2.0-19ubuntu1) ... 160s Setting up libconfig-model-perl (2.153-3) ... 160s Setting up libhdf5-dev (1.10.10+repack-3.1ubuntu3) ... 160s update-alternatives: using /usr/lib/aarch64-linux-gnu/pkgconfig/hdf5-serial.pc to provide /usr/lib/aarch64-linux-gnu/pkgconfig/hdf5.pc (hdf5.pc) in auto mode 160s Setting up libxml-libxml-perl (2.0207+dfsg+really+2.0134-1build3) ... 160s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX::Parser with priority 50... 161s update-perl-sax-parsers: Registering Perl SAX parser XML::LibXML::SAX with priority 50... 161s update-perl-sax-parsers: Updating overall Perl SAX parser modules info file... 161s Replacing config file /etc/perl/XML/SAX/ParserDetails.ini with new version 161s Setting up dh-strip-nondeterminism (1.13.1-1) ... 161s Setting up libconst-fast-perl (0.014-2) ... 161s Setting up libdata-section-perl (0.200008-1) ... 161s Setting up g++-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 161s Setting up gfortran-aarch64-linux-gnu (4:13.2.0-7ubuntu1) ... 161s Setting up gnuplot-nox (6.0.0+dfsg1-1ubuntu2) ... 161s update-alternatives: using /usr/bin/gnuplot-nox to provide /usr/bin/gnuplot (gnuplot) in auto mode 161s Setting up libdata-dpath-perl (0.59-1) ... 161s Setting up libstring-rewriteprefix-perl (0.009-1) ... 161s Setting up libconfig-model-backend-yaml-perl (2.134-2) ... 161s Setting up libucx0:arm64 (1.16.0+ds-4) ... 161s Setting up libmodule-implementation-perl (0.09-2) ... 161s Setting up libqt5widgets5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 161s Setting up libpackage-stash-perl (0.40-1) ... 161s Setting up libimport-into-perl (1.002005-2) ... 161s Setting up x11-xkb-utils (7.7+8build1) ... 161s Setting up libmoo-perl (2.005005-1) ... 161s Setting up liblist-someutils-perl (0.59-1) ... 161s Setting up debhelper (13.14.1ubuntu5) ... 161s Setting up libmime-tools-perl (5.514-1) ... 161s Setting up libqt5help5:arm64 (5.15.12-2build2) ... 161s Setting up gfortran (4:13.2.0-7ubuntu1) ... 161s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f95 (f95) in auto mode 161s 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 161s update-alternatives: using /usr/bin/gfortran to provide /usr/bin/f77 (f77) in auto mode 161s 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 161s Setting up libsoftware-license-perl (0.104006-1) ... 161s Setting up libclass-load-perl (0.25-2) ... 161s Setting up dh-octave-autopkgtest (1.8.0) ... 161s Setting up texinfo (7.1-3build1) ... 161s Setting up libopenmpi3t64:arm64 (4.1.6-7ubuntu1) ... 161s Setting up g++ (4:13.2.0-7ubuntu1) ... 161s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 161s Setting up xserver-common (2:21.1.11-2ubuntu1) ... 161s Setting up libmoox-aliases-perl (0.001006-2) ... 161s Setting up libparams-validate-perl:arm64 (1.31-2build2) ... 161s Setting up libb-hooks-endofscope-perl (0.28-1) ... 161s Setting up openmpi-bin (4.1.6-7ubuntu1) ... 161s update-alternatives: using /usr/bin/mpirun.openmpi to provide /usr/bin/mpirun (mpirun) in auto mode 161s update-alternatives: using /usr/bin/mpicc.openmpi to provide /usr/bin/mpicc (mpi) in auto mode 161s Setting up libqt5printsupport5t64:arm64 (5.15.12+dfsg-3ubuntu6) ... 161s Setting up libptscotch-7.0:arm64 (7.0.4-1ubuntu1) ... 161s Setting up libsoftware-licensemoreutils-perl (1.009-1) ... 161s Setting up xvfb (2:21.1.11-2ubuntu1) ... 161s Setting up mpi-default-bin (1.15) ... 161s Setting up libcombblas2.0.0t64:arm64 (2.0.0-3.1build1) ... 161s Setting up libfftw3-mpi3:arm64 (3.3.10-1ubuntu2) ... 161s Setting up libqscintilla2-qt5-15:arm64 (2.14.1+dfsg-1build2) ... 161s Setting up libtrilinos-zoltan-13.2:arm64 (13.2.0-5build1) ... 161s Setting up libhdf5-openmpi-103-1t64:arm64 (1.10.10+repack-3.1ubuntu3) ... 161s Setting up libtrilinos-teuchos-13.2:arm64 (13.2.0-5build1) ... 161s Setting up libtrilinos-epetra-13.2:arm64 (13.2.0-5build1) ... 161s Setting up libnamespace-clean-perl (0.27-2) ... 161s Setting up libstring-license-perl (0.0.9-2ubuntu1) ... 161s Setting up libgetopt-long-descriptive-perl (0.111-1) ... 161s Setting up libtrilinos-aztecoo-13.2:arm64 (13.2.0-5build1) ... 161s Setting up libtrilinos-triutils-13.2:arm64 (13.2.0-5build1) ... 161s Setting up licensecheck (3.3.9-1ubuntu1) ... 161s Setting up libscalapack-openmpi2.2:arm64 (2.2.1-3build1) ... 161s Setting up libsuperlu-dist8:arm64 (8.2.1+dfsg1-1build1) ... 161s Setting up libapp-cmd-perl (0.336-1) ... 161s Setting up libmumps-5.6t64:arm64 (5.6.2-2.1build1) ... 161s Setting up libhypre-2.28.0:arm64 (2.28.0-8build1) ... 161s Setting up libtrilinos-epetraext-13.2:arm64 (13.2.0-5build1) ... 161s Setting up libtrilinos-galeri-13.2:arm64 (13.2.0-5build1) ... 161s Setting up cme (1.040-1) ... 161s Setting up libtrilinos-amesos-13.2:arm64 (13.2.0-5build1) ... 161s Setting up libtrilinos-ifpack-13.2:arm64 (13.2.0-5build1) ... 161s Setting up libtrilinos-ml-13.2:arm64 (13.2.0-5build1) ... 161s Setting up libpetsc-real3.19t64:arm64 (3.19.6+dfsg1-2.2ubuntu1) ... 161s update-alternatives: using /usr/lib/aarch64-linux-gnu/libpetsc_real.so.3.19.6 to provide /usr/lib/aarch64-linux-gnu/libpetsc.so.3.19 (libpetsc.so.3.19) in auto mode 161s Setting up libsundials-nvecparallel-petsc6:arm64 (6.4.1+dfsg1-3build3) ... 161s Setting up libsundials-sunlinsol3:arm64 (6.4.1+dfsg1-3build3) ... 161s Setting up libheif-plugin-dav1d:arm64 (1.17.6-1ubuntu2) ... 161s Setting up liblwp-protocol-https-perl (6.13-1) ... 161s Setting up libheif-plugin-libde265:arm64 (1.17.6-1ubuntu2) ... 161s Setting up libwww-perl (6.76-1) ... 161s Setting up libheif1:arm64 (1.17.6-1ubuntu2) ... 161s Setting up libparse-debcontrol-perl (2.005-6) ... 161s Setting up libhtml-tokeparser-simple-perl (3.16-4) ... 161s Setting up libwww-mechanize-perl (2.18-1ubuntu1) ... 161s Setting up libgraphicsmagick-q16-3t64 (1.4+really1.3.42-1.1build1) ... 161s Setting up lintian (2.117.0ubuntu1) ... 161s Setting up libgraphicsmagick++-q16-12t64 (1.4+really1.3.42-1.1build1) ... 161s Setting up libconfig-model-dpkg-perl (3.004) ... 161s Setting up octave (8.4.0-1build4) ... 162s Setting up octave-dev (8.4.0-1build4) ... 162s Setting up octave-image:arm64 (2.14.0-5) ... 162s Setting up dh-octave (1.8.0) ... 162s Setting up autopkgtest-satdep (0) ... 162s Processing triggers for libc-bin (2.39-0ubuntu6) ... 162s Processing triggers for man-db (2.12.0-3) ... 164s Processing triggers for udev (255.2-3ubuntu2) ... 164s Processing triggers for install-info (7.1-3build1) ... 200s (Reading database ... 92565 files and directories currently installed.) 200s Removing autopkgtest-satdep (0) ... 200s autopkgtest [19:37:39]: test command1: DH_OCTAVE_TEST_ENV="xvfb-run -a" /usr/bin/dh_octave_check --use-installed-package 200s autopkgtest [19:37:39]: test command1: [----------------------- 201s Checking package... 201s Run the unit tests... 202s Checking m files ... 202s [inst/bestblk.m] 202s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/bestblk.m 202s ***** demo 202s siz = bestblk ([200; 10], 50); 202s disp (siz) 202s ***** error bestblk ("string") 202s ***** error bestblk ([100 200], "string") 202s ***** error <2 elements> bestblk ([100], 5) 202s ***** assert (bestblk ([ 10 12], 2), [ 2 2]); 202s ***** assert (bestblk ([ 10 12], 3), [ 2 3]); 202s ***** assert (bestblk ([300 100], 150), [150 100]); 202s ***** assert (bestblk ([256 128], 17), [ 16 16]); 202s ***** assert (bestblk ([ 17 17], 3), [ 3 3]); 202s ***** assert (bestblk ([230 470]), bestblk ([230 470], 100)) 202s ***** assert (bestblk ([10 12 10], 3), [2 3 2]); 202s ***** assert (bestblk ([ 9 12 9], 3), [3 3 3]); 202s ***** assert (bestblk ([10 12 10 11], 5), [5 4 5 4]); 202s 12 tests, 12 passed, 0 known failure, 0 skipped 202s [inst/viscircles.m] 202s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/viscircles.m 202s ***** demo 202s centers = randi ([0 100], 5, 2); 202s radii = randi ([10 100], 5, 1); 202s axis equal 202s viscircles (centers, radii, 202s "Color", "magenta", 202s "LineStyle", ":", 202s "LineWidth", 5); 202s title ("5 random circles"); 202s #---------------------------------------------- 202s # the figure window shows 5 circles with random 202s # radii and positions 202s ***** test # old undocumented property 202s h = viscircles ([0 0], 1, "EdgeColor", "black"); 202s assert (get (get (h, "children")(1), "color"), [0 0 0]) 203s warning: using the gnuplot graphics toolkit is discouraged 203s 203s The gnuplot graphics toolkit is not actively maintained and has a number 203s of limitations that are unlikely to be fixed. Communication with gnuplot 203s uses a one-directional pipe and limited information is passed back to the 203s Octave interpreter so most changes made interactively in the plot window 203s will not be reflected in the graphics properties managed by Octave. For 203s example, if the plot window is closed with a mouse click, Octave will not 203s be notified and will not update its internal list of open figure windows. 203s The qt toolkit is recommended instead. 203s ***** test # old undocumented property 203s h = viscircles ([0 0], 1, "DrawBackgroundCircle", false); 203s assert (numel (get (h, "children")), 1) 203s ***** error ... 203s viscircles ([0 0], 1, "Color", "magenta", "EdgeColor", "black") 203s ***** test 203s centers = randi ([0 100], 5, 2); 203s radii = randi ([0 100], 5, 1); 203s h = viscircles (centers, radii); 203s close; 203s ***** test 203s centers = randi ([0 100], 5, 2); 203s radii = randi ([0 100], 5, 1); 203s figure (); 203s h = viscircles (gca (), centers, radii); 203s close; 203s ***** test 203s centers = randi ([0 100], 5, 2); 203s radii = randi ([0 100], 5, 1); 203s h = viscircles (centers, radii, "Color", "magenta", 203s "LineStyle", ":", "LineWidth", 5); 203s close; 203s ***** test 203s centers = randi ([0 100],5,2); 203s radii = randi ([0 100],5,1); 203s figure (); 203s h = viscircles (centers, radii, "Color", "magenta", 203s "LineStyle", ":", "LineWidth", 5); 203s close; 203s 7 tests, 7 passed, 0 known failure, 0 skipped 203s [inst/qtgetblk.m] 203s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/qtgetblk.m 203s ***** demo 203s [vals,r,c]=qtgetblk(eye(4),qtdecomp(eye(4)),2) 203s % Returns 2 blocks, at [1,3] and [3,1] (2*2 zeros blocks) 203s ***** shared A,S 203s A=[ 1, 4, 2, 5,54,55,61,62; 203s 3, 6, 3, 1,58,53,67,65; 203s 3, 6, 3, 1,58,53,67,65; 203s 3, 6, 3, 1,58,53,67,65; 203s 23,42,42,42,99,99,99,99; 203s 27,42,42,42,99,99,99,99; 203s 23,22,26,25,99,99,99,99; 203s 22,22,24,22,99,99,99,99]; 203s S=qtdecomp(A,10); 203s ***** test 203s [va]=qtgetblk(A,S,8); 203s [vb,r,c]=qtgetblk(A,S,8); 203s [vc,i]=qtgetblk(A,S,8); 203s assert(va, vb); 203s assert(va, vc); 203s assert(i,[]); 203s assert(r,[]); 203s assert(c,[]); 203s R=[]; 203s assert(va,R); 203s ***** test 203s [va]=qtgetblk(A,S,4); 203s [vb,r,c]=qtgetblk(A,S,4); 203s [vc,i]=qtgetblk(A,S,4); 203s assert(va, vb); 203s assert(va, vc); 203s assert(i, find(full(S)==4)); 203s assert(r,[1;5]); 203s assert(c,[1;5]); 203s R=zeros(4,4,2); 203s R(:,:,1)=A(1:4,1:4); 203s R(:,:,2)=A(5:8,5:8); 203s assert(va,R); 203s ***** test 203s [va]=qtgetblk(A,S,2); 203s [vb,r,c]=qtgetblk(A,S,2); 203s [vc,i]=qtgetblk(A,S,2); 203s assert(va, vb); 203s assert(va, vc); 203s assert(i, find(full(S)==2)); 203s assert(r,[7;5;7;1;3;1;3]); 203s assert(c,[1;3;3;5;5;7;7]); 203s R=zeros(2,2,7); 203s R(:,:,1)=A(7:8,1:2); 203s R(:,:,2)=A(5:6,3:4); 203s R(:,:,3)=A(7:8,3:4); 203s R(:,:,4)=A(1:2,5:6); 203s R(:,:,5)=A(3:4,5:6); 203s R(:,:,6)=A(1:2,7:8); 203s R(:,:,7)=A(3:4,7:8); 203s assert(va,R); 203s 3 tests, 3 passed, 0 known failure, 0 skipped 203s [inst/@strel/strel.m] 203s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@strel/strel.m 203s ***** test 203s shape = logical ([0 0 0 1]); 203s assert (getnhood (strel (shape)), shape); 203s assert (getnhood (strel ("arbitrary", shape)), shape); 203s 203s height = [0 0 0 3]; 203s assert (getnhood (strel ("arbitrary", shape, height)), shape); 203s assert (getheight (strel ("arbitrary", shape, height)), height); 203s ***** test 203s shape = logical ([0 0 1]); 203s height = [-2 1 3]; ## this works for matlab compatibility 203s assert (getnhood (strel ("arbitrary", shape, height)), shape); 203s assert (getheight (strel ("arbitrary", shape, height)), height); 203s ***** test 203s shape = logical ([0 0 0 1 0 0 0 203s 0 1 1 1 1 1 0 203s 0 1 1 1 1 1 0 203s 1 1 1 1 1 1 1 203s 0 1 1 1 1 1 0 203s 0 1 1 1 1 1 0 203s 0 0 0 1 0 0 0]); 203s height = [ 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 203s 0.00000 0.33333 0.66667 0.74536 0.66667 0.33333 0.00000 203s 0.00000 0.66667 0.88192 0.94281 0.88192 0.66667 0.00000 203s 0.00000 0.74536 0.94281 1.00000 0.94281 0.74536 0.00000 203s 0.00000 0.66667 0.88192 0.94281 0.88192 0.66667 0.00000 203s 0.00000 0.33333 0.66667 0.74536 0.66667 0.33333 0.00000 203s 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000]; 203s assert (getnhood (strel ("ball", 3, 1)), shape); 203s assert (getheight (strel ("ball", 3, 1)), height, 0.0001); 203s ***** test 203s shape = logical ([0 0 0 1 0 0 0 203s 0 0 1 1 1 0 0 203s 0 1 1 1 1 1 0 203s 1 1 1 1 1 1 1 203s 0 1 1 1 1 1 0 203s 0 0 1 1 1 0 0 203s 0 0 0 1 0 0 0]); 203s assert (getnhood (strel ("diamond", 3)), shape); 203s ***** test 203s shape = logical ([0 0 0 1 0 0 0 203s 0 1 1 1 1 1 0 203s 0 1 1 1 1 1 0 203s 1 1 1 1 1 1 1 203s 0 1 1 1 1 1 0 203s 0 1 1 1 1 1 0 203s 0 0 0 1 0 0 0]); 203s assert (getnhood (strel ("disk", 3, 0)), shape); 203s ***** test 203s shape = logical ([1 1 1]); 203s assert (getnhood (strel ("line", 3.9, 20.17)), shape); 203s shape = logical ([0 0 1 203s 0 1 0 203s 1 0 0]); 203s assert (getnhood (strel ("line", 3.9, 20.18)), shape); 203s shape = logical ([1 0 0 0 0 0 0 0 0 203s 0 1 0 0 0 0 0 0 0 203s 0 0 1 0 0 0 0 0 0 203s 0 0 1 0 0 0 0 0 0 203s 0 0 0 1 0 0 0 0 0 203s 0 0 0 0 1 0 0 0 0 203s 0 0 0 0 0 1 0 0 0 203s 0 0 0 0 0 0 1 0 0 203s 0 0 0 0 0 0 1 0 0 203s 0 0 0 0 0 0 0 1 0 203s 0 0 0 0 0 0 0 0 1]); 203s assert (getnhood (strel ("line", 14, 130)), shape); 203s ***** test 203s se = strel ("octagon", 0); 203s seq = getsequence (se); 203s assert (getnhood (se), true (1)); 203s assert (getnhood (seq(1)), true (1)); 203s 203s se = strel ("octagon", 3); 203s seq = getsequence (se); 203s shape = logical ([0 0 1 1 1 0 0 203s 0 1 1 1 1 1 0 203s 1 1 1 1 1 1 1 203s 1 1 1 1 1 1 1 203s 1 1 1 1 1 1 1 203s 0 1 1 1 1 1 0 203s 0 0 1 1 1 0 0]); 203s assert (getnhood (se), shape); 203s assert (size (seq), [4 1]); 203s 203s templ1 = logical ([0 0 0; 1 1 1; 0 0 0]); 203s templ2 = logical ([0 1 0; 0 1 0; 0 1 0]); 203s templ3 = logical ([1 0 0; 0 1 0; 0 0 1]); 203s templ4 = logical ([0 0 1; 0 1 0; 1 0 0]); 203s assert ({getnhood(seq(1)) getnhood(seq(2)) getnhood(seq(3)) getnhood(seq(4))}, 203s {templ1 templ2 templ3 templ4}); 203s 203s seq = getsequence (strel ("octagon", 21)); 203s assert (size (seq), [28 1]); 203s assert (arrayfun (@(x) getnhood (seq(x)), 1:4:25, "UniformOutput", false), 203s repmat ({templ1}, 1, 7)); 203s assert (arrayfun (@(x) getnhood (seq(x)), 2:4:26, "UniformOutput", false), 203s repmat ({templ2}, 1, 7)); 203s assert (arrayfun (@(x) getnhood (seq(x)), 3:4:27, "UniformOutput", false), 203s repmat ({templ3}, 1, 7)); 203s assert (arrayfun (@(x) getnhood (seq(x)), 4:4:28, "UniformOutput", false), 203s repmat ({templ4}, 1, 7)); 203s ***** test 203s shape = logical ([1 1 0]'); 203s assert (getnhood (strel ("pair", [-1 0])), shape); 203s shape = logical ([1 0 0 0 0 0 0 203s 0 0 0 1 0 0 0 203s 0 0 0 0 0 0 0]); 203s assert (getnhood (strel ("pair", [-1 -3])), shape); 203s shape = logical ([0 0 0 0 0 0 0 203s 0 0 0 0 0 0 0 203s 0 0 0 1 0 0 0 203s 0 0 0 0 0 0 0 203s 0 0 0 0 0 0 1]); 203s assert (getnhood (strel ("pair", [2 3])), shape); 203s ***** test 203s assert (getnhood (strel ("rectangle", [10 5])), true (10, 5)); 203s assert (getnhood (strel ("square", 5)), true (5)); 203s ***** shared se, seq 203s se = strel ("square", 5); 203s seq = getsequence (se); 203s assert (class (se(1)), "strel") 203s assert (class (se(1,1)),"strel") 203s assert (class (seq), "strel") 203s assert (class (seq(1)), "strel") 203s assert (class (seq(2)), "strel") 203s assert (numel (se), 1) 203s assert (numel (seq), 2) 203s assert (getnhood (seq(1)), true (5, 1)) 203s assert (getnhood (seq(2)), true (1, 5)) 203s assert (size (se), [1 1]) 203s assert (size (seq), [2 1]) 203s assert (isscalar (se), true) 203s assert (isscalar (seq), false) 203s ***** error se(2); 203s ***** error seq(3); 203s ***** test 203s se = strel ("arbitrary", [1 0 0; 1 1 0; 0 1 0], [2 0 0; 3 1 0; 0 3 0]); 203s ref = reflect (se); 203s assert (getnhood (ref), logical([0 1 0; 0 1 1; 0 0 1])); 203s assert (getheight (ref), [0 3 0; 0 1 3; 0 0 2]); 203s ***** error strel() 203s ***** error strel("nonmethodthing", 2) 203s ***** error strel("arbitrary", "stuff") 203s ***** error strel("arbitrary", [0 0 1], [2 0 1; 4 5 1]) 203s ***** error strel("arbitrary", [0 0 1], "stuff") 203s ***** error strel("ball", -3, 1) 203s ***** error strel("diamond", -3) 203s ***** error strel("disk", -3) 203s ***** error strel("line", 0, 45) 203s ***** error strel("octagon", 3.5) 203s ***** error strel("octagon", 4) 203s ***** error strel("octagon", -1) 203s ***** error strel("pair", [45 67 90]) 203s ***** error strel("rectangle", 2) 203s ***** error strel("rectangle", [2 -5]) 203s ***** error strel("square", [34 1-2]) 204s 28 tests, 28 passed, 0 known failure, 0 skipped 204s [inst/im2single.m] 204s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/im2single.m 204s ***** assert (im2single (single ([1 2 3])), single ([1 2 3])); 204s ***** assert (im2single ([1 2 3]), single ([1 2 3])); 204s ***** assert (im2single (uint8 ([0 127 128 255])), single ([0 127/255 128/255 1])); 204s ***** assert (im2single (uint16 ([0 127 128 65535])), single ([0 127/65535 128/65535 1])); 204s ***** assert (im2single (int16 ([-32768 -32767 -32766 32767])), single ([0 1/65535 2/65535 1])); 204s ***** assert (im2single (uint8 ([0 1 255]), "indexed"), single ([1 2 256])); 204s ***** assert (im2single (uint16 ([0 1 2557]), "indexed"), single ([1 2 2558])); 204s ***** assert (im2single ([3 25], "indexed"), single ([3 25])); 204s ***** error im2single ([0 1 2], "indexed"); 204s ***** error im2single (int16 ([17 8]), "indexed"); 204s ***** error im2single (int16 ([-7 8]), "indexed"); 204s ***** error im2single ([false true], "indexed"); 204s 12 tests, 12 passed, 0 known failure, 0 skipped 204s [inst/lab2rgb.m] 204s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/lab2rgb.m 204s ***** assert (lab2rgb ([0 0 0]), [0, 0, 0], 1e-3) 204s ***** assert (lab2rgb ([53.24, 80.09, 67.20]), [1 0 0], 1e-3) 204s ***** assert (lab2rgb ([97.14, -21.55, 94.48]), [1 1 0], 1e-3) 204s ***** assert (lab2rgb ([87.74, -86.18, 83.18]), [0 1 0], 1e-3) 204s ***** assert (lab2rgb ([91.11, -48.09, -14.13]), [0 1 1], 1e-3) 204s ***** assert (lab2rgb ([32.30, 79.19, -107.86]), [0 0 1], 1e-3) 204s ***** assert (lab2rgb ([60.32, 98.24, -60.83]), [1 0 1], 1e-3) 204s ***** assert (lab2rgb ([100, 0.00, 0.00]), [1 1 1], 1e-3) 204s ***** assert (lab2rgb ([53.39, 0.00, 0.00]), [0.5 0.5 0.5], 1e-3) 204s ***** assert (lab2rgb ([39.77, 64.51, 54.13]), [0.75 0 0], 1e-3) 204s ***** assert (lab2rgb ([25.42, 47.91, 37.91]), [0.5 0 0], 1e-3) 204s ***** assert (lab2rgb ([9.66, 29.68, 15.24]), [0.25 0 0], 1e-3) 204s ***** assert (lab2rgb ([68.11, 48.39, 22.83]), [1 0.5 0.5], 1e-3) 204s ***** assert (lab2rgb ([150 130 130]), [2.714, 1.028, 0.492], 1e-3) 204s ***** test 204s lab_map = rand (64, 3); 204s lab_map(:,1) = lab_map(:,1) .* 100; 204s lab_map(:,2) = lab_map(:,2) .* 254 - 127; 204s lab_map(:,3) = lab_map(:,3) .* 254 - 127; 204s assert (rgb2lab (lab2rgb (lab_map)), lab_map, 5e-3); 204s ***** test 204s lab_img = rand (64, 64, 3); 204s lab_img(:,:,1) = lab_img(:,:,1) .* 100; 204s lab_img(:,:,2) = lab_img(:,:,2) .* 254 - 127; 204s lab_img(:,:,3) = lab_img(:,:,3) .* 254 - 127; 204s assert (rgb2lab (lab2rgb (lab_img)), lab_img, 5e-3); 204s ***** assert (lab2rgb (sparse ([0 0 0])), [0 0 0], 1e-3) 204s ***** assert (lab2rgb (sparse ([100, 0.00, 0.00])), [1 1 1], 1e-3) 204s ***** assert (class (lab2rgb (single([50 50 50]))), 'single') 204s ***** error lab2rgb () 204s ***** error lab2rgb (1,2) 204s ***** error lab2rgb ({1}) 204s ***** error lab2rgb (ones (2,2)) 204s ***** test 204s lab = rand (16, 16, 3, 5); 204s lab(:,:,1,:) = lab(:,:,1,:) .* 100; 204s lab(:,:,2,:) = lab(:,:,2,:) .* 254 - 127; 204s lab(:,:,3,:) = lab(:,:,3,:) .* 254 - 127; 204s rgb = zeros (size (lab)); 204s for i = 1:5 204s rgb(:,:,:,i) = lab2rgb (lab(:,:,:,i)); 204s endfor 204s assert (lab2rgb (lab), rgb) 204s 24 tests, 24 passed, 0 known failure, 0 skipped 204s [inst/checkerboard.m] 204s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/checkerboard.m 204s ***** demo 204s ## Simplest case, default checkerboard size: 204s ## 8 by 8 checkerboard, with squares 10 pixel wide 204s board = checkerboard (); 204s imshow (board) 204s ***** demo 204s ## Simplest case, default checkerboard size: 204s ## 8 by 16 checkerboard, with squares 5 pixel wide 204s board = checkerboard (5, 4, 8); 204s imshow (board) 204s ***** assert (checkerboard (0), zeros (0, 0)) 204s ***** assert (checkerboard (0, 3), zeros (0, 0)) 204s ***** assert (checkerboard (0, 2, 4), zeros (0, 0)) 204s ***** assert (checkerboard (0, 2, 4, 3), zeros (0, 0, 0)) 204s ***** assert (checkerboard (0, 2, 4, 3, 2), zeros (0, 0, 0, 0)) 204s ***** assert (checkerboard (1, 4, 2, 3, 0), zeros (8, 4, 6, 0)) 204s ***** assert (checkerboard (1, 4, 0, 3, 2), zeros (8, 0, 6, 4)) 204s ***** assert (checkerboard (2, 4, 0, 3, 2), zeros (16, 0, 12, 8)) 204s ***** test 204s out = zeros (80); 204s i1 = ((1:20:80) + (0:9)')(:); 204s i2 = ((11:20:80) + (0:9)')(:); 204s out(i1, i2) = 1; 204s out(i2, i1) = 1; 204s i1r = ((41:20:80) + (0:9)')(:); 204s i2r = ((51:20:80) + (0:9)')(:); 204s out(i2, i1r) = 0.7; 204s out(i1, i2r) = 0.7; 204s assert (checkerboard (), out) 204s assert (checkerboard (10, 4, 4), out) 204s assert (checkerboard (10, [4 4]), out) 204s assert (checkerboard (10, [4; 4]), out) 204s ***** test 204s out = zeros (8); 204s out(2:2:8, 1:2:8) = 1; 204s out(1:2:8, 2:2:8) = 1; 204s out(1:2:8, 6:2:8) = 0.7; 204s out(2:2:8, 5:2:8) = 0.7; 204s assert (checkerboard (1), out) 204s assert (checkerboard (1, 4), out) 204s assert (checkerboard (1, 4, 4), out) 204s assert (checkerboard (1, [4 4]), out) 204s ***** test 204s out = zeros (10); 204s out(2:2:10, 1:2:10) = 1; 204s out(1:2:10, 2:2:10) = 1; 204s out(1:2:10, 6:2:10) = 0.7; 204s out(2:2:10, 7:2:10) = 0.7; 204s assert (checkerboard (1, 5), out) 204s assert (checkerboard (1, 5, 5), out) 204s assert (checkerboard (1, [5 5]), out) 204s ***** test 204s out = zeros (20); 204s out([1:4:20 2:4:20], [3:4:20 4:4:20]) = 1; 204s out([3:4:20 4:4:20], [1:4:20 2:4:20]) = 1; 204s out([1:4:20 2:4:20], [11:4:20 12:4:20]) = 0.7; 204s out([3:4:20 4:4:20], [13:4:20 14:4:20]) = 0.7; 204s assert (checkerboard (2, 5), out) 204s assert (checkerboard (2, 5, 5), out) 204s assert (checkerboard (2, [5 5]), out) 204s ***** test 204s out = zeros (4, 4, 4); 204s out([1 3], 1, [1 3]) = 1; 204s out([2 4], 2, [1 3]) = 1; 204s out([1 3], 2, [2 4]) = 1; 204s out([2 4], 1, [2 4]) = 1; 204s out([1 3], 3, [1 3]) = 0.7; 204s out([2 4], 4, [1 3]) = 0.7; 204s out([1 3], 4, [2 4]) = 0.7; 204s out([2 4], 3, [2 4]) = 0.7; 204s assert (checkerboard (1, [2 2 2]), out) 204s assert (checkerboard (1, 2, 2, 2), out) 204s ***** test 204s out = zeros (8, 8, 8); 204s out([1 2 5 6], [1 2], [1 2 5 6]) = 1; 204s out([3 4 7 8], [3 4], [1 2 5 6]) = 1; 204s out([1 2 5 6], [3 4], [3 4 7 8]) = 1; 204s out([3 4 7 8], [1 2], [3 4 7 8]) = 1; 204s out([1 2 5 6], [5 6], [1 2 5 6]) = 0.7; 204s out([3 4 7 8], [7 8], [1 2 5 6]) = 0.7; 204s out([1 2 5 6], [7 8], [3 4 7 8]) = 0.7; 204s out([3 4 7 8], [5 6], [3 4 7 8]) = 0.7; 204s assert (checkerboard (2, [2 2 2]), out) 204s assert (checkerboard (2, 2, 2, 2), out) 204s 14 tests, 14 passed, 0 known failure, 0 skipped 204s [inst/imclearborder.m] 204s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imclearborder.m 204s ***** test 204s a = logical ([ 204s 0 1 0 0 1 0 0 0 0 1 204s 1 0 0 0 0 1 0 0 0 0 204s 0 1 0 0 0 0 0 0 0 0 204s 1 0 1 0 1 0 1 0 0 1 204s 0 0 0 0 0 0 0 1 1 0 204s 0 0 1 0 0 1 0 1 0 0 204s 0 1 0 1 0 1 1 0 0 0 204s 0 0 0 1 0 0 0 0 0 0 204s 0 0 0 1 0 1 1 0 0 0 204s 0 0 0 1 1 0 0 0 1 0]); 204s 204s a4 = logical ([ 204s 0 0 0 0 0 0 0 0 0 0 204s 0 0 0 0 0 1 0 0 0 0 204s 0 1 0 0 0 0 0 0 0 0 204s 0 0 1 0 1 0 1 0 0 0 204s 0 0 0 0 0 0 0 1 1 0 204s 0 0 1 0 0 1 0 1 0 0 204s 0 1 0 0 0 1 1 0 0 0 204s 0 0 0 0 0 0 0 0 0 0 204s 0 0 0 0 0 1 1 0 0 0 204s 0 0 0 0 0 0 0 0 0 0]); 204s 204s a8 = logical ([ 204s 0 0 0 0 0 0 0 0 0 0 204s 0 0 0 0 0 0 0 0 0 0 204s 0 0 0 0 0 0 0 0 0 0 204s 0 0 0 0 1 0 0 0 0 0 204s 0 0 0 0 0 0 0 0 0 0 204s 0 0 0 0 0 0 0 0 0 0 204s 0 0 0 0 0 0 0 0 0 0 204s 0 0 0 0 0 0 0 0 0 0 204s 0 0 0 0 0 0 0 0 0 0 204s 0 0 0 0 0 0 0 0 0 0]); 204s 204s assert (imclearborder (a, 4), a4) 204s assert (imclearborder (a, [0 1 0; 1 1 1; 0 1 0]), a4) 204s assert (imclearborder (a), a8) 204s assert (imclearborder (a, 8), a8) 204s assert (imclearborder (a, ones (3)), a8) 204s ***** test 204s a = false (5, 5, 3); 204s a(2:4,2:4,:) = true; 204s assert (imclearborder (a, 4), a) 204s 204s a(1,2) = true; 204s a4 = a; 204s a4(:,:,1) = false; 204s assert (imclearborder (a, 4), a4) 204s 2 tests, 2 passed, 0 known failure, 0 skipped 204s [inst/ordfiltn.m] 204s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/ordfiltn.m 204s ***** shared b, f, s 204s b = [ 0 1 2 3 204s 1 8 12 12 204s 4 20 24 21 204s 7 22 25 18]; 204s 204s f = [ 8 12 12 12 204s 20 24 24 24 204s 22 25 25 25 204s 22 25 25 25]; 204s ***** assert (ordfiltn (b, 9, true (3)), f); 204s 204s f = [ 1 8 12 12 204s 8 20 21 21 204s 20 24 24 24 204s 20 24 24 24]; 204s ***** assert (ordfiltn (b, 8, true (3)), f); 204s 204s f = [ 1 2 8 12 204s 4 12 20 21 204s 8 22 22 21 204s 20 24 24 24]; 204s ***** assert (ordfiltn (b, 7, true (3), "symmetric"), f); 204s 204s f = [ 1 8 12 12 204s 4 20 24 21 204s 7 22 25 21 204s 7 22 25 21]; 204s ***** assert (ordfiltn (b, 3, true (3, 1)), f); 204s 204s f = [ 1 8 12 12 204s 4 20 24 18 204s 4 20 24 18 204s 4 20 24 18]; 204s ***** assert (ordfiltn (b, 3, true (4, 1)), f); 204s 204s f = [ 4 20 24 21 204s 7 22 25 21 204s 7 22 25 21 204s 7 22 25 21]; 204s ***** assert (ordfiltn (b, 4, true (4, 1)), f); 204s 204s s = [0 0 1 204s 0 0 1 204s 0 0 1]; 204s f = [ 2 8 12 12 204s 9 20 22 21 204s 21 25 24 24 204s 21 25 24 24]; 204s ***** assert (ordfiltn (b, 8, true (3), s), f); 204s 204s b(:,:,2) = b(:,:,1) - 1; 204s b(:,:,3) = b(:,:,2) - 1; 204s f(:,:,1) = [ 1 8 11 11 204s 8 20 21 21 204s 20 24 24 24 204s 20 24 24 24]; 204s f(:,:,2) = [ 6 10 11 11 204s 18 22 22 22 204s 20 24 24 24 204s 20 24 24 24]; 204s f(:,:,3) = [ 0 7 10 10 204s 7 19 20 20 204s 19 23 23 23 204s 19 23 23 23]; 204s ***** assert (ordfiltn (b, 25, true (3, 3, 3)), f); 204s 8 tests, 8 passed, 0 known failure, 0 skipped 204s [inst/lab2double.m] 204s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/lab2double.m 204s ***** test 204s l_max_f = 100 + (25500 / 65280); 204s ab_max_f = 127 + (255 / 256); 204s cm = [ 204s -Inf 204s Inf 204s NaN 204s l_max_f 204s ab_max_f 204s -200 204s -129 204s -128 204s -128+(255/65280)*(0.499999) 204s -128+(255/65280)*(0.500001) # should be 0.5, but float rounding error 204s -128+(255/65280)*(0.500002) 204s -127 204s -1 204s 0 204s (100/65280)*(0.499999) 204s (100/65280)*(0.51) 204s (100/65280)*(0.500001) 204s 1 204s 99 204s 100 204s 101 204s 126 204s 127 204s 128 204s 254 204s 255 204s 256 204s 257]; 204s cm = repmat (cm, [1 3]); 204s im2d = reshape (cm, [7 4 3]); 204s imnd = permute (im2d, [1 4 3 2]); 204s 204s cm_uint8 = uint8 ([ 204s 0 0 0 204s 255 255 255 204s 255 255 255 204s 255 228 228 204s 255 255 255 204s 0 0 0 204s 0 0 0 204s 0 0 0 204s 0 0 0 204s 0 0 0 204s 0 0 0 204s 0 1 1 204s 0 127 127 204s 0 128 128 204s 0 128 128 204s 0 128 128 204s 0 128 128 204s 3 129 129 204s 252 227 227 204s 255 228 228 204s 255 229 229 204s 255 254 254 204s 255 255 255 204s 255 255 255 204s 255 255 255 204s 255 255 255 204s 255 255 255 204s 255 255 255]); 204s 204s assert (lab2uint8 (cm), cm_uint8) 204s im2d_uint8 = reshape (cm_uint8, [7 4 3]); 204s assert (lab2uint8 (im2d), im2d_uint8) 204s assert (lab2uint8 (imnd), permute (im2d_uint8, [1 4 3 2])) 204s 204s cm_uint16 = uint16 ([ 204s 0 0 0 204s 65535 65535 65535 204s 65535 65535 65535 204s 65535 58468 58468 204s 65535 65535 65535 204s 0 0 0 204s 0 0 0 204s 0 0 0 204s 0 0 0 204s 0 1 1 204s 0 1 1 204s 0 256 256 204s 0 32512 32512 204s 0 32768 32768 204s 0 32768 32768 204s 1 32768 32768 204s 1 32768 32768 204s 653 33024 33024 204s 64627 58112 58112 204s 65280 58368 58368 204s 65535 58624 58624 204s 65535 65024 65024 204s 65535 65280 65280 204s 65535 65535 65535 204s 65535 65535 65535 204s 65535 65535 65535 204s 65535 65535 65535 204s 65535 65535 65535]); 204s 204s assert (lab2uint16 (cm), cm_uint16) 204s im2d_uint16 = reshape (cm_uint16, [7 4 3]); 204s assert (lab2uint16 (im2d), im2d_uint16) 204s assert (lab2uint16 (imnd), permute (im2d_uint16, [1 4 3 2])) 204s 204s assert (lab2single (cm), single (cm)) 204s assert (lab2single (im2d), single (im2d)) 204s assert (lab2single (imnd), single (imnd)) 204s 1 test, 1 passed, 0 known failure, 0 skipped 204s [inst/im2int16.m] 204s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/im2int16.m 204s ***** assert (im2int16 (int16 ([-2 2 3])), int16 ([-2 2 3])); 204s ***** assert (im2int16 (uint16 ([0 65535])), int16 ([-32768 32767])); 204s ***** assert (im2int16 ([false true]), int16 ([-32768 32767])); 204s ***** assert (im2int16 ([true false]), int16 ([32767 -32768])); 204s ***** assert (im2int16 (uint8 ([0 127 128 255])), int16 ([-32768 -129 128 32767])); 204s ***** assert (im2int16 ([0 1.4/65535 1.5/65535 2/65535 1]), int16 ([-32768 -32767 -32766 -32766 32767])); 204s ***** assert (im2int16 ([0 0.5 1]), int16 ([-32768 0 32767])); 204s ***** assert (im2int16 ([-1 0 1 2]), int16 ([-32768 -32768 32767 32767])); 204s ***** error im2int16 ([1 2], "indexed"); 204s 9 tests, 9 passed, 0 known failure, 0 skipped 204s [inst/imtransform.m] 204s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imtransform.m 204s ***** demo 204s ## Various linear transforms 204s figure (); 204s im = [checkerboard(20, 2, 4); checkerboard(40, 1, 2)]; 204s %input space corners 204s incp = [1 1; 160 1; 160 160; 1 160]; 204s udata = [min(incp(:,1)) max(incp(:,1))]; 204s vdata = [min(incp(:,2)) max(incp(:,2))]; 204s subplot (2,3,1); 204s imshow (im) 204s hold on 204s plot (incp(:,1), incp(:,2), 'ob') 204s axis on 204s xlabel ('Original') 204s 204s % Translation and scaling 204s outcp = incp * 2; 204s outcp(:,1) += 200; 204s outcp(:,2) += 500; 204s T = maketform ('affine', incp(1:3,:), outcp(1:3,:)); 204s subplot (2,3,2); 204s [im2 xdata ydata] = imtransform (im, T, 'udata', udata, 204s 'vdata', vdata, 'fillvalues', 1); 204s imh = imshow (im2); set (imh, 'xdata', xdata, 'ydata', ydata) 204s set (gca, 'xlim', xdata, 'ylim', ydata) 204s axis on, hold on, xlabel ('Translation / Scaling'); 204s plot (outcp(:,1), outcp(:,2), 'or') 204s 204s % Shear 204s outcp = [1 1; 160 1; 140 160; -19 160]; % affine only needs 3 control points 204s T = maketform ('affine', incp(1:3,:), outcp(1:3,:)); 204s subplot (2,3,3); 204s [im2 xdata ydata] = imtransform (im, T, 'udata', udata, 204s 'vdata', vdata, 'fillvalues', 1); 204s imh = imshow (im2); set (imh, 'xdata', xdata, 'ydata', ydata) 204s set (gca, 'xlim', xdata, 'ylim', ydata) 204s axis on, hold on, xlabel ('Shear'); 204s plot (outcp(:,1), outcp(:,2), 'or') 204s 204s % Rotation 204s theta = pi/4; 204s T = maketform ('affine', [cos(theta) -sin(theta); ... 204s sin(theta) cos(theta); 0 0]); 204s outcp = tformfwd (T, incp); 204s subplot (2,3,4); 204s [im2 xdata ydata] = imtransform (im, T, 'udata', udata, 204s 'vdata', vdata, 'fillvalues', 1 ); 204s imh = imshow (im2); set (imh, 'xdata', xdata, 'ydata', ydata) 204s set (gca, 'xlim', xdata, 'ylim', ydata) 204s axis on, hold on, xlabel ('Rotation'); 204s plot (outcp(:,1), outcp(:,2), 'or') 204s 204s % Reflection around x axis 204s outcp = incp; 204s outcp(:,2) *= -1; 204s T = cp2tform (incp, outcp, 'similarity'); 204s subplot (2,3,5); 204s [im2 xdata ydata] = imtransform (im, T, 'udata', udata, 204s 'vdata', vdata, 'fillvalues', 1 ); 204s imh = imshow (im2); set (imh, 'xdata', xdata, 'ydata', ydata) 204s set (gca, 'xlim', xdata, 'ylim', ydata) 204s axis on, hold on, xlabel ('Reflection'); 204s plot (outcp(:,1), outcp(:,2), 'or') 204s 204s % Projection 204s outcp = [1 1; 160 -40; 220 220; 12 140]; 204s T = maketform ('projective', incp, outcp); 204s subplot (2,3,6); 204s [im2 xdata ydata] = imtransform (im, T, 'udata', udata, 204s 'vdata', vdata, 'fillvalues', 1 ); 204s imh = imshow (im2); set (imh, 'xdata', xdata, 'ydata', ydata) 204s set (gca, 'xlim', xdata, 'ylim', ydata) 204s axis on, hold on, xlabel ('Projection'); 204s plot (outcp(:,1), outcp(:,2), 'or') 204s ***** demo 204s ## Streched image 204s rad = 2; % minimum value: 4/pi 204s [uu vv] = meshgrid ((-2:2)/rad, (-2:2)/rad); 204s rescfactor = sin ((uu.^2 + vv.^2).^.5); 204s inpts = [(reshape (uu, numel (uu), 1)), (reshape (vv, numel (uu), 1))]; 204s xx = rescfactor .* sign(uu); 204s yy = rescfactor .* sign(vv); 204s outpts = [reshape(xx, numel (xx), 1) reshape(yy, numel (yy), 1)]; 204s 204s T = cp2tform (inpts, outpts, "polynomial", 4); 204s figure; 204s subplot (1,2,1) 204s im = zeros (800, 800, 3); 204s im(:,:,1) = checkerboard (100) > 0.2; 204s im(:,:,3) = checkerboard (100) < 0.2; 204s [im2 xdata ydata] = imtransform (im, T, 'udata', [-2 2], 204s 'vdata', [-2 2], 'fillvalues', 204s [0 1 0]); 204s imh = imshow (im2); 204s set (imh, 'xdata', xdata, 'ydata', ydata) 204s set (gca, 'xlim', xdata, 'ylim', ydata) 204s [im cmap] = imread ('default.img'); 204s subplot (1,2,2) 204s [im2 xdata ydata] = imtransform (im, T, 'udata', [-1 1], 204s 'vdata', [-1 1], 'fillvalues', 204s round (length (cmap) / 2)); 204s imh = imshow (im2, cmap); 204s ***** test 204s im = checkerboard (); 204s incp = [0 0; 0 1; 1 1]; 204s scl = 10; 204s outcp = scl * incp; 204s T = maketform ('affine', incp, outcp); 204s [im2 xdata ydata] = imtransform (im, T, 'udata', [0 1], 204s 'vdata', [0 1], 'size', [500 500]); 204s assert (xdata, scl * ([0 1])) 204s assert (ydata, scl * ([0 1])) 204s assert (size (im2), [500 500]) 204s ***** test 204s im = checkerboard (); 204s incp = [0 0; 0 1; 1 1]; 204s scl = 10; 204s outcp = scl * incp; 204s xyscale = scl; 204s T = maketform ('affine', incp, outcp); 204s [im2 xdata ydata] = imtransform (im, T, 'xyscale', xyscale); 204s assert (size (im2), size (im), 1) 204s ***** test 204s im = checkerboard (100, 10, 4); 204s theta = 2 * pi; 204s T = maketform ("affine", [cos(theta) -sin(theta); ... 204s sin(theta) cos(theta); 0 0]); 204s im2 = imtransform (im, T, "nearest", "xdata", [1 800], "ydata", [1 2000]); 204s im = im(2:end-1, 2:end-1); %avoid boundaries 204s im2 = im2(2:end-1, 2:end-1); 204s assert (im, im2) 205s ***** test 205s im = checkerboard (20, 10, 4); 205s theta = pi/6; 205s T = maketform ('affine', [cos(theta) -sin(theta); ... 205s sin(theta) cos(theta); 0 0]); 205s [im2, xdata] = imtransform (im, T); 205s nu = columns(im); 205s nv = rows(im); 205s nx = xdata(2); 205s diag = sqrt (nu^2 + nv^2); 205s ang = atan (nv / nu); 205s assert (nx, diag * abs (cos (theta - ang)), 205s diag * 1 / size (im2, 2)) 205s ***** test 205s im = rand (2); 205s tmat = [eye(2); 0 0]; 205s T = maketform ("affine", tmat); 205s im2 = imtransform (im, T, "xdata", [1 3]); 205s assert (im2(:,3), zeros (2,1)) 205s ***** test 205s im = rand (2); 205s tmat = [eye(2); 0 0]; 205s T = maketform ('affine', tmat); 205s im2 = imtransform (im, T, "xdata", [1 3]); 205s assert (size (im2), [2 3]) 205s ***** test 205s im = rand (2); 205s tmat = [eye(2); 0 0]; 205s T = maketform ('affine', tmat); 205s im2 = imtransform (im, T, "xyscale", [0.5 0.5]); 205s assert (size (im2), [3 3]) 205s ***** test 205s im = [1,2,3,4; 5,6,7,8; 9,10,11,12; 13,14,15,16]; 205s tmat = [eye(2); 0 0]; 205s T = maketform ('affine', tmat); 205s im2 = imtransform (im, T, 'xdata', [1 4], 'ydata', [4 1]); 205s assert (im2, [13,14,15,16; 9,10,11,12; 5,6,7,8; 1,2,3,4]) 205s 205s im2 = imtransform (im, T, 'xdata', [4 1], 'ydata', [1 4]); 205s assert (im2, [4,3,2,1; 8,7,6,5; 12,11,10,9; 16,15,14,13]) 205s 205s [im2, xd, yd] = imtransform (im, T, 'xdata', [4 1], 'ydata', [4 1]); 205s assert (im2, [16,15,14,13; 12,11,10,9; 8,7,6,5; 4,3,2,1]) 205s assert (xd, [4 1]) 205s assert (yd, [4 1]) 205s 205s ***** error imtransform () 205s ***** error imtransform (rand(2)) 205s ***** error ... 205s imtransform (rand(2), maketform ('affine', [eye(2); 0 0]), ... 205s 'udata', [1 2], 'vdata', [2 1]); 205s ***** error ... 205s imtransform (rand(2), maketform ('affine', [eye(2); 0 0]), ... 205s 'udata', [2 1], 'vdata', [1 2]); 205s 12 tests, 12 passed, 0 known failure, 0 skipped 205s [inst/im2uint16.m] 205s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/im2uint16.m 205s ***** assert (im2uint16 (uint16 ([1 2 3])), uint16 ([1 2 3])); 205s ***** assert (im2uint16 (uint8 ([0 127 128 255])), uint16 ([0 32639 32896 65535])); 205s ***** assert (im2uint16 ([0 0.5 1]), uint16 ([0 32768 65535])); 205s ***** assert (im2uint16 ([0 1/65535 1.4/65535 1.5/65535 1]), uint16 ([0 1 1 2 65535])); 205s ***** assert (im2uint16 ([1 2]), uint16 ([65535 65535])); 205s ***** assert (im2uint16 ([-1 0 0.5 1]), uint16 ([0 0 32768 65535])); 205s ***** assert (im2uint16 (int16 ([-32768 -1 0 32768])), uint16 ([0 32767 32768 65535])); 205s ***** assert (im2uint16 ([false true]), uint16 ([0 65535])); 205s ***** assert (im2uint16 ([true false]), uint16 ([65535 0])); 205s ***** assert (im2uint16 (uint8 ([3 25]), "indexed"), uint16 ([3 25])); 205s ***** assert (im2uint16 ([1 3 25], "indexed"), uint16 ([0 2 24])); 205s ***** error im2uint16 ([0 1 2], "indexed"); 205s ***** error im2uint16 (int16 ([17 8]), "indexed"); 205s ***** error im2uint16 (int16 ([-7 8]), "indexed"); 205s ***** error im2uint16 ([false true], "indexed"); 205s ***** error im2uint16 (65537, "indexed"); 205s 16 tests, 16 passed, 0 known failure, 0 skipped 205s [inst/imregionalmax.m] 205s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imregionalmax.m 205s ***** test 205s a = [ 205s 7 3 9 3 10 3 205s 4 2 3 10 1 3 205s 1 4 6 9 4 10 205s 8 7 9 3 4 8 205s 5 9 3 3 8 9 205s 3 6 9 4 1 10]; 205s 205s a4 = [ 205s 1 0 1 0 1 0 205s 0 0 0 1 0 0 205s 0 0 0 0 0 1 205s 1 0 1 0 0 0 205s 0 1 0 0 0 0 205s 0 0 1 0 0 1]; 205s assert (imregionalmax (a, 4), logical (a4)) 205s a8 = [ 205s 1 0 0 0 1 0 205s 0 0 0 1 0 0 205s 0 0 0 0 0 1 205s 0 0 0 0 0 0 205s 0 0 0 0 0 0 205s 0 0 0 0 0 1]; 205s assert (imregionalmax (a, 8), logical (a8)) 205s assert (imregionalmax (a), logical (a8)) 205s ***** test 205s ## test float input images 205s im0 = peaks (); 205s im1 = im0 ./ 100; 205s max_pos_expected = [1000; 1214; 1691; 2353]; 205s max0 = imregionalmax (im0); 205s max0_pos = find (max0); 205s max1 = imregionalmax (im1); 205s assert (max1, max0) 205s assert (max0_pos, max_pos_expected) 205s 2 tests, 2 passed, 0 known failure, 0 skipped 205s [inst/bweuler.m] 205s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/bweuler.m 205s ***** demo 205s A=zeros(9,10); 205s A([2,5,8],2:9)=1; 205s A(2:8,[2,9])=1 205s bweuler(A) 205s # Euler number (objects minus holes) is 1-2=-1 in an 8-like object 205s ***** test 205s A=zeros(10,10); 205s A(2:9,3:8)=1; 205s A(4,4)=0; 205s A(8,8)=0; # not a hole 205s A(6,6)=0; 205s assert(bweuler(A),-1); 205s ***** test 205s A=zeros(10,10); 205s A(2:4,2:4)=1; 205s A(5:8,5:8)=1; 205s assert(bweuler(A,4),2); 205s assert(bweuler(A,8),1); 205s assert(bweuler(A),1); 205s ***** error <2 dimensions> bweuler (true (5, 5, 1, 5)) 205s 3 tests, 3 passed, 0 known failure, 0 skipped 205s [inst/stretchlim.m] 205s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/stretchlim.m 205s ***** error (stretchlim ()); 206s ***** error (stretchlim ("bad parameter")); 206s ***** error (stretchlim (zeros (10, 10), "bad parameter")); 206s ***** error (stretchlim (zeros (10, 10), 0.01, 2)); 206s ***** assert (stretchlim (0.01:.01:1), [0.02; 0.99]) 206s ***** assert (stretchlim (0.01:.01:1), stretchlim (0.01:.01:1, [0.01 0.99])) 206s ***** assert (stretchlim (0.01:.01:1, 0.15), stretchlim (0.01:.01:1, [0.15 0.85])) 206s ***** assert (stretchlim (0.01:.01:1, [0.01,0.95]), [0.02; 0.95], eps) 206s ***** assert (stretchlim (0.01:.01:1, 0), [0.01; 1]) 206s ***** test 206s im = rand (5); 206s assert (stretchlim (im, 0), [min(im(:)); max(im(:))]) 206s ***** test 206s im = rand (5, 5, 3); 206s assert (stretchlim (im, 0), 206s [min(im(:,:,1)(:)) min(im(:,:,2)(:)) min(im(:,:,3)(:)); 206s max(im(:,:,1)(:)) max(im(:,:,2)(:)) max(im(:,:,3)(:))]) 206s ***** test 206s im = rand (5); 206s assert (stretchlim (im, 0.03), [min(im(:)); max(im(:))]) 206s assert (stretchlim (im, 0.0399), [min(im(:)); max(im(:))]) 206s ***** assert (stretchlim (uint8 (1:100)), im2double (uint8 ([2; 99]))) 206s ***** assert (stretchlim (uint8 (1:100), .25), im2double (uint8 ([26; 75]))) 206s ***** assert (stretchlim (uint16 (1:1000)), im2double (uint16 ([11; 990]))) 206s ***** assert (stretchlim (int16 (-100:100)), im2double (int16 ([-98; 98]))) 206s ***** assert (stretchlim (single (0.01:.01:1)), 206s double (single (0.01:.01:1)([2; 99])).') 206s ***** assert (stretchlim (uint8 ([1 repmat(2, [1, 90]) 92:100]), 0.05), 206s im2double (uint8 ([2; 95]))) 206s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 4]) 6:100]), 0.05), 206s im2double (uint8 ([6; 95]))) 206s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) 7:100]), 0.05), 206s im2double (uint8 ([2; 95]))) 206s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 6]) 8:100]), 0.05), 206s im2double (uint8 ([2; 95]))) 206s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 7]) 9:100]), 0.05), 206s im2double (uint8 ([2; 95]))) 206s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 8]) 10:100]), 0.05), 206s im2double (uint8 ([2; 95]))) 206s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) repmat(3, [1 5]) 9:100]), 0.04), 206s im2double (uint8 ([2; 96]))) 206s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) repmat(3, [1 5]) 9:100]), 0.05), 206s im2double (uint8 ([2; 95]))) 206s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) repmat(3, [1 5]) 9:100]), 0.06), 206s im2double (uint8 ([3; 94]))) 206s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) repmat(3, [1 5]) 9:100]), 0.07), 206s im2double (uint8 ([3; 93]))) 206s ***** assert (stretchlim (uint8 ([1 repmat(2, [1 5]) repmat(3, [1 5]) 9:100]), 0.08), 206s im2double (uint8 ([3; 92]))) 206s ***** test 206s RGB = zeros (100, 1, 3, "uint16"); 206s RGB(:,:,1) = [1:1:100]; 206s RGB(:,:,2) = [2:2:200]; 206s RGB(:,:,3) = [4:4:400]; 206s assert (stretchlim (RGB) , im2double (uint16 ([2 4 8; 99 198 396]))) 206s ***** test 206s im6c = zeros (100, 1, 6, "uint16"); 206s im6c(:,:,1) = [1:1:100]; 206s im6c(:,:,2) = [2:2:200]; 206s im6c(:,:,3) = [4:4:400]; 206s im6c(:,:,4) = [8:8:800]; 206s im6c(:,:,5) = [16:16:1600]; 206s im6c(:,:,6) = [32:32:3200]; 206s assert (stretchlim (im6c) , 206s im2double (uint16 ([2 4 8 16 32 64; 99 198 396 792 1584 3168]))) 206s ***** test 206s im = [0 0 .1 .1 .1 .1 .2 .2 .2 .4 .4 .6 .6 .7 .7 .9 .9 .9 1 1]; 206s 206s assert (stretchlim (im), [0; 1]) 206s 206s ## Consider the returned lower limit in this test. A lower limit 206s ## of 0.1 will saturate two elements (10%), while 0.2 will saturate 206s ## 6 elements (30%). Both have the same distance to 20% but returning 206s ## 0.1 is Matlab compatible. 206s ## Now looking at the higher limit. A limit of .9 will saturate 206s ## 2 elements (10%), while a limit of 0.7 will saturate 5 elements (25%). 206s ## However, for Matlab compatibility we must return .9 even though 206s ## 25% would be closer to 20%. 206s ## Basically, it's not just rounded. 206s assert (stretchlim (im, .2), [0.1; 0.9]) 206s 206s assert (stretchlim (im, .15), [0.1; 0.9]) 206s assert (stretchlim (im, .1), [0.1; 0.9]) 206s assert (stretchlim (im, .25), [0.1; 0.7]) 206s 206s ## Reorder the vector of values (real images don't have the values 206s ## already sorted), just to be sure it all works. 206s im([6 3 16 11 7 17 14 8 5 19 15 1 2 4 18 13 9 20 10 12]) = im; 206s assert (stretchlim (im, .2), [0.1; 0.9]) 206s assert (stretchlim (im, .15), [0.1; 0.9]) 206s assert (stretchlim (im, .1), [0.1; 0.9]) 206s assert (stretchlim (im, .25), [0.1; 0.7]) 206s ***** assert (stretchlim (0.01:.001:1), [0.019; 0.991], eps) 206s ***** assert (stretchlim (0.01:.001:1, [0.01,0.95]), [0.019; 0.951], eps) 206s ***** assert (stretchlim (0.01:.001:1, 0), [0.01; 1]) 206s ***** assert (stretchlim (single (0.01:.001:1)), 206s double (single (0.01:.001:1)([10; 982])).') 206s ***** xtest 206s assert (stretchlim ([(.05:.05:1) (2:4)], 0.2), [0.25; 0.95], eps) 206s assert (stretchlim ([(.05:.05:1) (2:5)], 0.2), [0.25; 1]) 206s assert (stretchlim ([(.05:.05:1) (2:6)], 0.2), [0.3; 1]) 206s assert (stretchlim ([(.05:.05:1) (2:7)], 0.2), [0.3; 1]) 206s !!!!! known failure 206s ASSERT errors for: assert (stretchlim ([(.05:.05:1), (2:6)], 0.2),[0.3; 1]) 206s 206s Location | Observed | Expected | Reason 206s (1) 0.3 0.3 Abs err 5.5511e-17 exceeds tol 0 by 6e-17 206s ***** test 206s assert (stretchlim ([(-6:0) (.05:.05:1)], 0.2), [0; 0.75], eps) 206s assert (stretchlim ([(-5:0) (.05:.05:1)], 0.2), [0; 0.75], eps) 206s ***** test 206s im = rand (4, 4, 2, 3, 2); 206s rv = zeros (2, 2, 3, 2); 206s for p = 1:2 206s for q = 1:3 206s for r = 1:2 206s rv(:,p,q,r) = stretchlim (im(:,:,p,q,r), 0.25); 206s endfor 206s endfor 206s endfor 206s assert (stretchlim (im, 0.25), rv) 206s ***** test 206s im = rand (4, 4, 2, 3, 2); 206s rv = zeros (2, 2, 3, 2); 206s for p = 1:2 206s for q = 1:3 206s for r = 1:2 206s rv(:,p,q,r) = stretchlim (im(:,:,p,q,r), 0); 206s endfor 206s endfor 206s endfor 206s assert (stretchlim (im, 0), rv) 206s ***** assert (stretchlim (zeros (5)), [0; 1]) 206s ***** assert (stretchlim (ones (5)), [0; 1]) 206s ***** assert (stretchlim (.6 * ones (5)), [0; 1]) 206s ***** assert (stretchlim (zeros (3, 3, 3, 3)), repmat ([0; 1], [1 3 3])) 206s ***** assert (stretchlim ([0 .5 .5 .5 .5 1], .2), [0; 1]) 206s ***** test 206s im = repmat ((magic (5) -1) / 24, [1 1 3 3]); 206s im(:,:,1,1) = 0; 206s im(:,:,2,2) = .5; 206s im(:,:,3,3) = 1; 206s lims = stretchlim (im, 0.2); 206s assert (size (lims), [2 3 3]) 206s assert (lims(:, [2 3 4 6 7 8]), 206s repmat ([(1/24)*round(24*.2); 1-((1/24)*round(24*.2))], [1 6]), eps) 206s assert (lims(:, [1 5 9]), repmat ([0; 1], [1 3])) 206s 45 tests, 44 passed, 1 known failure, 0 skipped 206s [inst/imnoise.m] 206s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imnoise.m 206s ***** assert(var(imnoise(ones(10)/2,'gaussian')(:)),0.01,0.005) # probabilistic 206s ***** assert(length(find(imnoise(ones(10)/2,'salt & pepper')~=0.5)),5,10) # probabilistic 206s ***** assert(var(imnoise(ones(10)/2,'speckle')(:)),0.01,0.005) # probabilistic 206s ***** test 206s A = imnoise (.5 * ones (100), 'poisson'); 206s assert (class (A), 'double') 206s ***** test 206s A = imnoise (.5 * ones (100, 'single'), 'poisson'); 206s assert (class (A), 'single') 206s ***** test 206s A = imnoise (128 * ones (100, 'uint8'), 'poisson'); 206s assert (class (A), 'uint8') 206s ***** test 206s A = imnoise (256 * ones (100, 'uint16'), 'poisson'); 206s assert (class (A), 'uint16') 206s ***** demo 206s A = imnoise (2^7 * ones (100, 'uint8'), 'poisson'); 206s subplot (2, 2, 1) 206s imshow (A) 206s title ('uint8 image with poisson noise') 206s A = imnoise (2^15 * ones (100, 'uint16'), 'poisson'); 206s subplot (2, 2, 2) 206s imshow (A) 206s title ('uint16 image with poisson noise') 206s A = imnoise (.5 * ones (100), 'poisson'); 206s subplot (2, 2, 3) 206s imshow (A) 206s title ('double image with poisson noise') 206s A = imnoise (.5 * ones (100, 'single'), 'poisson'); 206s subplot (2, 2, 4) 206s imshow (A) 206s title ('single image with poisson noise') 206s 7 tests, 7 passed, 0 known failure, 0 skipped 206s [inst/roicolor.m] 206s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/roicolor.m 206s ***** demo 206s roicolor([1:10],2,4); 206s % Returns '1' where input values are between 2 and 4 (both included). 206s ***** assert(roicolor([1:10],2,4),logical([0,1,1,1,zeros(1,6)])); 206s ***** assert(roicolor([1,2;3,4],3,3),logical([0,0;1,0])); 206s ***** assert(roicolor([1,2;3,4],[1,4]),logical([1,0;0,1])); 206s 3 tests, 3 passed, 0 known failure, 0 skipped 206s [inst/isgray.m] 206s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/isgray.m 206s ***** assert (isgray ([0 0 1; 1 0 1]), true) 206s ***** assert (isgray (zeros (3)), true) 206s ***** assert (isgray (ones (3)), true) 206s ***** test 206s a = rand (10); 206s assert (isgray (a), true); 206s a(5, 5) = 2; 206s assert (isgray (a), false); 206s ***** test 206s a = uint8 (randi (255, 10)); 206s assert (isgray (a), true); 206s a = int8 (a); 206s assert (isgray (a), false); 206s ***** test 206s a = rand (10); 206s a(50) = NaN; 206s assert (isgray (a), true); 206s ***** assert (isgray (rand (5, 5, 1, 4)), true); 206s ***** assert (isgray (rand (5, 5, 3, 4)), false); 206s ***** assert (isgray (rand (5, 5, 3)), false); 206s ***** assert (isgray (rand (5, 5, 1, 3, 4)), false); 206s ***** assert (isgray (rand (5, "single")), true) 206s ***** assert (isgray ([.1 .2 .3; .4 NaN .6; .7 .8 .9]), true) 206s ***** assert (isgray ([.1 .2 .3; NA NaN .6; .7 .8 .9]), true) 206s ***** assert (isgray ([.1 .2 .3; NA .5 .6; .7 .8 .9]), true) 206s ***** assert (isgray (NaN (5)), false) 206s ***** assert (isgray (NA (5)), false) 206s 16 tests, 16 passed, 0 known failure, 0 skipped 206s [inst/xyz2lab.m] 206s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/xyz2lab.m 206s ***** assert (xyz2lab ([0, 0, 0]), [0 0 0], 5e-2) 206s ***** assert (xyz2lab ([0.4125, 0.2127, 0.0193]), [53.24, 80.09, 67.20], 5e-2) 206s ***** assert (xyz2lab ([0.7700, 0.9278, 0.1385]), [97.14, -21.55, 94.48], 5e-2) 206s ***** assert (xyz2lab ([0.3576, 0.7152, 0.1192]), [87.74, -86.18, 83.18], 5e-2) 206s ***** assert (xyz2lab ([0.5380, 0.7873, 1.0694]), [91.11, -48.09, -14.13], 5e-2) 206s ***** assert (xyz2lab ([0.1804, 0.07217, 0.9502]), [32.30, 79.19, -107.86], 5e-2) 206s ***** assert (xyz2lab ([0.5929, 0.28484, 0.9696]), [60.32, 98.24, -60.83], 5e-2) 206s ***** assert (xyz2lab ([0.9505, 1.0000, 1.0888]), [100, 0.00, 0.00], 5e-2) 206s ***** assert (xyz2lab ([0.2034, 0.2140, 0.2330]), [53.39, 0.00, 0.00], 5e-2) 206s ***** assert (xyz2lab ([0.2155, 0.1111, 0.0101]), [39.77, 64.51, 54.13], 5e-2) 206s ***** assert (xyz2lab ([0.0883, 0.0455, 0.0041]), [25.42, 47.91, 37.91], 5e-2) 206s ***** assert (xyz2lab ([0.02094, 0.0108, 0.00098]), [9.66, 29.68, 15.24], 5e-2) 206s ***** assert (xyz2lab ([0.5276, 0.3812, 0.2482]), [68.11, 48.39, 22.83], 5e-2) 206s ***** assert (xyz2lab ([1.5 1 1]), [100, 82.15, 5.60], 5e-2) 206s xyz_map = rand (64, 3); 206s assert (lab2xyz (xyz2lab (xyz_map)), xyz_map, 1e-5); 206s ***** test 206s xyz_img = rand (64, 64, 3); 206s assert (lab2xyz (xyz2lab (xyz_img)), xyz_img, 1e-5); 206s ***** assert (xyz2lab (sparse ([0 0 0])), [0 0 0], 5e-2) 206s ***** assert (class (xyz2lab (single([0.5 0.5 0.5]))), 'single') 206s ***** error xyz2lab () 206s ***** error xyz2lab (1,2) 206s ***** error xyz2lab ({1}) 206s ***** error xyz2lab (ones (2,2)) 206s ***** test 206s xyz = rand (16, 16, 3, 5); 206s lab = zeros (size (xyz)); 206s for i = 1:5 206s lab(:,:,:,i) = xyz2lab (xyz(:,:,:,i)); 206s endfor 206s assert (xyz2lab (xyz), lab) 206s 22 tests, 22 passed, 0 known failure, 0 skipped 206s [inst/wiener2.m] 206s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/wiener2.m 206s ***** shared im0, im0_out, im0_n 206s im0 = ones (5, 5); 206s im0_out = ones (5, 5); 206s im0_out(1:4:5, 1:4:5) = 0.67111; 206s im0_out(1:4:5, 2:4) = 0.78074; 206s im0_out(2:4, 1:4:5) = 0.78074; 206s im0_n = 0.1462; 206s ***** error wiener2 () 207s ***** assert (wiener2 (im0)) 207s ***** assert (wiener2 (im0, [2, 3])) 207s ***** assert (wiener2 (im0, 0.5)) 207s ***** assert (wiener2 (im0, [2, 3], 0.5)) 207s ***** error wiener2 (im0, [2, 3], 0.5, 2) 207s ***** test 207s [im_out, noise_out] = wiener2 (im0); 207s assert (size (im_out), size (im0)) 207s assert (class (noise_out), "double") 207s assert (numel (noise_out), 1) 207s ***** assert (wiener2 (im0), im0_out, 1e-5) 207s ***** assert (wiener2 (single (im0)), single (im0_out), 1e-5) 207s ***** assert (class (wiener2 (single (im0))), "single") 207s ***** assert (wiener2 (im2uint8 (im0)), im2uint8 (im0_out)) 207s ***** assert (class (wiener2 (im2uint8 (im0))), "uint8") 207s ***** assert (wiener2 (im2uint16 (im0)), im2uint16 (im0_out), 1) 207s ***** assert (class (wiener2 (im2uint16 (im0))), "uint16") 207s ***** assert (wiener2 (im2int16 (im0)), im2int16 (im0_out), 1) 207s ***** assert (class (wiener2 (im2int16 (im0))), "int16") 207s ***** test 207s im_out = wiener2 (im0); 207s assert (im_out, im0_out, 1e-4) 207s [out, n] = wiener2 (im0); 207s assert (out, im0_out, 1e-4) 207s assert (n, im0_n, 1e-4) 207s ***** test 207s im1 = zeros (5, 5); 207s im1(2:4, 2:4) = 1; 207s im1_out = [ 207s 0.1111 0.2222 0.2726 0.2222 0.1111; 207s 0.2222 0.5911 0.7274 0.5911 0.2222; 207s 0.2726 0.7274 1.0000 0.7274 0.2726; 207s 0.2222 0.5911 0.7274 0.5911 0.2222; 207s 0.1111 0.2222 0.2726 0.2222 0.1111]; 207s im1_n = 0.1817; 207s im1_out_55 = [ 207s 0.1600 0.2400 0.2400 0.2400 0.1600; 207s 0.2400 0.4667 0.4667 0.4667 0.2400; 207s 0.2400 0.4667 0.4667 0.4667 0.2400; 207s 0.2400 0.4667 0.4667 0.4667 0.2400; 207s 0.1600 0.2400 0.2400 0.2400 0.1600]; 207s im1_n_55 = 0.1920; 207s im1_out_05 = [ 207s 0.1111 0.2222 0.3333 0.2222 0.1111; 207s 0.2222 0.4444 0.6667 0.4444 0.2222; 207s 0.3333 0.6667 1.0000 0.6667 0.3333; 207s 0.2222 0.4444 0.6667 0.4444 0.2222; 207s 0.1111 0.2222 0.3333 0.2222 0.1111]; 207s im1_out_55_05 = [ 207s 0.1600 0.2400 0.2400 0.2400 0.1600; 207s 0.2400 0.3600 0.3600 0.3600 0.2400; 207s 0.2400 0.3600 0.3600 0.3600 0.2400; 207s 0.2400 0.3600 0.3600 0.3600 0.2400; 207s 0.1600 0.2400 0.2400 0.2400 0.1600]; 207s im1_out_35 = [ 207s 0.1333 0.2000 0.2000 0.2000 0.1333; 207s 0.2642 0.5156 0.5156 0.5156 0.2642; 207s 0.3230 0.6770 0.6770 0.6770 0.3230; 207s 0.2642 0.5156 0.5156 0.5156 0.2642; 207s 0.1333 0.2000 0.2000 0.2000 0.1333]; 207s im1_out_51 = [ 207s 0 0.2400 0.2400 0.2400 0 207s 0 0.7600 0.7600 0.7600 0 207s 0 0.7600 0.7600 0.7600 0 207s 0 0.7600 0.7600 0.7600 0 207s 0 0.2400 0.2400 0.2400 0]; 207s assert (wiener2 (im1), im1_out, 1e-4) 207s [out, n] = wiener2 (im1); 207s assert (out, im1_out, 1e-4) 207s assert (n, im1_n, 1e-4) 207s assert (wiener2 (im1, [5, 5]), im1_out_55, 1e-4) 207s [out, n] = wiener2 (im1, [5, 5]); 207s assert (out, im1_out_55, 1e-4) 207s assert (n, im1_n_55, 1e-4) 207s assert (wiener2 (im1, 0.5), im1_out_05, 1e-4) 207s assert (wiener2 (im1, [5, 5], 0.5), im1_out_55_05, 1e-4) 207s assert (wiener2 (im1, [3, 5]), im1_out_35, 1e-4) 207s assert (wiener2 (im1, [5, 1]), im1_out_51, 1e-4) 207s ***** test 207s ## Tests for even-sized neighbourhood 207s im1 = zeros (5, 5); 207s im1(2:4, 2:4) = 1; 207s 207s im1_out_23 = [ 207s 0.1667 0.2233 0.2978 0.2233 0.1667 207s 0.2233 0.7767 1.0000 0.7767 0.2233 207s 0.2233 0.7767 1.0000 0.7767 0.2233 207s 0.1667 0.5533 0.7022 0.5533 0.1667 207s 0 0 0 0 0]; 207s 207s im1_out_43 = [ 207s 0.1667 0.2813 0.3750 0.2813 0.1667 207s 0.2500 0.6250 0.7500 0.6250 0.2500 207s 0.2500 0.6250 0.7500 0.6250 0.2500 207s 0.1667 0.4375 0.6250 0.4375 0.1667 207s 0.0833 0.1667 0.2500 0.1667 0.0833]; 207s 207s im1_out_44 = [ 207s 0.2500 0.3018 0.3018 0.2500 0.1250 207s 0.3018 0.6647 0.6647 0.4971 0.1875 207s 0.3018 0.6647 0.6647 0.4971 0.1875 207s 0.2500 0.4971 0.4971 0.2500 0.1250 207s 0.1250 0.1875 0.1875 0.1250 0.0625]; 207s 207s assert (wiener2 (im1, [2, 3]), im1_out_23, 1e-4) 207s assert (wiener2 (im1, [4, 3]), im1_out_43, 1e-4) 207s assert (wiener2 (im1, [4, 4]), im1_out_44, 1e-4) 207s ***** test 207s im2 = zeros (5, 5); 207s im2(2:4, 2:4) = 70; 207s im2(3, 3) = 90; 207s im2 = uint8 (im2); 207s im2_out = uint8 ([ 207s 8 16 20 16 8 ; 207s 16 46 54 46 16; 207s 20 54 72 54 20; 207s 16 46 54 46 16; 207s 8 16 20 16 8 ]); 207s im2_n = 0.0146; 207s im2_out_55 = uint8 ([ 207s 12 18 18 18 12; 207s 18 32 32 32 18; 207s 18 32 35 32 18; 207s 18 32 32 32 18; 207s 12 18 18 18 12]); 207s im2_n_55 = 0.0160; 207s im2_out_03 = uint8 ([ 207s 8 16 23 16 8 ; 207s 16 33 49 33 16; 207s 23 49 72 49 23; 207s 16 33 49 33 16; 207s 8 16 23 16 8 ]); 207s im2_n_03 = 0.3000; 207s [out, n] = wiener2 (im2); 207s assert (out, im2_out) 207s assert (n, im2_n, 1e-4) 207s [out, n] = wiener2 (im2, [5, 5]); 207s assert (out, im2_out_55) 207s assert (n, im2_n_55, 1e-4) 207s [out, n] = wiener2 (im2, 0.3); 207s assert (out, im2_out_03) 207s assert (n, im2_n_03, 1e-4) 207s ***** test 207s im3 = zeros (5, 5); 207s im3(2:4, 2:4) = 70; 207s im3(3, 3) = 20; 207s im3 = uint8 (im3); 207s im3_out = uint8 ([ 207s 8 16 19 16 8 ; 207s 16 32 47 32 16; 207s 19 47 64 47 19; 207s 16 32 47 32 16; 207s 8 16 19 16 8 ]); 207s im3_n = 0.0134; 207s [out, n] = wiener2 (im3); 207s assert (out, im3_out) 207s assert (n, im3_n, 1e-4) 207s ***** test 207s im4 = 50 .* ones (5, 5); 207s im4(:, 1) = 200; 207s im4(:, 2) = 100; 207s im4 = uint8 (im4); 207s im4_out = uint8 ([ 207s 148 90 44 33 22; 207s 161 111 67 50 33; 207s 161 111 67 50 33; 207s 161 111 67 50 33; 207s 148 90 44 33 22]); 207s im4_n = 0.0398; 207s [out, n] = wiener2 (im4); 207s assert (out, im4_out) 207s assert (n, im4_n, 1e-4) 207s ***** test 207s im5 = zeros (100, 100); 207s im5(30, 30) = 1; 207s im5_out_center = [ 207s 0 0 0 0 0 0 0; 207s 0 0 0 0 0 0 0; 207s 0 0 0.0001 0.0001 0.0001 0 0; 207s 0 0 0.0001 0.9992 0.0001 0 0; 207s 0 0 0.0001 0.0001 0.0001 0 0; 207s 0 0 0 0 0 0 0; 207s 0 0 0 0 0 0 0]; 207s im5_n = 8.8889e-5; 207s [out, n] = wiener2 (im5); 207s out_center = out(27:33, 27:33); 207s assert (out_center, im5_out_center, 1e-4) 207s assert (n, im5_n, 1e-4) 207s ***** test 207s im = zeros (100, 10, 10); 207s im(5, 5, 5) = 1; 207s 207s [out, n] = wiener2 (im, [3 3]); 207s expected_out = im; 207s expected_out(4:6,4:6,5) = [ 207s 0.0001 0.0001 0.0001 207s 0.0001 0.9992 0.0001 207s 0.0001 0.0001 0.0001]; 207s assert (out, expected_out, eps) 207s 207s [out, n] = wiener2 (im, [3 3 3]); 207s expected_out = im; 207s expected_out(4:6,4:6,4:6) = 0.0001; 207s expected_out(5,5,5) = 0.9974; 207s assert (out, expected_out, eps) 207s 207s ## Default in ND, use nhood 3 even for singleton dimensions. 207s assert (wiener2 (im), wiener2 (im, [3 3 3])) 207s 207s im = reshape (im, [100 10 1 10]); 207s expected_out = im; 207s expected_out(4:6,4:6,1,4:6) = 0.0001/3; 207s expected_out(5,5,1,5) = 1-(80*(0.0001/3)); 207s assert (wiener2 (im), wiener2 (im, [3 3 3 3])) 207s assert (wiener2 (im), expected_out, eps) 207s 207s expected_out = im; 207s expected_out(4:6,4:6,1,4:6) = 0.0001; 207s expected_out(5,5,1,5) = 0.9974; 207s assert (wiener2 (im, [3 3 1 3]), expected_out, eps) 207s ***** test 207s expected = [0.2222 0.3926 0.3926 0.3926 0.2222]; 207s assert (wiener2 (ones (1, 5)), expected, .0001) 207s ***** assert (wiener2 ([]), []) 207s ***** assert (wiener2 (logical ([0 0; 1 1])), true (2, 2)) 207s ***** demo 207s I = phantom (); 207s J = imnoise (I, "gaussian", 0, 0.02); 207s figure, imshow (J); 207s title ("Image with added Gaussian noise"); 207s K = wiener2 (J, [5 5]); 207s figure, imshow (K); 207s title ("Image with noise reduced by wiener2 filtering"); 207s 27 tests, 27 passed, 0 known failure, 0 skipped 207s [inst/psf2otf.m] 207s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/psf2otf.m 207s ***** test 207s psf = rand (6, 1); 207s assert (psf2otf (psf), fft (circshift (psf, [-3])), eps); 207s ***** test 207s psf = rand (6, 6); 207s assert (psf2otf (psf), fft2 (circshift (psf, [-3 -3])), eps); 207s ***** test 207s psf = rand (6, 6, 6); 207s assert (psf2otf (psf), fftn (circshift (psf, [-3 -3 -3])), eps); 207s ***** test 207s psf = rand (7, 1); 207s assert (psf2otf (psf), fft (circshift (psf, [-3])), eps); 207s ***** test 207s psf = rand (7, 7); 207s assert (psf2otf (psf), fft2 (circshift (psf, [-3 -3])), eps); 207s ***** test 207s psf = rand (6, 7, 8); 207s assert (psf2otf (psf), fftn (circshift (psf, [-3 -3 -4])), eps); 207s ***** test 207s psf = rand (6, 1); 207s ppsf = [psf; 0]; 207s assert (psf2otf (psf, 7), fft (circshift (ppsf, [-3])), eps); 207s ***** test 207s psf = rand (6, 1); 207s ppsf = [[psf; 0] zeros(7, 6)]; 207s assert (psf2otf (psf, [7 7]), fft2 (circshift (ppsf, [-3 0])), eps); 207s ***** test 207s psf = rand (6, 6); 207s ppsf = [psf zeros(6, 1)]; 207s assert (psf2otf (psf, [6 7]), fft2 (circshift (ppsf, [-3 -3])), eps); 207s ***** error psf2otf ('foo') 207s ***** error psf2otf (rand (16), 14) 207s ***** error psf2otf (rand (16), [14 14]) 207s ***** error psf2otf (rand (16), [18]) 207s ***** error psf2otf (rand (16), [18 14]) 207s ***** test 207s psf = fspecial ("gaussian", 16) + 1i; 207s otf = psf2otf (psf); 207s assert (otf2psf (otf), psf, eps); 207s 15 tests, 15 passed, 0 known failure, 0 skipped 207s [inst/colorangle.m] 207s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/colorangle.m 207s ***** error id=Octave:invalid-fun-call colorangle () 207s ***** error id=Octave:invalid-fun-call colorangle (1, 2, 3) 207s ***** error colorangle (2, 3) 207s ***** error colorangle ([1, 2], [3, 4]) 207s ***** error id=Octave:expected-real colorangle ([1, 2, 3j], [4, 5, 6]) 207s ***** error id=Octave:expected-real colorangle ([1, 2, 3], [4j, 5, 6]) 207s ***** error id=Octave:invalid-type colorangle ("abc", "def") 207s ***** test 207s assert (colorangle ([0 0 0], [0 1 0]), NaN) 207s assert (colorangle ([0 0 0], [0 1 1]), NaN) 207s assert (colorangle ([0 1 0], [0 0 0]), NaN) 207s assert (colorangle ([1 1 0], [0 0 0]), NaN) 207s assert (colorangle ([1 1 1], [1 1 1]), 0) 207s ***** assert (colorangle ([0 0 0], [0 0 0]), 0) 207s ***** assert (colorangle ([1 0 0], [-1 0 0]), 180) 207s ***** assert (colorangle ([0 0 1], [1 0 0]), 90) 207s ***** assert (colorangle ([0; 0; 1], [1 0 0]), 90) 207s ***** assert (colorangle ([0, 0, 1], [1; 0; 0]), 90) 207s ***** assert (colorangle ([0.5 0.61237 -0.61237], [0.86603 0.35355 -0.35355]), 30.000270917, 1e-4) 207s ***** assert (colorangle ([0.1582055390, 0.2722362096, 0.1620813305], [0.0717 0.1472 0.0975]), 5.09209927, 1e-6) 207s ***** assert (colorangle ([0.0659838500, 0.1261619536, 0.0690643667], [0.0717 0.1472 0.0975]), 5.10358588, 1e-6) 207s ***** assert (colorangle ([0.436871170, 0.7794672250, 0.4489702582], [0.0717 0.1472 0.0975]), 5.01339769, 1e-6) 207s ***** test 207s a = [1 0 0]; 207s b = [1 1 0]; 207s expected = colorangle (a, b); 207s assert (colorangle (a.', b.'), expected) 207s assert (colorangle (a, b.'), expected) 207s assert (colorangle (a.', b), expected) 207s assert (colorangle (vec (a, 3), b.'), expected) 207s ***** assert (colorangle ([1 0 0; 0 1 1], [1 1 1; 2 3 4]), 207s [colorangle([1 0 0], [1 1 1]); colorangle([0 1 1], [2 3 4])]) 207s ***** test 207s a = [1 0 0; 0.5 1 0; 0 1 1; 1 1 1]; 207s b = [0 1 0]; 207s expected = zeros (4, 1); 207s for i = 1:4 207s expected(i) = colorangle (a(i,:), b); 207s endfor 207s assert (colorangle (a, b), expected) 207s assert (colorangle (b, a), expected) 207s ***** xtest 207s a = [1 2 3]; 207s b = [2 3 4]; 207s c = [5 6 7]; 207s d = [3 1 1]; 207s 207s ac = colorangle (c, a); 207s bc = colorangle (b, c); 207s ad = colorangle (a, d); 207s bd = colorangle (b, d); 207s 207s assert (colorangle (a, cat (3, c, d)), 207s cat (3, [ac ad])) 207s 207s assert (colorangle (cat (3, a, b), cat (3, c, d)), 207s cat (3, [ac cd])) 207s 207s assert (colorangle (cat (1, a, b), cat (3, c, d)), 207s reshape ([ac bc ad bd], [2 2])) 207s !!!!! known failure 207s dot: sizes of X and Y must match 207s 21 tests, 20 passed, 1 known failure, 0 skipped 207s [inst/im2col.m] 207s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/im2col.m 207s ***** demo 207s ## Divide A using distinct blocks and then reverse the operation 207s A = [ 1:10 207s 11:20 207s 21:30 207s 31:40]; 207s B = im2col (A, [2 5], "distinct") 207s C = col2im (B, [2 5], [4 10], "distinct") 207s ***** test 207s a = rand (10); 207s assert (im2col (a, [5 5]), im2col (a, [5 5], "sliding")) 207s ***** test 207s a = rand (10); 207s assert (im2col (a, [5 5]), im2col (a, "indexed", [5 5])) 207s ***** error im2col (rand (20), [2 5], 10) 207s ***** error im2col (rand (20), [2 5], "wrong_block_type") 207s ***** error im2col (rand (10), [5 5], "sliding", 5) 207s ***** error im2col (rand (10), "indexed", [5 5], "sliding", 5) 208s ***** shared B, A, Bs, As, Ap, Bp0, Bp1, Bp0_3s 208s v = [1:10]'; 208s r = reshape (v, 2, 5); 208s B = [v v+20 v+40 v+10 v+30 v+50]; 208s A = [r r+10; r+20 r+30; r+40 r+50]; 208s As = [ 1 2 3 4 5 208s 6 7 8 9 10 208s 11 12 13 14 15]; 208s b1 = As(1:2, 1:4)(:); 208s b2 = As(2:3, 1:4)(:); 208s b3 = As(1:2, 2:5)(:); 208s b4 = As(2:3, 2:5)(:); 208s Bs = [b1, b2, b3, b4]; 208s Ap = A(:, 1:9); 208s Bp1 = Bp0 = B; 208s Bp0(9:10, 4:6) = 0; 208s Bp1(9:10, 4:6) = 1; 208s Bp0_3s = Bp0; 208s Bp0_3s(11:30, :) = 0; 208s ***** assert (im2col (A, [2 5], "distinct"), B); 208s ***** assert (im2col (Ap, [2 5], "distinct"), Bp0); 208s ***** assert (im2col (Ap, [2 5 3], "distinct"), Bp0_3s); 208s ***** assert (im2col (Ap, "indexed", [2 5], "distinct"), Bp1); 208s ***** assert (im2col (uint8 (Ap), "indexed", [2 5], "distinct"), uint8 (Bp0)); 208s ***** assert (im2col (uint16 (Ap), "indexed", [2 5], "distinct"), uint16 (Bp0)); 208s ***** assert (im2col (int16 (Ap), "indexed", [2 5], "distinct"), int16 (Bp1)); 208s ***** assert (im2col (uint32 (Ap), "indexed", [2 5], "distinct"), uint32 (Bp1)); 208s ***** assert (im2col (uint8 (A), [2 5], "distinct"), uint8 (B)); 208s ***** assert (im2col (single (A), [2 5], "distinct"), single (B)); 208s ***** assert (im2col (logical (A), [2 5], "distinct"), logical (B)); 208s ***** assert (im2col (uint8 (As), [2 4], "sliding"), uint8 (Bs)); 208s ***** assert (im2col (single (As), [2 4], "sliding"), single (Bs)); 208s ***** assert (im2col (logical (As), [2 4], "sliding"), logical (Bs)); 208s ***** assert (im2col (As, [2 4], "sliding"), Bs); 208s ***** assert (im2col (As, [3 5], "sliding"), As(:)); 208s ***** test 208s A = randi (9, 10, 9, 5); 208s ***** assert (convn (A, ones (3, 3, 3), "valid"), 208s reshape (sum (im2col (A, [3 3 3])), [8 7 3])); 208s 208s A = randi (9, 10, 9, 5, 7); 208s ***** assert (convn (A, ones (3, 3, 3), "valid"), 208s reshape (sum (im2col (A, [3 3 3])), [8 7 3 7])); 208s ***** assert (convn (A, ones (3, 4, 3), "valid"), 208s reshape (sum (im2col (A, [3 4 3])), [8 6 3 7])); 208s ***** assert (convn (A, ones (3, 5, 3, 2), "valid"), 208s reshape (sum (im2col (A, [3 5 3 2])), [8 5 3 6])); 208s ***** assert (im2col (1:8, [2 1]), zeros (2, 0)) 208s 28 tests, 28 passed, 0 known failure, 0 skipped 208s [inst/entropyfilt.m] 208s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/entropyfilt.m 208s ***** test 208s a = log2 (9) * ones (5, 5); 208s b = -(2*log2 (2/9) + log2 (1/9))/3; 208s a(1,2:4) = b; 208s a(5,2:4) = b; 208s a(2:4,1) = b; 208s a(2:4,5) = b; 208s c = -(4*log2 (4/9) + 4*log2 (2/9) + log2 (1/9))/9; 208s a(1,1) = c; 208s a(5,1) = c; 208s a(1,5) = c; 208s a(5,5) = c; 208s assert (entropyfilt (uint8 (magic (5)), ones (3, 3)), a, 2*eps); 208s ***** test 208s assert (entropyfilt (uint8 (ones (10, 10))), zeros (10, 10)); 208s ***** test 208s A = zeros (3,3); 208s B = ones (3,3); 208s C = [1 1 1; 2 2 2; 3 3 3]; 208s D = C'; 208s E = ones (3,3); 208s E(2,2) = 2; 208s F = 3 .* ones (3,3); 208s F(2,2) = 1; 208s G = [-1 2 7; -5 2 8; -7 pi 9]; 208s H = [5 2 8; 1 -3 1; 5 1 0]; 208s Hf = mat2gray(H); 208s X = uint8(abs(H)); 208s P = [0.2 0.201 0.204; 0.202 0.203 0.205; 0.205 0.206 0.202]; 208s Q = uint16([100 101 103; 100 105 102; 100 102 103]); 208s 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]); 208s Aout = zeros (3); 208s Bout = zeros (3); 208s Cout = zeros (3); 208s Dout = zeros (3); 208s Eout = zeros (3); 208s Fout = zeros (3); 208s Gout_1 = -sum([2 7]./9.*log2([2 7]./9)); 208s Gout_2 = -sum([3 6]./9.*log2([3 6]./9)); 208s Gout_3 = -sum([4 5]./9.*log2([4 5]./9)); 208s Gout = [Gout_1 Gout_2 Gout_3; Gout_1 Gout_2 Gout_3; Gout_1 Gout_2 Gout_3]; 208s Hout_5 = -sum([2 7]./9.*log2([2 7]./9)) ; 208s Hout = [0.8916 0.8256 0.7412; 0.8256 Hout_5 0.6913; 0.7412 0.6913 0.6355]; 208s Hfout_5 = -sum([3 2 1 1 1 1]./9.*log2([3 2 1 1 1 1]./9)); 208s Hfout = [2.3613 2.3296 2.2252; 2.4571 Hfout_5 2.3090; 2.4805 2.4488 2.3445]; 208s Xout_5 = -sum([1 1 1 1 2 3]./9.*log2([1 1 1 1 2 3]./9)); 208s Xout = [2.3613 2.3296 2.2252; 2.4571 Xout_5 2.3090; 2.4805 2.4488 2.3445]; 208s Pout_5 = -sum([1 2 6]./9.*log2([1 2 6]./9)); 208s Pout = [1.1137 1.1730 1.2251; 1.1595 Pout_5 1.2774; 1.1556 1.2183 1.2635]; 208s Qout = zeros(3); 208s Rout = [3.5143 3.5700 3.4871 3.4957 3.4825; 208s 3.4705 3.5330 3.4341 3.4246 3.3890; 208s 3.3694 3.4063 3.3279 3.3386 3.3030; 208s 3.3717 3.4209 3.3396 3.3482 3.3044; 208s 3.4361 3.5047 3.3999 3.4236 3.3879]; 208s assert (entropyfilt (A), Aout); 208s assert (entropyfilt (B), Bout); 208s assert (entropyfilt (C), Cout); 208s assert (entropyfilt (D), Dout); 208s assert (entropyfilt (E), Eout); 208s assert (entropyfilt (F), Fout); 208s assert (entropyfilt (G), Gout, 1e-4); 208s assert (entropyfilt (H), Hout, 1e-4); 208s assert (entropyfilt (Hf), Hfout, 1e-4); 208s assert (entropyfilt (X), Xout, 1e-4); 208s assert (entropyfilt (P), Pout, 1e-4); 208s assert (entropyfilt (Q), Qout); 208s assert (entropyfilt (R), Rout, 1e-4); 208s 3 tests, 3 passed, 0 known failure, 0 skipped 208s [inst/imbothat.m] 208s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imbothat.m 208s ***** assert (imbothat (ones (3), [1 1; 0 1]), zeros (3)); 208s ***** assert (imbothat (true (3), [1 1; 0 1]), false (3)); 208s ***** shared in, out, se 208s in = [ 0 0 0 1 1 1 0 0 1 1 208s 0 1 0 1 1 1 0 0 0 1 208s 1 1 1 1 1 0 0 0 0 0 208s 0 1 1 1 1 0 0 0 0 0 208s 0 0 0 1 0 0 0 0 1 0 208s 0 0 0 0 0 0 0 1 1 1 208s 0 0 0 0 1 0 1 0 1 0 208s 0 0 0 1 1 1 1 1 0 0 208s 0 0 0 0 1 1 1 0 0 0 208s 0 0 0 1 1 1 0 0 0 0]; 208s 208s out = [ 1 1 1 0 0 0 1 1 0 0 208s 1 0 1 0 0 0 0 0 0 0 208s 0 0 0 0 0 0 0 0 0 1 208s 1 0 0 0 0 0 0 0 0 1 208s 0 0 0 0 1 0 0 0 0 1 208s 0 0 0 1 1 1 1 0 0 0 208s 0 0 0 1 0 1 0 1 0 1 208s 0 0 0 0 0 0 0 0 0 0 208s 0 0 0 1 0 0 0 0 0 0 208s 0 0 0 0 0 0 1 0 0 0]; 208s ***** assert (imbothat (logical (in), ones (3)), logical (out)); 208s 208s out = [ 7 0 15 8 1 6 0 13 6 24 208s 0 8 9 2 0 0 16 7 0 23 208s 89 7 0 41 39 7 12 7 0 23 208s 8 1 69 40 58 1 6 2 0 43 208s 7 0 63 59 52 0 0 0 14 32 208s 62 55 6 7 0 7 0 23 16 1 208s 56 74 0 2 0 0 16 14 7 0 208s 0 73 69 0 0 19 15 8 1 0 208s 8 6 0 0 6 13 9 2 0 6 208s 7 0 0 19 0 14 7 0 23 0]; 208s ***** assert (imbothat (magic (10), ones (3)), out); 208s ***** assert (imbothat (uint8 (magic (10)), strel ("square", 3)), uint8 (out)); 208s 208s ## using a se that will be decomposed in 2 pieces 208s out =[ 7 0 87 66 59 7 0 19 12 30 208s 0 13 81 60 58 1 19 13 6 29 208s 89 12 0 54 52 20 18 7 0 23 208s 8 6 69 53 71 14 12 2 0 43 208s 7 0 63 73 66 14 7 0 23 41 208s 76 69 14 7 0 30 23 46 39 7 208s 70 88 9 2 0 24 42 40 33 6 208s 14 87 80 0 0 43 41 34 27 0 208s 84 82 0 0 19 37 35 28 26 19 208s 89 82 0 20 13 36 29 22 45 13]; 208s ***** assert (imbothat (magic (10), ones(5)), out); 208s 208s ## using a weird non-symmetric and even-size se 208s out =[ 0 0 15 8 1 3 0 7 0 18 208s 0 8 53 59 0 0 14 13 0 17 208s 84 0 0 40 38 6 13 6 0 23 208s 2 0 42 47 58 0 6 0 0 41 208s 0 0 62 59 52 0 0 0 16 35 208s 6 58 13 6 0 3 19 19 35 1 208s 0 18 0 0 0 0 15 13 6 0 208s 0 17 69 0 0 17 17 8 0 0 208s 8 67 0 0 0 15 9 2 0 6 208s 7 0 0 17 10 42 7 0 19 0]; 208s ***** assert (imbothat (magic (10), [1 0 0 0; 1 1 1 0; 0 1 0 1]), out); 208s 208s ## N dimensional and weird se 208s in = reshape (magic(16), [4 8 4 2]); 208s se = ones (3, 3, 3); 208s se(:,:,1) = [1 0 1; 0 1 1; 0 0 0]; 208s se(:,:,3) = [1 0 1; 0 1 1; 0 0 1]; 208s out = zeros (size (in)); 208s out(:,:,1,1) = [ 208s 0 17 81 145 237 146 64 0 208s 205 128 64 0 0 37 83 147 208s 175 111 47 0 0 64 117 181 208s 0 64 128 209 173 109 45 0]; 208s out(:,:,2,1) = [ 208s 235 142 78 18 0 23 69 133 208s 0 35 103 163 215 128 46 0 208s 0 64 128 195 183 123 48 0 208s 153 93 43 0 14 78 146 215]; 208s out(:,:,3,1) = [ 208s 0 25 89 153 229 142 64 0 208s 201 128 64 0 0 41 91 155 208s 167 103 57 0 0 64 125 189 208s 0 64 146 217 165 101 37 0]; 208s out(:,:,4,1) = [ 208s 227 142 78 14 0 31 77 141 208s 0 43 107 171 211 128 46 0 208s 0 64 128 203 179 115 48 0 208s 149 99 35 0 18 82 146 223]; 208s out(:,:,1,2) = [ 208s 0 33 97 161 221 146 64 0 208s 189 125 61 0 0 53 99 163 208s 159 95 31 0 0 64 128 197 208s 0 64 128 225 157 93 29 0]; 208s out(:,:,2,2) = [ 208s 219 142 78 18 0 39 85 149 208s 0 51 119 179 199 128 46 0 208s 0 64 128 211 167 107 43 0 208s 137 77 27 0 14 78 146 231]; 208s out(:,:,3,2) = [ 208s 0 41 105 169 213 142 64 0 208s 185 121 64 0 0 57 107 171 208s 151 87 41 0 0 64 128 205 208s 0 64 146 233 149 85 21 0]; 208s out(:,:,4,2) = [ 208s 211 142 78 14 0 47 93 157 208s 0 59 123 187 195 128 46 0 208s 0 64 128 219 163 99 35 0 208s 133 83 19 0 18 82 146 239]; 208s ***** assert (imbothat (in, se), out); 208s 8 tests, 8 passed, 0 known failure, 0 skipped 208s [inst/blockproc.m] 208s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/blockproc.m 208s ***** demo 208s blockproc (eye (6), [2, 2], @(x) any (x(:))) 208s # Returns a 3-by-3 diagonal 208s ***** assert (blockproc (eye (6), [2, 2], "sum"), 208s blockproc (eye (6), [2, 2], @sum)) 208s ***** assert (blockproc (eye (6), [2, 2], "sum"), 208s blockproc (eye (6), [2, 2], @(x) sum (x))) 208s ***** assert (blockproc (eye (6), [1,2], @sum), 208s kron (eye (3), [1; 1])) 208s ***** assert (blockproc (eye (6), [2,2], @(x) any (x(:))), 208s eye (3) != 0) 208s ***** assert (blockproc (eye (6), [1,2],[1,1], @(x) sum (x(:))), 208s [2,1,0; 3,2,0; 2,3,1; 1,3,2; 0,2,3; 0,1,2]) 208s ***** assert (blockproc (eye (6), "indexed", [1, 2], [1, 1], @(x) sum (x(:))), 208s [8,5,6; 6,2,3; 5,3,4; 4,3,5; 3,2,6; 6,5,8]) 208s ***** assert (blockproc (eye (6), [2,3],[4,3], @(x) sum (x(:))), 208s ones (3, 2) * 6) 208s ***** assert (blockproc (eye (6), [2, 2], @(x) int8 (sum (x(:)))), 208s eye (3, "int8") * 2) 208s ***** assert (blockproc (uint8 (eye (6)), [1,2], [1,1], @(x) sum (x(:))), 208s [2,1,0; 3,2,0; 2,3,1; 1,3,2; 0,2,3; 0,1,2]) 208s ***** assert (blockproc (uint8 (eye (6)), "indexed", [1,2], [1,1], @(x) sum (x(:))), 208s [2,1,0; 3,2,0; 2,3,1; 1,3,2; 0,2,3; 0,1,2]); 208s ***** assert (blockproc (uint16 (eye (6)), [1,2], [1,1], @(x) sum (x(:))), 208s [2,1,0; 3,2,0; 2,3,1; 1,3,2; 0,2,3; 0,1,2]); 208s ***** assert (blockproc (uint16 (eye (6)), "indexed", [1,2], [1,1], 208s @(x) sum (x(:))), 208s [2,1,0; 3,2,0; 2,3,1; 1,3,2; 0,2,3; 0,1,2]); 208s ***** assert (blockproc (eye (6), [2, 2], "sum"), 208s blockproc (eye (6), [2, 2], inline ("sum (x)", "x"))) 208s warning: inline is obsolete; use anonymous functions instead 208s 13 tests, 13 passed, 0 known failure, 0 skipped 208s [inst/fspecial.m] 208s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/fspecial.m 208s ***** test 208s for i = 1:9 208s n = 2^i; 208s assert (sum (fspecial ("disk", n)(:)), 1, eps*n*n); 208s endfor 208s ***** test 208s for r = [3 5 9 17] 208s f = fspecial ("disk", r); 208s [X, Y] = meshgrid (-r:r, -r:r); 208s rhi = (abs (X) + 0.5).^2 + (abs (Y) + 0.5).^2; 208s rlo = (abs (X) - 0.5).^2 + (abs (Y) - 0.5).^2; 208s fhi = (rhi <= (r^2)); 208s flo = (rlo >= (r^2)); 208s for i = 1:(2*r+1) 208s for j = 1:(2*r+1) 208s if (fhi(i,j)) 208s assert (f(i,j), 1/(pi*r^2), eps); 208s endif 208s if (flo(i,j)) 208s assert (f(i,j), 0); 208s endif 208s endfor 208s endfor 208s endfor 210s ***** error 210s fspecial ("gaussian", 0) 210s ***** error 210s fspecial ("gaussian", 3.9) 210s ***** assert (fspecial ("gaussian"), fspecial ("gaussian", 3, 0.5)) 210s ***** assert (fspecial ("gaussian"), fspecial ("gaussian", [3 3], 0.5)) 210s ***** test 210s c = ([-1:1].^2) + ([-1:1]'.^2); 210s gauss = exp (- (c / (2 * (0.5 ^ 2)))); 210s f = gauss / sum (gauss(:)); 210s assert (fspecial ("gaussian"), f) 210s 210s expected = [ 210s 0.01134373655849507 0.08381950580221061 0.01134373655849507 210s 0.08381950580221061 0.61934703055717721 0.08381950580221061 210s 0.01134373655849507 0.08381950580221061 0.01134373655849507]; 210s assert (f, expected, eps) 210s ***** function f = f_gaussian_2d (hsize, sigma) 210s c = ([(-hsize(1)):(hsize(1))]'.^2) + ([(-hsize(2)):(hsize(2))].^2); 210s gauss = exp (- (c ./ (2 * (sigma .^ 2)))); 210s f = gauss ./ sum (gauss(:)); 210s ***** endfunction 210s ***** test 210s f = fspecial ("gaussian"); 210s assert (f, f_gaussian_2d ([1 1], .5)) 210s expected = [ 210s 0.01134373655849507 0.08381950580221061 0.01134373655849507 210s 0.08381950580221061 0.61934703055717721 0.08381950580221061 210s 0.01134373655849507 0.08381950580221061 0.01134373655849507]; 210s assert (f, expected, eps) 210s ***** test 210s f = fspecial ("gaussian", 7, 2); 210s assert (f, f_gaussian_2d ([3 3], 2)) 210s expected = [ 210s 0.00492233115934352 210s 0.00919612528958620 210s 0.01338028334410124 210s 0.01516184737296414 210s 0.01338028334410124 210s 0.00919612528958620 210s 0.00492233115934352 210s 0.00919612528958620 210s 0.01718062389630964 210s 0.02499766026691484 210s 0.02832606006174462 210s 0.02499766026691484 210s 0.01718062389630964 210s 0.00919612528958620 210s 0.01338028334410124 210s 0.02499766026691484 210s 0.03637138107390363 210s 0.04121417419979795 210s 0.03637138107390363 210s 0.02499766026691484 210s 0.01338028334410124 210s 0.01516184737296414 210s 0.02832606006174462 210s 0.04121417419979795 210s 0.04670177773892775]; 210s expected = reshape ([expected; expected((end-1):-1:1)], [7 7]); 210s assert (f, expected, eps) 210s ***** test 210s f = fspecial ("gaussian", [7 5], 2); 210s assert (f, f_gaussian_2d ([3 2], 2)) 210s expected = [ 210s 0.01069713252648568 210s 0.01998487459872362 210s 0.02907782096336423 210s 0.03294948784319031 210s 0.02907782096336423 210s 0.01998487459872362 210s 0.01069713252648568 210s 0.01556423598706978 210s 0.02907782096336423 210s 0.04230797985750011 210s 0.04794122192790870 210s 0.04230797985750011 210s 0.02907782096336423 210s 0.01556423598706978 210s 0.01763658993191515 210s 0.03294948784319031 210s 0.04794122192790870 210s 0.05432452146574315]; 210s expected = reshape ([expected; expected((end-1):-1:1)], [7 5]); 210s assert (f, expected, eps) 210s ***** test 210s f = fspecial ("gaussian", [4 2], 2); 210s expected = [0.10945587477855045 0.14054412522144952]; 210s expected = expected([1 1; 2 2; 2 2; 1 1]); 210s assert (f, expected, eps) 210s ***** test 210s expected =[0.04792235409415088 0.06153352068439959 0.07901060453704994]; 210s expected = expected([1 2 2 1; 2 3 3 2; 2 3 3 2; 1 2 2 1]); 210s assert (fspecial ("gaussian", 4, 2), expected) 210s ***** function f = f_gaussian_3d (lengths, sigma) 210s [x, y, z] = ndgrid (-lengths(1):lengths(1), -lengths(2):lengths(2), 210s -lengths(3):lengths(3)); 210s sig_22 = 2 * (sigma.^2); 210s f = exp (-((x.^2)/sig_22 + (y.^2)/sig_22 + (z.^2)/sig_22)); 210s f = f / sum (f(:)); 210s ***** endfunction 210s ***** test 210s obs = fspecial ("gaussian", [5 5 5]); 210s assert (obs, f_gaussian_3d ([2 2 2], .5)) 210s 210s u_values = [ 210s 0.00000000001837155 210s 0.00000000741161178 210s 0.00000005476481523 210s 0.00000299005759843 210s 0.00002209370333384 210s 0.00016325161336690 210s 0.00120627532940896 210s 0.00891323607975882 210s 0.06586040141635063 210s 0.48664620076350640]; 210s expected = zeros (5, 5, 5); 210s expected([1 5 21 25 101 105 121 125]) = u_values(1); 210s 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); 210s expected([3 11 15 23 51 55 71 75 103 111 115 123]) = u_values(3); 210s 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); 210s 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); 210s expected([13 53 61 65 73 113]) = u_values(6); 210s expected([32 34 42 44 82 84 92 94]) = u_values(7); 210s expected([33 37 39 43 57 59 67 69 83 87 89 93]) = u_values(8); 210s expected([38 58 62 64 68 88]) = u_values(9); 210s expected([63]) = u_values(10); 210s assert (obs, expected, 4 * eps) 210s ***** test 210s obs = fspecial ("gaussian", [5 5 5], 1); 210s assert (obs, f_gaussian_3d ([2 2 2], 1)) 210s 210s u_values = [ 210s 0.00016177781678373 210s 0.00072503787330278 210s 0.00119538536377748 210s 0.00324939431236223 210s 0.00535734551968363 210s 0.00883276951279243 210s 0.01456277497493249 210s 0.02400995686159072 210s 0.03958572658629712 210s 0.06526582943894763]; 210s expected = zeros (5, 5, 5); 210s expected([1 5 21 25 101 105 121 125]) = u_values(1); 210s 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); 210s expected([3 11 15 23 51 55 71 75 103 111 115 123]) = u_values(3); 210s 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); 210s 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); 210s expected([13 53 61 65 73 113]) = u_values(6); 210s expected([32 34 42 44 82 84 92 94]) = u_values(7); 210s expected([33 37 39 43 57 59 67 69 83 87 89 93]) = u_values(8); 210s expected([38 58 62 64 68 88]) = u_values(9); 210s expected([63]) = u_values(10); 210s assert (obs, expected, eps) 210s ***** test 210s obs = fspecial ("gaussian", [3 4 1 5], 3); 210s assert (find (obs == max (obs(:))), [29; 32]) 210s assert (size (obs), [3 4 1 5]) 210s assert (obs(:)(1:30), obs(:)(end:-1:31)) 210s ***** test 210s f = repmat (1/9, [3 3]); 210s assert (fspecial ("average", [3 3]), f) 210s 210s ## Test default 210s assert (fspecial ("average"), fspecial ("average", [3 3])) 210s assert (fspecial ("average"), fspecial ("average", [3])) 210s 210s f = repmat (1/21, [3 7]); 210s assert (fspecial ("average", [3 7]), f) 210s 210s f = repmat (1/40, [4 5 1 2]); 210s assert (fspecial ("average", [4 5 1 2]), f) 210s ## Behave even if it's a column vector 210s assert (fspecial ("average", [4 5 1 2]'), f) 210s 16 tests, 16 passed, 0 known failure, 0 skipped 210s [inst/houghpeaks.m] 210s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/houghpeaks.m 210s ***** shared im1 210s im1 = magic (5); 210s ***** error houghpeaks () 210s ***** error houghpeaks (1, 2, 3, 4, 5, 6, 7) 210s ***** assert (houghpeaks (im1)) 210s ***** assert (houghpeaks (im1, 2)) 210s ***** assert (houghpeaks (im1, "Threshold", 10)) 210s ***** assert (houghpeaks (im1, 2, "Threshold", 10)) 210s ***** assert (houghpeaks (im1, "NHoodSize", [3 3])) 210s ***** assert (houghpeaks (im1, 2, "NHoodSize", [3 3])) 210s ***** assert (houghpeaks (im1, "Threshold", 10, "NHoodSize", [3 3])) 210s ***** assert (houghpeaks (im1, "NHoodSize", [3 3], "Threshold", 10)) 210s ***** assert (houghpeaks (im1, 2, "Threshold", 10, "NHoodSize", [3 3])) 210s ***** assert (houghpeaks (im1, 2, "NHoodSize", [3 3], "Threshold", 10)) 210s ***** error houghpeaks (ones (5, 5, 5)) 210s ***** error houghpeaks ("hello") 210s ***** error houghpeaks (im1, 1.5) 210s ***** error houghpeaks (im1, -2) 210s ***** error houghpeaks (im1, [1 1]) 210s ***** error houghpeaks (im1, "Threshold", "hello") 210s ***** error houghpeaks (im1, "Threshold", -2) 210s ***** error houghpeaks (im1, "Threshold", [1 1]) 210s ***** error houghpeaks (im1, "NHoodSize", [3 3 3]) 210s ***** error houghpeaks (im1, "NHoodSize", "hello") 210s ***** error houghpeaks (im1, "NHoodSize", [-3 -3]) 210s ***** error houghpeaks (im1, "NHoodSize", [4 4]) 210s ***** test 210s out = houghpeaks (im1); 210s assert (size (out), [1 2]) 210s assert (class (out), "double") 210s ***** test 210s out = houghpeaks (im1, 3); 210s assert (size (out), [3 2]) 210s ***** test 210s expected = [5 3; 1 2; 3 5; 1 5]; 210s assert (houghpeaks (im1, 4), expected) # this checks for undocumented nhood >=3 210s assert (houghpeaks (im1, 4, "nhoodsize", [3,3]), expected) 210s assert (houghpeaks (im1, 4, "threshold", 10), expected) 210s assert (houghpeaks (im1, 4, "threshold", 24), expected(1:2,:)) 210s ***** test 210s im2 = magic (7); 210s expected_a = [7 4; 1 3; 3 1; 5 6]; 210s expected_b = [7 4; 1 3; 4 7; 1 7]; 210s assert (houghpeaks (im2, 4), expected_a) 210s assert (houghpeaks (im2, 4, "nhoodsize", [5,5]), expected_b) 210s assert (houghpeaks (im2, 4, "threshold", 24), expected_a) 210s assert (houghpeaks (im2, 4, "threshold", 47), expected_a(1:2,:)) 210s ***** test 210s im3 = magic (99); 210s expected_a = [99 50; 1 49; 3 47; 5 45; 7 43; 9 41; 11 39]; 210s expected_b = [99 50; 1 49; 7 43; 13 37; 19 31; 25 25; 31 19]; 210s expected_c = [99 50; 1 49; 2 48; 3 47; 4 46; 5 45; 6 44]; 210s assert (houghpeaks (im3, 7), expected_a) 210s assert (houghpeaks (im3, 7, "nhoodsize", [11 11]), expected_b) 210s assert (houghpeaks (im3, 7, "nhoodsize", [11 1]), expected_c) 210s assert (houghpeaks (im3, 7, "nhoodsize", [11 1]), expected_c) 210s ***** test 210s im4 = double (im2uint16 (peaks ())); 210s expected_a = [37 15; 39 15; 41 15; 15 16; 17 16]; 210s expected_b = [37 15; 15 16; 26 21; 37 26; 20 32]; 210s expected_c = [37 15; 15 16; 35 16; 15 17; 35 17]; 210s expected_d = [37 15; 38 15; 39 15; 40 15; 41 15]; 210s assert (houghpeaks (im4, 5), expected_a) 210s assert (houghpeaks (im4, 5, "nhoodsize", [21 21]), expected_b) 210s assert (houghpeaks (im4, 5, "nhoodsize", [21 1]), expected_c) 210s assert (houghpeaks (im4, 5, "nhoodsize", [1 21]), expected_d) 210s ***** test # tests use of anti-symmetry in H 210s im5 = zeros (6,4); im5(2,1) = 1; im5(5,4) = 2; 210s expected = [5 4; 2 1]; 210s assert (houghpeaks (im5, 2, "nhoodsize", [1 1]), expected); 210s assert (houghpeaks (im5, 2, "nhoodsize", [3 3]), expected(1,:)); 210s ***** test #test use of anti-symmetry in the other direction 210s im6 = magic (100); 210s expected_a = [1 1; 100 99; 1 4; 100 95; 1 8; 100 91; 1 12]; 210s expected_b = [1 1; 100 95; 1 8; 100 87; 1 16; 100 79; 1 24]; 210s expected_c = [1 1; 100 99; 100 98; 1 4; 1 5; 100 95; 100 94]; 210s expected_d = expected_b; 210s assert (houghpeaks (im6, 7), expected_a) 210s assert (houghpeaks (im6, 7, "nhoodsize", [11 11]), expected_b) 210s assert (houghpeaks (im6, 7, "nhoodsize", [11 1]), expected_c) 210s assert (houghpeaks (im6, 7, "nhoodsize", [1 11]), expected_d) 210s ***** test # test undocumented Matlab default value for nhoodsize 210s im = zeros (723, 180); 210s im(585,136) = 8; 210s im(593,135) = 7; 210s im(310,46) = 6; 210s expected = [585, 136; 310, 46]; 210s assert (houghpeaks (im, 2), expected) 210s ***** test 210s I = max (0, phantom ()); 210s H = hough (I); 210s P0 = [585, 136; 310, 46; 595, 136; 522, 104; 373, 46]; 210s assert (houghpeaks (H, 5), P0) 210s ***** demo 210s I = checkerboard (30, 1, 1); 210s I = imnoise(I, "salt & pepper", 0.2); 210s figure, imshow (I); 210s title ("noisy image with some lines"); 210s BW = edge (I, "canny"); 210s figure, imshow(BW); 210s title ("edge image"); 210s [H, theta, rho] = hough (BW); 210s figure, imshow (mat2gray (H), [],"XData",theta,"YData",rho); 210s title ("Hough transform of edge image \n 2 peaks marked"); 210s axis on; xlabel("theta [degrees]"); ylabel("rho [pixels]"); 210s peaks = houghpeaks (H, 2); 210s peaks_rho = rho(peaks(:,1)) 210s peaks_theta = theta(peaks(:,2)) 210s hold on; 210s plot(peaks_theta,peaks_rho,"sr"); 210s hold off; 210s 34 tests, 34 passed, 0 known failure, 0 skipped 210s [inst/hough.m] 210s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/hough.m 210s ***** shared BW0, BW1, BW2, BWx, BWy 210s 210s BW0 = false (5); 210s BW0(2,2) = true; 210s 210s BW1 = zeros (100, 100); 210s BW1(1,1) = 1; 210s BW1(100,100) = 1; 210s BW1(1,100) = 1; 210s BW1(100, 1) = 1; 210s BW1(50,50) = 1; 210s 210s n = 100; 210s BW2 = false (n); 210s a = 50; # line starts at left side at row a 210s b = 3; # slope of line is 1:b 210s for column = 1:n 210s if (rem (column, b) == 0) 210s row = a - column/b; 210s BW2(row, column) = true; 210s endif 210s endfor 210s 210s BWx = false (10); 210s BWx(:,5) = true; 210s 210s BWy = false (10); 210s BWy(5,:) = true; 210s ***** test 210s [H, T, R] = hough (BW1); 210s assert (size (H), [283 180]); 210s ***** test 210s [H, T, R] = hough (BW1, "Theta", [-90 0 45 79]); 210s assert (size (H), [283 4]); 210s ***** test 210s [H, T, R] = hough (BW1, "ThetaResolution", 0.5); 210s assert (size (H), [283 360]); 210s ***** error hough ("foo") 210s ***** test 210s I = [0 0 1 0; 1 1 1 1; 0 0 1 1; 0 0 1 0]; 210s I2 = I; 210s for v = [0.7 0.2 5] 210s I2(1,3) = v; 210s assert (hough (I2), hough (I)) 210s endfor 210s ***** error 210s [H, T, R] = hough (BW0, "Theta"); 210s ***** error 210s [H, T, R] = hough (BW0, "Theta", ones (10)); 210s ***** error 210s [H, T, R] = hough (BW0, "Theta", [5 -i 7]); 210s ***** error 210s [H, T, R] = hough (BW0, "RhoResolution", 0.5); 210s ***** test 210s [Hd, Td, Rd] = hough (BW0); 210s [H1, T1, R1] = hough (BW0, "RhoResolution", 1); 210s assert (Hd, H1) 210s assert (Td, T1) 210s assert (Rd, R1) 211s ***** test 211s [H, theta, rho] = hough (BW2); 211s H_max = max (H(:)); 211s H_size = size (H); 211s [~, max_idx_lin] = max (H(:)); 211s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 211s theta_max = theta(max_column); 211s rho_max = rho(max_row); 211s assert (H_max , 33); 211s assert (H_size, [283 180]); 211s assert (max_row, 188); 211s assert (max_column, 163); 211s assert (theta_max, 72); 211s assert (rho_max, 46); 211s ***** test 211s [H, theta, rho] = hough (BW2, "Theta", [65:1:75]); 211s H_max = max (H(:)); 211s H_size = size (H); 211s [~, max_idx_lin] = max (H(:)); 211s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 211s theta_max = theta(max_column); 211s rho_max = rho(max_row); 211s assert (H_max , 33); 211s assert (H_size, [283 11]); 211s assert (max_row, 188); 211s assert (max_column, 8); 211s assert (theta_max, 72); 211s assert (rho_max, 46); 211s ***** test 211s [H, theta, rho] = hough (BW2, "Theta", [-90:0.5:89.5]); 211s H_max = max (H(:)); 211s H_size = size (H); 211s [~, max_idx_lin] = max (H(:)); 211s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 211s theta_max = theta(max_column); 211s rho_max = rho(max_row); 211s assert (H_max , 33); 211s assert (H_size, [283 360]); 211s assert (max_row, 188); 211s assert (max_column, 324); 211s assert (theta_max, 71.5); 211s assert (rho_max, 46); 211s ***** test 211s [H, theta, rho] = hough (BW2, "ThetaResolution", 0.5); 211s H_max = max (H(:)); 211s H_size = size (H); 211s [~, max_idx_lin] = max (H(:)); 211s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 211s theta_max = theta(max_column); 211s rho_max = rho(max_row); 211s assert (H_max , 33); 211s assert (H_size, [283 360]); 211s assert (max_row, 188); 211s assert (max_column, 324); 211s assert (theta_max, 71.5); 211s assert (rho_max, 46); 211s ***** test 211s [H, theta, rho] = hough (BWx); 211s H_max = max (H(:)); 211s [~, max_idx_lin] = max (H(:)); 211s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 211s theta_max = theta(max_column); 211s rho_max = rho(max_row); 211s assert (H_max , 10); 211s assert (max_column, 88); 211s assert (theta_max, -3); 211s assert (rho_max, 4); 211s ***** test 211s [H, theta, rho] = hough (BWx); 211s H_size = size (H); 211s [~, max_idx_lin] = max (H(:)); 211s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 211s assert (H_size, [27 180]); 211s assert (max_row, 18); 211s ***** test 211s [H, theta, rho] = hough (BWy); 211s H_max = max (H(:)); 211s [~, max_idx_lin] = max (H(:)); 211s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 211s theta_max = theta(max_column); 211s rho_max = rho(max_row); 211s assert (H_max , 10); 211s assert (max_column, 1); 211s assert (theta_max, -90); 211s assert (rho_max, -4); 211s ***** test 211s [H, theta, rho] = hough (BWy); 211s H_size = size (H); 211s [~, max_idx_lin] = max (H(:)); 211s [max_row, max_column] = ind2sub (size (H), max_idx_lin); 211s assert (H_size, [27 180]); 211s assert (max_row, 10); 211s ***** demo 211s BW = zeros (100, 150); 211s BW(30,:) = 1; 211s BW(:, 65) = 1; 211s BW(35:45, 35:50) = 1; 211s for i = 1:90 211s BW(i,i) = 1; 211s endfor 211s BW = imnoise (BW, "salt & pepper"); 211s figure (); 211s imshow (BW); 211s title ("BW"); 211s [H, theta, rho] = hough (BW); 211s H /= max (H(:)); 211s figure (); 211s imshow (H, "XData", theta, "YData", rho); 211s title ("hough transform of BW"); 211s axis on; 211s xlabel ("angle \\theta [degrees]"); 211s ylabel ("distance \\rho to origin [pixels]"); 211s 18 tests, 18 passed, 0 known failure, 0 skipped 211s [inst/axes2pix.m] 211s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/axes2pix.m 211s ***** error id=Octave:invalid-fun-call axes2pix () 211s ***** error id=Octave:invalid-fun-call axes2pix (42) 211s ***** error id=Octave:invalid-fun-call axes2pix (42, [1, 2]) 211s ***** error id=Octave:invalid-input-arg axes2pix ([42, 43], [1, 2], [1, 2, 3]) 211s ***** error id=Octave:invalid-input-arg axes2pix (42, [1, 2; 3, 4], [1, 2, 3]) 211s ***** assert (axes2pix (42, [1 42], []), []) 211s ***** assert (axes2pix (240, [1, 240], 30), 30) 211s ***** assert (axes2pix (291, [1, 291], 30), 30) 211s ***** assert (axes2pix (240, [400.5, 520], 450), 100) 211s ***** assert (axes2pix (291, [-19, 271], 90), 110) 211s ***** assert (axes2pix (1, [1 1], [0, 1, 2, 3, 4]), [0, 1, 2, 3, 4]) 211s ***** assert (axes2pix (5, [1 1], [0, 1, 2, 3, 4]), [0, 1, 2, 3, 4]) 211s ***** assert (axes2pix (0, [1 1], [0, 1, 2, 3, 4]), [0, 1, 2, 3, 4]) 211s ***** assert (axes2pix (5, [5 1], [1, 2, 3, 4, 5]), [5, 4, 3, 2, 1]) 211s ***** assert (axes2pix (5, [3 -1], [1, 2, 3, 4, 5]), [3, 2, 1, 0, -1]) 211s ***** assert (axes2pix (25, [5 1], [1, 2, 3, 4, 5]), [25, 19, 13, 7, 1]) 211s ***** assert (axes2pix (1, [1 5], [1, 2, 3, 4, 5]), [1, 2, 3, 4, 5]) 211s ***** assert (axes2pix (1, [5 1], [-1, 0, 1, 2.5]), [-5, -4, -3, -1.5]) 211s ***** assert (axes2pix (1, [-10 -15], [-1, 0, 1.5]), [10, 11, 12.5]) 211s ***** assert (axes2pix (5, [5; 1], [1, 2, 3, 4, 5]), [5, 4, 3, 2, 1]) 211s ***** assert (axes2pix (5, [5; 1], [1; 2; 3; 4; 5]), [5; 4; 3; 2; 1]) 211s 21 tests, 21 passed, 0 known failure, 0 skipped 211s [inst/lab2xyz.m] 211s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/lab2xyz.m 211s ***** assert (lab2xyz ([0, 0, 0]), [0 0 0], 1e-3) 211s ***** assert (lab2xyz ([53.24, 80.09, 67.20]), [0.4125, 0.2127, 0.0193], 1e-3) 211s ***** assert (lab2xyz ([97.14, -21.55, 94.48]), [0.7700, 0.9278, 0.1385], 1e-3) 211s ***** assert (lab2xyz ([87.74, -86.18, 83.18]), [0.3576, 0.7152, 0.1192], 1e-3) 211s ***** assert (lab2xyz ([91.11, -48.09, -14.13]), [0.5380, 0.7873, 1.0694], 1e-3) 211s ***** assert (lab2xyz ([32.30, 79.19, -107.86]), [0.1804, 0.07217, 0.9502], 1e-3) 211s ***** assert (lab2xyz ([60.32, 98.24, -60.83]), [0.5929, 0.28484, 0.9696], 1e-3) 211s ***** assert (lab2xyz ([100, 0.00, 0.00]), [0.9505, 1.0000, 1.0888], 1e-3) 211s ***** assert (lab2xyz ([53.39, 0.00, 0.00]), [0.2034, 0.2140, 0.2330], 1e-3) 211s ***** assert (lab2xyz ([39.77, 64.51, 54.13]), [0.2155, 0.1111, 0.0101], 1e-3) 211s ***** assert (lab2xyz ([25.42, 47.91, 37.91]), [0.0883, 0.0455, 0.0041], 1e-3) 211s ***** assert (lab2xyz ([9.66, 29.68, 15.24]), [0.02094, 0.0108, 0.00098], 1e-3) 211s ***** assert (lab2xyz ([68.11, 48.39, 22.83]), [0.5276, 0.3812, 0.2482], 1e-3) 211s ***** assert (lab2xyz ([150 130 130]), [4.596, 2.931, 0.519], 1e-3) 211s ***** test 211s lab_map = rand (64, 3); 211s lab_map(:,1) = lab_map(:,1) .* 100; 211s lab_map(:,2) = lab_map(:,2) .* 254 - 127; 211s lab_map(:,3) = lab_map(:,3) .* 254 - 127; 211s assert (xyz2lab (lab2xyz (lab_map)), lab_map, 1e-5); 211s ***** test 211s lab_img = rand (64, 64, 3); 211s lab_img(:,:,1) = lab_img(:,:,1) .* 100; 211s lab_img(:,:,2) = lab_img(:,:,2) .* 254 - 127; 211s lab_img(:,:,3) = lab_img(:,:,3) .* 254 - 127; 211s assert (xyz2lab (lab2xyz (lab_img)), lab_img, 1e-5); 211s ***** assert (lab2xyz (sparse ([0 0 0])), [0 0 0], 1e-3) 211s ***** assert (lab2xyz (sparse ([100, 0.00, 0.00])), [0.9505, 1.0000, 1.0888], 1e-3) 211s ***** assert (class (lab2xyz (single([50 50 50]))), 'single') 211s ***** error lab2xyz () 212s ***** error lab2xyz (1,2) 212s ***** error lab2xyz ({1}) 212s ***** error lab2xyz (ones (2,2)) 212s ***** test 212s lab = rand (16, 16, 3, 5); 212s lab(:,:,1,:) = lab(:,:,1,:) .* 100; 212s lab(:,:,2,:) = lab(:,:,2,:) .* 254 - 127; 212s lab(:,:,3,:) = lab(:,:,3,:) .* 254 - 127; 212s xyz = zeros (size (lab)); 212s for i = 1:5 212s xyz(:,:,:,i) = lab2xyz (lab(:,:,:,i)); 212s endfor 212s assert (lab2xyz (lab), xyz) 212s 24 tests, 24 passed, 0 known failure, 0 skipped 212s [inst/iradon.m] 212s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/iradon.m 212s ***** assert (iradon (single ([0; 1; 1; 0]), 90)); 212s ***** assert (iradon (double ([0; 1; 1; 0]), 90)); 212s ***** assert (iradon (int8 ([0; 1; 1; 0]), 90)); 212s ***** assert (iradon (int16 ([0; 1; 1; 0]), 90)); 212s ***** assert (iradon (int32 ([0; 1; 1; 0]), 90)); 212s ***** assert (iradon (int64 ([0; 1; 1; 0]), 90)); 212s ***** assert (iradon (uint8 ([0; 1; 1; 0]), 90)); 212s ***** assert (iradon (uint16 ([0; 1; 1; 0]), 90)); 212s ***** assert (iradon (uint32 ([0; 1; 1; 0]), 90)); 212s ***** assert (iradon (uint64 ([0; 1; 1; 0]), 90)); 212s ***** assert (iradon (logical ([0; 1; 1; 0]), 90)); 212s ***** assert (iradon (ones (5), 1:5)); 212s ***** assert (iradon (ones (5), 1:5, 'nearest')); 212s ***** assert (iradon (ones (5), 1:5, 'linear')); 212s ***** assert (iradon (ones (5), 1:5, 'spline')); 212s ***** assert (iradon (ones (5), 1:5, 'pchip')); 212s ***** assert (iradon (ones (5), 1:5, 'linear', 'None')); 212s ***** assert (iradon (ones (5), 1:5, 'linear', 'Ram-Lak')); 212s ***** assert (iradon (ones (5), 1:5, 'linear', 'Shepp-Logan')); 212s ***** assert (iradon (ones (5), 1:5, 'linear', 'Cosine')); 212s ***** assert (iradon (ones (5), 1:5, 'linear', 'Hamming')); 212s ***** assert (iradon (ones (5), 1:5, 'linear', 'Hann')); 212s ***** assert (iradon (ones (5), 1:5, 'linear', 'None', 0.45)); 212s ***** assert (iradon (ones (5), 1:5, 'linear', 'None', 0.45, 5)); 212s ***** test 212s [R, F] = iradon (ones (5), 1:5); 212s assert(isvector(F)); 212s assert(ismatrix(R)); 212s ***** error iradon (); 212s ***** error iradon ('xxx'); 212s ***** error iradon (ones (2), 'xxx'); 212s ***** error iradon (ones (5), 1:5, 'foo'); 212s ***** error iradon (ones (5), 1:5, 'linear', 'foo'); 212s ***** error iradon (ones (5), 1:5, 'linear', 'none', 'foo'); 212s ***** error iradon (ones (5), 1:5, 'linear', 'none', 0.65, 'foo'); 212s ***** test 212s A = iradon([0; 1; 1; 0], 90); 212s A_matlab = 0.4671 .* ones (2); 212s assert (A, A_matlab, 0.02); # as Matlab compatible as iradon outputs currently get 212s ***** test 212s A = iradon (radon (ones (2, 2), 0:5), 0:5, "nearest", "none"); 212s A_matlab = [1, 1, 1, 1]' * [0.4264, 2.7859, 2.7152, 0.3557]; 212s assert (A, A_matlab, 0.0001); 212s ***** test 212s P = phantom (128); 212s R = radon (P, 0:179); 212s 212s IR = iradon (R, 0:179, [], [], [], 128); # (errors in Matlab because of []s) 212s D = P - IR; 212s maxdiff = max (abs (D(:))); 212s maxdiff_matlab = 0.3601; 212s assert (maxdiff, maxdiff_matlab, 0.002); 212s meandiff = mean (abs (D(:))); 212s meandiff_matlab = 0.0218; 212s assert (meandiff, meandiff_matlab, 0.001); 212s 212s filtername = "None"; 212s IR = iradon (R, 0:179, [], filtername, [], 128); 212s D = P - IR; 212s maxdiff = max (abs (D(:))); 212s maxdiff_matlab = 36.5671; 212s assert (maxdiff, maxdiff_matlab, 0.0001); 212s meandiff = mean (abs (D(:))); 212s meandiff_matlab = 24.6302; 212s assert (meandiff, meandiff_matlab, 0.0001); 212s 212s filtername = "Ram-Lak"; # is same as default 212s IR = iradon (R, 0:179, [], filtername, [], 128); 212s D = P - IR; 212s maxdiff = max (abs (D(:))); 212s maxdiff_matlab = 0.3601; 212s assert (maxdiff, maxdiff_matlab, 0.002); 212s meandiff = mean (abs (D(:))); 212s meandiff_matlab = 0.0218; 212s assert (meandiff, meandiff_matlab, 0.001); 212s 212s filtername = "Hamming"; 212s IR = iradon (R, 0:179, [], filtername, [], 128); 212s D = P - IR; 212s maxdiff = max (abs (D(:))); 212s maxdiff_matlab = 0.5171; 212s assert (maxdiff, maxdiff_matlab, 0.005); 212s meandiff = mean (abs (D(:))); 212s meandiff_matlab = 0.0278; 212s assert (meandiff, meandiff_matlab, 0.003); 212s 212s filtername = "Shepp-Logan"; 212s IR = iradon (R, 0:179, [], filtername, [], 128); 212s D = P - IR; 212s maxdiff = max (abs (D(:))); 212s maxdiff_matlab = 0.3941; 212s assert (maxdiff, maxdiff_matlab, 0.005); 212s meandiff = mean (abs (D(:))); 212s meandiff_matlab = 0.0226; 212s assert (meandiff, meandiff_matlab, 0.0015); 212s 212s filtername = "Cosine"; 212s IR = iradon (R, 0:179, [], filtername, [], 128); 212s D = P - IR; 212s maxdiff = max (abs (D(:))); 212s maxdiff_matlab = 0.4681; 212s assert (maxdiff, maxdiff_matlab, 0.005); 212s meandiff = mean (abs (D(:))); 212s meandiff_matlab = 0.0249; 212s assert (meandiff, meandiff_matlab, 0.002); 212s 212s filtername = "Hann"; 212s IR = iradon (R, 0:179, [], filtername, [], 128); 212s D = P - IR; 212s maxdiff = max (abs (D(:))); 212s maxdiff_matlab = 0.5334; 212s assert (maxdiff, maxdiff_matlab, 0.005); 212s meandiff = mean (abs (D(:))); 212s meandiff_matlab = 0.0285; 212s assert (meandiff, meandiff_matlab, 0.0025); 216s ***** demo 216s P = phantom (); 216s figure, imshow (P, []), title ("Original image") 216s projections = radon (P, 0:179); 216s reconstruction = iradon (projections, 0:179, 'Spline', 'Hann'); 216s figure, imshow (reconstruction, []), title ("Reconstructed image") 216s 35 tests, 35 passed, 0 known failure, 0 skipped 216s [inst/montage.m] 216s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/montage.m 216s ***** function cdata = montage_cdata (varargin) 216s h = figure (); 216s set (h, "visible", "off"); 216s mh = montage (varargin{:}); 216s cdata = get (mh, "cdata"); 216s close (h); 216s ***** endfunction 216s ***** test 216s im = uint8 (ones (2, 2, 1, 5)) .* reshape ([1 2 3 4 5], [1 1 1 5]); 216s cdata = montage_cdata (im); 216s expected = uint8 ([ 216s 1 1 2 2 3 3 216s 1 1 2 2 3 3 216s 4 4 5 5 0 0 216s 4 4 5 5 0 0 216s ]); 216s assert (cdata, expected) 216s ***** test 216s im = uint8 (ones (2, 4, 1, 6)) .* reshape ([1 2 3 4 5 6], [1 1 1 6]); 216s cdata = montage_cdata (im); 216s expected = uint8 ([ 216s 1 1 1 1 2 2 2 2 216s 1 1 1 1 2 2 2 2 216s 3 3 3 3 4 4 4 4 216s 3 3 3 3 4 4 4 4 216s 5 5 5 5 6 6 6 6 216s 5 5 5 5 6 6 6 6 216s ]); 216s assert (cdata, expected) 216s 2 tests, 2 passed, 0 known failure, 0 skipped 216s [inst/makelut.m] 216s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/makelut.m 216s ***** demo 216s makelut(@(x) sum(x(:))>=3, 2) 216s % Returns '1' if one or more values 216s % in the input matrix are 1 216s ***** 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 216s ***** assert(prod(makelut(@(x) x(1,1)==1, 2)==[zeros(2^3,1);ones(2^3,1)])==1); # test 2-by-2 216s ***** assert(prod(makelut(@(x) x(1,1)==1, 3)==[zeros(2^8,1);ones(2^8,1)])==1); # test 3-by-3 217s ***** assert(prod(makelut(@(x) x(1,1)==1, 4)==[zeros(2^15,1);ones(2^15,1)])==1); # test 4-by-4 218s ***** 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 218s 5 tests, 5 passed, 0 known failure, 0 skipped 218s [inst/ordfilt2.m] 218s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/ordfilt2.m 218s ***** test 218s order = 3; 218s domain = ones (3); 218s A = zeros (3,3); 218s B = ones (3,3); 218s C = [1 1 1; 2 2 2; 3 3 3]; 218s D = C'; 218s E = ones (3,3); 218s E(2,2) = 2; 218s F = 3 .* ones (3,3); 218s F(2,2) = 1; 218s G = [-1 2 7; -5 2 8; -7 pi 9]; 218s H = [5 2 8; 1 -3 1; 5 1 0]; 218s A_out = [0 0 0; 0 0 0; 0 0 0]; 218s B_out = [0 0 0; 0 1 0; 0 0 0]; 218s C_out = [0 0 0; 0 1 0; 0 0 0]; 218s D_out = [0 0 0; 0 1 0; 0 0 0]; 218s E_out = [0 0 0; 0 1 0; 0 0 0]; 218s F_out = [0 0 0; 0 3 0; 0 0 0]; 218s G_out = [0 0 0; -1 -1 0; 0 0 0]; 218s H_out = [0 0 0; 0 1 0; 0 0 0]; 218s assert (ordfilt2 (A, order, domain), A_out); 218s assert (ordfilt2 (B, order, domain), B_out); 218s assert (ordfilt2 (C, order, domain), C_out); 218s assert (ordfilt2 (D, order, domain), D_out); 218s assert (ordfilt2 (E, order, domain), E_out); 218s assert (ordfilt2 (F, order, domain), F_out); 218s assert (ordfilt2 (G, order, domain), G_out); 218s assert (ordfilt2 (H, order, domain), H_out); 218s 1 test, 1 passed, 0 known failure, 0 skipped 218s [inst/imgradient.m] 218s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imgradient.m 218s ***** test 218s A = [0 1 0 218s 1 1 1 218s 0 1 0]; 218s 218s [gMag, gDir] = imgradient (A); 218s assert (gMag,[sqrt(18) 4 sqrt(18); 4 0 4; sqrt(18),4,sqrt(18)]); 218s assert (gDir,[-45 -90 -135; -0 -0 -180; 45 90 135]); 218s 218s ## the following just test if passing gx and gy separately gets 218s ## us the same as the image and method though imgradient 218s [gxSobel, gySobel] = imgradientxy (A, "Sobel"); 218s [gxPrewitt, gyPrewitt] = imgradientxy (A, "Prewitt"); 218s [gxCd, gyCd] = imgradientxy (A, "CentralDifference"); 218s [gxId, gyId] = imgradientxy (A, "IntermediateDifference"); 218s 218s assert (imgradient (A), 218s imgradient (gxSobel, gySobel)); 218s assert (imgradient (A, "Sobel"), 218s imgradient (gxSobel, gySobel)); 218s assert (imgradient (A, "Prewitt"), 218s imgradient(gxPrewitt, gyPrewitt)); 218s assert (imgradient (A, "CentralDifference"), 218s imgradient (gxCd, gyCd)); 218s assert (imgradient (A, "IntermediateDifference"), 218s imgradient (gxId, gyId)); 218s 1 test, 1 passed, 0 known failure, 0 skipped 218s [inst/imlincomb.m] 218s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imlincomb.m 218s ***** assert (imlincomb (0.5, uint8 ([255 10]), 0.5, uint8 ([50 20])), 218s uint8 ([153 15])); # default to first class and truncate 218s ***** assert (imlincomb (0.5, uint8 ([255 10]), 0.5, uint8 ([50 20]), "uint16"), 218s uint16 ([153 15])); # defining output class works 218s ***** assert (imlincomb (0.5, uint8 ([255 10]), 0.5, uint8 ([50 20]), 10), 218s uint8 ([163 25])); # default to first class and truncate 218s ***** assert (imlincomb (0.5, uint8 ([255 10]), 0.5, uint8 ([50 20]), 1000, "uint16"), 218s uint16 ([1153 1015])); # defining output class works 218s ***** assert (imlincomb (0.5, uint8 ([255 10]), 0.5, uint8 ([50 20]), 1000), 218s uint8 ([255 255])); # defining output class works 218s 5 tests, 5 passed, 0 known failure, 0 skipped 218s [inst/xyz2rgb.m] 218s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/xyz2rgb.m 218s ***** assert (xyz2rgb ([0, 0, 0]), [0 0 0], 1e-3) 218s ***** assert (xyz2rgb ([0.4125, 0.2127, 0.0193]), [1 0 0], 1e-3) 218s ***** assert (xyz2rgb ([0.7700, 0.9278, 0.1385]), [1 1 0], 1e-3) 218s ***** assert (xyz2rgb ([0.3576, 0.7152, 0.1192]), [0 1 0], 1e-3) 218s ***** assert (xyz2rgb ([0.5380, 0.7873, 1.0694]), [0 1 1], 1e-3) 218s ***** assert (xyz2rgb ([0.1804, 0.07217, 0.9502]), [0 0 1], 1e-3) 218s ***** assert (xyz2rgb ([0.5929, 0.28484, 0.9696]), [1 0 1], 1e-3) 218s ***** assert (xyz2rgb ([0.9505, 1.0000, 1.0888]), [1 1 1], 1e-3) 218s ***** assert (xyz2rgb ([0.2034, 0.2140, 0.2330]), [0.5 0.5 0.5], 1e-3) 218s ***** assert (xyz2rgb ([0.2155, 0.1111, 0.0101]), [0.75 0 0], 1e-3) 218s ***** assert (xyz2rgb ([0.0883, 0.0455, 0.0041]), [0.5 0 0], 1e-3) 218s ***** assert (xyz2rgb ([0.0210, 0.0108, 0.0010]), [0.25 0 0], 1e-3) 218s ***** assert (xyz2rgb ([0.5276, 0.3812, 0.2482]), [1 0.5 0.5], 1e-3) 218s ***** assert (xyz2rgb ([1.5 1 1]), [1.5712, 0.7109 0.9717], 1e-3) 218s ***** test 218s xyz_map = rand (64, 3); 218s assert (rgb2xyz (xyz2rgb (xyz_map)), xyz_map, 3e-4); 218s ***** test 218s xyz_img = rand (64, 64, 3); 218s assert (rgb2xyz (xyz2rgb (xyz_img)), xyz_img, 3e-4); 218s ***** assert (xyz2rgb (sparse ([0 0 0])), [0 0 0], 1e-3) 218s ***** assert (class (xyz2rgb (single([0.5 0.5 0.5]))), 'single') 218s ***** error xyz2rgb () 218s ***** error xyz2rgb (1,2) 218s ***** error xyz2rgb ({1}) 218s ***** error xyz2rgb (ones (2,2)) 218s ***** test 218s xyz = rand (16, 16, 3, 5); 218s rgb = zeros (size (xyz)); 218s for i = 1:5 218s rgb(:,:,:,i) = xyz2rgb (xyz(:,:,:,i)); 218s endfor 218s assert (xyz2rgb (xyz), rgb) 218s 23 tests, 23 passed, 0 known failure, 0 skipped 218s [inst/imcomplement.m] 218s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imcomplement.m 218s ***** assert (imcomplement (10), -9); 218s ***** assert (imcomplement (single (10)), single (-9)); 218s ***** assert (imcomplement (0.2), 0.8); 218s ***** assert (imcomplement (uint8 (0)), uint8 (255)); 218s ***** assert (imcomplement (uint8 (1)), uint8 (254)); 218s ***** assert (imcomplement (uint16 (0)), uint16 (65535)); 218s ***** assert (imcomplement (uint16 (1)), uint16 (65534)); 218s ***** assert (imcomplement (int8 (-128)), int8 ( 127)); 218s ***** assert (imcomplement (int8 ( 127)), int8 (-128)); 218s ***** assert (imcomplement (int16 (-1)), int16 ( 0)); 218s ***** assert (imcomplement (int16 ( 0)), int16 (-1)); 218s ***** assert (imcomplement (int16 ( 1)), int16 (-2)); 218s ***** assert (imcomplement ([true false true]), [false true false]) 218s ***** error imcomplement ("not an image") 218s 14 tests, 14 passed, 0 known failure, 0 skipped 218s [inst/cp2tform.m] 218s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/cp2tform.m 218s ***** function [crw, cap] = coords (npt = 1000, scale = 2, dtheta = pi/3, 218s dx = 2, dy = -6, sig2noise = 1e32) 218s theta = (rand(npt, 1)*2-1)*2*pi; 218s R = rand(npt,1); 218s y = R.*sin(theta); 218s x = R.*cos(theta); 218s crw = [y x]; 218s 218s thetap = theta + dtheta; 218s Rap = R * scale; 218s 218s yap = Rap.*sin(thetap); 218s yap = yap + dy; 218s yap = yap + rand (size (yap)) * norm (yap) / sig2noise; 218s 218s xap = Rap.*cos(thetap); 218s xap = xap + dx; 218s xap = xap + rand (size (xap)) * norm (xap) / sig2noise; 218s cap = [yap xap]; 218s ***** endfunction 218s ***** test 218s npt = 100000; 218s [crw, cap] = coords (npt); 218s ttype = 'projective'; 218s T = cp2tform (crw, cap, ttype); 218s crw2 = tforminv (T, cap); 218s finalerr = norm (crw - crw2)/npt; 218s assert (finalerr < 2*eps, "norm = %3.2e ( > 2*eps)", finalerr) 218s ***** test 218s npt = 100000; 218s [crw, cap] = coords (npt); 218s ttype = 'affine'; 218s T = cp2tform (crw, cap, ttype); 218s crw2 = tforminv (T, cap); 218s finalerr = norm (crw - crw2)/npt; 218s assert (finalerr < 2*eps, "norm = %3.2e ( > 2*eps)", finalerr) 218s ***** xtest 218s npt = 100000; 218s [crw, cap] = coords (npt); 218s ttype = 'nonreflective similarity'; 218s T = cp2tform (crw, cap, ttype); 218s crw2 = tforminv (T, cap); 218s finalerr = norm (crw - crw2)/npt; 218s assert (finalerr < 3*eps, "norm = %3.2e ( > 3*eps)", finalerr) 219s ***** test 219s npt = 100000; 219s [crw, cap] = coords (npt); 219s cap(:,2) *= -1; % reflection around y axis 219s ttype = 'similarity'; 219s T = cp2tform (crw, cap, ttype); 219s crw2 = tforminv (T, cap); 219s finalerr = norm (crw - crw2)/npt; 219s assert (finalerr < 3*eps, "norm = %3.2e ( > 3*eps)", finalerr) 219s ***** xtest 219s npt = 100000; 219s [crw, cap] = coords (npt); 219s ttype = 'polynomial'; 219s ord = 2; 219s T = cp2tform (crw, cap, ttype, ord); 219s crw2 = tforminv (T, cap); 219s finalerr = norm (crw - crw2)/npt; 219s assert (finalerr < eps, "norm = %3.2e ( > eps)", finalerr) 219s ***** xtest 219s npt = 100000; 219s [crw, cap] = coords (npt); 219s ttype = 'polynomial'; 219s ord = 3; 219s T = cp2tform (crw, cap, ttype, ord); 219s crw2 = tforminv (T, cap); 219s finalerr = norm (crw - crw2)/npt; 219s assert (finalerr < eps, "norm = %3.2e ( > eps)", finalerr) 219s ***** xtest 219s npt = 100000; 219s [crw, cap] = coords (npt); 219s ttype = 'polynomial'; 219s ord = 4; 219s T = cp2tform (crw, cap, ttype, ord); 219s crw2 = tforminv (T, cap); 219s finalerr = norm (crw - crw2)/npt; 219s assert (finalerr < 6*eps, "norm = %3.2e ( > 6*eps)", finalerr) 219s 7 tests, 7 passed, 0 known failure, 0 skipped 219s [inst/rgb2xyz.m] 219s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/rgb2xyz.m 219s ***** assert (rgb2xyz ([0 0 0]), [0, 0, 0], 1e-3) 219s ***** assert (rgb2xyz ([1 0 0]), [0.4125, 0.2127, 0.0193], 1e-3) 219s ***** assert (rgb2xyz ([1 1 0]), [0.7700, 0.9278, 0.1385], 1e-3) 219s ***** assert (rgb2xyz ([0 1 0]), [0.3576, 0.7152, 0.1192], 1e-3) 219s ***** assert (rgb2xyz ([0 1 1]), [0.5380, 0.7873, 1.0694], 1e-3) 219s ***** assert (rgb2xyz ([0 0 1]), [0.1804, 0.0722, 0.9502], 1e-3) 219s ***** assert (rgb2xyz ([1 0 1]), [0.5929, 0.2848, 0.9696], 1e-3) 219s ***** assert (rgb2xyz ([1 1 1]), [0.9505, 1.0000, 1.0888], 1e-3) 219s ***** assert (rgb2xyz ([0.5 0.5 0.5]), [0.2034, 0.2140, 0.2330], 1e-3) 219s ***** assert (rgb2xyz ([0.75 0 0]), [0.2155, 0.1111, 0.0101], 1e-3) 219s ***** assert (rgb2xyz ([0.5 0 0]), [0.0883, 0.0455, 0.0041], 1e-3) 219s ***** assert (rgb2xyz ([0.25 0 0]), [0.0210, 0.0108, 0.0010], 1e-3) 219s ***** assert (rgb2xyz ([1 0.5 0.5]), [0.5276, 0.3812, 0.2482], 1e-3) 219s ***** assert (rgb2xyz ([1.5 1 1]), [1.5845, 1.3269, 1.1185], 1e-3) 219s ***** test 219s rgb_map = rand (64, 3); 219s assert (xyz2rgb (rgb2xyz (rgb_map)), rgb_map, 2e-5); 219s ***** test 219s rgb_img = rand (64, 64, 3); 219s assert (xyz2rgb (rgb2xyz (rgb_img)), rgb_img, 2e-5); 219s ***** assert (rgb2xyz (sparse ([0 0 0])), [0 0 0], 1e-3) 219s ***** assert (rgb2xyz (sparse ([0 0 1])), [0.1804, 0.0722, 0.9502], 1e-3) 219s ***** assert (rgb2xyz (uint8([255 255 255])), [0.9505, 1.0000, 1.0888], 1e-3) 219s ***** assert (class (rgb2xyz (single([1 1 1]))), 'single') 219s ***** error rgb2xyz () 219s ***** error rgb2xyz (1,2) 219s ***** error rgb2xyz ({1}) 219s ***** error rgb2xyz (ones (2,2)) 219s ***** test 219s rgb = rand (16, 16, 3, 5); 219s xyz = zeros (size (rgb)); 219s for i = 1:5 219s xyz(:,:,:,i) = rgb2xyz (rgb(:,:,:,i)); 219s endfor 219s assert (rgb2xyz (rgb), xyz) 219s 25 tests, 25 passed, 0 known failure, 0 skipped 219s [inst/radon.m] 219s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/radon.m 219s ***** test 219s A = radon (ones (2,2), 30); 219s assert (A, [0 0 0.608253175473055 2.103325780167649 1.236538105676658 0.051882938682637 0]',1e-10) 219s ***** test 219s ***** # testing all types 219s A = radon (single (ones (2,2)), 90); 219s assert (A, B) 219s A = radon (double (ones (2,2)), 90); 219s assert (A, B) 219s A = radon (int8 (ones (2,2)), 90); 219s assert (A, B) 219s A = radon (int32 (ones (2,2)), 90); 219s assert (A, B) 219s A = radon (int64 (ones (2,2)), 90); 219s assert (A, B) 219s A = radon (uint8 (ones (2,2)), 90); 219s assert (A, B) 219s A = radon (uint16 (ones (2,2)), 90); 219s assert (A, B) 219s A = radon (uint32 (ones (2,2)), 90); 219s assert (A, B) 219s A = radon (uint64 (ones (2,2)), 90); 219s B = [0, 0.25, 1.75, 1.75, 0.25, 0. 0.]'; 219s assert (A, B) 219s bug #58567 219s A = radon (logical (ones (2,2)), 90); 219s assert (A, B) 219s ***** error 219s radon (); 219s ***** error 219s radon ('xxx'); 219s ***** error 219s radon (ones (2, 2), ones (2,2)); 219s ***** error 219s radon (ones (2, 2), 'xxx'); 219s 6 tests, 6 passed, 0 known failure, 0 skipped 219s [inst/iptnum2ordinal.m] 219s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/iptnum2ordinal.m 219s ***** assert (strcmp (iptnum2ordinal (1), 'first')); # simple works 219s ***** assert (strcmp (iptnum2ordinal (21), '21st')); # after 20, goes stupid 219s ***** assert (strcmp (iptnum2ordinal (100), '100th')); # use th correctly 219s ***** fail ("iptnum2ordinal (inf)"); # must be real 219s ***** fail ("iptnum2ordinal (0)"); # must be positive 219s ***** fail ("iptnum2ordinal (-1)"); # must be positive 219s ***** fail ("iptnum2ordinal (3.4)"); # must be integer 219s 7 tests, 7 passed, 0 known failure, 0 skipped 219s [inst/edge.m] 219s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/edge.m 219s ***** test 219s im = [ 219s 249 238 214 157 106 69 60 90 131 181 224 247 252 250 250 219s 250 242 221 165 112 73 62 91 133 183 225 248 252 250 251 219s 252 246 228 173 120 78 63 90 130 181 224 248 253 251 251 219s 253 248 232 185 132 87 62 80 116 170 217 244 253 251 252 219s 253 249 236 198 149 101 66 71 101 155 206 238 252 252 252 219s 254 250 240 210 164 115 73 69 92 143 196 232 252 253 252 219s 70 70 68 61 49 36 24 22 26 38 52 63 70 70 70 219s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 219s 62 63 62 59 51 42 33 25 22 26 36 45 56 60 62 219s 252 253 252 246 221 190 157 114 90 90 118 157 203 235 248 219s 251 253 254 251 233 209 182 136 103 92 107 139 185 225 245 219s 251 253 254 253 243 227 206 163 128 108 110 133 175 217 242 219s 252 253 254 254 249 241 228 195 164 137 127 139 172 212 239 219s ] / 255; 219s 219s methods = {"kirsch", "prewitt", "sobel"}; 219s for m_i = 1:numel (methods) 219s method = methods{m_i}; 219s 219s bw = edge (im, method, 0.2, "both", "thinning"); 219s assert (edge (im, method, 0.2), bw) 219s 219s args = perms ({0.2, "both", "thinning"}); 219s for i = 1:rows (args) 219s assert (edge (im, method, args{i,:}), bw) 219s endfor 219s 219s bw = edge (im, method, 0.2, "vertical", "nothinning"); 219s args = perms ({0.2, "vertical", "nothinning"}); 219s for i = 1:rows (args) 219s assert (edge (im, method, args{i,:}), bw) 219s endfor 219s 219s bw = edge (im, method, 0.2, "vertical", "thinning"); 219s args = perms ({0.2, "vertical"}); 219s for i = 1:rows (args) 219s assert (edge (im, method, args{i,:}), bw) 219s endfor 219s 219s bw = edge (im, method, 0.2, "both", "nothinning"); 219s args = perms ({0.2, "nothinning"}); 219s for i = 1:rows (args) 219s assert (edge (im, method, args{i,:}), bw) 219s endfor 219s endfor 220s ***** error 220s bw = edge (rand (10), "sobel", 0.2, 0.4) 220s ***** error 220s bw = edge (rand (10), "sobel", "thinning", "nothinning") 220s ***** error 220s bw = edge (rand (10), "sobel", "both", "both") 220s ***** error 220s bw = edge (rand (10), "sobel", [0.2 0.7], "both", "thinning") 220s ***** error 220s bw = edge (rand (10), "kirsch", 0.2, 0.4) 220s ***** error 220s bw = edge (rand (10), "kirsch", "thinning", "nothinning") 220s ***** error 220s bw = edge (rand (10), "kirsch", "both", "both") 220s ***** error 220s bw = edge (rand (10), "kirsch", [0.2 0.7], "both", "thinning") 220s ***** error 220s bw = edge (rand (10), "prewitt", 0.2, 0.4) 220s ***** error 220s bw = edge (rand (10), "prewitt", "thinning", "nothinning") 220s ***** error 220s bw = edge (rand (10), "prewitt", "both", "both") 220s ***** error 220s bw = edge (rand (10), "prewitt", [0.2 0.7], "both", "thinning") 220s ***** test 220s im = [ 220s 249 238 214 157 106 69 60 90 131 181 224 247 252 250 250 220s 250 242 221 165 112 73 62 91 133 183 225 248 252 250 251 220s 252 246 228 173 120 78 63 90 130 181 224 248 253 251 251 220s 253 248 232 185 132 87 62 80 116 170 217 244 253 251 252 220s 253 249 236 198 149 101 66 71 101 155 206 238 252 252 252 220s 254 250 240 210 164 115 73 69 92 143 196 232 252 253 252 220s 70 70 68 61 49 36 24 22 26 38 52 63 70 70 70 220s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 220s 62 63 62 59 51 42 33 25 22 26 36 45 56 60 62 220s 252 253 252 246 221 190 157 114 90 90 118 157 203 235 248 220s 251 253 254 251 233 209 182 136 103 92 107 139 185 225 245 220s 251 253 254 253 243 227 206 163 128 108 110 133 175 217 242 220s 252 253 254 254 249 241 228 195 164 137 127 139 172 212 239 220s ] / 255; 220s 220s bw = edge (im, "roberts", .2, "thinning"); 220s assert (edge (im, "roberts", 0.2), bw) 220s assert (edge (im, "roberts", "thinning", 0.2), bw) 220s 220s bw = edge (im, "roberts", .2, "nothinning"); 220s assert (edge (im, "roberts", "nothinning", 0.2), bw) 220s ***** error 220s bw = edge (rand (10), "roberts", 0.2, 0.4) 220s ***** error 220s bw = edge (rand (10), "roberts", "thinning", "nothinning") 220s ***** error 220s bw = edge (rand (10), "roberts", "both", "thinning") 220s ***** test 220s im = rand (10); 220s [~, thresh] = edge (im, "canny"); 220s assert (size (thresh), [1 2]) 220s [~, thresh] = edge (im, "canny", [.2 .6]); 220s assert (thresh, [.2 .6]) 220s [~, thresh] = edge (im, "canny", [.2; .6]); 220s assert (thresh, [.2 .6]) 220s ***** test 220s in = zeros (5); 220s in(3,3) = 1; 220s 220s E = logical ([ 220s 0 0 0 0 0 220s 0 0 1 0 0 220s 0 1 0 1 0 220s 0 0 1 0 0 220s 0 0 0 0 0]); 220s assert (edge (in), E) 220s assert (edge (uint8 (in.*100)), E) 220s assert (edge (in, "sobel"), E) 220s assert (edge (in, "sobel", 0), E) 220s assert (edge (in, "sobel", 1), false (5)) 220s 220s [E, auto_thresh] = edge (in); 220s assert (auto_thresh, 0.2449, 1e-4) 220s 220s V = logical([ 220s 0 0 0 0 0 220s 0 1 0 1 0 220s 0 1 0 1 0 220s 0 1 0 1 0 220s 0 0 0 0 0]); 220s assert (edge (in, "sobel", 0, "vertical"), V) 220s 220s H = logical ([ 220s 0 0 0 0 0 220s 0 1 1 1 0 220s 0 0 0 0 0 220s 0 1 1 1 0 220s 0 0 0 0 0]); 220s assert (edge (in, "sobel", 0, "horizontal"), H) 220s 220s V = false (5); 220s V(3,2) = true; 220s V(3,4) = true; 220s assert (edge (in, "sobel", [], "vertical"), V) 220s 220s H = false (5); 220s H(2,3) = true; 220s H(4,3) = true; 220s assert (edge (in, "sobel", [], "horizontal"), H) 220s ***** test 220s A = ones (5); 220s A(3, 3) = 0; 220s expected = logical ([ 220s 0 0 0 0 0 220s 0 0 1 0 0 220s 0 1 0 1 0 220s 0 0 1 0 0 220s 0 0 0 0 0]); 220s assert (edge (A), expected) 220s ***** test 220s in = zeros (5); 220s in(3, 3) = 1; 220s 220s E = logical ([ 220s 0 0 0 0 0 220s 0 1 0 1 0 220s 0 0 0 0 0 220s 0 1 0 1 0 220s 0 0 0 0 0]); 220s 220s assert (edge (in, "prewitt"), E) 220s 220s [~, auto_thresh] = edge (in, "prewitt"); 220s assert (auto_thresh, 0.2309, 1e-4) 220s 220s V = logical([ 220s 0 0 0 0 0 220s 0 1 0 1 0 220s 0 1 0 1 0 220s 0 1 0 1 0 220s 0 0 0 0 0]); 220s assert (edge (in, "prewitt", 0, "vertical"), V) 220s 220s H = logical ([ 220s 0 0 0 0 0 220s 0 1 1 1 0 220s 0 0 0 0 0 220s 0 1 1 1 0 220s 0 0 0 0 0]); 220s assert (edge (in, "prewitt", 0, "horizontal"), H) 220s ***** test 220s in = zeros (5); 220s in(3,3) = 1; 220s in(3,4) = 0.9; 220s 220s E = logical ([ 220s 0 0 0 0 0 220s 0 0 1 0 0 220s 0 0 1 0 0 220s 0 0 0 0 0 220s 0 0 0 0 0]); 220s 220s assert (edge (in, "roberts"), E) 220s 220s [~, auto_thresh] = edge (in, "roberts"); 220s assert (auto_thresh, 0.6591, 1e-4) 220s 220s E45 = [0 0 0 0 0 220s 0 -0.5 -0.45 0 0 220s 0 0 0.50 0.45 0 220s 0 0 0 0 0 220s 0 0 0 0 0]; 220s E135 = [0 0 0 0 0 220s 0 0 -0.50 -0.45 0 220s 0 0.5 0.45 0 0 220s 0 0 0 0 0 220s 0 0 0 0 0]; 220s 220s [~, ~, erg45, erg135] = edge (in, "roberts"); 220s assert (erg45, E45) 220s assert (erg135, E135) 220s ***** xtest 220s ## The edge image is correct and Matlab compatible so those should 220s ## pass. However, the threshold values used to generate the edge 220s ## image are not the same as Matlab. 220s 220s in_8 = fspecial ("gaussian", [8 8], 2); 220s in_8 /= in_8(4,4); 220s in_8_uint8 = im2uint8 (in_8); 220s 220s ## Matlab changed their implementation of the Canny method in 220s ## release 2011a. We are compatible with their new implementation 220s ## but for testing purposes, this is the expected result for the 220s ## old implementation. 220s out_8_old = logical ([ 220s 0 0 0 0 0 0 0 0 220s 0 0 0 1 1 0 0 0 220s 0 0 1 0 0 1 0 0 220s 0 1 0 0 0 0 1 0 220s 0 1 0 0 0 0 1 0 220s 0 0 1 0 0 1 0 0 220s 0 0 0 1 1 0 0 0 220s 0 0 0 0 0 0 0 0]); 220s 220s out_8 = logical ([ 220s 0 0 0 0 0 0 0 0 220s 0 1 1 1 1 1 0 0 220s 0 1 0 0 0 1 0 0 220s 0 1 0 0 0 1 0 0 220s 0 1 0 0 0 1 0 0 220s 0 1 1 1 1 1 0 0 220s 0 0 0 0 0 0 0 0 220s 0 0 0 0 0 0 0 0]); 220s out_thresh = [0.34375 0.859375]; 220s 220s [obs_edge, obs_thresh] = edge (in_8, "Canny"); 220s assert (obs_edge, out_8) 220s assert (obs_thresh, out_thresh) 220s 220s [obs_edge_givethresh, obs_thresh_givethresh] ... 220s = edge (in_8, "Canny", out_thresh); 220s assert (obs_edge_givethresh, out_8) 220s assert (obs_thresh_givethresh, out_thresh) 220s 220s [obs_edge_uint8, obs_thresh_uint8] = edge (in_8_uint8, "Canny"); 220s assert (obs_edge_uint8, out_8) 220s assert (obs_thresh_uint8, out_thresh) 220s !!!!! known failure 220s ASSERT errors for: assert (obs_thresh,out_thresh) 220s 220s Location | Observed | Expected | Reason 220s (1) 0.27112 0.34375 Abs err 0.072632 exceeds tol 0 by 0.07 220s (2) 0.67779 0.85938 Abs err 0.18158 exceeds tol 0 by 0.2 220s ***** xtest 220s ## The edge image is correct and Matlab compatible so those should 220s ## pass. However, the threshold values used to generate the edge 220s ## image are not the same as Matlab. 220s 220s in_9 = fspecial ("gaussian", [9 9], 2); 220s in_9 /= in_9(5,5); 220s 220s ## Matlab changed their implementation of the Canny method in 220s ## release 2011a. We are compatible with their new implementation 220s ## but for testing purposes, this is the expected result for the 220s ## old implementation. 220s out_9_old = logical ([ 220s 0 0 0 0 0 0 0 0 0 220s 0 0 0 0 0 0 0 0 0 220s 0 0 0 1 1 1 0 0 0 220s 0 0 1 0 0 0 1 0 0 220s 0 0 1 0 0 0 1 0 0 220s 0 0 1 0 0 0 1 0 0 220s 0 0 0 1 1 1 0 0 0 220s 0 0 0 0 0 0 0 0 0 220s 0 0 0 0 0 0 0 0 0]); 220s 220s out_9 = logical ([ 220s 0 0 0 0 0 0 0 0 0 220s 0 0 1 1 1 1 0 0 0 220s 0 1 1 0 0 1 1 0 0 220s 0 1 0 0 0 0 1 0 0 220s 0 1 0 0 0 0 1 0 0 220s 0 1 1 0 0 1 1 0 0 220s 0 0 1 1 1 1 0 0 0 220s 0 0 0 0 0 0 0 0 0 220s 0 0 0 0 0 0 0 0 0]); 220s out_thresh = [0.35 0.875]; 220s 220s [obs_edge, obs_thresh] = edge (in_9, "Canny"); 220s assert (obs_edge, out_9) 220s assert (obs_thresh, out_thresh) 220s 220s [obs_edge_givethresh, obs_thresh_givethresh] ... 220s = edge (in_9, "Canny", out_thresh); 220s assert (obs_edge_givethresh, out_9) 220s assert (obs_thresh_givethresh, out_thresh) 220s !!!!! known failure 220s ASSERT errors for: assert (obs_thresh,out_thresh) 220s 220s Location | Observed | Expected | Reason 220s (1) 0.261 0.35 Abs err 0.089001 exceeds tol 0 by 0.09 220s (2) 0.6525 0.875 Abs err 0.2225 exceeds tol 0 by 0.2 220s 24 tests, 22 passed, 2 known failures, 0 skipped 220s [inst/lab2single.m] 220s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/lab2single.m 220s ***** test 220s l_max_f = 100 + (25500 / 65280); 220s ab_max_f = 127 + (255 / 256); 220s cm = [ 220s -Inf 220s Inf 220s NaN 220s l_max_f 220s ab_max_f 220s -200 220s -129 220s -128 220s -128+(255/65280)*(0.499) 220s -128+(255/65280)*(0.500) 220s -128+(255/65280)*(0.501) 220s -127 220s -1 220s 0 220s (100/65280)*(0.499999) 220s (100/65280)*(0.51) 220s (100/65280)*(0.500001) 220s 1 220s 99 220s 100 220s 101 220s 126 220s 127 220s 128 220s 254 220s 255 220s 256 220s 257]; 220s cm = repmat (single (cm), [1 3]); 220s im2d = reshape (cm, [7 4 3]); 220s imnd = permute (im2d, [1 4 3 2]); 220s 220s cm_uint8 = uint8 ([ 220s 0 0 0 220s 255 255 255 220s 255 255 255 220s 255 228 228 220s 255 255 255 220s 0 0 0 220s 0 0 0 220s 0 0 0 220s 0 0 0 220s 0 0 0 220s 0 0 0 220s 0 1 1 220s 0 127 127 220s 0 128 128 220s 0 128 128 220s 0 128 128 220s 0 128 128 220s 3 129 129 220s 252 227 227 220s 255 228 228 220s 255 229 229 220s 255 254 254 220s 255 255 255 220s 255 255 255 220s 255 255 255 220s 255 255 255 220s 255 255 255 220s 255 255 255]); 220s 220s assert (lab2uint8 (cm), cm_uint8) 220s im2d_uint8 = reshape (cm_uint8, [7 4 3]); 220s assert (lab2uint8 (im2d), im2d_uint8) 220s assert (lab2uint8 (imnd), permute (im2d_uint8, [1 4 3 2])) 220s 220s cm_uint16 = uint16 ([ 220s 0 0 0 220s 65535 65535 65535 220s 65535 65535 65535 220s 65535 58468 58468 220s 65535 65535 65535 220s 0 0 0 220s 0 0 0 220s 0 0 0 220s 0 0 0 220s 0 1 1 220s 0 1 1 220s 0 256 256 220s 0 32512 32512 220s 0 32768 32768 220s 0 32768 32768 220s 1 32768 32768 220s 1 32768 32768 220s 653 33024 33024 220s 64627 58112 58112 220s 65280 58368 58368 220s 65535 58624 58624 220s 65535 65024 65024 220s 65535 65280 65280 220s 65535 65535 65535 220s 65535 65535 65535 220s 65535 65535 65535 220s 65535 65535 65535 220s 65535 65535 65535]); 220s 220s assert (lab2uint16 (cm), cm_uint16) 220s im2d_uint16 = reshape (cm_uint16, [7 4 3]); 220s assert (lab2uint16 (im2d), im2d_uint16) 220s assert (lab2uint16 (imnd), permute (im2d_uint16, [1 4 3 2])) 220s 220s assert (lab2double (cm), double (cm)) 220s assert (lab2double (im2d), double (im2d)) 220s assert (lab2double (imnd), double (imnd)) 220s 1 test, 1 passed, 0 known failure, 0 skipped 220s [inst/imremap.m] 220s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imremap.m 220s ***** demo 220s ## Generate a synthetic image and show it 220s I = tril(ones(100)) + abs(rand(100)); I(I>1) = 1; 220s I(20:30, 20:30) = !I(20:30, 20:30); 220s I(70:80, 70:80) = !I(70:80, 70:80); 220s figure, imshow(I); 220s ## Resize the image to the double size and show it 220s [XI, YI] = meshgrid(linspace(1, 100, 200)); 220s warped = imremap(I, XI, YI); 220s figure, imshow(warped); 220s ***** demo 220s ## Generate a synthetic image and show it 220s I = tril(ones(100)) + abs(rand(100)); I(I>1) = 1; 220s I(20:30, 20:30) = !I(20:30, 20:30); 220s I(70:80, 70:80) = !I(70:80, 70:80); 220s figure, imshow(I); 220s ## Rotate the image around (0, 0) by -0.4 radians and show it 220s [XI, YI] = meshgrid(1:100); 220s R = [cos(-0.4) sin(-0.4); -sin(-0.4) cos(-0.4)]; 220s RXY = [XI(:), YI(:)] * R; 220s XI = reshape(RXY(:,1), [100, 100]); YI = reshape(RXY(:,2), [100, 100]); 220s warped = imremap(I, XI, YI); 220s figure, imshow(warped); 220s ***** test 220s 220s I = repmat([ 1 2 3 4 ], [4, 1]); 220s xi = [-6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11]; 220s exp_rep = [ 1 1 1 1 1 1 1 1 2 3 4 4 4 4 4 4 4 4]; 220s exp_sym = [ 2 3 4 4 3 2 1 1 2 3 4 4 3 2 1 1 2 3]; 220s exp_ref = [ 2 1 2 3 4 3 2 1 2 3 4 3 2 1 2 3 4 3]; 220s exp_cir = [ 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3]; 220s yi = 2.5; 220s 220s # rectilinear grid codepath 220s assert (imremap (I, xi, yi, "bicubic", "replicate"), exp_rep); 220s assert (imremap (I, xi, yi, "bicubic", "symmetric"), exp_sym); 220s assert (imremap (I, xi, yi, "bicubic", "reflect"), exp_ref); 220s assert (imremap (I, xi, yi, "bicubic", "circular"), exp_cir); 220s 220s # meshgrid codepath 220s XI = [xi/2; xi; xi/2]; % cannot be reduced to vector, we will assert only middle row 220s YI = repmat ([1.5; yi; 3.5], [1, length(xi)]); 220s assert (imremap (I, XI, YI, "bicubic", "replicate")(2,:), exp_rep); 220s assert (imremap (I, XI, YI, "bicubic", "symmetric")(2,:), exp_sym); 220s assert (imremap (I, XI, YI, "bicubic", "reflect")(2,:), exp_ref); 220s assert (imremap (I, XI, YI, "bicubic", "circular")(2,:), exp_cir); 220s 1 test, 1 passed, 0 known failure, 0 skipped 220s [inst/graythresh.m] 220s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/graythresh.m 220s ***** shared img, histo 220s ## this is the old default.img that came with GNU Octave. While the current 220s ## is very very similar, is off just enough for us to get precision errors 220s 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])); 220s ***** assert (graythresh (img, "percentile"), 142/255); 220s ***** assert (graythresh (img, "percentile", 0.5), 142/255); 220s ***** assert (graythresh (img, "moments"), 142/255); 220s ***** assert (graythresh (img, "minimum"), 93/255); 220s ***** assert (graythresh (img, "maxentropy"), 150/255); 220s ***** assert (graythresh (img, "intermodes"), 99/255); 220s ***** assert (graythresh (img, "otsu"), 114.5/255); 220s histo = hist (img(:), 0:255); 220s ***** assert (graythresh (histo, "otsu"), 114.5/255); 220s ***** assert (graythresh (img, "mean"), 0.51445615982, 0.000000001); # here our results differ from ImageJ 220s ***** test 220s im = repmat (0.5, 100, 100); 220s [t, g] = graythresh (im); 220s assert (t, 0) 220s assert (g, 0) 220s ***** test 220s im = [-2 1 0; 43 .5 .2]; 220s clip_im = [ 0 1 0; 1 .5 .2]; 220s t = graythresh (clip_im); 220s assert (graythresh (im), t) 220s assert (graythresh (single (im)), t) 220s ***** test 220s H(1) = 100; 220s assert (graythresh (H), 0) 220s 12 tests, 12 passed, 0 known failure, 0 skipped 220s [inst/imregionalmin.m] 220s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imregionalmin.m 220s ***** test 220s a = [ 220s 7 3 9 3 10 3 220s 4 2 3 10 1 3 220s 1 4 6 9 4 10 220s 8 7 9 3 4 8 220s 5 9 3 3 8 9 220s 3 6 9 4 1 10]; 220s 220s a4 = logical ([ 220s 0 0 0 1 0 0 220s 0 1 0 0 1 0 220s 1 0 0 0 0 0 220s 0 0 0 1 0 0 220s 0 0 1 1 0 0 220s 1 0 0 0 1 0]); 220s assert (imregionalmin (a, 4), a4) 220s assert (imregionalmin (uint8 (a), 4), a4) 220s assert (imregionalmin (int8 (a), 4), a4) 220s 220s a8 = logical ([ 220s 0 0 0 0 0 0 220s 0 0 0 0 1 0 220s 1 0 0 0 0 0 220s 0 0 0 0 0 0 220s 0 0 0 0 0 0 220s 1 0 0 0 1 0]); 220s assert (imregionalmin (a), a8) 220s assert (imregionalmin (a, 8), a8) 220s assert (imregionalmin (uint8 (a), 8), a8) 220s assert (imregionalmin (int8 (a), 8), a8) 221s ***** test 221s a = [ 221s 4 8 5 -1 8 7 221s -1 4 0 7 1 1 221s 6 1 2 6 7 0 221s 6 1 5 -2 5 9 221s 1 4 -1 0 0 2 221s 4 6 1 0 7 1]; 221s 221s a4 = logical ([ 221s 0 0 0 1 0 0 221s 1 0 1 0 0 0 221s 0 1 0 0 0 1 221s 0 1 0 1 0 0 221s 1 0 1 0 0 0 221s 0 0 0 0 0 1]); 221s assert (imregionalmin (a, 4), a4) 221s assert (imregionalmin (int8 (a), 4), a4) 221s 221s a8 = logical ([ 221s 0 0 0 1 0 0 221s 1 0 0 0 0 0 221s 0 0 0 0 0 1 221s 0 0 0 1 0 0 221s 0 0 0 0 0 0 221s 0 0 0 0 0 0]); 221s assert (imregionalmin (a), a8) 221s assert (imregionalmin (a, 8), a8) 221s assert (imregionalmin (int8 (a), 8), a8) 221s ***** test 221s ## test float input images 221s im0 = peaks (); 221s im1 = im0 ./ 100; 221s max_pos_expected = [1; 49; 664; 1286; 1302; 2401]; 221s max0 = imregionalmin (im0); 221s max0_pos = find (max0); 221s max1 = imregionalmin (im1); 221s assert (max1, max0) 221s assert (max0_pos, max_pos_expected) 221s 3 tests, 3 passed, 0 known failure, 0 skipped 221s [inst/otf2psf.m] 221s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/otf2psf.m 221s ***** function otf = rand_otf (varargin) 221s otf = complex (rand (varargin{:}), rand (varargin{:})); 221s ***** endfunction 221s ***** test 221s otf = rand_otf (6, 1); 221s assert (otf2psf (otf), circshift (ifft (otf), 3), eps); 221s ***** test 221s otf = rand_otf (6, 6); 221s assert (otf2psf (otf), circshift (ifft2 (otf), [3 3]), eps); 221s ***** test 221s otf = rand_otf (6, 6, 6); 221s assert (otf2psf (otf), circshift (ifftn (otf), [3 3 3]), eps); 221s ***** test 221s otf = rand_otf (7, 1); 221s assert (otf2psf (otf), circshift (ifft (otf), 3), eps); 221s ***** test 221s otf = rand_otf (7, 7); 221s assert (otf2psf (otf), circshift (ifft2 (otf), [3 3]), eps); 221s ***** test 221s otf = rand_otf (6, 7, 8); 221s assert (otf2psf (otf), circshift (ifftn (otf), [3 3 4]), eps); 221s ***** test 221s otf = rand_otf (7, 1); 221s ppsf = circshift (ifft (otf), 3); 221s assert (otf2psf (otf, 6), ppsf(1:6), eps); 221s assert (otf2psf (otf, [6 1]), ppsf(1:6), eps); 221s ***** test 221s otf = rand_otf (7, 7); 221s ppsf = circshift (ifft2 (otf), [3 3]); 221s assert (otf2psf (otf, [6 1]), ppsf(1:6,4), eps); 221s ***** test 221s otf = rand_otf (6, 7); 221s ppsf = circshift (ifft2 (otf), [3 3]); 221s assert (otf2psf (otf, [6 6]), ppsf(:,1:6), eps); 221s ***** error otf2psf ("not a otf") 221s ***** error otf2psf (rand_otf (16), 18) 221s ***** error otf2psf (rand_otf (16), [14 18]) 221s ***** error otf2psf (rand_otf (16), [18 18]) 221s ***** error otf2psf (rand_otf (16, 1), 18) 221s ***** test 221s psf = fspecial ("gaussian", 16); 221s otf = psf2otf (psf); 221s assert (otf2psf (otf), psf, eps); 221s ***** xtest 221s psf = rand (16); 221s otf = psf2otf (psf); 221s assert (otf2psf (otf), psf, 4*eps); 221s ***** test 221s psf = rand (8); 221s otf = psf2otf (psf, [16 16]); 221s assert (otf2psf (otf, [8 8]), psf, 2*eps); 221s 17 tests, 17 passed, 0 known failure, 0 skipped 221s [inst/bwmorph.m] 221s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/bwmorph.m 221s ***** demo 221s bwmorph (true (11), "shrink", Inf) 221s # Should return 0 matrix with 1 pixel set to 1 at (6,6) 221s ***** test 221s slBW = logical ([ 0 0 0 0 0 0 0 221s 0 1 0 0 0 0 0 221s 0 0 1 1 0 0 0 221s 0 0 1 1 0 0 0 221s 0 0 1 1 1 0 0 221s 0 0 1 1 1 0 0 221s 0 1 1 1 1 1 0 221s 0 1 1 1 1 1 0 221s 0 1 1 1 1 1 0 221s 0 1 1 1 1 1 0 221s 0 1 1 1 1 1 0 221s 0 0 0 0 0 0 0]); 221s 221s rslBW = logical ([ 0 0 0 0 0 0 0 221s 0 1 0 0 0 0 0 221s 0 0 1 1 0 0 0 221s 0 0 1 1 0 0 0 221s 0 0 0 0 0 0 0 221s 0 0 0 1 0 0 0 221s 0 0 0 1 0 0 0 221s 0 0 0 0 0 0 0 221s 0 0 0 1 0 0 0 221s 0 0 0 0 0 0 0 221s 0 0 0 0 0 0 0 221s 0 0 0 0 0 0 0]); 221s assert (bwmorph (slBW, "skel-lantuejoul", 1), [rslBW(1:5,:); false(7, 7)]); 221s assert (bwmorph (slBW, "skel-lantuejoul", 2), [rslBW(1:8,:); false(4, 7)]); 221s assert (bwmorph (slBW, "skel-lantuejoul", 3), rslBW); 221s assert (bwmorph (slBW, "skel-lantuejoul", Inf), rslBW); 221s ***** test 221s bw = [ 221s 0 1 1 1 1 1 221s 0 1 1 1 1 1 221s 0 1 1 1 1 1 221s 1 1 1 1 1 1 221s 1 1 1 1 1 1 221s 1 1 1 1 1 1 221s 1 1 1 1 1 0 221s 1 1 1 1 1 0 221s 1 1 1 1 1 0]; 221s 221s final = logical ([ 221s 0 1 0 0 0 1 221s 0 0 1 0 1 0 221s 0 0 0 1 0 0 221s 0 0 0 1 0 0 221s 0 0 1 1 0 0 221s 0 0 1 0 0 0 221s 0 0 1 0 0 0 221s 0 1 0 1 0 0 221s 1 0 0 0 1 0]); 221s assert (bwmorph (bw, "skel", Inf), final) 221s assert (bwmorph (bw, "skel", 3), final) 221s ***** error bwmorph ("not a matrix", "dilate") 221s ***** assert (bwmorph (magic (10), "dilate"), imdilate (logical (magic (10)), ones (3))); 221s ***** test 221s in = logical ([1 1 0 0 1 0 1 0 0 0 1 1 1 0 1 1 0 1 0 0 221s 1 1 1 0 1 0 1 1 1 1 0 1 0 1 0 0 0 0 0 0 221s 0 1 1 1 0 1 1 0 0 0 1 1 0 0 1 1 0 0 1 0 221s 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 1 1 0 0 1 221s 0 1 0 0 1 1 0 1 1 0 0 0 0 0 1 1 0 0 1 0 221s 0 0 1 1 1 1 1 0 0 1 0 1 1 1 0 0 1 0 0 1 221s 0 1 1 1 1 1 1 0 1 1 1 0 0 0 1 0 0 1 0 0 221s 1 0 1 1 1 0 1 1 0 1 0 0 1 1 1 0 0 1 0 0 221s 1 0 1 1 1 0 1 0 0 1 0 0 1 1 0 0 1 1 1 0 221s 1 0 1 1 1 1 0 0 0 1 0 0 0 0 0 0 1 1 0 0 221s 1 1 1 1 1 1 0 1 0 1 0 0 0 0 0 0 1 0 1 1 221s 0 1 0 1 1 0 0 1 1 1 0 0 0 0 0 0 0 1 0 0 221s 0 0 1 1 0 1 1 1 1 0 0 1 0 0 0 0 1 0 1 1 221s 0 0 1 1 0 0 1 1 1 0 0 0 1 1 1 1 0 0 0 0 221s 0 0 1 0 0 0 0 0 0 1 0 0 1 1 1 1 0 0 0 0 221s 0 0 0 0 0 0 1 1 1 0 0 0 1 1 1 1 1 0 0 0 221s 0 1 0 0 0 1 1 0 1 1 0 0 1 1 1 0 1 1 1 1 221s 1 0 0 1 0 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 221s 0 0 1 1 0 1 1 1 1 0 0 0 0 1 1 0 1 1 1 1 221s 0 1 1 0 0 1 0 0 1 1 0 0 1 0 0 1 0 0 0 1]); 221s se = strel ("arbitrary", ones (3)); 221s 221s assert (bwmorph (in, "dilate"), imdilate (in, se)); 221s assert (bwmorph (in, "dilate", 3), imdilate (imdilate (imdilate (in, se), se), se)); 221s assert (bwmorph (in, "bothat"), imbothat (in, se)); 221s assert (bwmorph (in, "tophat"), imtophat (in, se)); 221s assert (bwmorph (in, "open"), imopen (in, se)); 221s assert (bwmorph (in, "close"), imclose (in, se)); 221s ***** assert (bwmorph ([1 0 0; 1 0 1; 0 0 1], "bridge"), logical ([1 1 0; 1 1 1; 0 1 1])); 221s ***** assert (bwmorph ([0 0 0; 1 0 1; 0 0 1], "clean"), logical ([0 0 0; 0 0 1; 0 0 1])); 221s ***** assert (bwmorph ([0 0 0; 0 1 0; 0 0 0], "clean"), false (3)); 221s ***** assert (bwmorph ([0 1 0; 1 0 0; 0 0 0], "diag"), logical ([1 1 0; 1 1 0; 0 0 0])); 221s ***** test 221s in = logical ([0 1 0 1 0 221s 1 1 1 0 1 221s 1 0 0 1 0 221s 1 1 1 0 1 221s 1 1 1 1 1]); 221s out = logical ([0 1 0 1 0 221s 1 1 1 1 1 221s 1 0 0 1 0 221s 1 1 1 1 1 221s 1 1 1 1 1]); 221s assert (bwmorph (in, "fill"), out); 221s ***** assert (bwmorph ([1 1 1; 0 1 0; 1 1 1], "hbreak"), logical ([1 1 1; 0 0 0; 1 1 1])); 221s ***** test 221s in = logical ([0 1 0 0 0 221s 1 0 0 1 0 221s 1 0 1 0 0 221s 1 1 1 1 1 221s 1 1 1 1 1]); 221s 221s out = logical ([0 1 0 0 0 221s 1 0 0 1 0 221s 1 0 1 0 0 221s 1 1 0 1 1 221s 1 1 1 1 1]); 221s assert (bwmorph (in, "remove"), out); 221s 221s out = logical ([0 1 0 0 0 221s 1 0 0 1 0 221s 1 0 1 0 0 221s 1 1 0 1 1 221s 1 1 1 1 1]); 221s assert (bwmorph (in, "remove", Inf), out); 221s ***** xtest 221s ## tests for spur are failing (matlab incompatible) 221s in = logical ([0 1 0 0 0 221s 1 0 0 1 0 221s 1 0 1 0 0 221s 1 1 1 1 1 221s 1 1 1 1 1]); 221s 221s out = logical ([0 1 0 0 0 221s 1 0 0 0 0 221s 1 0 1 0 0 221s 1 1 1 1 1 221s 1 1 1 1 1]); 221s assert (bwmorph (in, "spur"), out); 221s 221s out = logical ([0 1 0 0 0 221s 1 0 0 0 0 221s 1 0 0 0 0 221s 1 1 1 1 1 221s 1 1 1 1 1]); 221s assert (bwmorph (in, "spur", Inf), out); 221s !!!!! known failure 221s ASSERT errors for: assert (bwmorph (in, "spur"),out) 221s 221s Location | Observed | Expected | Reason 221s (1,2) 0 1 Abs err 1 exceeds tol 0 by 1 221s ***** test 221s bw = false (3, 3); 221s bw(3, 1) = true; 221s out = bwmorph (bw, "thicken", 0); 221s assert (out, bw) 221s ***** test 221s bw = false (8, 7); 221s bw(8, 1) = true; 221s expected = logical ([ 221s 0 0 0 0 0 0 0 221s 1 0 0 0 0 0 0 221s 1 1 0 0 0 0 0 221s 1 1 1 0 0 0 0 221s 1 1 1 1 0 0 0 221s 1 1 1 1 1 0 0 221s 1 1 1 1 1 1 0 221s 1 1 1 1 1 1 1]); 221s out = bwmorph (bw, "thicken", 6); 221s assert (out, expected) 221s ***** test 221s bw = false (8, 7); 221s bw(2, 4) = true; 221s expected = logical ([ 221s 0 0 1 1 1 0 0 221s 0 1 1 1 1 1 0 221s 0 0 1 1 1 0 0 221s 0 0 0 1 0 0 0 221s 0 0 0 0 0 0 0 221s 0 0 0 0 0 0 0 221s 0 0 0 0 0 0 0 221s 0 0 0 0 0 0 0]); 221s out = bwmorph (bw, "thicken", 2); 221s assert (out, expected) 221s ***** test 221s bw = false (8, 7); 221s bw (6, 3) = true ; 221s expected1 = logical ([ 221s 0 0 0 0 0 0 0 221s 0 0 0 0 0 0 0 221s 0 0 0 0 0 0 0 221s 0 0 0 0 0 0 0 221s 0 0 1 0 0 0 0 221s 0 1 1 1 0 0 0 221s 0 0 1 0 0 0 0 221s 0 0 0 0 0 0 0]); 221s expected3 = logical ([ 221s 0 0 0 0 0 0 0 221s 0 0 0 0 0 0 0 221s 0 0 1 0 0 0 0 221s 0 1 1 1 0 0 0 221s 1 1 1 1 1 0 0 221s 1 1 1 1 1 1 0 221s 1 1 1 1 1 0 0 221s 0 1 1 1 0 0 0]); 221s out1 = bwmorph (bw, "thicken", 1); 221s out3 = bwmorph (bw, "thicken", 3); 221s assert (out1, expected1) 221s assert (out3, expected3) 221s ***** test 221s bw = false (10, 10); 221s bw(2, 3) = true; 221s bw(7, 7) = true; 221s out_inf = bwmorph (bw, "thicken", Inf); 221s assert (out_inf(1, 9), false) 221s ***** test 221s bw = false (3, 3); 221s bw(3, 1) = true; 221s out = bwmorph (bw, "thicken", 4); 221s assert (out, true (3, 3)) 221s ***** xtest 221s ## bug #44396 221s in = [ 221s 0 0 0 1 0 221s 1 1 1 1 0 221s 0 0 1 1 0 221s 0 0 1 1 0 221s 0 0 0 1 0]; 221s out = [ 221s 0 0 0 0 0 221s 0 1 1 0 0 221s 0 0 0 1 0 221s 0 0 0 0 0 221s 0 0 0 0 0]; 221s assert (bwmorph (in, "shrink"), logical (out)); 221s !!!!! known failure 221s ASSERT errors for: assert (bwmorph (in, "shrink"),logical (out)) 221s 221s Location | Observed | Expected | Reason 221s (2,4) 1 0 Abs err 1 exceeds tol 0 by 1 221s (3,4) 0 1 Abs err 1 exceeds tol 0 by 1 221s (4,4) 1 0 Abs err 1 exceeds tol 0 by 1 221s (5,4) 1 0 Abs err 1 exceeds tol 0 by 1 221s ***** test 221s H = false (7,7); 221s H(2:3,2:3) = 1; 221s H(5:6,5:6) = 1; 221s T = logical([0 0 0 0 0 0 0; 221s 0 0 0 0 0 0 0; 221s 0 1 0 0 0 0 0; 221s 0 0 0 0 0 0 0; 221s 0 0 0 0 0 0 0; 221s 0 0 0 0 1 0 0; 221s 0 0 0 0 0 0 0]); 221s out = bwmorph (H, "thin", 1); 221s assert (T, out) 221s 221s H(4:6,4:6) = 1; 221s T = logical([0 0 0 0 0 0 0; 221s 0 0 0 0 0 0 0; 221s 0 1 1 0 0 0 0; 221s 0 0 0 1 0 0 0; 221s 0 0 0 0 1 0 0; 221s 0 0 0 0 0 0 0; 221s 0 0 0 0 0 0 0]); 221s out = bwmorph (H, "thin", 1); 221s assert (T, out) 221s 221s H3 = [0 0 0 0 0 0; 221s 0 1 1 1 0 0; 221s 0 1 1 1 0 0; 221s 0 0 0 1 0 1; 221s 0 0 0 0 1 1; 221s 0 0 0 1 1 1]; 221s out3 = bwmorph (H3, "thin", 1); 221s expected3 = logical( 221s [0 0 0 0 0 0; 221s 0 0 0 0 0 0; 221s 0 1 1 0 0 0; 221s 0 0 0 1 0 1; 221s 0 0 0 0 1 0; 221s 0 0 0 1 1 0]); 221s assert (out3, expected3) 221s 221s out33 = bwmorph (H3, "thin", 2); 221s expected33 = logical( 221s [0 0 0 0 0 0; 221s 0 0 0 0 0 0; 221s 0 1 1 0 0 0; 221s 0 0 0 1 0 1; 221s 0 0 0 0 1 0; 221s 0 0 0 1 0 0]); 221s assert (out33, expected33) 221s 221s out333 = bwmorph (H3, "thin", inf); 221s assert (out333, expected33) 221s ***** test 221s in = logical ([ 221s 1 0 0 0 221s 0 1 0 0 221s 0 0 1 0 221s 0 0 0 0]); 221s out = logical ([ 221s 1 0 0 0 221s 0 0 0 0 221s 0 0 1 0 221s 0 0 0 0]); 221s assert (bwmorph (in, "endpoints"), out); 221s 221s 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]); 221s 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]); 221s assert (bwmorph (A, "endpoints"), B); 221s 221s A = logical ([0 0 0 0 0 0 0 0 221s 1 1 0 0 0 0 1 1 221s 0 0 1 1 1 1 0 0 221s 0 0 0 1 1 0 0 0 221s 0 0 1 1 1 1 0 0 221s 0 1 0 0 0 0 1 0 221s 1 0 0 0 0 0 0 1]); 221s B = logical ([0 0 0 0 0 0 0 0 221s 1 0 0 0 0 0 0 1 221s 0 0 0 0 0 0 0 0 221s 0 0 0 1 1 0 0 0 221s 0 0 0 0 0 0 0 0 221s 0 0 0 0 0 0 0 0 221s 1 0 0 0 0 0 0 1]); 221s assert (bwmorph (A, "endpoints"), B); 221s 221s 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]); 221s 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]); 221s assert (bwmorph (A, "endpoints"), B); 221s assert (bwmorph (B, "endpoints"), zeros (5, "logical")); 221s 221s A = logical([0,0,0,0,0,0,0,0,0,0,0,0,0,0 221s 0,0,1,1,1,1,1,1,1,1,1,1,0,0 221s 0,0,0,0,0,0,0,0,0,0,0,0,0,0]); 221s B = logical([0,0,0,0,0,0,0,0,0,0,0,0,0,0 221s 0,0,1,0,0,0,0,0,0,0,0,1,0,0 221s 0,0,0,0,0,0,0,0,0,0,0,0,0,0]); 221s C = logical([1,0,0,0,0,0,0,0,0,0,0,0,0,1 221s 1,1,0,0,0,0,0,0,0,0,0,0,1,1 221s 1,0,0,0,0,0,0,0,0,0,0,0,0,1]); 221s assert (bwmorph (!A, "endpoints"), C); 221s 22 tests, 20 passed, 2 known failures, 0 skipped 221s [inst/isrgb.m] 221s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/isrgb.m 221s ***** assert (isrgb ("this is not a RGB image"), false); 221s ***** assert (isrgb (rand (5, 5)), false); 221s ***** assert (isrgb (rand (5, 5, 1, 5)), false); 221s ***** assert (isrgb (rand (5, 5, 3, 5)), true); 221s ***** assert (isrgb (rand (5, 5, 3)), true); 221s ***** assert (isrgb (ones (5, 5, 3)), true); 221s ***** assert (isrgb (ones (5, 5, 3) + eps), false); 221s ***** assert (isrgb (zeros (5, 5, 3) - eps), false); 221s ***** assert (isrgb (rand (5, 5, 3) > 0.5), false); 221s ***** assert (isrgb (randi ([-100 100], 5, 5, 3, "int16")), true) 221s 10 tests, 10 passed, 0 known failure, 0 skipped 221s [inst/applylut.m] 221s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/applylut.m 221s ***** demo 221s lut = makelut (@(x) sum (x (:)) >= 3, 3); 221s S = applylut (eye (5), lut); 221s disp (S) 221s ## Everything should be 0 despite a diagonal which doesn't reach borders. 221s ***** assert (prod (applylut (eye (3), makelut (@(x) x(1) == 1, 2)) == eye (3)), [1 1 1]); 221s ***** assert (prod (applylut (eye (3), makelut (@(x) x(2,2) == 1, 3)) == eye (3)), [1 1 1]); 221s ***** assert (prod (applylut (eye (3), makelut (@(x) x(3,3) == 1, 3)) == 221s applylut (eye (3), makelut (@(x) x(2,2) == 1, 2))), 221s [1 1 1]); 221s 3 tests, 3 passed, 0 known failure, 0 skipped 221s [inst/stdfilt.m] 221s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/stdfilt.m 221s ***** test 221s im = stdfilt (ones (5)); 221s assert (im, zeros (5)) 221s ***** test 221s A = zeros (3,3); 221s B = ones (3,3); 221s C = [1 1 1; 2 2 2; 3 3 3]; 221s D = C'; 221s E = ones (3,3); 221s E(2,2) = 2; 221s F = 3 .* ones (3,3); 221s F(2,2) = 1; 221s G = [-1 2 7; -5 2 8; -7 pi 9]; 221s H = [5 2 8; 1 -3 1; 5 1 0]; 221s A_out = [0 0 0; 0 0 0; 0 0 0]; 221s B_out = [0 0 0; 0 0 0; 0 0 0]; 221s C_out = repmat ([std([1 1 1 1 1 1 2 2 2]) 221s std([1 1 1 2 2 2 3 3 3]) 221s std([2 2 2 3 3 3 3 3 3])], [1 3]); 221s D_out = C_out'; 221s E_out = (1/3) .* ones (3,3); 221s F_out = (2/3) .* ones (3,3); 221s 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]); 221s 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]); 221s 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])]; 221s 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]); 221s 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]); 221s 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])]; 221s assert (stdfilt (A), A_out) 221s assert (stdfilt (B), B_out) 221s assert (stdfilt (C), C_out, 4*eps) 221s assert (stdfilt (D), D_out, 4*eps) 221s assert (stdfilt (E), E_out, 4*eps) 221s assert (stdfilt (F), F_out, 4*eps) 221s assert (stdfilt (G), G_out, 4*eps) 221s assert (stdfilt (H), H_out, 4*eps) 221s im = stdfilt (ones (5, 'logical')); 221s assert (im, zeros (5)) 221s im = stdfilt (ones (5, 'uint8')); 221s assert (im, zeros (5)) 221s assert (stdfilt (int8(H), H_out, 4*eps)) 221s assert (stdfilt (uint8(H), H_out, 4*eps)) 221s assert (stdfilt (int16(H), H_out, 4*eps)) 221s assert (stdfilt (uint16(H), H_out, 4*eps)) 221s assert (stdfilt (int32(H), H_out, 4*eps)) 221s assert (stdfilt (uint32(H), H_out, 4*eps)) 221s assert (stdfilt (int64(H), H_out, 4*eps)) 221s assert (stdfilt (uint64(H), H_out, 4*eps)) 221s assert (stdfilt (single(H), H_out, 4*eps)) 221s 2 tests, 2 passed, 0 known failure, 0 skipped 221s [inst/imclose.m] 221s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imclose.m 221s ***** shared in, out 221s in = [ 0 0 0 1 1 1 0 0 1 1 221s 0 1 0 1 1 1 0 0 0 1 221s 1 1 1 1 1 0 0 0 0 0 221s 0 1 1 1 1 0 0 0 0 0 221s 0 0 0 1 0 0 0 0 1 0 221s 0 0 0 0 0 0 0 1 1 1 221s 0 0 0 0 1 0 1 0 1 0 221s 0 0 0 1 1 1 1 1 0 0 221s 0 0 0 0 1 1 1 0 0 0 221s 0 0 0 1 1 1 0 0 0 0]; 221s 221s out = [ 1 1 1 1 1 1 1 1 1 1 221s 1 1 1 1 1 1 0 0 0 1 221s 1 1 1 1 1 0 0 0 0 1 221s 1 1 1 1 1 0 0 0 0 1 221s 0 0 0 1 1 0 0 0 1 1 221s 0 0 0 1 1 1 1 1 1 1 221s 0 0 0 1 1 1 1 1 1 1 221s 0 0 0 1 1 1 1 1 0 0 221s 0 0 0 1 1 1 1 0 0 0 221s 0 0 0 1 1 1 1 0 0 0]; 221s ***** assert (imclose (logical (in), ones (3)), logical (out)); 221s 221s out = [99 99 16 16 16 73 74 64 64 64 221s 98 88 16 16 16 73 71 64 64 64 221s 93 88 88 61 61 61 68 70 70 70 221s 93 88 88 61 61 61 68 71 71 71 221s 93 93 88 61 61 61 68 75 66 66 221s 79 79 82 90 90 49 49 49 49 66 221s 79 79 82 91 91 48 46 46 46 66 221s 79 79 82 95 97 48 46 46 46 72 221s 18 18 94 96 84 48 46 46 46 59 221s 18 18 100 96 84 50 50 50 50 59]; 221s ***** assert (imclose (magic (10), ones (3)), out); 221s ***** assert (imclose (uint8 (magic (10)), strel ("square", 3)), uint8 (out)); 221s 221s ## using a se that will be decomposed in 2 pieces 221s out =[ 99 99 88 74 74 74 74 70 70 70 221s 98 93 88 74 74 74 74 70 70 70 221s 93 93 88 74 74 74 74 70 70 70 221s 93 93 88 74 74 74 74 71 71 71 221s 93 93 88 75 75 75 75 75 75 75 221s 93 93 90 90 90 72 72 72 72 72 221s 93 93 91 91 91 72 72 72 72 72 221s 93 93 93 95 97 72 72 72 72 72 221s 94 94 94 96 97 72 72 72 72 72 221s 100 100 100 97 97 72 72 72 72 72]; 221s ***** assert (imclose (magic (10), ones(5)), out); 221s 221s ## using a weird non-symmetric and even-size se 221s out =[ 92 99 16 16 16 70 74 58 58 58 221s 98 88 60 73 16 73 69 70 64 58 221s 88 81 88 60 60 60 69 69 70 70 221s 87 87 61 68 61 60 68 69 71 69 221s 86 93 87 61 61 61 68 75 68 69 221s 23 82 89 89 90 45 68 45 68 66 221s 23 23 82 89 91 48 45 45 45 66 221s 79 23 82 95 97 46 48 46 45 72 221s 18 79 94 96 78 50 46 46 46 59 221s 18 18 100 94 94 78 50 50 46 59]; 221s ***** assert (imclose (magic (10), [1 0 0 0; 1 1 1 0; 0 1 0 1]), out); 221s 5 tests, 5 passed, 0 known failure, 0 skipped 221s [inst/imdivide.m] 221s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imdivide.m 221s ***** assert (imdivide (uint8 ([23 250]), uint8 ([ 2 50])), uint8 ([ 12 5])); # default to first class 221s ***** assert (imdivide (uint8 ([56 255]), uint8 ([ 0 0])), uint8 ([255 255])); # dividing by zero works (tested in matlab) 221s ***** assert (imdivide (uint8 ([23 250]), 2), uint8 ([ 12 125])); # works subtracting a scalar 221s ***** assert (imdivide (uint8 ([23 250]), uint8 ([ 2 50]), "uint16"), uint16 ([ 12 5])); # defining output class works (not in matlab) 221s ***** assert (imdivide (logical ([1 1 0 0]), logical ([1 0 1 0])), double ([1 Inf 0 NaN])); # dividing logical matrix (tested in matlab) 221s ***** fail ("imdivide (uint8 ([23 250]), uint16 ([23 250]))"); # input needs to have same class 221s 6 tests, 6 passed, 0 known failure, 0 skipped 221s [inst/imextendedmin.m] 221s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imextendedmin.m 221s ***** shared im0, bw0_h2_out 221s im0 = uint8 ([5 5 5 5 5; 221s 5 4 3 4 5; 221s 5 3 0 3 5; 221s 5 4 3 4 5; 221s 5 5 5 5 5]); 221s bw0_h2_out = false (5); 221s bw0_h2_out(3,3) = true; 221s ***** error imextendedmin () 221s ***** error imextendedmin (im0) 222s ***** error imextendedmin ("hello", 2) 222s ***** error imextendedmin (i.*im0, 2) 222s ***** error imextendedmin (sparse (im0), 2) 222s ***** error imextendedmin (im0, -2) 222s ***** error imextendedmin (im0, 'a') 222s ***** error imextendedmin (im0, ones (2)) 222s ***** error imextendedmin (im0, 2*i) 222s ***** assert (imextendedmin (im0, 2), bw0_h2_out) 222s ***** assert (imextendedmin (double (im0), 2), bw0_h2_out) 222s ***** assert (imextendedmin (im0, 2, 8), bw0_h2_out) 222s ***** assert (imextendedmin (im0, 2, 4), bw0_h2_out) 222s ***** assert (imextendedmin (im0, 2, true (3)), bw0_h2_out) 222s ***** test 222s out = imextendedmin (im0, 2); 222s assert (size (out), size (im0)) 222s assert (class (out), "logical") 222s ***** test 222s out = imextendedmin (single (im0), 2); 222s assert (size (out), size (im0)) 222s assert (class (out), "logical") 222s ***** test 222s out = imextendedmin (uint8 (im0), 2); 222s assert (size (out), size (im0)) 222s assert (class (out), "logical") 222s ***** test 222s out = imextendedmin (uint16 (im0), 2); 222s assert (size (out), size (im0)) 222s assert (class (out), "logical") 222s ***** test 222s im = cat (3, im0, im0, im0, im0); 222s out = imextendedmin (im, 2); 222s assert (size (out), size (im)) 222s ***** test 222s im = 10 .* ones (10); 222s im(2:4, 2:4) = 7; 222s im(6:8, 6:8) = 2; 222s expected_4 = false (10); 222s expected_4(6:8, 6:8) = true; 222s expected_2 = expected_4; 222s expected_2(2:4, 2:4) = true; 222s out = imextendedmin (im, 4); 222s assert (out, expected_4, eps) 222s out = imextendedmin (0.1.*im, 0.4); 222s assert (out, expected_4, eps) 222s out = imextendedmin (im, 2); 222s assert (out, expected_2, eps) 222s ***** test 222s im2 = 10 .* ones (10); 222s im2(2:4, 2:4) = 7; 222s im2(6:9, 6:9)=2; 222s im2(5, 5)=2; 222s im2(6, 7)=10; 222s im2(7, 8)=10; 222s expected_8 = false (10); 222s expected_8(6:9, 6:9) = true; 222s expected_8(5, 5) = true; 222s expected_8(6, 7) = false; 222s expected_8(7, 8) = false; 222s expected_4 = expected_8; 222s expected_4(2:4, 2:4) = true; 222s out2 = imextendedmin (im2, 2); 222s assert (out2, expected_8, eps) 222s out2 = imextendedmin (im2, 2, 4); 222s assert (out2, expected_4, eps) 222s out2 = imextendedmin (im2, 2, 8); 222s assert (out2, expected_8, eps) 222s 21 tests, 21 passed, 0 known failure, 0 skipped 222s [inst/imshowpair.m] 222s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imshowpair.m 222s ***** error id=Octave:invalid-fun-call imshowpair () 222s ***** error id=Octave:invalid-fun-call imshowpair (1) 222s ***** error id=Octave:invalid-input-arg imshowpair (uint8 (200.*rand (100)), ... 222s uint8 (200.*rand (100)), "interpolation") 222s ***** error id=Octave:invalid-input-arg imshowpair (uint8 (200.*rand (100)), ... 222s uint8 (200.*rand (100)), "xxxxx") 222s ***** error id=Octave:invalid-input-arg imshowpair (1, 1, "ColorChannels", [0 0 0]) 222s ***** error id=Octave:invalid-input-arg imshowpair (1, 1, "ColorChannels", [1 1 1]) 222s ***** error id=Octave:invalid-input-arg imshowpair (1, 1, "ColorChannels", [2 2 2]) 222s ***** error id=Octave:expected-less-equal imshowpair (1, 1, "ColorChannels", [42 0 0]) 222s ***** error id=Octave:expected-greater-equal imshowpair (1, 1, "ColorChannels", [-1 2 0]) 222s ***** error id=Octave:invalid-input-arg imshowpair (1, 1, "ColorChannels", "deep-purple") 222s ***** test 222s A = uint8 (200.*rand (100)); 222s B = uint8 (150.*rand (100)); 222s RA = imref2d (size (A), 0.5, 0.5); 222s RB = imref2d (size (B), 0.5, 0.5); 222s figure; 222s Ax=axes; 222s assert (imshowpair (A, B)); 222s assert (imshowpair (A, RA, B, RB)); 222s assert (imshowpair (A, B, "blend")); 222s assert (imshowpair (A, B, "falsecolor", "ColorChannels", "red-cyan")); 222s assert (imshowpair (A, B, "Parent", Ax)); 222s assert (imshowpair (A, B, "montage", "Scaling", "joint")); 222s close; 223s 11 tests, 11 passed, 0 known failure, 0 skipped 223s [inst/imadd.m] 223s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imadd.m 223s ***** assert (imadd (uint8 ([23 250]), uint8 ([23 250])), uint8 ([46 255])); # default to first class and truncate 223s ***** assert (imadd (uint8 ([23 250]), 10), uint8 ([33 255])); # works adding a scalar 223s ***** assert (imadd (uint8 ([23 250]), uint8 ([23 250]), "uint16"), uint16 ([46 500])); # defining output class works 223s ***** assert (imadd (logical ([ 1 0]), logical ([ 1 1])), double ([ 2 1])); # return double for two logical images 223s ***** assert (imadd (logical ([ 1 0]), logical ([ 1 1]), "logical"), logical ([ 1 1])); # this is matlab incompatible on purpose 223s ***** fail ("imadd (uint8 ([23 250]), uint16 ([23 250]))"); # input need to have same class 223s 6 tests, 6 passed, 0 known failure, 0 skipped 223s [inst/imfuse.m] 223s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imfuse.m 223s ***** error id=Octave:invalid-fun-call imfuse () 223s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "xxx") 223s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "interpolation") 223s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "ColorChannels", [0 0 0]) 223s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "ColorChannels", [1 1 1]) 223s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "ColorChannels", [2 2 2]) 223s ***** error id=Octave:expected-less-equal imfuse (1, 1, "ColorChannels", [42 0 0]) 223s ***** error id=Octave:expected-greater-equal imfuse (1, 1, "ColorChannels", [-1 2 0]) 223s ***** error id=Octave:invalid-input-arg imfuse (1, 1, "ColorChannels", "deep-purple") 223s ***** assert (imfuse (1, 2, "blend"), uint8 (0)) 223s ***** assert (imfuse (1, 2, "blend", "Scaling", "independent"), uint8 (0)) 223s ***** assert (imfuse (1, 2, "blend", "Scaling", "joint"), uint8 (128)) 223s ***** assert (imfuse (1, 2, "blend", "Scaling", "none"), uint8 (255)) 223s ***** assert (imfuse (1, 2, "falsecolor"), uint8 (zeros (1, 1, 3))) 223s ***** test 223s a = [0 1 2]; 223s b = [0 10 20]; 223s expected = uint8 (repmat ([0 128 255], [1 1 3])); 223s assert (imfuse (a, b), expected); 223s ***** test 223s a = uint8 ([0 1 2]); 223s b = uint8 ([0 10 20]); 223s expected = uint8 (repmat ([0 128 255], [1 1 3])); 223s assert (imfuse (a, b), expected); 223s ***** test 223s a = uint8 ([0 1 2]); 223s b = uint8 ([0 10 20]); 223s expected = uint8 (repmat ([0 128 255], [1 1 3])); 223s assert (imfuse (a, b, "falsecolor"), expected); 223s ***** test 223s a = logical([0 1 1]); 223s b = logical([0 1 1]); 223s expected = uint8 (repmat ([0 255 255], [1 1 3])); 223s assert (imfuse (a, b), expected); 223s ***** test 223s a = logical([0 1 1]); 223s b = logical([0 1 1]); 223s expected = uint8 (repmat ([0 255 255], [1 1 3])); 223s assert (imfuse (a, b, "falsecolor"), expected); 223s ***** test 223s a = [0 1 2]; 223s b = [0 10 20]; 223s expected = uint8 (repmat ([0 255 255], [1 1 3])); 223s assert (imfuse (a, b, "Scaling", "none"), expected); 223s ***** test 223s a = uint8 ([0 1 2]); 223s b = uint8 ([0 10 20]); 223s expected = uint8 (zeros ([1, 3, 3])); 223s expected(:, :, 1) = [0 10 20]; 223s expected(:, :, 2) = [0 1 2]; 223s expected(:, :, 3) = [0 10 20]; 223s assert (imfuse (a, b, "Scaling", "none"), expected); 223s ***** test 223s a = [0 1 2]; 223s b = uint8 ([0 10 20]); 223s expected = uint8 (zeros ([1, 3, 3])); 223s expected(:, :, 1) = [0 10 20]; 223s expected(:, :, 2) = [0 255 255]; 223s expected(:, :, 3) = [0 10 20]; 223s assert (imfuse (a, b, "Scaling", "none"), expected); 223s ***** test 223s a = uint8 ([0 1 2]); 223s b = [0 10 20]; 223s expected = uint8 (zeros ([1, 3, 3])); 223s expected(:, :, 1) = [0 255 255]; 223s expected(:, :, 2) = [0 1 2]; 223s expected(:, :, 3) = [0 255 255]; 223s assert (imfuse (a, b, "Scaling", "none"), expected); 223s ***** test 223s a = [0 .1 2]; 223s b = [0 .01 .02]; 223s expected = uint8 (zeros ([1, 3, 3])); 223s expected(:, :, 1) = [0 3 5]; 223s expected(:, :, 2) = [0 26 255]; 223s expected(:, :, 3) = [0 3 5]; 223s assert (imfuse (a, b, "Scaling", "none"), expected); 223s ***** test 223s a = [0 1 2]; 223s b = [0 10 20]; 223s expected = uint8 (zeros ([1, 3, 3])); 223s expected(:, :, 1) = [0 128 255]; 223s expected(:, :, 2) = [0 13 26]; 223s expected(:, :, 3) = [0 128 255]; 223s assert (imfuse (a, b, "Scaling", "joint"), expected); 223s ***** test 223s a = uint8 ([0 1 2]); 223s b = [0 10 20]; 223s expected = uint8 (zeros ([1, 3, 3])); 223s expected(:, :, 1) = [0 128 255]; 223s expected(:, :, 2) = [0 13 26]; 223s expected(:, :, 3) = [0 128 255]; 223s assert (imfuse (a, b, "Scaling", "joint"), expected); 223s ***** test 223s a = [0 150 300]; 223s b = uint8 ([0 10 20]); 223s expected = uint8 (zeros ([1, 3, 3])); 223s expected(:, :, 1) = [0 9 17]; 223s expected(:, :, 2) = [0 128 255]; 223s expected(:, :, 3) = [0 9 17]; 223s assert (imfuse (a, b, "Scaling", "joint"), expected); 223s ***** test 223s a = uint8 ([0 1 2]); 223s b = uint8 ([0 10 20]); 223s expected = uint8 (zeros ([1, 3, 3])); 223s expected(:, :, 1) = [0 128 255]; 223s expected(:, :, 2) = [0 13 26]; 223s expected(:, :, 3) = [0 128 255]; 223s assert (imfuse (a, b, "Scaling", "joint"), expected); 223s ***** test 223s a = [0 1 2]; 223s b = [0 10 20]; 223s expected = uint8 (zeros ([1, 3, 3])); 223s expected(:, :, 1) = [0 0 0]; 223s expected(:, :, 2) = [0 128 255]; 223s expected(:, :, 3) = [0 13 26]; 223s assert (imfuse (a, b, "Scaling", "joint", "ColorChannels", [0 2 1]), expected); 223s ***** test 223s a = [0 1 2]; 223s b = [0 10 15]; 223s c = imfuse (a, b, "ColorChannels", "red-cyan"); 223s expected = uint8 (zeros (1, 3, 3)); 223s expected(:, :, 1) = [0 128 255]; 223s expected(:, :, 2) = [0 170 255]; 223s expected(:, :, 3) = [0 170 255]; 223s assert (c, expected); 223s ***** test 223s a = [0 1 2]; 223s b = [0 10 15]; 223s c = imfuse (a, b, "ColorChannels", "green-magenta"); 223s expected = uint8 (zeros (1, 3, 3)); 223s expected(:, :, 1) = [0 170 255]; 223s expected(:, :, 2) = [0 128 255]; 223s expected(:, :, 3) = [0 170 255]; 223s assert (c, expected); 223s ***** test 223s a = [0 5 2]; 223s b = [0 10 20]; 223s assert (imfuse (a, b, "diff"), uint8 ([0 213 255])); 223s ***** test 223s a = [0 5 2]; 223s b = [0 10 20]; 223s assert (imfuse (a, b, "diff", "Scaling", "joint"), uint8 ([0 71 255])); 223s ***** test 223s a = [0 5 2]; 223s b = [0 10 20]; 223s assert (imfuse (a, b, "blend"), uint8 ([0 192 179])); 223s ***** test 223s a = magic (5); 223s b = a'; 223s c = imfuse (a, b, "falsecolor"); 223s expected = zeros (5, 5, 3); 223s expected(:, :, 1) = [ 223s 170 234 32 96 106 223s 244 43 53 117 181 223s 0 64 128 191 255 223s 74 138 202 213 11 223s 149 159 223 21 85]; 223s expected(:, :, 2) = [ 223s 170 244 0 74 149 223s 234 43 64 138 159 223s 32 53 128 202 223 223s 96 117 191 213 21 223s 106 181 255 11 85]; 223s expected(:, :, 3) = [ 223s 170 234 32 96 106 223s 244 43 53 117 181 223s 0 64 128 191 255 223s 74 138 202 213 11 223s 149 159 223 21 85]; 223s assert (c, uint8 (expected)); 223s ***** test 223s a = magic (5); 223s b = a'; 223s assert (imfuse (uint8 (a), uint8 (b), "blend", "Scaling", "none"), 223s uint8 ([17 24 3 9 13 223s 24 5 7 13 17 223s 3 7 13 20 24 223s 9 13 20 21 3 223s 13 17 24 3 9])); 223s ***** test 223s a = magic (5); 223s b = 2 * a'; 223s assert (imfuse (a, b, "blend", "Scaling", "independent"), 223s uint8 ([170 239 16 85 128 223s 239 43 59 128 170 223s 16 59 128 197 239 223s 85 128 197 213 16 223s 128 170 239 16 85])); 223s ***** test 223s a = magic (5); 223s b = 2 * a'; 223s assert (imfuse (a, b, "blend", "Scaling", "joint"), 223s uint8 ([128 177 18 68 91 223s 180 34 44 94 130 223s 11 47 96 146 182 223s 63 99 149 159 13 223s 102 125 175 16 65])); 223s ***** test 223s a = [0 1.2 5]; 223s b = [5 6.13 12]; 223s assert (imfuse (a, b, "blend"), uint8 ([0 51 255])); 223s ***** test 223s a = [0 5 2]; 223s b = [0 10 20]; 223s assert (imfuse (a, b, "blend", "Scaling", "joint"), uint8 ([0 96 141])); 223s ***** test 223s a = [0 5 2]; 223s b = [0 10 20]; 223s assert (imfuse (a, b, "montage"), uint8 ([0 255 102 0 128 255])); 223s ***** test 223s a = zeros (1, 100); 223s b = 2 * ones (1, 100); 223s assert (imfuse (a, b, "montage"), uint8 ([zeros(1, 200)])); 223s assert (imfuse (a, b, "montage", "Scaling", "none"), 223s uint8 ([zeros(1, 100), 255 * ones(1, 100)])); 223s ***** test 223s a = zeros (1, 100, 3); 223s b = 2 * ones (1, 100); 223s assert (imfuse (a, b, "montage"), uint8 ([zeros(1, 200, 3)])); 223s ***** test 223s a = 0.1 * ones (50, 50); 223s b = 0.2 * ones (50, 50); 223s c = imfuse (a, b, "checkerboard", "Scaling", "none"); 223s d = imresize (repmat([26, 51; 51, 26], [8, 8]), [50, 50], "nearest"); 223s assert (all (c(:) == d(:))); 223s ***** test 223s a = zeros (2, 2); 223s b = zeros (2, 2); 223s ra = imref2d (size (a), [0, 2], [0, 2]); 223s rb = imref2d (size (b), [0, 2], [2, 4]); 223s [c, rc] = imfuse (a, ra, b, rb, "falsecolor"); 223s assert (rc.ImageSize, [4, 2]); 223s assert (rc.XWorldLimits, [0, 2]); 223s assert (rc.YWorldLimits, [0, 4]); 223s assert (rc.PixelExtentInWorldX, 1); 223s assert (rc.PixelExtentInWorldY, 1); 223s assert (rc.ImageExtentInWorldX, 2); 223s assert (rc.ImageExtentInWorldY, 4); 223s assert (rc.XIntrinsicLimits, [0.5, 2.5]); 223s assert (rc.YIntrinsicLimits, [0.5, 4.5]); 223s assert (c, uint8 (zeros (4, 2, 3))); 223s ***** xtest 223s a = zeros (5, 3); 223s b = ones (6, 5); 223s ra = imref2d (size (a), [15, 30], [2, 4]); 223s rb = imref2d (size (b), [10, 50], [5.5, 6.7]); 223s [c, rc] = imfuse (a, ra, b, rb, "falsecolor"); 223s assert (rc.ImageSize, [24, 8]); 223s assert (rc.XWorldLimits, [10, 50]); 223s assert (rc.YWorldLimits, [2, 6.7]); 223s assert (rc.PixelExtentInWorldX, 5); 223s assert (rc.PixelExtentInWorldY, 0.19583333, 10e-9); 223s assert (rc.ImageExtentInWorldX, 40); 223s assert (rc.ImageExtentInWorldY, 4.7); 223s assert (rc.XIntrinsicLimits, [0.5, 8.5]); 223s assert (rc.YIntrinsicLimits, [0.5, 24.5]); 223s expected = uint8 (zeros (24, 8, 3)); 223s expected(19:23, 2:7, 1) = 255 * ones (5, 6); 223s expected(19:23, 2:7, 3) = 255 * ones (5, 6); 223s assert (c, expected); 223s !!!!! known failure 223s ASSERT errors for: assert (c,expected) 223s 223s Location | Observed | Expected | Reason 223s (19,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (19,3,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,3,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,3,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,3,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,3,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (19,4,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,4,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,4,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,4,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,4,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (19,5,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,5,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,5,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,5,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,5,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (19,6,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,6,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,6,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,6,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,6,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (19,7,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,7,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,7,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,7,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,7,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (19,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (19,3,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,3,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,3,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,3,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,3,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (19,4,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,4,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,4,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,4,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,4,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (19,5,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,5,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,5,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,5,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,5,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (19,6,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,6,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,6,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,6,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,6,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (19,7,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (20,7,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (21,7,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (22,7,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (23,7,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s ***** test 223s a = uint8 (reshape (1:1:9, [1 3 3])); 223s b = uint8 (reshape (10:2:26, [1 3 3])); 223s c = imfuse (a, b); 223s expected = uint8 (zeros (1, 3, 3)); 223s expected(:, :, 1) = [0 128 255]; 223s expected(:, :, 2) = [0 128 255]; 223s expected(:, :, 3) = [0 128 255]; 223s assert (c, expected); 223s ***** test 223s a = uint8 (reshape (1:1:9, [1 3 3])); 223s b = uint8 (reshape (10:2:26, [1 3 3])); 223s c = imfuse (a, b, "Scaling", "independent"); 223s expected = uint8 (zeros (1, 3, 3)); 223s expected(:, :, 1) = [0 128 255]; 223s expected(:, :, 2) = [0 128 255]; 223s expected(:, :, 3) = [0 128 255]; 223s assert (c, expected); 223s ***** test 223s a = uint8 (reshape (1:1:9, [1 3 3])); 223s b = uint8 (reshape (10:2:26, [1 3 3])); 223s c = imfuse (a, b, "Scaling", "joint"); 223s expected = uint8 (zeros (1, 3, 3)); 223s expected(:, :, 1) = [191 223 255]; 223s expected(:, :, 2) = [0 16 32]; 223s expected(:, :, 3) = [191 223 255]; 223s assert (c, expected); 223s ***** test 223s a = uint8 (reshape (1:1:9, [1 3 3])); 223s b = uint8 (reshape (10:2:26, [1 3 3])); 223s c = imfuse (a, b, "Scaling", "none"); 223s expected = uint8 (zeros (1, 3, 3)); 223s expected(:, :, 1) = [15 17 19]; 223s expected(:, :, 2) = [3 4 5]; 223s expected(:, :, 3) = [15 17 19]; 223s assert (c, expected); 223s ***** xtest 223s a = zeros (5, 3); 223s b = ones (5, 3); 223s ra = imref2d (size (a), [10, 20], [30, 40]); 223s rb = imref2d (size (b), [10, 20], [30, 40]); 223s [c, rc] = imfuse (a, ra, b, rb, "falsecolor"); 223s expected = uint8 (zeros (5, 3, 3)); 223s expected(:, 1:2, 1) = 255 * ones (5, 2); 223s expected(:, 1:2, 3) = 255 * ones (5, 2); 223s assert (rc.ImageSize, [5, 3]); 223s assert (rc.XWorldLimits, [10, 20]); 223s assert (rc.YWorldLimits, [30, 40]); 223s assert (rc.PixelExtentInWorldX, 3.33333333, 10e-9); 223s assert (rc.PixelExtentInWorldY, 2); 223s assert (rc.ImageExtentInWorldX, 10); 223s assert (rc.ImageExtentInWorldY, 10); 223s assert (rc.XIntrinsicLimits, [0.5, 3.5]); 223s assert (rc.YIntrinsicLimits, [0.5, 5.5]); 223s assert (c, expected); 223s !!!!! known failure 223s ASSERT errors for: assert (c,expected) 223s 223s Location | Observed | Expected | Reason 223s (1,1,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (2,1,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (3,1,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (4,1,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (5,1,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (1,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (2,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (3,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (4,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (5,2,1) 0 255 Abs err 0 exceeds tol 0 by 0 223s (1,1,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (2,1,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (3,1,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (4,1,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (5,1,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (1,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (2,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (3,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (4,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s (5,2,3) 0 255 Abs err 0 exceeds tol 0 by 0 223s ***** test 223s a = zeros (5, 5); 223s b = ones (5, 5); 223s ra = imref2d (size (a), [10, 20], [30, 40]); 223s rb = imref2d (size (b), [10, 20], [30, 40]); 223s [c, rc] = imfuse (a, ra, b, rb, "falsecolor"); 223s expected = uint8 (zeros (5, 5, 3)); 223s assert (rc.ImageSize, [5, 5]); 223s assert (rc.XWorldLimits, [10, 20]); 223s assert (rc.YWorldLimits, [30, 40]); 223s assert (rc.PixelExtentInWorldX, 2); 223s assert (rc.PixelExtentInWorldY, 2); 223s assert (rc.ImageExtentInWorldX, 10); 223s assert (rc.ImageExtentInWorldY, 10); 223s assert (rc.XIntrinsicLimits, [0.5, 5.5]); 223s assert (rc.YIntrinsicLimits, [0.5, 5.5]); 223s assert (c, expected); 223s ***** test 223s a = magic (5); 223s b = ones (5, 5); 223s ra = imref2d (size (a), [10, 20], [30, 40]); 223s rb = imref2d (size (b), [10, 20], [30, 40]); 223s [c, rc] = imfuse (a, ra, b, rb, "falsecolor", "Scaling", "independent"); 223s expected = uint8 (zeros (5, 5, 3)); 223s expected(:, :, 2) = [ 223s 170 244 0 74 149 223s 234 43 64 138 159 223s 32 53 128 202 223 223s 96 117 191 213 21 223s 106 181 255 11 85]; 223s assert (rc.ImageSize, [5, 5]); 223s assert (rc.XWorldLimits, [10, 20]); 223s assert (rc.YWorldLimits, [30, 40]); 223s assert (rc.PixelExtentInWorldX, 2); 223s assert (rc.PixelExtentInWorldY, 2); 223s assert (rc.ImageExtentInWorldX, 10); 223s assert (rc.ImageExtentInWorldY, 10); 223s assert (rc.XIntrinsicLimits, [0.5, 5.5]); 223s assert (rc.YIntrinsicLimits, [0.5, 5.5]); 223s assert (c, expected); 223s 53 tests, 51 passed, 2 known failures, 0 skipped 223s [inst/col2im.m] 223s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/col2im.m 223s ***** demo 223s ## Divide A using distinct blocks and then reverse the operation 223s A = [ 1:10 223s 11:20 223s 21:30 223s 31:40]; 223s B = im2col (A, [2 5], "distinct") 223s C = col2im (B, [2 5], [4 10], "distinct") 223s ***** demo 223s ## Get sliding blocks of size from A into columns, calculate the 223s ## mean of each block (mean of each column), and reconstruct A 223s ## after a median filter. 223s A = reshape (1:24, [4 6]) 223s B = im2col (A, [2 3], "sliding") 223s C = mean (B); 223s col2im (C, [1 1], [3 4], "sliding") 223s ***** error col2im (ones (10), [5 5], [10 10], "wrong_block_type"); 223s ***** error col2im (ones (10), [1 1], [ 7 7], "sliding"); 223s ***** error col2im (ones (10), [3 3], [10 10], "distinct") 223s ***** error col2im (ones (10), [5 5], [10 11], "distinct"); 223s ***** assert (col2im (sum (im2col (magic (10), [3 3], "sliding")), [1 1], [8 8]), 223s convn (magic (10), ones (3, 3), "valid")); 223s ***** test 223s B = ones (1, (10-2+1)*(7-3+1)); 223s A = ones ((10-2+1), (7-3+1)); 223s assert (col2im (B, [2 3], [10 7]), A); 223s 223s ## same but different classes 223s assert (col2im (int16 (B), [2 3], [10 7]), int16 (A)); 223s assert (col2im (single (B), [2 3], [10 7]), single (A)); 223s assert (col2im (logical (B), [2 3], [10 7]), logical (A)); 223s ***** test 223s a = rand (10)(:); 223s assert (col2im (a, [1 1], [10 10]), col2im (a, [1 1], [10 10], "sliding")) 224s ***** shared A, B 224s v = [1:10]'; 224s r = reshape (1:10, [2 5]); 224s B = [v v+10 v+20 v+30 v+40 v+50]; 224s A = [r r+30 224s r+10 r+40 224s r+20 r+50]; 224s assert (col2im (B, [2 5], [6 10], "distinct"), A); 224s ***** assert (col2im (int16 (B), [2 5], [6 10], "distinct"), int16 (A)); 224s ***** assert (col2im (logical (B), [2 5], [6 10], "distinct"), logical (A)); 224s ***** assert (col2im (single (B), [2 5], [6 10], "distinct"), single (A)); 224s ***** test 224s a = rand (10, 8); 224s b = im2col (a, [5 5], "distinct"); 224s assert (col2im (b, [5 5], [10 8], "distinct"), a); 224s 224s a = rand (8); 224s b = im2col (a, [5 5], "distinct"); 224s assert (col2im (b, [5 5], [8 8], "distinct"), a); 224s ***** shared a, b 224s ## Same number of multiple dimensions 224s a = rand (10, 10, 10); 224s b = im2col (a, [5 5 5], "distinct"); 224s ***** assert (col2im (b, [5 5 5], [10 10 10], "distinct"), a); 224s 224s ## Different number of dimensions 224s a = rand (10, 10, 10); 224s b = im2col (a, [5 5], "distinct"); 224s ***** assert (col2im (b, [5 5], [10 10 10], "distinct"), a); 224s 224s ## Removing padding from multiple dimensions 224s a = rand (10, 10, 7); 224s b = im2col (a, [5 5 3], "distinct"); 224s ***** assert (col2im (b, [5 5 3], [10 10 7], "distinct"), a); 224s 224s a = rand (10, 10, 7); 224s b = im2col (a, [5 5 5 2], "distinct"); 224s ***** assert (col2im (b, [5 5 5 2], [10 10 7], "distinct"), a); 224s 15 tests, 15 passed, 0 known failure, 0 skipped 224s [inst/imattributes.m] 224s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imattributes.m 224s ***** shared x, map, img, rgb, bw 224s [x, map] = imread ("default.img"); 224s rgb = ind2rgb (x, map); 224s img = ind2gray (x, map); 224s bw = im2bw (img); 224s ***** test 224s h = imshow (img); 224s a = imattributes (h); 224s assert ([a.("Height (rows)") a.("Width (columns)")], [53 40]); 224s assert (a.Class, "uint8"); 224s assert (a.("Image type"), "intensity"); 224s assert (a.("Minimum intensity"), uint8 (28)); 224s assert (a.("Maximum intensity"), uint8 (250)); 224s ***** xtest 224s h = imshow (rgb); 224s a = imattributes (h); 224s assert ([a.("Height (rows)") a.("Width (columns)")], [53 40]); 224s assert (a.Class, "uint8"); 224s assert (a.("Image type"), "truecolor"); 224s assert (isfield (a, "Minimum intensity"), false); 224s assert (isfield (a, "Maximum intensity"), false); 224s !!!!! known failure 224s ASSERT errors for: assert (a.Class,"uint8") 224s 224s Location | Observed | Expected | Reason 224s [] double uint8 Strings don't match 224s ***** test 224s h = imshow (bw); 224s a = imattributes (h); 224s assert ([a.("Height (rows)") a.("Width (columns)")], [53 40]); 224s assert (a.Class, "logical"); 224s assert (a.("Image type"), "binary"); 224s assert (isfield (a, "Minimum intensity"), false); 224s assert (isfield (a, "Maximum intensity"), false); 224s ***** test 224s h = imshow (x, map); 224s a = imattributes (h); 224s assert ([a.("Height (rows)") a.("Width (columns)")], [53 40]); 224s assert (a.Class, "uint8"); 224s assert (a.("Image type"), "indexed"); 224s assert (a.("Minimum intensity"), uint8 (0)); 224s assert (a.("Maximum intensity"), uint8 (55)); 224s ***** test 224s h = imshow (img); 224s a1 = imattributes (); 224s a2 = imattributes (h); 224s assert (a1, a2); 224s 5 tests, 4 passed, 1 known failure, 0 skipped 224s [inst/lab2uint8.m] 224s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/lab2uint8.m 224s ***** test 224s cm_uint8 = uint8 ([0 1 2 3 4 127 128 200 254 255]); 224s cm_uint8 = repmat (cm_uint8(:), [1 3]); 224s im2d_uint8 = reshape (cm_uint8, [5 2 3]); 224s imnd_uint8 = permute (im2d_uint8, [1 4 3 2]); 224s 224s cm_uint16 = uint16 ([0 256 512 768 1024 32512 32768 51200 65024 65280]); 224s cm_uint16 = repmat (cm_uint16(:), [1 3]); 224s assert (lab2uint16 (cm_uint8), cm_uint16) 224s im2d_uint16 = reshape (cm_uint16, [5 2 3]); 224s assert (lab2uint16 (im2d_uint8), im2d_uint16) 224s assert (lab2uint16 (imnd_uint8), permute (im2d_uint16, [1 4 3 2])) 224s 224s l1 = 100/255; 224s cm = [ 224s 0 -128 -128 224s l1 -127 -127 224s 2*l1 -126 -126 224s 3*l1 -125 -125 224s 4*l1 -124 -124 224s 127*l1 -1 -1 224s 128*l1 0 0 224s 200*l1 72 72 224s 254*l1 126 126 224s 100 127 127]; 224s im2d = reshape (cm, [5 2 3]); 224s imnd = permute (im2d, [1 4 3 2]); 224s 224s assert (lab2double (cm_uint8), cm) 224s assert (lab2double (im2d_uint8), im2d) 224s assert (lab2double (imnd_uint8), imnd) 224s 224s assert (lab2single (cm_uint8), single (cm)) 224s assert (lab2single (im2d_uint8), single (im2d)) 224s assert (lab2single (imnd_uint8), single (imnd)) 224s 1 test, 1 passed, 0 known failure, 0 skipped 224s [inst/iptcheckmap.m] 224s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/iptcheckmap.m 224s ***** test ("iptcheckmap (jet(64), 'func', 'var', 2)"); # simple must work 224s ***** fail ("iptcheckmap (3, 'func', 'var', 2)"); # not a colormap 224s 2 tests, 2 passed, 0 known failure, 0 skipped 224s [inst/imfill.m] 224s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imfill.m 224s ***** test 224s I = uint8 (5.*[1 1 1; 1 0 1; 1 1 1]); 224s bw = logical ([1 1 1; 1 0 1; 1 1 1]); 224s I2 = uint8 (5.*ones (3)); 224s bw2 = logical (ones (3)); 224s 224s assert (imfill (int8 (I)), int8 (I2)) 224s assert (imfill (int16 (I)), int16 (I2)) 224s assert (imfill (int32 (I)), int32 (I2)) 224s assert (imfill (int64 (I)), int64 (I2)) 224s assert (imfill (uint8 (I)), uint8 (I2)) 224s assert (imfill (uint16 (I)), uint16 (I2)) 224s assert (imfill (uint32 (I)), uint32 (I2)) 224s assert (imfill (uint64 (I)), uint64 (I2)) 224s assert (imfill (single (I)), single (I2)) 224s assert (imfill (double (I)), double (I2)) 224s assert (imfill (bw, "holes"), bw2) 224s assert (imfill (uint8 (bw)), uint8 (bw2)) 224s ***** error 224s imfill (i + ones (3, 3)); # complex input 224s ***** error 224s imfill (sparse (double (I))); # sparse input 224s ***** error 224s imfill (); 224s ***** error 224s imfill (true (3), 4, "holes", 5) 225s ***** error 225s imfill (false (3), ones (2, 3)) 225s ***** error 225s imfill (false (3), ones (2, 3), 4) 225s ***** error 225s imfill (false (3)) 225s ***** error 225s imfill (false (3), 0, 4) 225s ***** warning 225s bw = logical ([1 1 1; 1 0 1; 1 1 1]); 225s assert (imfill (bw, [5 5]), bw) 225s assert (imfill (bw, 15), bw) 225s 225s bw = repmat (bw, [1 1 3]); 225s assert (imfill (bw, 30), bw) 225s assert (imfill (bw, [2 2 5]), bw) 225s ***** test 225s bw = logical ([1 0 0 0 0 0 0 0 225s 1 1 1 1 1 0 0 0 225s 1 0 0 0 1 0 1 0 225s 1 0 0 0 1 1 1 0 225s 1 1 1 1 0 1 1 1 225s 1 0 0 1 1 0 1 0 225s 1 0 0 0 1 0 1 0 225s 1 0 0 0 1 1 1 0]); 225s bw2 = logical ([1 0 0 0 0 0 0 0 225s 1 1 1 1 1 0 0 0 225s 1 1 1 1 1 0 1 0 225s 1 1 1 1 1 1 1 0 225s 1 1 1 1 1 1 1 1 225s 1 0 0 1 1 1 1 0 225s 1 0 0 0 1 1 1 0 225s 1 0 0 0 1 1 1 0]); 225s bw3 = logical ([1 0 0 0 0 0 0 0 225s 1 1 1 1 1 0 0 0 225s 1 1 1 1 1 0 1 0 225s 1 1 1 1 1 1 1 0 225s 1 1 1 1 0 1 1 1 225s 1 0 0 1 1 0 1 0 225s 1 0 0 0 1 0 1 0 225s 1 0 0 0 1 1 1 0]); 225s assert (imfill (bw, "holes"), bw2) 225s assert (imfill (bw, 8, "holes"), bw2) 225s assert (imfill (bw, 4, "holes"), bw2) 225s assert (imfill (bw, [3 3]), bw3) 225s assert (imfill (bw, 19), bw3) 225s assert (imfill (bw, [3 3], 4), bw3) 225s assert (imfill (bw, 19, 4), bw3) 225s assert (imfill (bw, [3 3], 8), bw2) 225s assert (imfill (bw, 19, 8), bw2) 225s assert (imfill (bw, [19; 20]), bw3) 225s assert (imfill (bw, [19; 20], 4), bw3) 225s assert (imfill (bw, [19; 20], 8), bw2) 225s ***** warning 225s bw = logical ([1 1 1 1 1 1 1 225s 1 0 0 0 0 0 1 225s 1 0 1 1 1 0 1 225s 1 0 1 0 1 0 1 225s 1 0 1 1 1 0 1 225s 1 0 0 0 0 0 1 225s 1 1 1 1 1 1 1]); 225s bw44 = logical ([1 1 1 1 1 1 1 225s 1 0 0 0 0 0 1 225s 1 0 1 1 1 0 1 225s 1 0 1 1 1 0 1 225s 1 0 1 1 1 0 1 225s 1 0 0 0 0 0 1 225s 1 1 1 1 1 1 1]); 225s bw9 = logical ([1 1 1 1 1 1 1 225s 1 1 1 1 1 1 1 225s 1 1 1 1 1 1 1 225s 1 1 1 0 1 1 1 225s 1 1 1 1 1 1 1 225s 1 1 1 1 1 1 1 225s 1 1 1 1 1 1 1]); 225s assert (imfill (bw, "holes"), logical (ones (7))) 225s assert (imfill (bw, [4 4]), bw44) 225s assert (imfill (bw, 9), bw9) 225s assert (imfill (bw, [4 4; 10 10]), bw44) 225s ***** test 225s bw = logical ([1 1 0 1 1]); 225s assert (imfill (bw, "holes"), bw) 225s bw = logical([1 1 0 1 1; 1 1 1 1 1]); 225s assert (imfill (bw, "holes"), bw) 225s ***** test 225s I = zeros (5); 225s I(:, [2 4]) = 1; 225s I2_expected = [0 1 1 1 0 225s 0 1 1 1 0 225s 0 1 1 1 0 225s 0 1 1 1 0 225s 0 1 1 1 0]; 225s I2 = imfill (I, [0 0 0; 1 1 1; 0 0 0], "holes"); 225s assert (I2, I2_expected) 225s ***** test 225s I = zeros (5); 225s I(:, [2 4]) = 1; 225s I2_expected = I; 225s I2 = imfill (I, [0 1 0; 0 1 0; 0 1 0], "holes"); 225s assert (I2, I2_expected) 225s ***** test # this test is Matlab compatible 225s I = zeros (5); 225s I(:, [2 4]) = 1; 225s I2_expected = inf .* ones (5); 225s I2 = imfill (I, [0 0 0; 0 1 0; 0 0 0], "holes"); 225s assert (I2, I2_expected) 225s ***** test 225s I = false (5); 225s I(:, [2 4]) = true; 225s I2_expected = true (5); 225s I2 = imfill (I, [0 0 0; 0 1 0; 0 0 0], "holes"); 225s assert (I2, I2_expected) 225s ***** test 225s I = uint8 ([10 20 80 85 20 225s 15 90 03 25 88 225s 05 85 02 50 83 225s 90 04 03 80 80 225s 10 81 83 85 30]); 225s I2 = uint8 ([10 20 80 85 20 225s 15 90 80 80 88 225s 05 85 80 80 83 225s 90 80 80 80 80 225s 10 81 83 85 30]); 225s I3 = uint8 ([10 20 80 85 20 225s 15 90 05 25 88 225s 05 85 05 50 83 225s 90 05 05 80 80 225s 10 81 83 85 30]); 225s assert (imfill (I), I2) 225s assert (imfill (I, 4), I2) 225s assert (imfill (I, 4, "holes"), I2) 225s assert (imfill (I, 8), I3) 225s assert (imfill (I, "holes"), I2) 225s ***** test 225s v_line = [0 1 0; 0 1 0; 0 1 0]; 225s h_line = [0 0 0; 1 1 1; 0 0 0]; 225s im = [0 1 0 0 1 0]; 225s 225s assert (imfill (im, h_line, "holes"), [0 1 1 1 1 0]) 225s assert (imfill (im, v_line, "holes"), [0 1 0 0 1 0]) 225s assert (imfill (im', h_line, "holes"), [0 1 0 0 1 0]') 225s assert (imfill (im', v_line, "holes"), [0 1 1 1 1 0]') 225s 225s im = repmat (im, [1 1 5]); 225s assert (imfill (im, h_line, "holes"), repmat ([0 1 1 1 1 0], [1 1 5])) 225s assert (imfill (im, v_line, "holes"), im) 225s 225s im = permute (im, [2 1 3]); 225s assert (imfill (im, h_line, "holes"), im) 225s assert (imfill (im, v_line, "holes"), repmat ([0 1 1 1 1 0]', [1 1 5])) 225s ***** test 225s im = logical ([0 0 0 0 0 0 225s 0 1 1 1 1 0 225s 0 1 0 0 1 0 225s 0 1 1 1 1 0 225s 0 0 0 0 0 0]); 225s fi = logical ([0 0 0 0 0 0 225s 0 1 1 1 1 0 225s 0 1 1 1 1 0 225s 0 1 1 1 1 0 225s 0 0 0 0 0 0]); 225s 225s assert (imfill (cat (3, im, im, im), 8, 'holes'), cat (3, fi, fi, fi)) 225s assert (imfill (cat (3, im, im, im), 'holes'), cat (3, im, im, im)) 225s assert (imfill (cat (3, fi, im, fi), 'holes'), cat (3, fi, fi, fi)) 225s ***** test 225s emp = false (5, 6); 225s im = logical ([0 0 0 0 0 0 225s 0 1 1 1 1 0 225s 0 1 0 1 0 1 225s 0 1 1 1 1 0 225s 0 0 0 0 0 0]); 225s fi = logical ([0 0 0 0 0 0 225s 0 1 1 1 1 0 225s 0 1 1 1 1 1 225s 0 1 1 1 1 0 225s 0 0 0 0 0 0]); 225s fi1 = logical ([0 0 0 0 0 0 225s 0 1 1 1 1 0 225s 0 1 1 1 0 1 225s 0 1 1 1 1 0 225s 0 0 0 0 0 0]); 225s fi2 = logical ([0 0 0 0 0 0 225s 0 1 1 1 1 0 225s 0 1 0 1 1 1 225s 0 1 1 1 1 0 225s 0 0 0 0 0 0]); 225s 225s assert (imfill (cat (3, im, im, im), [3 3 2]), cat (3, fi1, fi1, fi1)) 225s assert (imfill (cat (3, im, im, im), [3 5 2]), cat (3, fi2, fi2, fi2)) 225s assert (imfill (cat (3, im, im, im), [3 3 2; 3 5 2]), cat (3, fi, fi, fi)) 225s assert (imfill (cat (3, emp, im, emp), [3 3 2]), true (5, 6, 3)) 225s 21 tests, 21 passed, 0 known failure, 0 skipped 225s [inst/bwperim.m] 225s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/bwperim.m 225s ***** test 225s in = [ 1 1 1 1 0 1 1 0 1 1 225s 1 1 0 1 1 1 1 1 1 0 225s 1 1 1 0 1 1 1 1 1 1 225s 1 1 1 1 0 1 1 1 0 1 225s 1 1 1 0 1 1 1 1 1 0 225s 1 1 1 1 1 1 0 1 0 1 225s 1 1 1 1 1 1 1 1 1 0 225s 1 1 1 1 1 1 1 1 1 1 225s 1 1 1 1 1 1 0 0 1 1 225s 1 1 1 1 0 1 0 1 1 0]; 225s 225s out = [1 1 1 1 0 1 1 0 1 1 225s 1 1 0 1 1 0 0 1 1 0 225s 1 0 1 0 1 0 0 0 1 1 225s 1 0 0 1 0 1 0 1 0 1 225s 1 0 1 0 1 0 1 0 1 0 225s 1 0 0 1 0 1 0 1 0 1 225s 1 0 0 0 0 0 1 0 1 0 225s 1 0 0 0 0 0 1 1 0 1 225s 1 0 0 0 1 1 0 0 1 1 225s 1 1 1 1 0 1 0 1 1 0]; 225s assert (bwperim (in), logical (out)) 225s assert (bwperim (in, 4), logical (out)) 225s 225s out = [1 1 1 1 0 1 1 0 1 1 225s 1 1 0 1 1 1 1 1 1 0 225s 1 1 1 0 1 1 0 1 1 1 225s 1 0 1 1 0 1 0 1 0 1 225s 1 0 1 0 1 1 1 1 1 0 225s 1 0 1 1 1 1 0 1 0 1 225s 1 0 0 0 0 1 1 1 1 0 225s 1 0 0 0 0 1 1 1 1 1 225s 1 0 0 1 1 1 0 0 1 1 225s 1 1 1 1 0 1 0 1 1 0]; 225s assert (bwperim (in, 8), logical (out)) 225s 225s out = [1 1 1 1 0 1 1 0 1 1 225s 1 0 0 0 0 1 0 0 1 0 225s 1 0 0 0 0 0 0 1 0 1 225s 1 0 1 0 0 0 0 0 0 1 225s 1 0 0 0 0 1 0 1 0 0 225s 1 0 0 0 1 0 0 0 0 1 225s 1 0 0 0 0 0 0 1 0 0 225s 1 0 0 0 0 1 1 0 0 1 225s 1 0 0 1 0 1 0 0 1 1 225s 1 1 1 1 0 1 0 1 1 0]; 225s assert (bwperim (in, [1 0 0; 0 1 0; 0 0 1]), logical (out)) 225s ***** test 225s in = [ 0 0 0 0 0 0 0 225s 0 0 5 0 0 1 9 225s 0 Inf 9 7 0 0 0 225s 0 1.5 5 7 1 0 0 225s 0 0.5 -1 89 i 0 0 225s 0 4 10 15 1 0 0 225s 0 0 0 0 0 0 0]; 225s out = [0 0 0 0 0 0 0 225s 0 0 1 0 0 1 1 225s 0 1 0 1 0 0 0 225s 0 1 0 0 1 0 0 225s 0 1 0 0 1 0 0 225s 0 1 1 1 1 0 0 225s 0 0 0 0 0 0 0]; 225s assert (bwperim (in), logical (out)) 225s ***** test 225s in = reshape (magic(16), [8 8 4]) > 50; 225s out(:,:,1) = [ 225s 1 1 0 1 0 1 1 1 225s 0 1 1 1 1 1 0 1 225s 0 1 1 1 1 1 0 1 225s 1 1 0 1 1 1 1 1 225s 1 1 1 1 1 1 1 1 225s 1 1 1 0 1 0 1 1 225s 1 1 1 0 1 0 1 1 225s 1 0 1 1 1 1 1 0]; 225s out(:,:,2) = [ 225s 1 1 0 1 0 1 1 1 225s 0 1 1 0 1 1 0 1 225s 0 1 0 0 0 1 0 1 225s 1 0 1 0 0 0 1 1 225s 1 0 0 1 0 1 0 1 225s 1 0 1 0 1 0 1 1 225s 1 1 1 0 1 0 1 1 225s 1 0 1 1 1 1 1 0]; 225s out(:,:,3) = [ 225s 1 1 0 1 0 1 1 1 225s 0 1 1 0 1 1 0 1 225s 0 1 0 0 0 1 0 1 225s 1 0 0 0 0 0 1 1 225s 1 0 0 1 0 1 0 1 225s 1 0 1 0 1 0 1 1 225s 1 1 1 0 1 0 1 1 225s 1 0 1 1 1 1 1 0]; 225s out(:,:,4) = [ 225s 1 1 0 1 0 1 1 1 225s 0 1 1 1 1 1 0 1 225s 0 1 1 1 1 1 0 1 225s 1 1 1 1 1 1 1 1 225s 1 1 1 1 1 1 1 0 225s 1 1 1 0 1 0 1 1 225s 1 1 1 0 1 0 1 1 225s 1 0 1 1 1 1 1 0]; 225s assert (bwperim (in), logical (out)) 225s 225s out(:,:,1) = [ 225s 1 1 0 1 0 1 1 1 225s 0 1 1 1 1 1 0 1 225s 0 1 1 1 1 1 0 1 225s 1 1 0 1 1 1 1 1 225s 1 1 1 1 1 1 1 1 225s 1 1 1 0 1 0 1 1 225s 1 1 1 0 1 0 1 1 225s 1 0 1 1 1 1 1 0]; 225s out(:,:,2) = [ 225s 1 1 0 1 0 1 1 1 225s 0 1 1 1 1 1 0 1 225s 0 1 1 0 0 1 0 1 225s 1 1 1 1 0 1 1 1 225s 1 0 1 1 1 1 1 1 225s 1 0 1 0 1 0 1 1 225s 1 1 1 0 1 0 1 1 225s 1 0 1 1 1 1 1 0]; 225s out(:,:,3) = [ 225s 1 1 0 1 0 1 1 1 225s 0 1 1 1 1 1 0 1 225s 0 1 0 0 0 1 0 1 225s 1 1 0 0 0 1 1 1 225s 1 0 1 1 1 1 1 1 225s 1 0 1 0 1 0 1 1 225s 1 1 1 0 1 0 1 1 225s 1 0 1 1 1 1 1 0]; 225s out(:,:,4) = [ 225s 1 1 0 1 0 1 1 1 225s 0 1 1 1 1 1 0 1 225s 0 1 1 1 1 1 0 1 225s 1 1 1 1 1 1 1 1 225s 1 1 1 1 1 1 1 0 225s 1 1 1 0 1 0 1 1 225s 1 1 1 0 1 0 1 1 225s 1 0 1 1 1 1 1 0]; 225s assert (bwperim (in, 18), logical (out)) 225s ***** error bwperim ("text") 225s ***** error bwperim (rand (10), 5) 225s ***** error bwperim (rand (10), "text") 225s ***** test 225s a = false (5); 225s a(1:4,2:4) = true; 225s 225s p = false (5); 225s p(1:4,[2 4]) = true; 225s assert (bwperim (a, [0 0 0; 1 1 1; 0 0 0]), p) 225s ***** test 225s a = false (8, 8, 5); 225s a(4:5,4:5,2:4) = true; 225s a(2:7,2:7,3) = true; 225s assert (bwperim (a, 26), a) 225s 225s ## It is easy to forget that is correct 225s b = a; 225s b(4:5, 4:5, 3) = false; 225s assert (bwperim (a), b) 225s 225s c = a; 225s c(3:6,3:6,3) = false; 225s assert (bwperim (a, 4), c) 225s ***** test 225s conn_self = logical ([0 0 0; 0 1 0; 0 0 0]); 225s assert (bwperim (true), true) 225s assert (bwperim (true, conn_self), false) 225s assert (bwperim (true (1, 6)), true (1, 6)) 225s assert (bwperim (true (1, 6), conn_self), false (1, 6)) 225s assert (bwperim (true (6, 1)), true (6, 1)) 225s 225s bw_3d = true (1, 1, 6); 225s assert (bwperim (bw_3d), bw_3d) 225s assert (bwperim (bw_3d, conn_self), false (1, 1, 6)) 225s assert (bwperim (bw_3d, true (3)), bw_3d) 225s 225s perim_3d = bw_3d; 225s perim_3d(1, 1, 2:end-1) = false; 225s conn_3d = false (3, 3, 3); 225s conn_3d(2, 2, :) = true; 225s assert (bwperim (true (1, 1, 6), conn_3d), perim_3d) 225s 9 tests, 9 passed, 0 known failure, 0 skipped 225s [inst/integralImage.m] 225s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/integralImage.m 225s ***** test 225s assert (integralImage (10), [0 0; 0 10]); 225s assert (integralImage (10, "rotated"), [0 0 0; 0 10 0]); 225s ***** test 225s J = integralImage (10); 225s assert (class(J), "double"); 225s J = integralImage (uint8(10)); 225s assert (class(J), "double"); 225s ***** test 225s I = [1, 2; 3, 4]; 225s J = integralImage (I); 225s J1 = [0 0 0; 0 1 3; 0 4 10]; 225s assert (J, J1) 225s J = integralImage (I, "rotated"); 225s J1 = [0 0 0 0; 0 1 2 0; 1 6 7 2]; 225s assert (J, J1) 225s ***** test 225s I1 = [1, 2; 3, 4]; 225s I2 = [5, 6; 7, 8]; 225s I3 = [9, 10; 11, 12]; 225s I = cat (3, I1, I2, I3); 225s J = integralImage (I); 225s J1 = [0 0 0; 0 1 3; 0 4 10]; 225s J2 = [0 0 0; 0 5 11; 0 12 26]; 225s J3 = [0 0 0; 0 9 19; 0 20 42]; 225s J0 = cat (3, J1, J2, J3); 225s assert (J, J0) 225s ***** test 225s I1 = [1, 2; 3, 4]; 225s I2 = [5, 6; 7, 8]; 225s I3 = [9, 10; 11, 12]; 225s I = cat (3, I1, I2, I3); 225s J = integralImage (I, "rotated"); 225s J1 = [0 0 0 0; 0 1 2 0; 1 6 7 2]; 225s J2 = [0 0 0 0; 0 5 6 0; 5 18 19 6]; 225s J3 = [0 0 0 0; 0 9 10 0; 9 30 31 10]; 225s J0 = cat (3, J1, J2, J3); 225s assert (J, J0) 225s ***** test 225s I = magic (5); 225s J = integralImage (I); 225s J_res = [0 0 0 0 0 0; 225s 0 17 41 42 50 65; 225s 0 40 69 77 99 130; 225s 0 44 79 100 142 195; 225s 0 54 101 141 204 260; 225s 0 65 130 195 260 325]; 225s assert (J, J_res) 225s 225s J = integralImage (I, "rotated"); 225s J_res_R = [0 0 0 0 0 0 0; 225s 0 17 24 1 8 15 0; 225s 17 64 47 40 38 39 15; 225s 64 74 91 104 105 76 39; 225s 74 105 149 188 183 130 76; 225s 105 170 232 272 236 195 130]; 225s assert (J, J_res_R) 225s ***** error 225s integralImage (); 225s ***** error 225s integralImage (1, "xxx", 2); 225s ***** error 225s integralImage ("abcd"); 225s ***** error 225s integralImage ([1 2; 3 4], "xxx"); 225s 10 tests, 10 passed, 0 known failure, 0 skipped 225s [inst/labelmatrix.m] 225s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/labelmatrix.m 225s ***** test 225s cc = struct (); 225s cc.Connectivity = 8; 225s cc.ImageSize = [7 7]; 225s cc.NumObjects = 4; 225s cc.PixelIdxList = {[1;2], [5;7;12;13;14], [22;23], [26;32;33;36;37;38]}; 225s 225s l = uint8 ([ 225s 1 0 0 3 0 4 0 225s 1 0 0 3 0 4 0 225s 0 0 0 0 0 4 0 225s 0 0 0 0 4 0 0 225s 2 2 0 4 4 0 0 225s 0 2 0 0 0 0 0 225s 2 2 0 0 0 0 0 225s ]); 225s assert (labelmatrix (cc), l) 225s 1 test, 1 passed, 0 known failure, 0 skipped 225s [inst/label2rgb.m] 225s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/label2rgb.m 225s ***** function map = test_colormap (unused) 225s map = [0 0 0; 0.5 0.5 0.5; 0.125 0.125 0.125]; 225s ***** endfunction 225s ***** shared in, out, cmap 225s in = [ 0 1 1 0 2 2 0 3 3 225s 0 1 1 0 2 2 0 3 3]; 225s 225s out = [255 0 0 255 128 128 255 32 32 225s 255 0 0 255 128 128 255 32 32]; 225s out(:,:,2) = out(:,:,3) = out(:,:,1); 225s out = uint8(out); 225s 225s cmap = [0 0 0; 0.5 0.5 0.5; 0.125 0.125 0.125]; 225s ***** assert (label2rgb (in, cmap), out); 225s ***** assert (label2rgb (uint8 (in), cmap), out); 225s ***** assert (label2rgb (in, "test_colormap"), out); 225s ***** assert (label2rgb (in, @test_colormap), out); 225s 225s out(find (in == 0)) = 0; 225s ***** assert (label2rgb (in, cmap, "cyan"), out); 225s ***** assert (label2rgb (in, cmap, [0 1 1]), out); 225s 225s in(1) = 10; 225s ***** error label2rgb (in, cmap); 225s ***** error label2rgb (in, cmap, 89); 225s ***** error label2rgb (in, cmap, "g", "wrong"); 225s 9 tests, 9 passed, 0 known failure, 0 skipped 225s [inst/impixel.m] 225s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/impixel.m 225s ***** shared img2d, img3d 225s img2d = uint8 (magic (10)); 225s img3d(:,:,1) = img2d; 225s img3d(:,:,2) = img2d + 1; 225s img3d(:,:,3) = img2d + 2; 225s img3d = uint8 (img3d); 225s 225s ***** assert (impixel (img2d, 2, 2), single ([80 80 80])); 225s ***** assert (impixel (img2d, -2, 2), single ([NA NA NA])); 225s 225s ***** assert (impixel (img2d, [1 10], [1 10]), single ([92 92 92; 59 59 59])); 225s ***** assert (impixel (img3d, [1 10], [1 10]), single ([92 93 94; 59 60 61])); 225s ***** assert (impixel (double (img2d), [1 10], [1 10]), [92 92 92; 59 59 59]); 225s 225s ***** assert (impixel ([1 10], [1 10], img2d, [1 10], [1 10]), single ([92 92 92; 59 59 59])); 225s ***** assert (impixel ([3 12], [-4 12], img2d, [1 10], [1 10]), single ([NA NA NA; 44 44 44])); 225s ***** assert (impixel ([3 5], [-4 3], img2d, [1 10], [1 10]), single ([NA NA NA; NA NA NA])); 225s 225s ## the following returns double because it's an indexed image 225s ***** assert (impixel ([3 12], [-4 12], img2d, gray (100), [1 10], [1 10]), [NA NA NA; 4/9 4/9 4/9]); 225s 9 tests, 9 passed, 0 known failure, 0 skipped 225s [inst/isind.m] 225s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/isind.m 225s ***** assert (isind ([]), false); 225s ***** assert (isind (1:10), true); 225s ***** assert (isind (0:10), false); 225s ***** assert (isind (1), true); 225s ***** assert (isind (0), false); 225s ***** assert (isind ([1.3 2.4]), false); 225s ***** assert (isind ([1 2; 3 4]), true); 225s ***** assert (isind (randi (100, 10, 10, 1, 4)), true); 225s ***** assert (isind (randi (100, 10, 10, 3, 4)), false); 225s ***** assert (isind (randi (100, 10, 10, 1, 4, 2)), false); 225s 10 tests, 10 passed, 0 known failure, 0 skipped 225s [inst/bwareafilt.m] 225s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/bwareafilt.m 225s ***** shared a2d, a3d 225s a2d = [1 0 0 0 0 0 1 0 0 1 225s 1 0 0 1 0 1 0 1 0 1 225s 1 0 1 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 1 0 0 0 0 0 0 0 0 225s 1 1 0 1 1 1 0 0 0 0 225s 1 1 0 1 0 0 0 1 0 0 225s 1 1 0 0 0 0 1 0 1 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 1 1 0 0 1]; 225s 225s a3d = a2d; 225s a3d(:,:,2) = [ 225s 0 0 0 0 0 0 0 0 0 0 225s 1 0 0 1 1 0 0 1 0 0 225s 0 0 0 1 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 1 1 0 0 0 0 225s 1 1 0 1 0 0 0 0 0 0 225s 1 0 0 0 0 0 1 0 0 0 225s 0 1 0 0 0 0 0 0 0 1 225s 1 1 0 0 0 0 1 0 0 0]; 225s 225s a3d(:,:,3) = [ 225s 1 0 0 0 0 0 0 0 0 0 225s 0 1 0 1 1 0 0 1 0 0 225s 0 0 0 1 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 1 1 1 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 1 0 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 1 225s 1 1 0 0 0 0 0 0 0 0]; 225s ***** test 225s f2d = [0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 1 0 0 0 0 0 0 0 0 225s 1 1 0 1 1 1 0 0 0 0 225s 1 1 0 1 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0]; 225s assert (bwareafilt (a2d, 2), logical (f2d)); 225s assert (bwareafilt (a2d, 2, 8), logical (f2d)); 225s assert (bwareafilt (a2d, 2, 4), logical (f2d)); 225s ***** test 225s f2d = [1 0 0 0 0 0 1 0 0 0 225s 1 0 0 0 0 1 0 1 0 0 225s 1 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 1 0 0 0 0 0 0 0 0 225s 1 1 0 1 1 1 0 0 0 0 225s 1 1 0 1 0 0 0 1 0 0 225s 1 1 0 0 0 0 1 0 1 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0]; 225s assert (bwareafilt (a2d, 5), logical (f2d)); 225s assert (bwareafilt (a2d, 5, 8), logical (f2d)); 225s ***** test 225s f2d = [0 0 0 0 0 0 1 0 0 1 225s 0 0 0 1 0 1 0 1 0 1 225s 0 0 1 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 1 0 0 225s 0 0 0 0 0 0 1 0 1 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 1 1 0 0 1]; 225s assert (bwareafilt (a2d, 11, "smallest", 4), logical (f2d)); 225s ***** test 225s f2d = [1 0 0 0 0 0 1 0 0 0 225s 1 0 0 0 0 1 0 1 0 0 225s 1 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 1 1 1 0 0 0 0 225s 0 0 0 1 0 0 0 1 0 0 225s 0 0 0 0 0 0 1 0 1 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0]; 225s assert (bwareafilt (a2d, [3 5]), logical (f2d)); 225s assert (bwareafilt (a2d, [3 5], 8), logical (f2d)); 225s ***** test 225s f2d = [1 0 0 0 0 0 0 0 0 0 225s 1 0 0 0 0 0 0 0 0 0 225s 1 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 1 1 1 0 0 0 0 225s 0 0 0 1 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0]; 225s assert (bwareafilt (a2d, [3 4], 4), logical (f2d)); 225s assert (bwareafilt (a2d, [3 4], [0 1 0; 1 1 1; 0 1 0]), logical (f2d)); 225s ***** test 225s f2d = [1 0 0 0 0 0 1 0 0 1 225s 1 0 0 1 0 1 0 1 0 1 225s 1 0 1 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 1 1 1 0 0 0 0 225s 0 0 0 1 0 0 0 1 0 0 225s 0 0 0 0 0 0 1 0 1 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 1 1 0 0 0]; 225s assert (bwareafilt (a2d, [2 4]), logical (f2d)); 225s assert (bwareafilt (a2d, [2 4], 8), logical (f2d)); 225s assert (bwareafilt (a2d, [2 4], ones (3)), logical (f2d)); 225s ***** test 225s f3d = [0 0 0 0 0 0 1 0 0 0 225s 0 0 0 1 0 1 0 1 0 0 225s 0 0 1 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0]; 225s 225s f3d(:,:,2) = [ 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 1 1 0 0 1 0 0 225s 0 0 0 1 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 0 0 0 0 0 0 0 0 0 225s 0 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0]; 225s 225s f3d(:,:,3) = [ 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 1 1 0 0 1 0 0 225s 0 0 0 1 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 1 0 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0]; 225s assert (bwareafilt (a3d, 2), logical (f3d)); 225s assert (bwareafilt (a3d, 2, 26), logical (f3d)); 225s assert (bwareafilt (a3d, 2, ones (3, 3, 3)), logical (f3d)); 225s ***** test 225s f3d = [0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 1 0 0 0 0 0 0 0 0 225s 1 1 0 1 1 1 0 0 0 0 225s 1 1 0 1 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0]; 225s 225s f3d(:,:,2) = [ 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 1 1 0 0 0 0 225s 1 1 0 1 0 0 0 0 0 0 225s 1 0 0 0 0 0 0 0 0 0 225s 0 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0]; 225s 225s f3d(:,:,3) = [ 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 0 0 0 1 1 1 0 0 0 0 225s 0 0 0 0 0 0 0 0 0 0 225s 1 0 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0 225s 1 1 0 0 0 0 0 0 0 0]; 225s assert (bwareafilt (a3d, 2, 6), logical (f3d)); 225s assert (bwareafilt (a3d, 2, conndef (3, "minimal")), logical (f3d)); 225s 8 tests, 8 passed, 0 known failure, 0 skipped 225s [inst/nlfilter.m] 225s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/nlfilter.m 225s ***** demo 225s ## creates a "wide" diagonal (although it can be performed more 225s ## efficiently with "imdilate (A, true (3))") 225s nlfilter (eye (10), [3 3], @(x) any (x(:) > 0)) 225s ***** assert (nlfilter (eye (4), [2 3], @(x) sum (x(:))), 225s [2 2 1 0 225s 1 2 2 1 225s 0 1 2 2 225s 0 0 1 1]); 225s ***** assert (nlfilter (eye (4), "indexed", [2 3], @(x) sum (x(:))), 225s [4 2 1 2 225s 3 2 2 3 225s 2 1 2 4 225s 4 3 4 5]); 225s ***** assert (nlfilter (eye (4), "indexed", [2 3], @(x, y) sum (x(:)) == y, 2), 225s logical ([0 1 0 1 225s 0 1 1 0 225s 1 0 1 0 225s 0 0 0 0])); 225s ***** assert (nlfilter (uint8 (eye (4)), "indexed", [2 3], @(x) sum (x(:))), 225s [2 2 1 0 225s 1 2 2 1 225s 0 1 2 2 225s 0 0 1 1]); 225s ***** assert (nlfilter (int16 (eye (4)), "indexed", [2 3], @(x) sum (x(:))), 225s [4 2 1 2 225s 3 2 2 3 225s 2 1 2 4 225s 4 3 4 5]); 225s ***** assert (nlfilter (uint8 (eye (4)), "indexed", [2 3], @(x) int8 (sum (x(:)))), 225s int8 ([2 2 1 0 225s 1 2 2 1 225s 0 1 2 2 225s 0 0 1 1])); 225s ***** test 225s ## Effect of out of border elements. 225s expected = [ 225s 0.5 6.0 6.0 0.5 0 225s 5.5 10.5 13.5 10.5 4.0 225s 6.5 12.5 13.5 13.5 1.5 225s 10.5 12.5 15.5 11.0 1.0 225s 5.0 10.5 6.0 1.0 0 225s ]; 225s assert (nlfilter (magic (5), [3 4], @(x) median (x(:))), expected) 225s ***** test 225s ## The center pixel of a sliding window when its length is even 225s ## sized is ceil ((size (NHOOD) +1) /2) 225s expected = [ 225s 24 24 24 16 16 225s 24 24 24 22 22 225s 23 23 22 22 22 225s 25 25 25 25 22 225s 25 25 25 25 21 225s ]; 225s assert (nlfilter (magic (5), [3 4], @(x) max (x(:))), expected) 225s ***** function dilated = imdilate_like_nlfilter (im, nhood) 225s even_nhood_dims = find (mod (size (nhood), 2) == 0); 225s for i = 1:even_nhood_dims 225s im = flip (im, i); 225s endfor 225s dilated = imdilate (im, nhood); 225s for i = 1:even_nhood_dims 225s dilated = flip (dilated, i); 225s endfor 225s ***** endfunction 225s ***** test 225s a = randi (65535, 20, 20, 20, "uint16"); 225s ## extra dimensions on matrix only 225s assert (nlfilter (a, [5 5], @(x) max(x(:))), imdilate (a, ones (5))) 225s ## extra dimensions on both matrix and block 225s assert (nlfilter (a, [5 5 5], @(x) max(x(:))), imdilate (a, ones ([5 5 5]))) 225s ## extra dimensions and padding 225s assert (nlfilter (a, [3 7], @(x) max(x(:))), imdilate (a, ones ([3 7]))) 225s assert (nlfilter (a, [3 7 3], @(x) max(x(:))), imdilate (a, ones ([3 7 3]))) 226s ***** test 226s a = randi (65535, 15, 15, 4, 8, 3, "uint16"); 226s assert (nlfilter (a, [3 4 7 5], @(x) max(x(:))), 226s imdilate_like_nlfilter (a, ones ([3 4 7 5]))) 227s ***** test 227s a = randi (65535, 15, 15, 4, 3, 8, "uint16"); 227s ord = ordfiltn (a, 3, ones ([3 7 3 1 5])); 227s assert (nlfilter (a, [3 7 3 1 5], @(x) sort (x(:))(3)), ord) 227s assert (nlfilter (a, [3 7 3 1 5], @(x, y) sort (x(:))(y), 3), ord) 229s 11 tests, 11 passed, 0 known failure, 0 skipped 229s [inst/getrangefromclass.m] 229s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/getrangefromclass.m 229s ***** shared img 229s img = ones (5); 229s ***** assert (getrangefromclass (double (img)), [0 1]); # double returns [0 1] 229s ***** assert (getrangefromclass (single (img)), [0 1]); # single returns [0 1] 229s ***** assert (getrangefromclass (logical (img)), [0 1]); # logical returns [0 1] 230s ***** assert (getrangefromclass (int8 (img)), [-128 127]); # checks int 230s ***** assert (getrangefromclass (uint8 (img)), [0 255]); # checks unit 230s ***** fail ("getrangefromclass ('string')"); # fails with strings 230s ***** fail ("getrangefromclass ({3, 4})"); # fails with cells 230s 7 tests, 7 passed, 0 known failure, 0 skipped 230s [inst/immultiply.m] 230s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/immultiply.m 230s ***** assert (immultiply (uint8 ([255 50]), uint16 ([300 50])), uint8 ([255 255])); # default to first class and truncate 230s ***** assert (immultiply (uint8 ([250 50]), uint16 ([ 3 4]), "uint32"), uint32 ([750 200])); # defining output class works (not in matlab?) 230s ***** assert (immultiply (uint8 ([255 50]), 4), uint8 ([255 200])); # works multiplying by a scalar 230s ***** assert (immultiply (logical ([ 1 0]), uint16 ([300 50])), uint16 ([300 0])); # output class defaults to whatever input is not logical 230s ***** assert (immultiply (logical ([ 1 0]), logical ([ 1 1])), double ([ 1 0])); # tested on matlab for compatibility 230s 5 tests, 5 passed, 0 known failure, 0 skipped 230s [inst/integralImage3.m] 230s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/integralImage3.m 230s ***** test 230s assert (integralImage3 (zeros (4)), zeros (5, 5, 2)); 230s ***** test 230s J_res = zeros (2, 2, 2); 230s J_res(2, 2, 2) = 10; 230s assert (integralImage3 (10), J_res); 230s ***** test 230s J = integralImage3 (10); 230s assert (class (J), "double"); 230s J = integralImage3 (uint8 (10)); 230s assert (class (J), "double"); 230s ***** test 230s I = [1, 2; 3, 4]; 230s J = integralImage3 (I); 230s J_res = zeros (3, 3, 2); 230s J_res(2:3, 2:3, 2) = [1 3; 4 10]; 230s assert (J, J_res) 230s ***** test 230s I1 = [1, 2; 3, 4]; 230s I2 = [5, 6; 7, 8]; 230s I3 = [9, 10; 11, 12]; 230s I = cat (3, I1, I2, I3); 230s J = integralImage3 (I); 230s J2 = [0 0 0; 0 1 3; 0 4 10]; 230s J3 = [0 0 0; 0 6 14; 0 16 36]; 230s J4 = [0 0 0; 0 15 33; 0 36 78]; 230s J_res = cat (3, zeros (3), J2, J3, J4); 230s assert (J, J_res) 230s ***** test 230s I = magic (5); 230s J = integralImage3 (I); 230s J_res = zeros (6, 6, 2); 230s J_res(:, :, 2) = [0 0 0 0 0 0; 230s 0 17 41 42 50 65; 230s 0 40 69 77 99 130; 230s 0 44 79 100 142 195; 230s 0 54 101 141 204 260; 230s 0 65 130 195 260 325]; 230s assert (J, J_res) 230s ***** # test of 3d input image: 230s ***** test 230s K = magic (8); 230s K = reshape (K, [4 4 4]); 230s L = integralImage3 (K); 230s L1_ML = zeros (5); 230s L2_ML = [0 0 0 0 0; 230s 0 64 96 98 132; 230s 0 73 146 203 260; 230s 0 90 212 316 388; 230s 0 130 260 390 520]; 230s L3_ML = [0 0 0 0 0; 230s 0 67 134 197 260; 230s 0 130 260 390 520; 230s 0 193 386 583 780; 230s 0 260 520 780 1040]; 230s L4_ML = [0 0 0 0 0; 230s 0 127 222 291 392; 230s 0 203 406 593 780; 230s 0 287 606 903 1168; 230s 0 390 780 1170 1560]; 230s L5_ML = [0 0 0 0 0; 230s 0 134 268 394 520; 230s 0 260 520 780 1040; 230s 0 386 772 1166 1560; 230s 0 520 1040 1560 2080]; 230s L_ML = cat (3, L1_ML, L2_ML, L3_ML, L4_ML, L5_ML); 230s assert (L, L_ML) 230s ***** # test of 2d input image: 230s ***** test 230s X = ones (3); 230s Y = integralImage3 (X); 230s Y_ML = zeros (4, 4, 2); 230s Y_ML(:, :, 2) = [0 0 0 0; 0 1 2 3; 0 2 4 6; 0 3 6 9]; 230s assert(Y, Y_ML); 230s ***** error id=Octave:invalid-fun-call 230s integralImage3 (); 230s ***** error id=Octave:invalid-fun-call 230s integralImage3 (zeros (3), zeros (3)); 230s ***** error 230s integralImage3 ("abcd"); 230s ***** error 230s integralImage3 (1+i); 230s ***** error 230s integralImage3 (reshape (1:81, 3, 3, 3, 3)); 230s 13 tests, 13 passed, 0 known failure, 0 skipped 230s [inst/imfindcircles.m] 230s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imfindcircles.m 230s ***** shared im0, rgb0, im1 230s im0 = [0 0 0 0 0; 230s 0 1 2 1 0; 230s 0 2 5 2 0; 230s 0 1 2 1 0; 230s 0 0 0 0 0]; 230s rgb0 = cat (3, im0, 3.*im0, 2.*im0); 230s im1 = zeros (20); 230s im1(2:6, 5:9) = 1; 230s im1(13:19, 13:19) = 1; 230s ***** function image = circlesimage (numx, numy, centersx, centersy, rs, values) 230s ## create an image with circles of given parameters 230s num = length (centersx); 230s image = zeros (numy, numx); 230s [indy, indx] = meshgrid (1:numx, 1:numy); 230s for n = 1:num 230s centerx = centersx(n); 230s centery = centersy(n); 230s r = rs(n); 230s value = values(n); 230s dist_squared = (indx - centerx).^ 2 + (indy - centery).^ 2; 230s image(dist_squared <= (r-0.5)^2) = value; 230s endfor 230s ***** endfunction 230s ***** error imfindcircles () 230s ***** error imfindcircles (im0) 230s ***** error imfindcircles (im0, [1 2 3]) 230s ***** error imfindcircles (im0, -3) 230s ***** error imfindcircles (im0, 4+2*i) 230s ***** error imfindcircles (ones (5,5,4), 2) 230s ***** error imfindcircles (ones (5,5,5,5), 2) 230s ***** error imfindcircles (im0, [2 1]) 230s ***** error imfindcircles (im0, 2, "rubbish") 230s ***** error imfindcircles (im0, 2, "more", "rubbish") 230s ***** error imfindcircles (im0, 2, "ObjectPolarity", "rubbish") 230s ***** error imfindcircles (im0, 2, "ObjectPolarity", 5) 230s ***** error imfindcircles (im0, 2, "ObjectPolarity") 230s ***** error imfindcircles (im0, 2, "Method", "rubbish") 231s ***** error imfindcircles (im0, 2, "Method", 5) 231s ***** error imfindcircles (im0, 2, "Method") 231s ***** error imfindcircles (im0, 2, "Sensitivity", "rubbish") 231s ***** error imfindcircles (im0, 2, "Sensitivity") 231s ***** error imfindcircles (im0, 2, "Sensitivity", -0.1) 231s ***** error imfindcircles (im0, 2, "Sensitivity", 1.1) 231s ***** error imfindcircles (im0, 2, "Sensitivity", [0.1 0.2]) 231s ***** error imfindcircles (im0, 2, "EdgeThreshold", "rubbish") 231s ***** error imfindcircles (im0, 2, "EdgeThreshold") 231s ***** error imfindcircles (im0, 2, "EdgeThreshold", -0.1) 231s ***** error imfindcircles (im0, 2, "EdgeThreshold", 1.1) 231s ***** error imfindcircles (im0, 2, "EdgeThreshold", [0.1 0.2]) 231s ***** error imfindcircles (im0, 2, "EdgeThreshold", 0.1, "ObjectPolarity", "bright", 231s "Sensitivity", 0.3, "Method", "PhaseCode", "more", 1) 232s ***** test # none of this should fail 232s imfindcircles (im0, 2); 232s imfindcircles (im0, [1 2]); 232s imfindcircles (logical (im0), 2); 232s imfindcircles (logical (im0), [1 2]); 232s imfindcircles (rgb0, 2); 232s imfindcircles (rgb0, [1 2]); 232s imfindcircles (uint8 (im0), 2); 232s imfindcircles (uint8 (im0), [1 2]); 232s imfindcircles (im0, 2, "ObjectPolarity", "bright"); 232s imfindcircles (im0, 2, "ObjectPolarity", "dark"); 232s imfindcircles (im0, 2, "Method", "PhaseCode"); 232s imfindcircles (im0, 2, "Sensitivity", 0.5); 232s imfindcircles (im0, 2, "EdgeThreshold", 0.5); 232s imfindcircles (im0, 2, "ObjectPolarity", "bright", "Method", "PhaseCode"); 232s imfindcircles (im0, 2, "ObjectPolarity", "bright", "Sensitivity", 0.3, 232s "Method", "PhaseCode"); 232s imfindcircles (im0, 2, "EdgeThreshold", 0.1, "ObjectPolarity", "bright", 232s "Sensitivity", 0.3, "Method", "PhaseCode"); 232s ***** test 232s centers = imfindcircles (im1, 2); 232s assert (size (centers, 2), 2) 232s assert (class (centers), "double") 232s ***** test 232s [centers, radii] = imfindcircles (im1, [1 5]); 232s assert (size (centers, 2), 2) 232s assert (size (radii, 2), 1) 232s assert (class (radii), "double") 232s ***** test 232s [centers, radii, strengths] = imfindcircles (im1, [1 5]); 232s assert (size (strengths, 2), 1) 232s assert (class (strengths), "double") 232s ***** error [a b c d] = imfindcircles (im0, 2); 232s ***** test ## sub-pixel accuracy of circle center 232s xs = [95.7]; 232s ys = [101.1]; 232s rs = [50]; 232s vals = [0.5]; 232s im = circlesimage (200, 200, xs, ys, rs, vals); 232s filt = ones (3) ./ 9; 232s im = imfilter (im, filt); 232s [centers, radii] = imfindcircles (im, [40 60]); 232s assert (centers, [101.1, 95.7], 0.1); 232s assert (radii, 50, 1); 232s ***** test 232s ## specificity to circular shapes and strengths output value 232s xs = [100 202]; 232s ys = [101, 203]; 232s rs = [40, 41]; 232s vals = [0.8, 0.9]; 232s im = circlesimage (300, 300, xs, ys, rs, vals); 232s filt = ones (3) ./ 9; 232s im = imfilter (im, filt); 232s im(30:170, 50:100) = 0; 232s im(20:120, 180:280) = 1; 232s [centers, radii, strengths] = imfindcircles (im, [30 50], "Sensitivity", 0.9); 232s assert (size (centers), [2 2]); 232s assert (centers, [203, 202; 101, 100], 1.5); 232s assert (radii, [40; 41], 2.5); 232s assert (strengths(1) / strengths(2) > 1.8, true); 232s ***** test # radius range parameter & dark circles 232s xs = [50, 420, 180]; 232s ys = [80, 100, 200]; 232s rs = [35, 30, 40]; 232s vals = [0.7, 0.8, 0.9]; 232s im = circlesimage (300, 500, xs, ys, rs, vals); 232s filt = ones (3) ./ 9; 232s im = imfilter (im, filt); 232s [centers1, radii1] = imfindcircles (im, [28 36]); 232s [centers2, radii2] = imfindcircles (im, [28 42]); 232s assert (size (centers1), [2 2]); 232s assert (centers1, [100 420; 80 50], 0.2); 232s assert (radii1, [30; 35], 2); 232s assert (size (centers2), [3 2]); 232s im_dark = 1-im; 232s [centers_dark, radii_dark, strengths_dark] = imfindcircles (im_dark, [25 42], "ObjectPolarity", "dark"); 232s assert (sortrows (centers_dark), [80 50; 100 420; 200 180], 0.2); 232s assert (sortrows (radii_dark), [30; 35; 40], 1); 232s ***** test # ability to find circles with big radius 232s xs = [111, 555, 341]; 232s ys = [222, 401, 161]; 232s rs = [45, 50, 150]; 232s vals = [0.6, 0.8, 0.7]; 232s im = circlesimage (400, 701, xs, ys, rs, vals); 232s [centers, radii] = imfindcircles (im, [140 160], "Sensitivity", 0.98); 232s assert (centers, [161, 341], 0.2); 232s assert (radii, 150, 1); 232s ***** test # overlapping circles 232s xs = [105, 155]; 232s ys = [202, 221]; 232s rs = [45, 50]; 232s vals = [0.5, 0.8]; 232s im = circlesimage(385, 422, xs, ys, rs, vals); 232s filt = ones (3) ./ 9; 232s im = imfilter (im, filt); 232s [centers, radii] = imfindcircles (im, [30 80]); 232s assert (centers, [221, 155; 202, 105], 0.5); 232s assert (radii, [50; 45], 1); 233s ***** test # overlapping circles, only 10 pixels apart 233s xs = [155, 155]; 233s ys = [175, 157]; 233s rs = [50, 50]; 233s vals = [0.7, 0.8]; 233s im = circlesimage (300, 300, xs, ys, rs, vals); 233s filt = ones (3) ./ 9; 233s im = imfilter (im, filt); 233s [centers, radii] = imfindcircles (im, [30 80], "Sensitivity", 0.95); 233s assert (centers, [157, 155; 175, 155], 1); 233s assert (radii, [50; 50], 1); 233s ***** test # edge threshold parameter 233s xs = [100 202]; 233s ys = [101, 203]; 233s rs = [40, 41]; 233s vals = [0.1, 0.9]; 233s im = circlesimage (300, 300, xs, ys, rs, vals); 233s filt = ones (3) ./ 9; 233s im= imfilter (im, filt); 233s [centers_auto, radii_auto] = imfindcircles (im, [30 50]); 233s [centers_0, radii_0] = imfindcircles (im, [30 50], "EdgeThreshold", 0); 233s [centers_05, radii_05] = imfindcircles (im, [30 50], "EdgeThreshold", 0.5); 233s assert (centers_auto, [203, 202], 0.2); 233s assert (radii_auto, 41, 1); 233s assert (centers_0, [101, 100; 203, 202], 0.2); 233s assert (radii_0, [40; 41], 1); 233s assert (centers_05, [203, 202], 0.2); 233s assert (radii_05, 41, 1); 233s ***** demo 233s ## First generate an input image: 233s model = [ 1.0 0.2 0.2 0.2 0.5 0 233s 1.0 0.3 0.3 -0.1 -0.2 0 233s -0.5 0.7 0.7 -0.5 0.5 0]; 233s im = phantom (model); 233s im(170:230,170:230) = 1; 233s im = imfilter (im, fspecial ("average", 3)); 233s im = imnoise (im, "salt & pepper"); 233s imshow (im); 233s 233s ## Find and show circles with radius between 20 and 50: 233s [centers, radii] = imfindcircles (im, [20 50]); 233s viscircles (centers, radii) 233s title ("found circles in red") 233s 39 tests, 39 passed, 0 known failure, 0 skipped 233s [inst/imquantize.m] 233s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imquantize.m 233s ***** error 233s imquantize (rand (5), [3 4 2 5]) 233s ***** error 233s imquantize (rand (5), [1 2 3], "foo") 233s ***** error 233s imquantize (rand (5), [1 2 3 4], 1:6) 233s ***** error 233s imquantize (rand (5), [1 2 3 4], 1:2) 233s ***** test 233s img = [-inf 0 10000000; -100000 -3 1/1000000; 5 5 10]; 233s [q, q_idx] = imquantize (img, 5); 233s assert (q, [1 1 2; 1 1 1; 1 1 2]) 233s assert (q_idx, q) 233s ***** test 233s img = [1:10; 11:20; 21:30; 31:40; 41:50; 51:60; 61:70]; 233s 233s expected_q = [ 233s 0 0 0 0 0 1 1 1 1 1 233s 1 1 1 1 1 5 5 5 5 5 233s 5 5 5 5 5 10 10 10 10 10 233s 20 20 20 20 20 20 20 20 20 20 233s 30 30 30 30 30 30 30 30 30 30 233s 30 30 30 30 30 30 30 30 30 30 233s 15 15 15 15 15 15 15 15 15 15]; 233s 233s expected_q_idx = [ 233s 1 1 1 1 1 2 2 2 2 2 233s 2 2 2 2 2 3 3 3 3 3 233s 3 3 3 3 3 4 4 4 4 4 233s 5 5 5 5 5 5 5 5 5 5 233s 6 6 6 6 6 6 6 6 6 6 233s 6 6 6 6 6 6 6 6 6 6 233s 7 7 7 7 7 7 7 7 7 7]; 233s 233s [q, q_idx] = imquantize (img, [5 15 25 30 40 60], [0 1 5 10 20 30 15]); 233s assert (q, expected_q) 233s assert (q_idx, expected_q_idx) 233s 233s [q, q_idx] = imquantize (single (img), [5 15 25 30 40 60], 233s [0 1 5 10 20 30 15]); 233s assert (q, expected_q) 233s assert (q_idx, expected_q_idx) 233s 233s [q, q_idx] = imquantize (uint8 (img), [5 15 25 30 40 60], 233s [0 1 5 10 20 30 15]); 233s assert (q, expected_q) 233s assert (q_idx, expected_q_idx) 233s 233s [q, q_idx] = imquantize (uint8 (img), uint8 ([5 15 25 30 40 60]), 233s [0 1 5 10 20 30 15]); 233s assert (q, expected_q) 233s assert (q_idx, expected_q_idx) 233s 233s [q, q_idx] = imquantize (uint8 (img), uint8 ([5 15 25 30 40 60]), 233s uint8 ([0 1 5 10 20 30 15])); 233s assert (q, uint8 (expected_q)) 233s assert (q_idx, expected_q_idx) 233s ***** test 233s img = randi ([0 255], 10, "uint8"); 233s [q, q_idx] = imquantize (img, [50 100 150 200]); 233s assert (class (q), "double") 233s assert (class (q_idx), "double") 233s 233s [q, q_idx] = imquantize (img, [50 100 150 200], uint16 ([5 7 8 9 2])); 233s assert (class (q), "uint16") 233s assert (class (q_idx), "double") 233s 233s [q, q_idx] = imquantize (img, [50 100 150 200], uint8 ([5 7 8 9 2])); 233s assert (class (q), "uint8") 233s assert (class (q_idx), "double") 233s ***** test 233s img = [1:10; 11:20; 21:30; 31:40; 41:50; 51:60; 61:70].'; 233s r_idx = reshape (randperm (numel (img)), size (img)); 233s 233s [quant, quant_idx] = imquantize (img, [5 15 25 30 40 60]); 233s [quant_r, quant_r_idx] = imquantize (img(r_idx), [5 15 25 30 40 60]); 233s 233s assert (imquantize (img(r_idx), [5 15 25 30 40 60]), quant(r_idx)) 233s assert (quant_r, quant_r_idx) 233s 8 tests, 8 passed, 0 known failure, 0 skipped 233s [inst/entropy.m] 233s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/entropy.m 233s ***** assert (entropy ([0 1]), 1) 233s ***** assert (entropy (uint8 ([0 1])), 1) 233s ***** assert (entropy ([0 0]), 0) 233s ***** assert (entropy ([0]), 0) 233s ***** assert (entropy ([1]), 0) 233s ***** assert (entropy ([0 .5; 2 0]), 1.5) 233s ***** assert (entropy (repmat ([0 .5; 2 0], 1, 1, 3)), 233s entropy ([0 .5; 2 0])) 233s ***** test 233s A = zeros (3,3); 233s B = ones (3,3); 233s C = [1 1 1; 2 2 2; 3 3 3]; 233s D = C'; 233s E = ones (3,3); 233s E(2,2)=2; 233s F = 3 .* ones (3,3); 233s F(2,2)=1; 233s G = [-1 2 7; -5 2 8; -7 pi 9]; 233s H = [5 2 8; 1 -3 1; 5 1 0]; 233s pG = [1 2] ./ 3; 233s G_out = -sum (pG.*log2 (pG)); 233s pH = [2 7] ./ 9; 233s H_out = -sum (pH.*log2 (pH)); 233s assert (entropy (A), 0, eps); 233s assert (entropy (B), 0, eps); 233s assert (entropy (C), 0, eps); 233s assert (entropy (D), 0, eps); 233s assert (entropy (E), 0, eps); 233s assert (entropy (F), 0, eps); 233s assert (entropy (G), G_out, eps); 233s assert (entropy (H), H_out, eps); 233s ***** test 233s A = uint8 (zeros (3,3)); 233s B = uint8 (ones (3,3)); 233s C = uint8 ([1 1 1; 2 2 2; 3 3 3]); 233s D = C'; 233s E = uint8 (ones (3,3)); 233s E(2,2)=2; 233s F = 3 .* uint8 (ones (3,3)); 233s F(2,2)=1; 233s G = uint8 ([0 2 7; 0 2 8; 0 3 9]); 233s H = uint8 ([5 2 8; 1 0 1; 5 1 0]); 233s pC = [1 1 1] ./ 3; 233s C_out = -sum (pC.*log2 (pC)); 233s D_out = C_out; 233s pE = [8 1] ./ 9; 233s E_out = -sum (pE.*log2 (pE)); 233s F_out = E_out; 233s pG = [3 2 1 1 1 1] ./ 9; 233s G_out = -sum (pG.*log2 (pG)); 233s pH = [2 3 1 2 1] ./ 9; 233s H_out = -sum (pH.*log2 (pH)); 233s assert (entropy (A), 0); 233s assert (entropy (B), 0); 233s assert (entropy (C), C_out, eps); 233s assert (entropy (D), D_out, eps); 233s assert (entropy (E), E_out, eps); 233s assert (entropy (F), F_out, eps); 233s assert (entropy (G), G_out, eps); 233s assert (entropy (H), H_out, eps); 233s ***** test 233s L1 = false (3,3); 233s L1(2,2)=true; 233s L2 = true (3,3); 233s L2(2,2)=false; 233s L3 = logical ([0 1 1; 0 1 1; 0 0 1]); 233s p12 = [1 8] ./ 9; 233s out12 = -sum (p12.*log2 (p12)); 233s p3 = [5 4] ./9; 233s out3 = -sum (p3.*log2 (p3)); 233s assert (entropy (L1), out12, eps); 233s assert (entropy (L2), out12, eps); 233s assert (entropy (L3), out3, eps); 233s 10 tests, 10 passed, 0 known failure, 0 skipped 233s [inst/imhmax.m] 233s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imhmax.m 233s ***** shared im0, im0_h2_out 233s im0 = uint8 ([0 0 0 0 0; 233s 0 1 2 1 0; 233s 0 2 5 2 0; 233s 0 1 2 1 0; 233s 0 0 0 0 0]); 233s im0_h2_out = uint8 ([0 0 0 0 0; 233s 0 1 2 1 0; 233s 0 2 3 2 0; 233s 0 1 2 1 0; 233s 0 0 0 0 0]); 233s ***** error imhmax () 234s ***** error imhmax (im0) 234s ***** error imhmax ("hello", 2) 234s ***** error imhmax (i.*im0, 2) 234s ***** error imhmax (sparse (im0), 2) 234s ***** error imhmax (im0, -2) 234s ***** error imhmax (im0, 'a') 234s ***** error imhmax (im0, ones (2)) 234s ***** error imhmax (im0, 2*i) 234s ***** assert (imhmax (im0, 2), im0_h2_out) 234s ***** assert (imhmax (double (im0), 2), double (im0_h2_out)) 234s ***** assert (imhmax (im0, 2, 8), im0_h2_out) 234s ***** assert (imhmax (im0, 2, 4), im0_h2_out) 234s ***** assert (imhmax (im0, 2, true (3)), im0_h2_out) 234s ***** test 234s out = imhmax (double (im0), 2); 234s assert (size (out), size (im0)) 234s assert (class (out), "double") 234s ***** test 234s out = imhmax (single (im0), 2); 234s assert (size (out), size (im0)) 234s assert (class (out), "single") 234s ***** test 234s out = imhmax (uint8 (im0), 2); 234s assert (size (out), size (im0)) 234s assert (class (out), "uint8") 234s ***** test 234s out = imhmax (uint16 (im0), 2); 234s assert (size (out), size (im0)) 234s assert (class (out), "uint16") 234s ***** test 234s im = cat (3, im0, im0, im0, im0); 234s out = imhmax (im, 2); 234s assert (size (out), size (im)) 234s ***** test 234s im = zeros (10); 234s im(2:4, 2:4) = 3; 234s im(6:8, 6:8) = 8; 234s expected_4 = zeros (10); 234s expected_4(6:8, 6:8) = 4; 234s expected_2 = zeros (10); 234s expected_2(2:4, 2:4) = 1; 234s expected_2(6:8, 6:8) = 6; 234s out = imhmax (im, 4); 234s assert (out, expected_4, eps) 234s out = imhmax (im, 2); 234s assert (out, expected_2, eps) 234s out = imhmax (0.1 .* im, 0.4); 234s assert (out, 0.1 .* expected_4, eps) 234s ***** test 234s im2 = zeros (10); 234s im2(2:4, 2:4) = 3; 234s im2(6:9, 6:9)=8; 234s im2(5, 5)=8; 234s im2(6, 7)=0; 234s im2(7, 8)=0; 234s expected_4 = zeros (10); 234s expected_4(6:9, 6:9) = 4; 234s expected_4(5, 5) = 4; 234s expected_4(6, 7) = 0; 234s expected_4(7, 8) = 0; 234s expected_8 = expected_4; 234s expected_8(2:4, 2:4) = 3; 234s out2 = imhmax (im2, 4); 234s assert (out2, expected_8, eps) 234s out2 = imhmax (im2, 4, 4); 234s assert (out2, expected_4, eps) 234s out2 = imhmax (im2, 4, 8); 234s assert (out2, expected_8, eps) 234s 21 tests, 21 passed, 0 known failure, 0 skipped 234s [inst/qtsetblk.m] 234s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/qtsetblk.m 234s ***** demo 234s J=qtsetblk(eye(4),qtdecomp(eye(4)),2,ones(2,2,2)) 234s % Sets upper-right and lower-left blocks of 2*2 zeros to ones 234s ***** shared A, S 234s A=[ 1, 4, 2, 5,54,55,61,62; 234s 3, 6, 3, 1,58,53,67,65; 234s 3, 6, 3, 1,58,53,67,65; 234s 3, 6, 3, 1,58,53,67,65; 234s 23,42,42,42,99,99,99,99; 234s 27,42,42,42,99,99,99,99; 234s 23,22,26,25,99,99,99,99; 234s 22,22,24,22,99,99,99,99]; 234s S = qtdecomp (A, 10); 234s ***** test 234s R=A; 234s vals=zeros(4,4,2); 234s vals(:,:,1)=reshape([1:16],4,4); 234s vals(:,:,2)=reshape([21:36],4,4); 234s R(1:4,1:4)=reshape([1:16],4,4); 234s R(5:8,5:8)=reshape([21:36],4,4); 234s assert(qtsetblk(A,S,4,vals),R); 234s ***** test 234s R=A; 234s R(1:4,5:8)=1; 234s R(7:8,1:4)=1; 234s R(5:6,3:4)=1; 234s assert(qtsetblk(A,S,2,ones(2,2,7)),R); 234s ***** test 234s R=A; 234s R(5:6,1:2)=10; 234s assert(qtsetblk(A,S,1,ones(1,1,4)*10),R); 234s 3 tests, 3 passed, 0 known failure, 0 skipped 234s [inst/imextendedmax.m] 234s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imextendedmax.m 234s ***** shared im0, bw0_h2_out 234s im0 = uint8 ([0 0 0 0 0; 234s 0 1 2 1 0; 234s 0 2 5 2 0; 234s 0 1 2 1 0; 234s 0 0 0 0 0]); 234s bw0_h2_out = false (5); 234s bw0_h2_out(3,3) = true; 234s ***** error imextendedmax () 234s ***** error imextendedmax (im0) 234s ***** error imextendedmax ("hello", 2) 234s ***** error imextendedmax (i.*im0, 2) 234s ***** error imextendedmax (sparse (im0), 2) 234s ***** error imextendedmax (im0, -2) 234s ***** error imextendedmax (im0, 'a') 234s ***** error imextendedmax (im0, ones (2)) 234s ***** error imextendedmax (im0, 2*i) 234s ***** assert (imextendedmax (im0, 2), bw0_h2_out) 234s ***** assert (imextendedmax (double (im0), 2), bw0_h2_out) 234s ***** assert (imextendedmax (im0, 2, 8), bw0_h2_out) 234s ***** assert (imextendedmax (im0, 2, 4), bw0_h2_out) 234s ***** assert (imextendedmax (im0, 2, true (3)), bw0_h2_out) 234s ***** test 234s out = imextendedmax (im0, 2); 234s assert (size (out), size (im0)) 234s assert (class (out), "logical") 234s ***** test 234s out = imextendedmax (single (im0), 2); 234s assert (size (out), size (im0)) 234s assert (class (out), "logical") 234s ***** test 234s out = imextendedmax (uint8 (im0), 2); 234s assert (size (out), size (im0)) 234s assert (class (out), "logical") 234s ***** test 234s out = imextendedmax (uint16 (im0), 2); 234s assert (size (out), size (im0)) 234s assert (class (out), "logical") 234s ***** test 234s im = cat (3, im0, im0, im0, im0); 234s out = imextendedmax (im, 2); 234s assert (size (out), size (im)) 234s ***** test 234s im = zeros (10); 234s im(2:4, 2:4) = 3; 234s im(6:8, 6:8) = 8; 234s expected_4 = false (10); 234s expected_4(6:8, 6:8) = true; 234s expected_2 = expected_4; 234s expected_2(2:4, 2:4) = true; 234s out = imextendedmax (im, 4); 234s assert (out, expected_4, eps) 234s out = imextendedmax (0.1.*im, 0.4); 234s assert (out, expected_4, eps) 234s out = imextendedmax (im, 2); 234s assert (out, expected_2, eps) 234s ***** test 234s im2 = zeros (10); 234s im2(2:4, 2:4) = 3; 234s im2(6:9, 6:9)=8; 234s im2(5, 5)=8; 234s im2(6, 7)=0; 234s im2(7, 8)=0; 234s expected_8 = false (10); 234s expected_8(6:9, 6:9) = true; 234s expected_8(5, 5) = true; 234s expected_8(6, 7) = false; 234s expected_8(7, 8) = false; 234s expected_4 = expected_8; 234s expected_4(2:4, 2:4) = true; 234s out2 = imextendedmax (im2, 2); 234s assert (out2, expected_8, eps) 234s out2 = imextendedmax (im2, 2, 4); 234s assert (out2, expected_4, eps) 234s out2 = imextendedmax (im2, 2, 8); 234s assert (out2, expected_8, eps) 234s 21 tests, 21 passed, 0 known failure, 0 skipped 234s [inst/immse.m] 234s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/immse.m 234s ***** error immse (rand (10), rand (12)) 234s ***** error immse (uint8 ([0 1 2 3]), uint16 ([0 1 2 3])) 234s ***** error immse (double ([0 1 2 3]), single ([0 1 2 3])) 234s ***** assert (immse (magic (5), magic (5)), 0) 234s ***** assert (immse (single (magic (5)), single (magic (5))), single (0)) 234s ***** assert (immse (uint8 (magic (5)), uint8 (magic (5))), 0) 234s 6 tests, 6 passed, 0 known failure, 0 skipped 234s [inst/rgb2lab.m] 234s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/rgb2lab.m 234s ***** assert (rgb2lab ([0 0 0]), [0, 0, 0], 1e-2) 234s ***** assert (rgb2lab ([1 0 0]), [53.24, 80.09, 67.20], 1e-2) 234s ***** assert (rgb2lab ([1 1 0]), [97.14, -21.55, 94.48], 1e-2) 234s ***** assert (rgb2lab ([0 1 0]), [87.74, -86.18, 83.18], 1e-2) 234s ***** assert (rgb2lab ([0 1 1]), [91.11, -48.09, -14.13], 1e-2) 234s ***** assert (rgb2lab ([0 0 1]), [32.30, 79.19, -107.86], 1e-2) 234s ***** assert (rgb2lab ([1 0 1]), [60.32, 98.24, -60.83], 1e-2) 234s ***** assert (rgb2lab ([1 1 1]), [100, 0.00, 0.00], 1e-2) 234s ***** assert (rgb2lab ([0.5 0.5 0.5]), [53.39, 0.00, 0.00], 1e-2) 234s ***** assert (rgb2lab ([0.75 0 0]), [39.77, 64.51, 54.13], 1e-2) 234s ***** assert (rgb2lab ([0.5 0 0]), [25.42, 47.91, 37.91], 1e-2) 234s ***** assert (rgb2lab ([0.25 0 0]), [9.66, 29.68, 15.24], 1e-2) 234s ***** assert (rgb2lab ([1 0.5 0.5]), [68.11, 48.39, 22.83], 1e-2) 234s ***** assert (rgb2lab ([1.5 1 1]), [111.47, 43.42, 17.98], 1e-2) 234s ***** test 234s rgb_map = rand (64, 3); 234s assert (lab2rgb (rgb2lab (rgb_map)), rgb_map, 2e-5); 234s ***** test 234s rgb_img = rand (64, 64, 3); 234s assert (lab2rgb (rgb2lab (rgb_img)), rgb_img, 2e-5); 234s ***** assert (rgb2lab (sparse ([0 0 1])), sparse ([32.30, 79.19, -107.86]), 1e-2) 234s ***** assert (rgb2lab (sparse ([0 1 1])), sparse ([91.11, -48.09, -14.13]), 1e-2) 234s ***** assert (rgb2lab (sparse ([1 1 1])), sparse ([100, 0.00, 0.00]), 1e-2) 234s ***** assert (rgb2lab (uint8([255 255 255])), [100, 0.00, 0.00], 1e-2) 234s ***** assert (class (rgb2lab (single([1 1 1]))), 'single') 234s ***** error rgb2lab () 234s ***** error rgb2lab (1,2) 234s ***** error rgb2lab ({1}) 234s ***** error rgb2lab (ones (2,2)) 234s ***** test 234s rgb = rand (16, 16, 3, 5); 234s lab = zeros (size (rgb)); 234s for i = 1:5 234s lab(:,:,:,i) = rgb2lab (rgb(:,:,:,i)); 234s endfor 234s assert (rgb2lab (rgb), lab) 234s 26 tests, 26 passed, 0 known failure, 0 skipped 234s [inst/rangefilt.m] 234s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/rangefilt.m 234s ***** test 234s im = rangefilt (ones (5)); 234s assert (im, zeros (5)); 234s ***** test 234s A = zeros (3,3); 234s B = ones (3,3); 234s C = [1 1 1; 2 2 2; 3 3 3]; 234s D = C'; 234s E = ones (3,3); 234s E(2,2) = 2; 234s F = 3 .* ones (3,3); 234s F(2,2) = 1; 234s G = [-1 2 7; -5 2 8; -7 pi 9]; 234s H = [5 2 8; 1 -3 1; 5 1 0]; 234s A_out = [0 0 0; 0 0 0; 0 0 0]; 234s B_out = [0 0 0; 0 0 0; 0 0 0]; 234s C_out = [1 1 1; 2 2 2; 1 1 1]; 234s D_out = [1 2 1; 1 2 1; 1 2 1]; 234s E_out = [1 1 1; 1 1 1; 1 1 1]; 234s F_out = [2 2 2; 2 2 2; 2 2 2]; 234s G_out = [7 13 6; 7+pi 16 7; 7+pi 16 7]; 234s H_out = [8 11 11; 8 11 11; 8 8 4]; 234s assert (rangefilt (A), A_out) 234s assert (rangefilt (B), B_out) 234s assert (rangefilt (C), C_out) 234s assert (rangefilt (D), D_out) 234s assert (rangefilt (E), E_out) 234s assert (rangefilt (F), F_out) 234s assert (rangefilt (G), G_out, eps) 234s assert (rangefilt (H), H_out) 234s 2 tests, 2 passed, 0 known failure, 0 skipped 234s [inst/mean2.m] 234s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/mean2.m 234s ***** test 234s ## This throws a division by zero warning which Matlab does not, but 234s ## that's because Matlab does not throw such warnings in the first 234s ## place. Octave does, so we do not turn the warning off. 234s warning ("off", "Octave:divide-by-zero", "local"); 234s assert (mean2 ([]), NaN) 234s ***** assert (mean2 (logical ([1 1; 0 0])), 0.5) 234s ***** assert (mean2 (ones (3, 3, 3)), 1) 234s ***** assert (mean2 (i), i) 234s ***** assert (mean2 ([1 i]), [0.5+0.5i]) 234s ***** assert (mean2 (speye (3)), sparse (1/3)) 234s 6 tests, 6 passed, 0 known failure, 0 skipped 234s [inst/imsharpen.m] 234s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imsharpen.m 234s ***** test 234s A = zeros (7, 7); 234s A(4,4) = 1; 234s B = [ 234s 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 234s 0.00000 -0.00238 -0.01064 -0.01755 -0.01064 -0.00238 0.00000 234s 0.00000 -0.01064 -0.04771 -0.07866 -0.04771 -0.01064 0.00000 234s 0.00000 -0.01755 -0.07866 1.67032 -0.07866 -0.01755 0.00000 234s 0.00000 -0.01064 -0.04771 -0.07866 -0.04771 -0.01064 0.00000 234s 0.00000 -0.00238 -0.01064 -0.01755 -0.01064 -0.00238 0.00000 234s 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000]; 234s assert (imsharpen (A), B, 5e-6) 234s ***** test 234s A = zeros (7, 7); 234s A(4,4) = 1; 234s B = [ 234s -0.0035147 -0.0065663 -0.0095539 -0.0108259 -0.0095539 -0.0065663 -0.0035147 234s -0.0065663 -0.0122674 -0.0178490 -0.0202255 -0.0178490 -0.0122674 -0.0065663 234s -0.0095539 -0.0178490 -0.0259701 -0.0294280 -0.0259701 -0.0178490 -0.0095539 234s -0.0108259 -0.0202255 -0.0294280 1.7666538 -0.0294280 -0.0202255 -0.0108259 234s -0.0095539 -0.0178490 -0.0259701 -0.0294280 -0.0259701 -0.0178490 -0.0095539 234s -0.0065663 -0.0122674 -0.0178490 -0.0202255 -0.0178490 -0.0122674 -0.0065663 234s -0.0035147 -0.0065663 -0.0095539 -0.0108259 -0.0095539 -0.0065663 -0.0035147]; 234s assert (imsharpen (A, "radius", 2), B, 5e-8) 234s ***** test 234s A = zeros (7, 7); 234s A(4,4) = 1; 234s assert (imsharpen (A, "radius", 0.01), A) 234s ***** test 234s A = zeros (7, 7); 234s A(4,4) = 1; 234s B = A; 234s B(3:5,3:5) = -0.000000000011110; 234s B(3:5,4) = -0.000002981278097; 234s B(4,3:5) = -0.000002981278097; 234s B(4,4) = 1.000011925156828; 234s assert (imsharpen (A, "radius", 0.2), B, eps*10) 234s ***** test 234s A = zeros (7, 7); 234s A(4,4) = 1; 234s B = [ 234s 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 234s 0.00000 -0.00297 -0.01331 -0.02194 -0.01331 -0.00297 0.00000 234s 0.00000 -0.01331 -0.05963 -0.09832 -0.05963 -0.01331 0.00000 234s 0.00000 -0.02194 -0.09832 1.83790 -0.09832 -0.02194 0.00000 234s 0.00000 -0.01331 -0.05963 -0.09832 -0.05963 -0.01331 0.00000 234s 0.00000 -0.00297 -0.01331 -0.02194 -0.01331 -0.00297 0.00000 234s 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000]; 234s assert (imsharpen (A, "amount", 1), B, 5e-6) 234s ***** test 234s A = zeros (7, 7); 234s A(4,4) = 1; 234s B = zeros (7, 7); 234s B(4,4) = 1.670317742690299; 234s B(4,3) = -0.078656265079077; 234s B(3,4) = -0.078656265079077; 234s B(4,5) = -0.078656265079077; 234s B(5,4) = -0.078656265079077; 234s assert (imsharpen (A, "Threshold", 0.117341762), B, eps*10) 234s ***** test 234s A = zeros (7, 7); 234s A(4,4) = 1; 234s B = zeros (7, 7); 234s B(4,4) = 1.670317742690299; 234s assert (imsharpen (A, "Threshold", 0.117341763), B, eps*10) 234s ***** test 234s A = zeros (7, 7, "uint8"); 234s A(3:5,3:5) = 150; 234s B = zeros (7, 7, "uint8"); 234s B(3:5,3:5) = 211; 234s B(4,3:5) = 195; 234s B(3:5,4) = 195; 234s B(4,4) = 175; 234s assert (imsharpen (A), B) 234s ***** test 234s A = zeros (7, 7, "uint8"); 234s A(3:5,3:5) = 100; 234s B = zeros (7, 7, "uint8"); 234s B(3:5,3:5) = 173; 234s assert (imsharpen (A, "radius", 4), B) 234s ***** test 234s A = zeros (7, 7, 3, "uint8"); 234s A(4,4,:) = 255; 234s assert (imsharpen (A), A) 234s ***** xtest 234s A = zeros(7,7,3, "uint8"); 234s A(4,4,1) = 255; 234s B = A; 234s B(4,4,2) = 146; # Octave result is 145; 234s B(4,4,3) = 100; # Octave result is 99; 234s assert (imsharpen (A), B) 234s !!!!! known failure 234s ASSERT errors for: assert (imsharpen (A),B) 234s 234s Location | Observed | Expected | Reason 234s (4,4,2) 145 146 Abs err 0 exceeds tol 0 by 0 234s (4,4,3) 99 100 Abs err 0 exceeds tol 0 by 0 234s ***** xtest 234s A = zeros (7, 7, 3, "uint8"); 234s A(3:5,3:5,1) = 100; 234s A(3:5,3:5,2) = 150; 234s B = A; 234s B(3:5,3:5,1) = 164; 234s B(3:5,4,1) = 146; # Octave result is 147 234s B(4,3:5,1) = 146; # Octave result is 145 234s B(4,4,1) = 125; # Octave result is 126 234s B(3:5,3:5,2) = 213; 234s B(3:5,4,2) = 195; # Octave result is 196 234s B(4,3:5,2) = 195; # Octave result is 196 234s B(4,4,2) = 175; 234s B(3:5,3:5,3) = 79; 234s B(3:5,4,3) = 62; 234s B(4,3:5,3) = 62; 234s B(4,4,3) = 40; # Octave result is 39 234s assert (imsharpen (A), B) 234s !!!!! known failure 234s ASSERT errors for: assert (imsharpen (A),B) 234s 234s Location | Observed | Expected | Reason 234s (4,3,1) 147 146 Abs err 1 exceeds tol 0 by 1 234s (3,4,1) 147 146 Abs err 1 exceeds tol 0 by 1 234s (4,4,1) 126 125 Abs err 1 exceeds tol 0 by 1 234s (5,4,1) 147 146 Abs err 1 exceeds tol 0 by 1 234s (4,5,1) 147 146 Abs err 1 exceeds tol 0 by 1 234s (4,3,2) 196 195 Abs err 1 exceeds tol 0 by 1 234s (3,4,2) 196 195 Abs err 1 exceeds tol 0 by 1 234s (5,4,2) 196 195 Abs err 1 exceeds tol 0 by 1 234s (4,5,2) 196 195 Abs err 1 exceeds tol 0 by 1 234s (4,4,3) 39 40 Abs err 0 exceeds tol 0 by 0 234s ***** error imsharpen () 234s ***** error imsharpen (ones (3, 3), "Radius") 234s ***** error imsharpen (ones (3, 3), "Radius", 0) 234s ***** error imsharpen (ones (3, 3), "Amount", -1) 234s ***** error imsharpen (ones (3, 3), "Threshold", 1.5) 234s ***** error imsharpen (ones (3, 3), "Threshold", -1) 235s ***** error imsharpen (ones (3, 3), "foo") 235s ***** error imsharpen ("foo") 235s 20 tests, 18 passed, 2 known failures, 0 skipped 235s [inst/fftconvn.m] 235s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/fftconvn.m 235s ***** function test_shapes (a, b, precision) 235s shapes = {"valid", "same", "full"}; 235s for i = 1:3 235s shape = shapes{i}; 235s assert (fftconvn (a, b, shape), convn (a, b, shape), precision); 235s endfor 235s assert (fftconvn (a, b), fftconvn (a, b, "full")); 235s ***** endfunction 235s ***** test test_shapes (randi (255, 100), randi (255, 10), 0.1) 235s ***** test test_shapes (randi (255, 100, 100), randi (255, 10, 10), 0.1) 235s ***** test test_shapes (randi (255, 100, 100, 100), randi (255, 10, 10, 10), 0.1) 237s ***** test test_shapes (randi (255, 100, 50, 20), randi (255, 10, 7), 0.1) 237s ***** test test_shapes (randi (255, 100, 50, 20), randi (255, 10), 0.1) 237s ***** test 237s for s = [55 56 57 58] 237s test_shapes (randi (255, 200, 200), randi (255, s, s), 0.1) 237s endfor 238s ***** test 238s for s = [203 204 205 206] 238s test_shapes (randi (255, s, s), randi (255, 52, 52), 0.1) 238s endfor 239s ***** test test_shapes (randi (255, 100, 100, "uint8"), randi (255, 10, 10, "uint8"), 0.1) 239s ***** test test_shapes (randi (255, 100, 100, "uint8"), randi (255, 10, 10), 0.1) 239s ***** test test_shapes (randi (255, 100, 100, "single"), randi (255, 10, 10, "single"), 0.9) 239s ***** test test_shapes (randi (255, 100, 100, "single"), randi (255, 10, 10), 0.9) 239s 11 tests, 11 passed, 0 known failure, 0 skipped 239s [inst/affine2d.m] 239s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/affine2d.m 239s ***** test 239s theta = 10; 239s A = [cosd(theta) -sind(theta) 0 239s sind(theta) cosd(theta) 0 239s 0 0 1]; 239s tform = affine2d (A); 239s [X, Y] = transformPointsForward (tform, 5, 10); 239s assert (X, 6.6605, 1.e-4) 239s assert (Y, 8.9798, 1.e-4) 239s 239s [U, V] = transformPointsInverse (tform, X, Y); 239s assert (U, 5, 5*eps) 239s assert (V, 10, 9*eps) 239s assert (isRigid (tform)) 239s assert (! isTranslation (tform)) 239s assert (isSimilarity (tform)) 239s ***** test 239s theta = 30; 239s tform = affine2d([ cosd(theta) sind(theta) 0 239s -sind(theta) cosd(theta) 0 239s 0 0 1]); 239s assert (tform.T, [ 0.86603 0.5 0 239s -0.5 0.86603 0 239s 0 0 1], 1.e-5); 239s invtform = invert(tform); 239s assert (invtform.T, [ 0.86603 -0.5 0 239s 0.5 0.86603 0 239s 0 0 1], 1.e-5); 239s assert (isRigid (tform)) 239s assert (! isTranslation (tform)) 239s assert (isSimilarity (tform)) 239s ***** test 239s tform = affine2d ([1 0 0; 0 1 0; 5 10 1]); 239s [X, Y] = transformPointsForward (tform, [1 2; 3 4; 5 6; 7 8]); 239s assert (round (X), [6; 8; 10; 12]) 239s assert (round (Y), [12; 14; 16; 18]) 239s 239s [U, V] = transformPointsInverse (tform, X, Y); 239s assert (round (U), [1; 3; 5; 7]) 239s assert (round (V), [2; 4; 6; 8]) 239s assert (isRigid (tform)) 239s assert (isTranslation (tform)) 239s assert (isSimilarity (tform)) 239s ***** test 239s tform = affine2d ([1 1e-16 0; 1e-16 1 0; 5 10 1]); 239s assert (isRigid (tform)) 239s tform = affine2d ([2 1e-16 0; 1e-16 1 0; 5 10 1]); 239s assert (! isRigid (tform)) 239s ***** test 239s theta = 10; 239s A = [cosd(theta) -sind(theta) 0 239s sind(theta) cosd(theta) 0 239s 0 0 1]; 239s tform = affine2d (A); 239s [xlim, ylim] = outputLimits (tform, [1 240], [1 291]); 239s assert (xlim, [1.1585 286.8855], 1.e-4) 239s assert (ylim, [-40.6908 286.4054], 1.e-4) 239s ***** test 239s A = [1 0 0 239s 0 1 0 239s 40 40 1]; 239s tform = affine2d (A); 239s assert (isRigid (tform)); 239s assert (isSimilarity (tform)); 239s assert (isTranslation (tform)); 239s ***** test 239s a = invert (affine2d ([1 2 0; 3 4 0; 10 20 1])); 239s b = affine2d(a.T); 239s assert (b.T, [-2, 1, 0; 1.5, -0.5, 0; -10, 0, 1], 5*eps) 239s ***** assert (isTranslation (affine2d ([1, 0, 0; 0, 1, 0; 40, 40, 1]))) 239s ***** assert (! isTranslation (affine2d ([1 0 0; 0 -1 0; 0 0 1]))) 239s ***** assert (! isRigid (affine2d ([1 0 0; 0 -1 0; 0 0 1]))) 239s ***** error affine2d ([0 0 0; 0 0 0]) 239s ***** error affine2d ([0 0 0 0 0 0 0 0 1]) 239s ***** error affine2d ([0 0 0; 0 0 0; 0 0 0]) 239s ***** error affine2d ([1 0 0; 0 1 1; 0 0 1]) 239s ***** error affine2d ([0 0 0; 0 0 0; 0 0 1]) 239s ***** error affine2d (1, 2) 239s ***** error outputLimits (affine2d()) 239s ***** test 239s tform = affine2d; 239s assert (tform.T, eye (3)) 239s assert (tform.Dimensionality, 2) 239s 18 tests, 18 passed, 0 known failure, 0 skipped 239s [inst/imfilter.m] 239s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imfilter.m 239s ***** test 239s img = [ 239s 8 2 6 7 4 3 7 8 4 1 239s 9 9 1 1 4 7 3 3 8 1 239s 2 9 8 3 7 6 5 8 6 5 239s 9 5 9 1 8 2 7 3 5 8 239s 6 8 7 1 2 2 9 9 9 9 239s 1 2 7 8 5 5 9 4 3 2 239s 3 4 7 7 5 9 5 2 7 6 239s 5 9 4 3 6 4 2 3 7 5 239s 9 8 6 9 7 6 2 6 4 1 239s 9 9 2 1 7 3 3 5 6 4]; 239s 239s expected_corr = [ 239s 46 53 30 34 44 42 40 51 42 19 239s 48 66 57 42 46 50 59 58 49 34 239s 48 67 55 54 44 58 50 50 64 39 239s 44 77 52 43 28 55 57 75 70 50 239s 29 51 65 51 42 50 60 62 55 42 239s 23 44 58 59 63 59 55 57 50 36 239s 36 50 52 56 56 47 48 45 47 39 239s 51 64 70 62 56 50 40 38 41 31 239s 58 72 50 49 58 45 41 42 49 28 239s 27 37 27 21 19 26 16 23 24 17]; 239s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2]), expected_corr) 239s 239s ## test order of options (and matching with defaults) 239s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2], 0), expected_corr) 239s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2], "corr"), expected_corr) 239s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2], "corr", 0), expected_corr) 239s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2], 0, "corr"), expected_corr) 239s 239s expected_conv = [ 239s 21 31 23 22 21 28 29 26 22 6 239s 47 55 43 43 51 44 49 64 44 24 239s 56 69 53 34 47 50 57 48 52 37 239s 38 70 60 56 41 57 54 61 66 44 239s 46 67 53 48 32 54 59 65 63 46 239s 28 56 63 50 36 54 58 66 63 47 239s 20 43 55 62 67 57 52 53 44 28 239s 42 51 54 61 57 53 44 46 48 39 239s 53 70 63 50 57 42 38 38 43 33 239s 53 62 50 54 52 44 38 40 40 20]; 239s assert (imfilter (img, [0 1 0; 2 1 1; 1 2 2], "conv"), expected_conv) 239s 239s ## alternative class 239s assert (imfilter (single (img), [0 1 0; 2 1 1; 1 2 2]), 239s single (expected_corr)) 239s assert (imfilter (int8 (img), [0 1 0; 2 1 1; 1 2 2]), 239s int8 (expected_corr)) 239s assert (imfilter (uint8 (img), [0 1 0; 2 1 1; 1 2 2]), 239s uint8 (expected_corr)) 239s 239s assert (imfilter (single (img), [0 1 0; 2 1 1; 1 2 2], "conv"), 239s single (expected_conv)) 239s assert (imfilter (int8 (img), [0 1 0; 2 1 1; 1 2 2], "conv"), 239s int8 (expected_conv)) 239s assert (imfilter (uint8 (img), [0 1 0; 2 1 1; 1 2 2], "conv"), 239s uint8 (expected_conv)) 239s 239s ***** test 239s I = zeros (6); 239s I(2:3,2:3) = 1; 239s F = zeros (4); 239s F(2,2:3) = 1; 239s result = [0 0 0 0 0 0 239s 1 2 1 0 0 0 239s 1 2 1 0 0 0 239s 0 0 0 0 0 0 239s 0 0 0 0 0 0 239s 0 0 0 0 0 0]; 239s assert (imfilter (I, F), result) 239s 2 tests, 2 passed, 0 known failure, 0 skipped 239s [inst/lab2uint16.m] 239s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/lab2uint16.m 239s ***** test 239s cm_uint16 = uint16 ([0 127 128 383 384 65151 65152 65279 65280 65281 65534 65535]); 239s cm_uint16 = repmat (cm_uint16(:), [1 3]); 239s im2d_uint16 = reshape (cm_uint16, [4 3 3]); 239s imnd_uint16 = permute (im2d_uint16, [1 4 3 2]); 239s 239s cm_uint8 = uint8 ([0 0 1 1 2 254 255 255 255 255 255 255]); 239s cm_uint8 = repmat (cm_uint8(:), [1 3]); 239s assert (lab2uint8 (cm_uint16), cm_uint8) 239s im2d_uint8 = reshape (cm_uint8, [4 3 3]); 239s assert (lab2uint8 (im2d_uint16), im2d_uint8) 239s assert (lab2uint8 (imnd_uint16), permute (im2d_uint8, [1 4 3 2])) 239s 239s l1 = 100/65280; 239s ab1 = 255/65280; 239s cm = [ 239s 0 -128 239s 127*l1 -128+(ab1*127) 239s 128*l1 -128+(ab1*128) 239s 383*l1 -128+(ab1*383) 239s 384*l1 -128+(ab1*384) 239s 65151*l1 -128+(ab1*65151) 239s 65152*l1 -128+(ab1*65152) 239s 65279*l1 -128+(ab1*65279) 239s 100 127 239s 65281*l1 -128+(ab1*65281) 239s 65534*l1 -128+(ab1*65534) 239s 65535*l1 -128+(ab1*65535)]; 239s cm(:,3) = cm(:,2); 239s im2d = reshape (cm, [4 3 3]); 239s imnd = permute (im2d, [1 4 3 2]); 239s 239s assert (lab2double (cm_uint16), cm) 239s assert (lab2double (im2d_uint16), im2d) 239s assert (lab2double (imnd_uint16), imnd) 239s 239s assert (lab2single (cm_uint16), single (cm)) 239s assert (lab2single (im2d_uint16), single (im2d)) 239s assert (lab2single (imnd_uint16), single (imnd)) 239s 1 test, 1 passed, 0 known failure, 0 skipped 239s [inst/imsmooth.m] 239s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imsmooth.m 239s ***** test 239s ## checking Bilateral Filter 239s 239s ## constant image remain the same after Bilateral Filter 239s A = uint8(255*ones(128,128)); 239s B = uint8(imsmooth(A, 'Bilateral', 2, 10)); 239s assert (A,B); 239s 239s ## Bilateral Filter does not smear outlayers 239s A = zeros(256,256); 239s A(128,128) = 256; 239s ## bilateral filter does not smear outlayers 239s B = imsmooth(A, 'Bilateral', 2, 10); 239s assert (A,B,1.e-140); 239s 239s ## When sigma_r is large the filter behaves almost 239s ## like the isotropic Gaussian filter 239s 239s A0 = fspecial ('gaussian',100,100); 239s A = uint8(A0/max(max(A0))*255); 239s B1 = imsmooth(A, 'Bilateral', 2, 100); 239s B2 = imsmooth(A, 'Gaussian', 2); 239s assert (B1,B2); 240s 1 test, 1 passed, 0 known failure, 0 skipped 240s [inst/histeq.m] 240s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/histeq.m 240s ***** assert (histeq ([]), []); 240s ***** assert (histeq (0), 1); 240s ***** assert (histeq (1), 1); 240s ***** assert (histeq (1.5), 1); 240s ***** assert (histeq (zeros (100, 200)), ones (100, 200)); # matrix 240s ***** xtest assert (histeq ([0 1]), [0.4920634921 1], 10^-8); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq ([0, 1]),[0.4920634921, 1],10 ^ -8) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.5 0.49206 Abs err 0.0079365 exceeds tol 1e-08 by 0.008 240s ***** xtest assert (histeq ([0 1]'), [0.4920634921 1]', 10^-8); # column array 240s !!!!! known failure 240s ASSERT errors for: assert (histeq ([0, 1]'),[0.4920634921, 1]',10 ^ -8) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.5 0.49206 Abs err 0.0079365 exceeds tol 1e-08 by 0.008 240s ***** xtest assert (histeq ([0 255]), [0.4920634921 1], 10^-8); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq ([0, 255]),[0.4920634921, 1],10 ^ -8) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.5 0.49206 Abs err 0.0079365 exceeds tol 1e-08 by 0.008 240s ***** xtest assert (histeq (uint8 ([0 1])), [ 125 190]); # uint8 240s !!!!! known failure 240s ASSERT errors for: assert (histeq (uint8 ([0, 1])),[125, 190]) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.5 125 Abs err 124.5 exceeds tol 0 by 1e+02 240s (2) 1 190 Abs err 189 exceeds tol 0 by 2e+02 240s ***** xtest assert (histeq (uint8 ([0 255])), [ 125 255]); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq (uint8 ([0, 255])),[125, 255]) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.5 125 Abs err 124.5 exceeds tol 0 by 1e+02 240s (2) 1 255 Abs err 254 exceeds tol 0 by 3e+02 240s ***** xtest assert (histeq (uint16 ([0 1])), [65535 65535]); # uint16 240s !!!!! known failure 240s ASSERT errors for: assert (histeq (uint16 ([0, 1])),[65535, 65535]) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.5 65535 Abs err 65534 exceeds tol 0 by 7e+04 240s (2) 1 65535 Abs err 65534 exceeds tol 0 by 7e+04 240s ***** xtest assert (histeq (uint16 ([0 255])), [32247 48891]); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq (uint16 ([0, 255])),[32247, 48891]) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.5 32247 Abs err 32246 exceeds tol 0 by 3e+04 240s (2) 1 48891 Abs err 48890 exceeds tol 0 by 5e+04 240s ***** xtest assert (histeq (uint16 ([0 256])), [32247 48891]); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq (uint16 ([0, 256])),[32247, 48891]) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.5 32247 Abs err 32246 exceeds tol 0 by 3e+04 240s (2) 1 48891 Abs err 48890 exceeds tol 0 by 5e+04 240s ***** xtest assert (histeq (uint16 ([0 65535])), [32247 65535]); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq (uint16 ([0, 65535])),[32247, 65535]) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.5 32247 Abs err 32246 exceeds tol 0 by 3e+04 240s (2) 1 65535 Abs err 65534 exceeds tol 0 by 7e+04 240s ***** test assert (histeq ([0 1 1] ), [ 1/3 1 1] , 10^-8); 240s ***** test assert (histeq ([0 0 1]'), [ 2/3 2/3 1]', 10^-8); 240s ***** xtest assert (histeq ([0 1 2] ), [ 1/3 1 1] , 10^-8); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq ([0, 1, 2]),[1 / 3, 1, 1],10 ^ -8) 240s 240s Location | Observed | Expected | Reason 240s (2) 0.66667 1 Abs err 0.33333 exceeds tol 1e-08 by 0.3 240s ***** xtest assert (histeq (uint8 ([0 1 2])), [ 85 125 215]); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq (uint8 ([0, 1, 2])),[85, 125, 215]) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.33333 85 Abs err 84.667 exceeds tol 0 by 8e+01 240s (2) 0.66667 125 Abs err 124.33 exceeds tol 0 by 1e+02 240s (3) 1 215 Abs err 214 exceeds tol 0 by 2e+02 240s ***** xtest assert (histeq (uint16 ([0 1 2])), [65535 65535 65535]); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq (uint16 ([0, 1, 2])),[65535, 65535, 65535]) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.33333 65535 Abs err 65535 exceeds tol 0 by 7e+04 240s (2) 0.66667 65535 Abs err 65534 exceeds tol 0 by 7e+04 240s (3) 1 65535 Abs err 65534 exceeds tol 0 by 7e+04 240s ***** xtest assert (histeq (uint16 ([0 100 200])), [43690 43690 55133]); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq (uint16 ([0, 100, 200])),[43690, 43690, 55133]) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.33333 43690 Abs err 43690 exceeds tol 0 by 4e+04 240s (2) 0.66667 43690 Abs err 43689 exceeds tol 0 by 4e+04 240s (3) 1 55133 Abs err 55132 exceeds tol 0 by 6e+04 240s ***** xtest 240s J = [20 32 57 81 105 125 150 174 198 223 247]; 240s assert (histeq (uint8 (0:10:100)), J); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq (uint8 (0:10:100)),J) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.090909 20 Abs err 19.909 exceeds tol 0 by 2e+01 240s (2) 0.18182 32 Abs err 31.818 exceeds tol 0 by 3e+01 240s (3) 0.27273 57 Abs err 56.727 exceeds tol 0 by 6e+01 240s (4) 0.36364 81 Abs err 80.636 exceeds tol 0 by 8e+01 240s (5) 0.45455 105 Abs err 104.55 exceeds tol 0 by 1e+02 240s (6) 0.54545 125 Abs err 124.45 exceeds tol 0 by 1e+02 240s (7) 0.63636 150 Abs err 149.36 exceeds tol 0 by 1e+02 240s (8) 0.72727 174 Abs err 173.27 exceeds tol 0 by 2e+02 240s (9) 0.81818 198 Abs err 197.18 exceeds tol 0 by 2e+02 240s (10) 0.90909 223 Abs err 222.09 exceeds tol 0 by 2e+02 240s (11) 1 247 Abs err 246 exceeds tol 0 by 2e+02 240s ***** xtest 240s J = [0.0793650794 240s 0.1269841270 240s 0.2222222222 240s 0.3174603175 240s 0.4126984127 240s 0.4920634921 240s 0.5873015873 240s 0.6825396825 240s 0.7777777778 240s 0.8730158730 240s 1.0000000000]; 240s assert (histeq (0:0.1:1), J', 10^-8); 240s !!!!! known failure 240s ASSERT errors for: assert (histeq (0:0.1:1),J',10 ^ -8) 240s 240s Location | Observed | Expected | Reason 240s (1) 0.090909 0.079365 Abs err 0.011544 exceeds tol 1e-08 by 0.01 240s (2) 0.18182 0.12698 Abs err 0.054834 exceeds tol 1e-08 by 0.05 240s (3) 0.27273 0.22222 Abs err 0.050505 exceeds tol 1e-08 by 0.05 240s (4) 0.36364 0.31746 Abs err 0.046176 exceeds tol 1e-08 by 0.05 240s (5) 0.45455 0.4127 Abs err 0.041847 exceeds tol 1e-08 by 0.04 240s (6) 0.54545 0.49206 Abs err 0.053391 exceeds tol 1e-08 by 0.05 240s (7) 0.63636 0.5873 Abs err 0.049062 exceeds tol 1e-08 by 0.05 240s (8) 0.72727 0.68254 Abs err 0.044733 exceeds tol 1e-08 by 0.04 240s (9) 0.81818 0.77778 Abs err 0.040404 exceeds tol 1e-08 by 0.04 240s (10) 0.90909 0.87302 Abs err 0.036075 exceeds tol 1e-08 by 0.04 240s 22 tests, 7 passed, 15 known failures, 0 skipped 240s [inst/imhmin.m] 240s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imhmin.m 240s ***** shared im0, im0_h2_out 240s im0 = uint8 ([5 5 5 5 5; 240s 5 4 3 4 5; 240s 5 3 0 3 5; 240s 5 4 3 4 5; 240s 5 5 5 5 5]); 240s im0_h2_out = uint8 ([5 5 5 5 5; 240s 5 4 3 4 5; 240s 5 3 2 3 5; 240s 5 4 3 4 5; 240s 5 5 5 5 5]); 240s ***** error imhmin () 240s ***** error imhmin (im0) 241s ***** error imhmin ("hello", 2) 241s ***** error imhmin (i.*im0, 2) 241s ***** error imhmin (sparse (im0), 2) 241s ***** error imhmin (im0, -2) 241s ***** error imhmin (im0, 'a') 241s ***** error imhmin (im0, ones (2)) 241s ***** error imhmin (im0, 2*i) 241s ***** assert (imhmin (im0, 2), im0_h2_out) 241s ***** assert (imhmin (double (im0), 2), double (im0_h2_out)) 241s ***** assert (imhmin (im0, 2, 8), im0_h2_out) 241s ***** assert (imhmin (im0, 2, 4), im0_h2_out) 241s ***** assert (imhmin (im0, 2, true (3)), im0_h2_out) 241s ***** test 241s out = imhmin (double (im0), 2); 241s assert (size (out), size (im0)) 241s assert (class (out), "double") 241s ***** test 241s out = imhmin (single (im0), 2); 241s assert (size (out), size (im0)) 241s assert (class (out), "single") 241s ***** test 241s out = imhmin (uint8 (im0), 2); 241s assert (size (out), size (im0)) 241s assert (class (out), "uint8") 241s ***** test 241s out = imhmin (uint16 (im0), 2); 241s assert (size (out), size (im0)) 241s assert (class (out), "uint16") 241s ***** test 241s im = cat (3, im0, im0, im0, im0); 241s out = imhmin (im, 2); 241s assert (size (out), size (im)) 241s ***** test 241s im = 10 .* ones (10); 241s im(2:4, 2:4) = 7; 241s im(6:8, 6:8) = 2; 241s expected_4 = 10 .* ones (10); 241s expected_4(6:8, 6:8) = 6; 241s expected_2 = 10 .* ones (10); 241s expected_2(6:8, 6:8) = 4; 241s expected_2(2:4, 2:4) = 9; 241s out = imhmin (im, 4); 241s assert (out, expected_4, eps) 241s out = imhmin (im, 2); 241s assert (out, expected_2, eps) 241s out = imhmin (0.1.*im, 0.4); 241s assert (out, 0.1 .* expected_4, eps) 241s ***** test 241s im2 = 10 .* ones (10); 241s im2(2:4, 2:4) = 7; 241s im2(6:9, 6:9)=2; 241s im2(5, 5)=2; 241s im2(6, 7)=10; 241s im2(7, 8)=10; 241s expected_4 = 10 .* ones (10); 241s expected_4(6:9, 6:9) = 6; 241s expected_4(5, 5) = 6; 241s expected_4(6, 7) = 10; 241s expected_4(7, 8) = 10; 241s expected_8 = expected_4; 241s expected_8(2:4, 2:4) = 7; 241s out2 = imhmin (im2, 4); 241s assert (out2, expected_8, eps) 241s out2 = imhmin (im2, 4, 4); 241s assert (out2, expected_4, eps) 241s out2 = imhmin (im2, 4, 8); 241s assert (out2, expected_8, eps) 241s 21 tests, 21 passed, 0 known failure, 0 skipped 241s [inst/bwunpack.m] 241s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/bwunpack.m 241s ***** error id=Octave:invalid-fun-call bwunpack () 241s ***** error bwunpack (uint8 (1)) 241s ***** error bwunpack (uint32 (1), -1) 241s ***** error bwunpack (uint32 (1), 4.2) 241s ***** xtest 241s ## bug #55521 241s assert (bwunpack (uint32 (2.^[0:31])), logical (eye (32))) 241s ***** xtest 241s ## bug #55521 241s assert (bwunpack (uint32 (repmat (7, [1 3 3 3])), 3), true (3, 3, 3, 3)) 241s ***** assert (bwunpack (uint32 (zeros (0, 0))), false (0, 0)) 241s ***** assert (bwunpack (uint32 (zeros (0, 0)), 0), false (0, 0)) 241s ***** assert (bwunpack (uint32 (zeros (0, 5)), 0), false (0, 5)) 241s ***** assert (bwunpack (uint32 (zeros (0, 5, 7)), 0), false (0, 5, 7)) 241s ***** assert (bwunpack (uint32 (zeros (1, 0))), false (32, 0)) 241s ***** assert (bwunpack (uint32 (zeros (2, 0, 7))), false (64, 0, 7)) 241s ***** assert (bwunpack (uint32 (zeros (2, 0, 7))), false (64, 0, 7)) 241s ***** assert (bwunpack (uint32 (zeros (2, 0, 7)), 60), false (60, 0, 7)) 241s ***** error 241s bwunpack (uint32 (1), 1042) 241s 15 tests, 15 passed, 0 known failure, 0 skipped 241s [inst/imcast.m] 241s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imcast.m 241s ***** test 241s im = randi ([0 255], 40, "uint8"); 241s assert (imcast (im, "uint8"), im2uint8 (im)) 241s assert (imcast (im, "uint16"), im2uint16 (im)) 241s assert (imcast (im, "single"), im2single (im)) 241s assert (imcast (im, "uint8", "indexed"), im2uint8 (im, "indexed")) 241s assert (imcast (im, "uint16", "indexed"), im2uint16 (im, "indexed")) 241s assert (imcast (im, "single", "indexed"), im2single (im, "indexed")) 241s ***** test 241s im = randi ([1 256], 40, "double"); 241s assert (imcast (im, "uint8"), im2uint8 (im)) 241s assert (imcast (im, "uint8", "indexed"), im2uint8 (im, "indexed")) 241s assert (imcast (im, "single", "indexed"), im2single (im, "indexed")) 241s ***** test 241s im = randi ([0 65535], 40, "uint16"); 241s assert (imcast (im, "uint8"), im2uint8 (im)) 241s assert (imcast (im, "single"), im2single (im)) 241s assert (imcast (im, "single", "indexed"), im2single (im, "indexed")) 241s ***** test 241s im = randi ([1 255], 40, "double"); 241s assert (imcast (im, "uint8", "indexed"), im2uint8 (im, "indexed")) 241s assert (imcast (im, "single", "indexed"), im2single (im, "indexed")) 241s ***** test 241s im = rand (40); 241s assert (imcast (im, "uint8"), im2uint8 (im)) 241s ***** error imcast (randi (127, 40, "int8"), "uint8") 241s ***** error imcast (randi (255, 40, "uint8"), "uint32") 241s ***** error imcast (randi (255, 40, "uint8"), "not a class") 241s ***** error imcast (randi ([0 65535], 40, "uint16"), "uint8", "indexed") 241s ***** assert (imcast ([0 1 .2; 2 -0 Inf], "logical"), logical ([0 1 1; 1 0 1])) 241s 10 tests, 10 passed, 0 known failure, 0 skipped 241s [inst/im2bw.m] 241s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/im2bw.m 241s ***** assert(im2bw ([0 0.4 0.5 0.6 1], 0.5), logical([0 0 0 1 1])); # basic usage 241s ***** assert(im2bw (uint8 ([0 100 255]), 0.5), logical([0 0 1])); # with a uint8 input 241s ***** warning bw = im2bw (logical ([0 1 0])); 241s ***** warning bw = im2bw (logical ([0 1 0]), 1); 241s ***** test 241s warning ("off", "all", "local"); 241s assert (im2bw (logical ([0 1 0])), logical ([0 1 0])) 241s assert (im2bw (logical ([0 1 0]), 0), logical ([0 1 0])) 241s assert (im2bw (logical ([0 1 0]), 1), logical ([0 1 0])) 241s ***** assert (nnz (im2bw (uint8 ([0:255]), 0.9)), 26) 241s ***** test 241s img = uint8 ([0:255]); 241s s = 0; 241s for i=0:.1:1 241s s += nnz (im2bw (img, i)); 241s endfor 241s assert (s, 1405) 241s ***** assert (nnz (im2bw (int16 ([-128:127]), 0.499)), 194) 241s ***** assert (nnz (im2bw (int16 ([-128:127]), 0.500)), 128) 241s ***** assert (nnz (im2bw (int16 ([-128:127]), 0.501)), 62) 241s ***** test 241s img = uint16 ([0:intmax("uint16")]); 241s s = 0; 241s for i=0:.1:1 241s s += nnz (im2bw (img, i)); 241s endfor 241s assert (s, 360445) 241s ***** test 241s img = int16 ([intmin("int16"):intmax("int16")]); 241s s = 0; 241s for i=0:.1:1 241s s += nnz (im2bw (img, i)); 241s endfor 241s assert (s, 360445) 241s ***** test 241s im = [((randn(10)/10)+.3) ((randn(10)/10)+.7)]; 241s assert (im2bw (im, "Otsu"), im2bw (im, graythresh (im, "Otsu"))) 241s assert (im2bw (im, "moments"), im2bw (im, graythresh (im, "moments"))) 241s ***** test 241s im = [((randn(10)/10)+.3) ((randn(10)/10)+.7)]; 241s im = reshape (im, [10 10 1 2]); 241s assert (im2bw (im, "Otsu"), im2bw (im, graythresh (im, "Otsu"))) 241s assert (im2bw (im, "moments"), im2bw (im, graythresh (im, "moments"))) 241s 14 tests, 14 passed, 0 known failure, 0 skipped 241s [inst/imrotate.m] 241s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imrotate.m 241s ***** test 241s ## Verify minimal loss across six rotations that add up to 360 +/- 1 deg.: 241s methods = { "nearest", "bilinear", "bicubic", "Fourier" }; 241s angles = [ 59 60 61 ]; 241s tolerances = [ 7.4 8.5 8.6 # nearest 241s 3.5 3.1 3.5 # bilinear 241s 2.7 2.0 2.7 # bicubic 241s 2.7 1.6 2.8 ]/8; # Fourier 241s 241s # This is peaks(50) without the dependency on the plot package 241s x = y = linspace(-3,3,50); 241s [X,Y] = meshgrid(x,y); 241s x = 3*(1-X).^2.*exp(-X.^2 - (Y+1).^2) ... 241s - 10*(X/5 - X.^3 - Y.^5).*exp(-X.^2-Y.^2) ... 241s - 1/3*exp(-(X+1).^2 - Y.^2); 241s 241s x -= min(x(:)); # Fourier does not handle neg. values well 241s x = x./max(x(:)); 241s for m = 1:(length(methods)) 241s y = x; 241s for i = 1:5 241s y = imrotate(y, 60, methods{m}, "crop", 0); 241s end 241s for a = 1:(length(angles)) 241s assert(norm((x - imrotate(y, angles(a), methods{m}, "crop", 0)) 241s (10:40, 10:40)) < tolerances(m,a)); 241s endfor 241s endfor 241s ***** xtest 241s ## Verify exactness of near-90 and 90-degree rotations: 241s X = rand(99); 241s for angle = [90 180 270] 241s for da = [-0.1 0.1] 241s Y = imrotate(X, angle + da , "nearest", :, 0); 241s Z = imrotate(Y, -(angle + da), "nearest", :, 0); 241s assert(norm(X - Z) == 0); # exact zero-sum rotation 241s assert(norm(Y - imrotate(X, angle, "nearest", :, 0)) == 0); # near zero-sum 241s endfor 241s endfor 241s !!!!! known failure 241s assert (norm (X - Z) == 0) failed 241s ***** test 241s ## Verify preserved pixel density: 241s methods = { "nearest", "bilinear", "bicubic", "Fourier" }; 241s ## This test does not seem to do justice to the Fourier method...: 241s tolerances = [ 4 2.2 2.0 209 ]; 241s range = 3:9:100; 241s for m = 1:(length(methods)) 241s t = []; 241s for n = range 241s t(end + 1) = sum(imrotate(eye(n), 20, methods{m}, :, 0)(:)); 241s endfor 241s assert(t, range, tolerances(m)); 241s endfor 242s ***** test 242s a = reshape (1:18, [2 3 3]); 242s 242s a90(:,:,1) = [5 6; 3 4; 1 2]; 242s a90(:,:,2) = a90(:,:,1) + 6; 242s a90(:,:,3) = a90(:,:,2) + 6; 242s 242s a180(:,:,1) = [6 4 2; 5 3 1]; 242s a180(:,:,2) = a180(:,:,1) + 6; 242s a180(:,:,3) = a180(:,:,2) + 6; 242s 242s am90(:,:,1) = [2 1; 4 3; 6 5]; 242s am90(:,:,2) = am90(:,:,1) + 6; 242s am90(:,:,3) = am90(:,:,2) + 6; 242s 242s assert (imrotate (a, 0), a); 242s assert (imrotate (a, 90), a90); 242s assert (imrotate (a, -90), am90); 242s assert (imrotate (a, 180), a180); 242s assert (imrotate (a, -180), a180); 242s assert (imrotate (a, 270), am90); 242s assert (imrotate (a, -270), a90); 242s assert (imrotate (a, 360), a); 242s ***** test 242s # bug #53309 242s in = ones (2, 4); 242s out = [0 1 1 0; 0 1 1 0]; 242s assert (imrotate (in, 90, "nearest", "crop"), out) 242s assert (imrotate (repmat (in, [1 1 3]), 90, "nearest", "crop"), 242s repmat (out, [1 1 3])) 242s ***** test 242s ## bug #53309 242s rgbs = { 242s rand(5, 4, 3), # normal path, does interpolation 242s rand(4, 4, 3), # rows and columns, same number, simple rotdim 242s rand(4, 6, 3), # rows and columns differents, but of length even 242s }; 242s for rgb_i = 1:numel(rgbs) 242s rgb = rgbs{rgb_i}; 242s rot = imrotate (rgb, 90, "nearest", "crop"); 242s for i = 1:3 242s assert (rot(:,:,i), imrotate (rgb(:,:,i), 90, "nearest", "crop")) 242s endfor 242s ## same check but with an integer class 242s rgb = im2uint8 (rgb); 242s rot = imrotate (rgb, 90, "nearest", "crop"); 242s assert (class (rgb), class (rot)) 242s for i = 1:3 242s assert (rot(:,:,i), imrotate (rgb(:,:,i), 90, "nearest", "crop")) 242s endfor 242s endfor 242s 6 tests, 5 passed, 1 known failure, 0 skipped 242s [inst/imresize.m] 242s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imresize.m 242s ***** test 242s 242s in = [116 227 153 69 146 194 59 130 139 106 242s 2 47 137 249 90 75 16 24 158 44 242s 155 68 46 84 166 156 69 204 32 152 242s 71 221 137 230 210 153 192 115 30 118 242s 107 143 108 52 51 73 101 21 175 90 242s 54 158 143 77 26 168 113 229 165 225 242s 9 47 133 135 130 207 236 43 19 73]; 242s assert (imresize (uint8 (in), 1, "nearest"), uint8 (in)) 242s assert (imresize (uint8 (in), 1, "bicubic"), uint8 (in)) 242s 242s out = [116 116 227 227 153 153 69 69 146 146 194 194 59 59 130 130 139 139 106 106 242s 116 116 227 227 153 153 69 69 146 146 194 194 59 59 130 130 139 139 106 106 242s 2 2 47 47 137 137 249 249 90 90 75 75 16 16 24 24 158 158 44 44 242s 2 2 47 47 137 137 249 249 90 90 75 75 16 16 24 24 158 158 44 44 242s 155 155 68 68 46 46 84 84 166 166 156 156 69 69 204 204 32 32 152 152 242s 155 155 68 68 46 46 84 84 166 166 156 156 69 69 204 204 32 32 152 152 242s 71 71 221 221 137 137 230 230 210 210 153 153 192 192 115 115 30 30 118 118 242s 71 71 221 221 137 137 230 230 210 210 153 153 192 192 115 115 30 30 118 118 242s 107 107 143 143 108 108 52 52 51 51 73 73 101 101 21 21 175 175 90 90 242s 107 107 143 143 108 108 52 52 51 51 73 73 101 101 21 21 175 175 90 90 242s 54 54 158 158 143 143 77 77 26 26 168 168 113 113 229 229 165 165 225 225 242s 54 54 158 158 143 143 77 77 26 26 168 168 113 113 229 229 165 165 225 225 242s 9 9 47 47 133 133 135 135 130 130 207 207 236 236 43 43 19 19 73 73 242s 9 9 47 47 133 133 135 135 130 130 207 207 236 236 43 43 19 19 73 73]; 242s assert (imresize (uint8 (in), 2, "nearest"), uint8 (out)) 242s assert (imresize (uint8 (in), 2, "neAreST"), uint8 (out)) 242s assert (imresize (uint8 (in), [14 NaN], "nearest"), uint8 (out)) 242s assert (imresize (uint8 (in), [NaN 20], "nearest"), uint8 (out)) 242s 242s out = [116 116 227 227 153 153 69 69 146 146 194 194 59 59 130 130 139 139 106 106 242s 2 2 47 47 137 137 249 249 90 90 75 75 16 16 24 24 158 158 44 44 242s 155 155 68 68 46 46 84 84 166 166 156 156 69 69 204 204 32 32 152 152 242s 71 71 221 221 137 137 230 230 210 210 153 153 192 192 115 115 30 30 118 118 242s 107 107 143 143 108 108 52 52 51 51 73 73 101 101 21 21 175 175 90 90 242s 54 54 158 158 143 143 77 77 26 26 168 168 113 113 229 229 165 165 225 225 242s 9 9 47 47 133 133 135 135 130 130 207 207 236 236 43 43 19 19 73 73]; 242s assert (imresize (uint8 (in), [7 20], "nearest"), uint8 (out)) 242s 242s out = [116 227 153 69 146 194 59 130 139 106 242s 116 227 153 69 146 194 59 130 139 106 242s 2 47 137 249 90 75 16 24 158 44 242s 2 47 137 249 90 75 16 24 158 44 242s 155 68 46 84 166 156 69 204 32 152 242s 155 68 46 84 166 156 69 204 32 152 242s 71 221 137 230 210 153 192 115 30 118 242s 71 221 137 230 210 153 192 115 30 118 242s 107 143 108 52 51 73 101 21 175 90 242s 107 143 108 52 51 73 101 21 175 90 242s 54 158 143 77 26 168 113 229 165 225 242s 54 158 143 77 26 168 113 229 165 225 242s 9 47 133 135 130 207 236 43 19 73 242s 9 47 133 135 130 207 236 43 19 73]; 242s assert (imresize (uint8 (in), [14 10], "nearest"), uint8 (out)) 242s 242s assert (imresize (uint8 (in), 1.5, "box"), imresize (uint8 (in), 1.5, "MeTHoD", "nearest")) 242s assert (imresize (uint8 (in), "Scale", 1.5, "Method", "box"), imresize (uint8 (in), 1.5, {@(h) -0.5 < h & h <= 0.5, 1})) 242s assert (imresize (uint8 (in), 1.5, "bicubic"), imresize (uint8 (in), 1.5, "cubic")) 242s assert (imresize (uint8 (in), [NaN, size(in,2)*1.5], "bicubic"), imresize (uint8 (in), 1.5, "cubic")) 242s assert (imresize (uint8 (in), [size(in,1)*1.5, NaN], "bicubic"), imresize (uint8 (in), 1.5, "cubic")) 242s assert (imresize (uint8 (in), "outputsize", [size(in,1)*1.5, NaN], "method", "bicubic"), imresize (uint8 (in), 1.5, "cubic")) 242s assert (imresize (uint8 (in), 1.5, "linear"), imresize (uint8 (in), 1.5, "LIneAR")) 242s assert (imresize (uint8 (in), 1.5, "linear"), imresize (uint8 (in), 1.5, "triangle")) 242s ***** test 242s in = [116 227 153 69 146 194 59 130 139 106 242s 2 47 137 249 90 75 16 24 158 44 242s 155 68 46 84 166 156 69 204 32 152 242s 71 221 137 230 210 153 192 115 30 118 242s 107 143 108 52 51 73 101 21 175 90 242s 54 158 143 77 26 168 113 229 165 225 242s 9 47 133 135 130 207 236 43 19 73 242s 129 60 59 243 64 181 249 56 32 86]; 242s 242s out = imresize (in, 0.5, "nearest", "Antialiasing", false); 242s for x = 1:columns (out) 242s for y = 1:rows (out) 242s x_in = 2 * (x-1) + 1; 242s y_in = 2 * (y-1) + 1; 242s sub = in(y_in:y_in+1, x_in:x_in+1); 242s assert (any (any (sub == out(y, x)))) 242s endfor 242s endfor 242s 242s out = imresize (in, 0.5, "nearest", "Antialiasing", true); 242s for x = 1:columns (out) 242s for y = 1:rows (out) 242s x_in = 2 * (x-1) + 1; 242s y_in = 2 * (y-1) + 1; 242s val = mean (mean (in(y_in:y_in+1, x_in:x_in+1))); 242s assert (val, out(y, x)) 242s endfor 242s endfor 242s 242s out = imresize (in, "Scale", [0.5, 2], "Method", "nearest", "Antialiasing", true); 242s for x = 1:columns (out) 242s for y = 1:rows (out) 242s x_in = floor (0.5 * (x-1) + 1); 242s y_in = 2 * (y-1) + 1; 242s val = mean (in(y_in:y_in+1, x_in)); 242s assert (val, out(y, x)) 242s endfor 242s endfor 242s 242s out = imresize (in, "Scale", [2, 0.5], "Method", "nearest", "Antialiasing", true); 242s for x = 1:columns (out) 242s for y = 1:rows (out) 242s x_in = 2 * (x-1) + 1; 242s y_in = floor (0.5 * (y-1) + 1); 242s val = mean (in(y_in, x_in:x_in+1)); 242s assert (val, out(y, x)) 242s endfor 242s endfor 242s ***** test 242s 242s assert (imresize (repmat (5, [3 3]), 2), repmat (5, [6 6]), eps*100) 242s 242s assert (imresize (repmat (5, [3 3 2]), 2), repmat (5, [6 6 2]), eps*100) 242s ***** test 242s 242s for channels = 1:3 242s in = rand (5, 4, channels); 242s for method = {"nearest", "bilinear", "bicubic"} 242s out = imresize (in, 2, method{1}); 242s for i = 1:size (in, 3) 242s assert (out(:, :, i), imresize (in(:, :, i), 2, method{1})) 242s endfor 242s endfor 242s endfor 242s ***** test 242s 242s for channels = 1:3 242s in = rand (5, 4, channels); 242s out = imresize (in, [1, columns(in)], "nearest", "Antialiasing", true); 242s for i = 1:columns (in) 242s assert (out(1, i, :), mean (in(:, i, :), 1), 10*eps) 242s endfor 242s endfor 242s ***** test 242s 242s for channels = 1:3 242s in = rand (5, 4, channels); 242s out = imresize (in, [rows(in), 1], "nearest", "Antialiasing", true); 242s for i = 1:rows (in) 242s assert (out(i, 1, :), mean (in(i, :, :), 2), 10*eps) 242s endfor 242s endfor 242s ***** test 242s 242s for channels = 1:3 242s in = rand (5, 4, channels); 242s out = imresize (in, [1, 1], "nearest", "Antialiasing", true); 242s assert (out(1, 1, :), mean (mean (in(:, :, :))), 10*eps) 242s endfor 242s ***** test 242s 242s in = [116 227 153 69 146 194 59 130 139 106 242s 2 47 137 249 90 75 16 24 158 44 242s 155 68 46 84 166 156 69 204 32 152 242s 71 221 137 230 210 153 192 115 30 118 242s 107 143 108 52 51 73 101 21 175 90 242s 54 158 143 77 26 168 113 229 165 225 242s 9 47 133 135 130 207 236 43 19 73 242s 129 60 59 243 64 181 249 56 32 86]; 242s 242s out = [115 208 134 100 163 117 101 136 109 103 242s 26 61 149 182 95 53 41 116 73 60 242s 133 101 82 140 167 125 152 71 126 144 242s 88 184 137 164 142 145 110 81 104 108 242s 86 146 109 55 73 110 111 156 153 150 242s 33 104 131 100 130 184 147 97 133 142 242s 84 59 114 164 133 219 120 33 72 81 242s 126 60 104 181 116 218 125 38 77 86]; 242s assert (imresize (uint8 (in), 0.91, "bilinear", "Antialiasing", false), uint8 (out), 1) 242s 242s out = [116 172 215 165 111 82 133 170 171 81 95 132 138 123 106 242s 59 98 138 144 152 152 125 127 119 54 58 89 137 112 75 242s 27 39 62 110 172 202 123 96 78 36 40 68 123 100 62 242s 129 97 64 62 87 119 146 148 128 74 117 154 73 94 134 242s 113 129 136 101 125 162 183 172 151 135 146 139 53 83 135 242s 77 143 195 145 166 197 186 162 146 171 138 92 62 84 113 242s 101 129 149 120 98 81 78 82 91 111 77 56 132 123 95 242s 81 116 147 130 96 61 43 80 119 109 116 132 162 164 158 242s 46 93 139 141 114 80 50 109 168 141 166 189 151 171 200 242s 16 41 77 123 130 123 115 157 204 214 145 69 48 71 98 242s 69 62 61 89 143 174 112 146 202 235 147 46 30 53 80 242s 129 95 60 59 151 213 94 123 192 238 153 52 36 59 86]; 242s assert (imresize (uint8 (in), 1.5, "bilinear"), uint8 (out), 1) 242s 242s out = [ 98 152 126 58 112 242s 129 125 172 146 83 242s 116 96 80 116 164 242s 62 143 146 147 53]; 242s assert (imresize (uint8 (in), 0.5, "bilinear", "Antialiasing", false), uint8 (out), 1) 242s 242s out = [108 136 125 89 107 242s 111 132 143 114 99 242s 106 110 106 127 136 242s 75 124 154 142 75]; 242s assert (imresize (uint8 (in), 0.5, "bilinear", "Antialiasing", true), uint8 (out), 1) 242s 242s out = [116 185 199 143 80 117 164 177 76 103 133 135 110 106 242s 45 89 126 148 177 138 114 109 43 52 97 141 78 67 242s 59 57 73 114 177 145 114 96 45 71 99 108 88 85 242s 145 109 76 63 96 146 166 147 93 152 133 47 134 148 242s 82 157 174 137 201 208 186 156 174 145 90 42 111 122 242s 94 143 152 119 119 114 108 107 131 86 80 119 104 101 242s 87 126 139 114 69 49 67 109 106 102 126 167 145 141 242s 48 108 143 135 91 56 89 167 134 177 184 154 199 206 242s 15 44 88 133 129 121 149 204 219 124 55 44 85 92 242s 84 66 67 102 189 132 127 198 237 123 42 34 74 81 242s 129 86 60 82 220 131 108 190 241 128 47 39 79 86]; 242s assert (imresize (uint8 (in), 4/3, "bilinear"), uint8 (out), 1) 242s 242s lin = @(x) (1 - abs(x)) .* (abs(x) < 1); 242s 242s out = [ 47 90 24 44 242s 143 51 21 90 242s 60 64 56 86]; 242s assert (imresize (uint8 (in), 1/3, "bilinear", "Antialiasing", false), uint8 (out), 1) 242s assert (imresize (uint8 (in), 1/3, {lin, 2}, "Antialiasing", false), uint8 (out), 1) 242s 242s out = [115 131 101 102 242s 114 117 120 121 242s 91 147 116 76]; 242s assert (imresize (uint8 (in), 1/3, "bilinear", "Antialiasing", true), uint8 (out), 1) 242s assert (imresize (uint8 (in), 1/3, {lin, 2}, "Antialiasing", true), uint8 (out), 1) 242s ***** test 242s in = [116 227 153 69 146 194 59 130 139 106 242s 2 47 137 249 90 75 16 24 158 44 242s 155 68 46 84 166 156 69 204 32 152 242s 71 221 137 230 210 153 192 115 30 118 242s 107 143 108 52 51 73 101 21 175 90 242s 54 158 143 77 26 168 113 229 165 225 242s 9 47 133 135 130 207 236 43 19 73 242s 129 60 59 243 64 181 249 56 32 86]; 242s 242s out = [116 187 237 171 94 61 135 191 187 75 91 142 140 124 108 242s 43 92 143 149 164 163 119 123 118 44 38 80 151 118 62 242s 13 21 47 107 195 228 115 81 70 24 19 56 137 105 48 242s 146 98 49 49 71 107 148 159 132 58 124 176 61 85 146 242s 118 139 144 92 116 168 201 188 159 140 167 158 27 69 153 242s 61 151 218 145 174 219 201 164 146 187 148 84 48 76 115 242s 102 132 151 119 90 72 72 72 83 114 60 31 144 130 80 242s 81 121 154 133 87 41 19 67 116 95 108 140 183 180 163 242s 37 95 152 150 117 73 35 108 179 130 174 214 153 176 219 242s 3 29 73 131 136 120 116 162 214 229 147 54 35 62 96 242s 67 54 51 83 153 187 111 141 210 255 149 22 13 42 74 242s 142 99 53 43 164 237 77 103 197 254 159 42 31 59 91]; 242s assert (imresize (uint8 (in), 1.5, "bicubic"), uint8 (out), 1) 242s 242s out = [ 92 164 123 38 118 242s 139 116 188 167 69 242s 121 87 67 108 180 242s 54 153 141 149 42]; 242s assert (imresize (uint8 (in), 0.5, "bicubic", "Antialiasing", false), uint8 (out), 1) 242s 242s out = [105 140 126 81 109 242s 110 134 153 114 93 242s 108 108 94 127 146 242s 67 126 162 149 62]; 242s assert (imresize (uint8 (in), 0.5, "bicubic", "Antialiasing", true), uint8 (out), 1) 242s 242s out = [116 203 221 141 62 110 180 191 70 104 143 136 111 106 242s 26 78 126 156 200 139 103 103 33 28 92 158 67 46 242s 51 35 51 112 195 146 101 87 29 57 100 114 81 74 242s 159 110 63 50 82 148 179 152 83 173 147 27 143 170 242s 70 171 189 134 217 226 193 158 186 157 83 25 114 135 242s 91 152 162 116 118 114 102 98 138 65 60 127 92 84 242s 90 130 144 111 52 24 50 101 94 86 129 190 146 135 242s 41 114 157 139 89 37 82 178 125 192 203 154 213 227 242s 4 33 89 141 127 118 151 213 232 119 35 34 81 92 242s 88 61 54 97 203 129 115 203 255 119 18 24 70 81 242s 147 91 43 68 247 125 80 191 255 130 33 37 83 94]; 242s assert (imresize (uint8 (in), 4/3, "bicubic"), uint8 (out), 1) 242s 242s out = [ 47 90 24 44 242s 143 51 21 90 242s 60 64 56 86]; 242s assert (imresize (uint8 (in), 1/3, "bicubic", "Antialiasing", false), uint8 (out), 1) 242s 242s out = [115 135 97 101 242s 113 119 124 125 242s 81 157 118 64]; 242s assert (imresize (uint8 (in), 1/3, "bicubic", "Antialiasing", true), uint8 (out), 1) 242s ***** test 242s 242s in = checkerboard (1, [2 2]); 242s out = [0.5 0.35 242s 0.5 0.35]; 242s assert ( imresize (in, 0.5, "bilinear", "Antialiasing", false), out) 242s ***** test 242s 242s in = ones (2) + 1i; 242s out_nearest = imresize (in, 1.5, "nearest"); 242s assert (out_nearest, ones (3) + 1i); 242s out_linear = imresize (in, 1.5, "linear"); 242s assert (out_linear, ones (3) + 1i); 242s out_cubic = imresize (in, 1.5, "cubic"); 242s assert (out_cubic, ones (3) + 1i, 1e-14); 242s ***** test 242s 242s in = cat (3, 10, 10, 10); 242s expected = 10 * ones (2, 2, 3); # consistent with MATLAB behaviour 242s 242s out_nearest = imresize (in, [2, 2], "nearest"); 242s assert (out_nearest, expected); 242s out_linear = imresize (in, [2, 2], "linear"); 242s assert (out_linear, expected); 242s out_cubic = imresize (in, [2, 2], "cubic"); 242s assert (out_cubic, expected); 242s ***** test 242s 242s in_row = cat(3, [10,6], [10,6], [10,6]); 242s 242s plane_expected_nearest = [1; 1; 1] * [10, 10, 6, 6]; 242s out_expected = cat (3, plane_expected_nearest, plane_expected_nearest, plane_expected_nearest); 242s out_nearest = imresize (in_row, [3, 4], "nearest"); 242s assert (out_nearest, out_expected); 242s 242s plane_expected_linear = [1; 1; 1] * [10, 8, 6]; 242s out_expected = cat (3, plane_expected_linear, plane_expected_linear, plane_expected_linear); 242s out_linear = imresize (in_row, [3, 3], "linear"); 242s assert (out_linear, out_expected); 242s 242s plane_expected_cubic = [1; 1; 1] * [10.27777777777777, 8, 5.72222222222222]; # values from MATLAB 242s out_expected = cat (3, plane_expected_cubic, plane_expected_cubic, plane_expected_cubic); 242s out_cubic = imresize (in_row, [3, 3], "cubic"); 242s assert (out_cubic, out_expected, 1e-13); 242s 242s in_col = cat(3, [10;6], [10;6], [10;6]); 242s 242s plane_expected_nearest = [10; 10; 6; 6] * [1, 1, 1]; 242s out_expected = cat (3, plane_expected_nearest, plane_expected_nearest, plane_expected_nearest); 242s out_nearest = imresize (in_col, [4, 3], "nearest"); 242s assert (out_nearest, out_expected); 242s 242s plane_expected_linear = [10; 8; 6] * [1, 1, 1]; 242s out_expected = cat (3, plane_expected_linear, plane_expected_linear, plane_expected_linear); 242s out_linear = imresize (in_col, [3, 3], "linear"); 242s assert (out_linear, out_expected); 242s 242s plane_expected_cubic = [10.27777777777777; 8; 5.72222222222222] * [1, 1, 1]; # values from MATLAB 242s out_expected = cat (3, plane_expected_cubic, plane_expected_cubic, plane_expected_cubic); 242s out_cubic = imresize (in_col, [3, 3], "cubic"); 242s assert (out_cubic, out_expected, 1e-13); 242s ***** #test 242s r_big_int16 = randi(16000, 8000, 8000, "int16"); 242s r_big_double = randi(16000, 8000, 8000); 242s tic; imresize (r_big_int16, 100/8000); toc; 242s tic; imresize (r_big_double, 100/8000); toc; 242s 242s r_small_int16 = randi(16000, 100, 100, "int16"); 242s r_small_double = randi(16000, 100, 100); 242s tic; imresize (r_small_int16, 8000/100); toc; 242s tic; imresize (r_small_double, 8000/100); toc; 242s 13 tests, 13 passed, 0 known failure, 0 skipped 242s [inst/fftconv2.m] 242s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/fftconv2.m 242s ***** xtest 242s a = repmat (1:10, 5); 242s b = repmat (10:-1:3, 7); 242s assert (fftconv2 (a, b), conv2 (a, b), 1.8e4*eps) 242s assert (fftconv2 (b, a), conv2 (b, a), 1.8e4*eps) 242s assert (fftconv2 (a, b, "full"), conv2 (a, b, "full"), 1.8e4*eps) 242s assert (fftconv2 (b, a, "full"), conv2 (b, a, "full"), 1.8e4*eps) 242s assert (fftconv2 (a, b, "same"), conv2 (a, b, "same"), 1.8e4*eps) 242s assert (fftconv2 (b, a, "same"), conv2 (b, a, "same"), 1.8e4*eps) 242s assert (isempty (fftconv2 (a, b, "valid"))); 242s assert (fftconv2 (b, a, "valid"), conv2 (b, a, "valid"), 1e4*eps) 242s ***** test 242s x = 1:4; 242s y = 4:-1:1; 242s a = repmat(1:10, 5); 242s assert (fftconv2 (x, y, a), conv2 (x, y, a), 1e4*eps) 242s assert (fftconv2 (x, y, a, "full"), conv2 (x, y, a, "full"), 1e4*eps) 242s assert (fftconv2 (x, y, a, "same"), conv2 (x, y, a, "same"), 1e4*eps) 242s assert (fftconv2 (x, y, a, "valid"), conv2 (x, y, a, "valid"), 1e4*eps) 242s ***** demo 242s ## Draw a cross 242s z = zeros (101, 101); 242s z(50, :) = 1; 242s z(:, 50) = 1; 242s subplot (1, 3, 1) 242s imshow (z); 242s title ("Original thin cross") 242s 242s ## Draw a sinc blob 242s b = getheight (strel ("ball", 10, 1)); 242s subplot (1, 3, 2) 242s imshow (b); 242s title ("Sync blob") 242s 242s ## Convolve the cross with the blob 242s fc = real (fftconv2 (z, b, "same")); 242s subplot (1, 3, 3) 242s imshow (fc, [min(fc(:)) max(fc(:))]) 242s title ("Convolution in the frequency domain") 242s 2 tests, 2 passed, 0 known failure, 0 skipped 242s [inst/imgradientxy.m] 242s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imgradientxy.m 242s ***** test 242s A = [0 1 0 242s 1 1 1 242s 0 1 0]; 242s 242s [gxSobel, gySobel] = imgradientxy (A); 242s [gxSobel2, gySobel2] = imgradientxy (A, "Sobel"); 242s assert (gxSobel, 242s [ 3 0 -3 242s 4 0 -4 242s 3 0 -3]); 242s assert (gySobel, 242s [ 3 4 3 242s 0 0 0 242s -3 -4 -3]); 242s 242s ## test default method 242s assert(gxSobel, gxSobel2); 242s assert(gySobel, gySobel2); 242s 242s [gxPrewitt, gyPrewitt] = imgradientxy (A, "Prewitt"); 242s assert (gxPrewitt, 242s [ 2 0 -2 242s 3 0 -3 242s 2 0 -2]); 242s assert (gyPrewitt, 242s [ 2 3 2 242s 0 0 0 242s -2 -3 -2]); 242s 242s [gxCd, gyCd] = imgradientxy (A, "CentralDifference"); 242s assert (gxCd, 242s [ 0.5 0.0 -0.5 242s 0.5 0.0 -0.5 242s 0.5 0.0 -0.5]); 242s assert (gyCd, 242s [ 0.5 0.5 0.5 242s 0 0 0 242s -0.5 -0.5 -0.5]); 242s 242s [gxCd, gyCd] = imgradientxy (A, "Central"); 242s assert (gxCd, 242s [ 0.5 0.0 -0.5 242s 0.5 0.0 -0.5 242s 0.5 0.0 -0.5]); 242s assert (gyCd, 242s [ 0.5 0.5 0.5 242s 0 0 0 242s -0.5 -0.5 -0.5]); 242s 242s [gxId, gyId] = imgradientxy(A, "IntermediateDifference"); 242s assert (gxId, 242s [ 1 -1 0 242s 0 0 -1 242s 1 -1 0]); 242s assert (gyId, 242s [ 1 0 1 242s -1 0 -1 242s 0 -1 0]); 242s 242s [gxId, gyId] = imgradientxy(A, "Intermediate"); 242s assert (gxId, 242s [ 1 -1 0 242s 0 0 -1 242s 1 -1 0]); 242s assert (gyId, 242s [ 1 0 1 242s -1 0 -1 242s 0 -1 0]); 242s 1 test, 1 passed, 0 known failure, 0 skipped 242s [inst/imapplymatrix.m] 242s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imapplymatrix.m 242s ***** error id=Octave:invalid-fun-call imapplymatrix () 242s ***** error id=Octave:invalid-fun-call imapplymatrix (42) 243s ***** error id=Octave:invalid-input-arg imapplymatrix (ones (2, 2, 2), 42) 243s ***** error id=Octave:invalid-input-arg imapplymatrix ([], ones (2, 2)) 243s ***** error id=Octave:invalid-input-arg imapplymatrix (ones (0, 2), ones (2, 2)) 243s ***** error id=Octave:invalid-input-arg imapplymatrix (ones (2, 0), ones (2, 2)) 243s ***** error id=Octave:invalid-input-arg imapplymatrix (4, 2, [2, 2]) 243s ***** error id=Octave:invalid-input-arg imapplymatrix (4, 2, [2, 2], "uint8") 243s ***** error id=Octave:invalid-input-arg imapplymatrix (4, 2, 0, 666) 243s ***** assert (imapplymatrix ([], []), []) 243s ***** assert (imapplymatrix ([], [], "uint16"), uint16 ([])) 243s ***** assert (imapplymatrix (1, 10, []), 10) 243s ***** assert (imapplymatrix (1, 10, ones (0, 5)), 10) 243s ***** assert (imapplymatrix (1, 10, ones (5, 0)), 10) 243s ***** assert (imapplymatrix (ones (0), ones (0), 3), []) 243s ***** assert (imapplymatrix (ones (0), ones (4, 0), 3), zeros (4, 0)) 243s ***** assert (imapplymatrix (ones (0), ones (0, 4), 3), zeros (0, 4)) 243s ***** assert (imapplymatrix (ones (2, 0), ones (0, 4), 3), zeros (0, 4)) 243s ***** assert (imapplymatrix (ones (0, 2), ones (0, 4), 3), zeros (0, 4)) 243s ***** assert (imapplymatrix (ones (0, 2), ones (0, 4, 0), 3), zeros (0, 4, 0)) 243s ***** assert (imapplymatrix("a", ones(2, 2)), nan (2, 2)) 243s ***** assert (imapplymatrix("abc", ones(2, 2)), nan (2, 2)) 243s ***** assert (imapplymatrix (1, 10), 10) 243s ***** assert (imapplymatrix (1, 10, 3), 13) 243s ***** assert (imapplymatrix (ones (1), uint8 (10), 3), uint8 (13)) 243s ***** assert (imapplymatrix (uint8 (ones (1)), 10, 3), double (13)) 243s ***** assert (imapplymatrix (uint8 (ones (1)), uint8 (10), 3), uint8 (13)) 243s ***** assert (imapplymatrix (2.6 * ones (1), uint8 (10), 4.7), uint8 (31)) 243s ***** assert (imapplymatrix (42, ones (1, 2)), 42 * ones (1, 2)) 243s ***** assert (imapplymatrix (42, ones (2, 1)), 42 * ones (2, 1)) 243s ***** assert (imapplymatrix (42, ones (2, 2)), 42 * ones (2, 2)) 243s ***** assert (imapplymatrix (42, ones (2, 2), 0.5), 42.5 * ones (2, 2)) 243s ***** assert (imapplymatrix ([4, 2], ones (2, 2, 2), 0.5), 6.5 * ones (2, 2)) 243s ***** assert (imapplymatrix ([4, 2; 243s 4, 2], ones (2, 2, 2), [0.5, 0.5]), 6.5 * ones (2, 2, 2)) 243s ***** assert (imapplymatrix ([4, 2; 243s 4, 2], ones (2, 2, 2), [0.5; 0.5]), 6.5 * ones (2, 2, 2)) 243s ***** assert (imapplymatrix ([1, 2, 3], ones (2, 2, 3)), 6 * ones (2, 2, 1)) 243s ***** assert (imapplymatrix ([1, 2, 3], ones (2, 2, 3), 1), 7 * ones (2, 2, 1)) 243s ***** test 243s expected = zeros (2, 2, 2, "uint8"); 243s expected(:, :, 1) = 7 * ones (2, 2); 243s expected(:, :, 2) = 16 * ones (2, 2); 243s I = uint8 (ones (2, 2, 3)); 243s assert (imapplymatrix ([1, 2, 3 243s 4, 5, 6], I, [1, 1]), expected) 243s ***** test 243s expected = zeros (2, 2, 2, 2, "uint16"); 243s expected(:, :, 1, 1) = 7 * ones (2, 2); 243s expected(:, :, 2, 1) = 16 * ones (2, 2); 243s expected(:, :, 1, 2) = 13 * ones (2, 2); 243s expected(:, :, 2, 2) = 31 * ones (2, 2); 243s I(:, :, :, 1) = uint16 (ones (2, 2, 3)); 243s I(:, :, :, 2) = 2 * uint16 (ones (2, 2, 3)); 243s assert (imapplymatrix ([1, 2, 3; 243s 4, 5, 6], I, [1, 1]), expected) 243s 39 tests, 39 passed, 0 known failure, 0 skipped 243s [inst/imgetfile.m] 243s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imgetfile.m 243s ***** assert (1) 243s 1 test, 1 passed, 0 known failure, 0 skipped 243s [inst/houghlines.m] 243s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/houghlines.m 243s ***** shared BW0, theta0, rho0, peaks0_1, peaks0_2, lines0_1, lines0_2, BW1, theta1, rho1, peaks1, lines1 243s 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]); 243s theta0 = [-90:89]; 243s rho0 = [-7:7]; 243s peaks0_1 = [11 130]; 243s peaks0_2 = [11 130; 4 1]; 243s lines0_1 = struct ("point1", {[1,5]}, "point2", {[5,1]}, "theta", {39}, "rho", {3}); 243s lines0_2 = struct ("point1", {[1,5], [1,5]}, "point2", {[5,1],[5,5]}, "theta", {39,-90}, "rho", {3, -4}); 243s BW1 = diag(ones(50,1)); 243s theta1 = [-90:89]; 243s rho1 = -70:70; 243s peaks1 = [71 46]; 243s lines1 = struct ("point1", {[1 1]}, "point2", {[50 50]}, "theta", {-45}, "rho", {0}); 243s ***** error houghlines () 243s ***** error houghlines (BW1) 245s ***** error houghlines (BW1, theta1) 245s ***** error houghlines (BW1, theta1, rho1) 245s ***** assert (houghlines (BW1, theta1, rho1, peaks1), lines1) 245s ***** error (houghlines (BW1, theta1, rho1, peaks1, [1 2 3])) 245s ***** assert (houghlines (BW1, theta1, rho1, peaks1, "FillGap", 5), lines1) 245s ***** assert (houghlines (BW1, theta1, rho1, peaks1, "MinLength", 2), lines1) 245s ***** assert (houghlines (BW1, theta1, rho1, peaks1, "FillGap", 5, "MinLength", 2), lines1) 245s ***** assert (houghlines (BW1, theta1, rho1, peaks1, "MinLength", 2, "FillGap", 5), lines1) 245s ***** error houghlines (BW1, theta1, rho1, peaks1, "MinLength", 2, [1 2 3]) 245s ***** error houghlines (BW1, theta1, rho1, peaks1, "MinLength", 2, "FillGap", 5, [1 2 3]) 245s ***** assert (houghlines (double (BW1), theta1, rho1, peaks1), lines1) 245s ***** error houghlines (ones(5, 5, 5), theta1, rho1, peaks1) 245s ***** error houghlines ("nonsense", theta1, rho1, peaks1) 245s ***** error houghlines (BW1, ones(5), rho1, peaks1) 245s ***** error houghlines (BW1, "nonsense", rho1, peaks1) 245s ***** error houghlines (BW1, theta1, ones(5), peaks1) 245s ***** error houghlines (BW1, theta1, "nonsense", peaks1) 245s ***** error houghlines (BW1, theta1, rho1, ones(5)) 245s ***** error houghlines (BW1, theta1, rho1, ones(2,2,2)) 245s ***** error houghlines (BW1, theta1, rho1, "nonsense") 245s ***** error houghlines (BW1, theta1, rho1, peaks1, "nonsense", 5) 245s ***** error houghlines (BW1, theta1, rho1, peaks1, "MinLength", -5) 245s ***** error houghlines (BW1, theta1, rho1, peaks1, "MinLength", [3 4]) 245s ***** error houghlines (BW1, theta1, rho1, peaks1, "MinLength", "nonsense") 245s ***** error houghlines (BW1, theta1, rho1, peaks1, "FillGap", -5) 245s ***** error houghlines (BW1, theta1, rho1, peaks1, "FillGap", [3 4]) 245s ***** error houghlines (BW1, theta1, rho1, peaks1, "FillGap", "nonsense") 245s ***** test 245s out = houghlines(BW0, theta0, rho0, peaks0_2, "MinLength", 1); 245s assert (out, lines0_2) # includes class = struct, size = [1,2] 245s ***** test # for empty output 245s n = 100; 245s BW = false (n); 245s a = 50; % line starts at left side at row a 245s b = 3; % slope of line is 1:b 245s for column = 1:n 245s if (rem (column, b) == 0) 245s row = a - column/b; 245s BW(row, column) = true; 245s BW(row, column+1) = true; 245s end 245s end 245s theta = [-90: 89]; 245s rho = [-141:141]; 245s peaks = [188, 163]; 245s out = houghlines(BW, theta, rho, peaks, 'FillGap', 1, 'MinLength', 5); 245s assert (out, struct([])) 245s ***** test 245s out0_1 = houghlines(BW0, theta0, rho0, peaks0_1, 'MinLength', 1); 245s out0_2 = houghlines(BW0, theta0, rho0, peaks0_2, 'MinLength', 1); 245s assert (out0_1, lines0_1); 245s assert (out0_2, lines0_2); 245s ***** test 245s out = houghlines(BW1, theta1, rho1, peaks1); 245s assert (out, lines1); 245s ***** test 245s n = 100; 245s BW = false (n); 245s a = 50; % line starts at left side at row a 245s b = 3; % slope of line is 1:b 245s for column = 1:n 245s if (rem (column, b) == 0) 245s row = a - column/b; 245s BW(row, column) = true; 245s BW(row, column+1) = true; 245s end 245s end 245s theta = [-90:89]; 245s rho = [-141:141]; 245s peaks = [188, 163]; 245s lines_1 = struct ("point1", {[99 17]}, "point2", {[3 49]}, "theta", {72}, "rho", {46}); 245s out_1 = houghlines(BW, theta, rho, peaks); 245s out_n = houghlines(BW, theta, rho, peaks, 'FillGap', 1, 'MinLength', 1); 245s assert (out_1, lines_1) 245s assert (size (out_n), [1, 29]) 245s ***** demo 245s I = checkerboard (30, 1, 1); 245s I = imnoise(I, "salt & pepper", 0.2); 245s figure, imshow (I); 245s title ("noisy image with some lines"); 245s BW = edge (I, "canny"); 245s figure, imshow(BW); 245s title ("edge image"); 245s [H, theta, rho] = hough (BW); 245s figure, imshow (mat2gray (H), [], "XData", theta, "YData", rho); 245s title ("Hough transform of edge image \n 2 peaks marked"); 245s axis on; xlabel("theta [degrees]"); ylabel("rho [pixels]"); 245s peaks = houghpeaks (H, 2); 245s peaks_rho = rho(peaks(:,1)); 245s peaks_theta = theta(peaks(:,2)); 245s hold on; plot (peaks_theta, peaks_rho, "sr"); hold off; 245s lines = houghlines (BW, theta, rho, peaks); 245s figure, imshow (I), hold on; 245s for n = 1:length (lines) 245s points = [lines(n).point1; lines(n).point2]; 245s plot (points(:,1), points(:,2), "r"); 245s endfor 245s title ("the two strongest lines (edges) in the image"), hold off; 245s 34 tests, 34 passed, 0 known failure, 0 skipped 245s [inst/qtdecomp.m] 245s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/qtdecomp.m 245s ***** demo 245s full(qtdecomp(eye(8))) 245s %It finds 2 big blocks of 0 and it decomposes further where 0 and 1 are mixed. 245s ***** # Test if odd-sized limits split 245s ***** assert(full(qtdecomp(eye(5))), reshape([5,zeros(1,24)],5,5)); 245s ***** assert(full(qtdecomp(eye(6))), repmat(reshape([3,zeros(1,8)],3,3),2,2)); 245s ***** # Test 'equal' method 245s ***** test 245s a=ones(2,2); 245s b=[2,0;0,0]; 245s assert(full(qtdecomp(eye(4))), [a,b;b,a]); 245s ***** shared A, B2, B4 245s A=[ 1, 4, 2, 5,54,55,61,62; 245s 3, 6, 3, 1,58,53,67,65; 245s 3, 6, 3, 1,58,53,67,65; 245s 3, 6, 3, 1,58,53,67,65; 245s 23,42,42,42,99,99,99,99; 245s 27,42,42,42,99,99,99,99; 245s 23,22,26,25,99,99,99,99; 245s 22,22,24,22,99,99,99,99]; 245s B2=[2,0;0,0]; 245s B4=zeros(4); B4(1,1)=4; 245s ***** test 245s R=[ones(4,8); [ones(2),B2;ones(2,4)], B4]; 245s assert(full(qtdecomp(A)), R); 245s assert(full(qtdecomp(A,0)), R); 245s ***** # Test 'threshold' method 245s ***** test 245s R=[ones(4,8); [ones(2),B2;B2,ones(2)],B4]; 245s assert(full(qtdecomp(A,1)), R); 245s ***** test 245s R=[[B4,[B2,B2;B2,B2]]; [[ones(2),B2;B2,B2],B4]]; 245s assert(full(qtdecomp(A,10)), R); 245s ***** test 245s R=[[B4,[B2,B2;B2,B2]]; [[B2,B2;B2,B2],B4]]; 245s assert(full(qtdecomp(A,10,2)), R); 245s 245s assert(full(qtdecomp(A,100,[2, 4])), [B4,B4;B4,B4]); 245s ***** test 245s f = @(A, c1 = 54, c2 = 0, c3 = 0) (A (1, 1, :) != ((c1+c2+c3) * ones (1, 1, size (A, 3))))(:); 245s 245s assert(full(qtdecomp(A,f)),[ones(4),B4;ones(4,8)]); 245s assert(full(qtdecomp(A,f,54)),[ones(4),B4;ones(4,8)]); 245s assert(full(qtdecomp(A,f,4,40,10)),[ones(4),B4;ones(4,8)]); 245s ***** test 245s ***** # no params 245s first_eq=inline("(A(1,1,:)!=(54*ones(1,1,size(A,3))))(:)","A"); 245s assert(full(qtdecomp(A,first_eq)),[ones(4),B4;ones(4,8)]); 245s ***** test 245s ***** # 1 param 245s first_eq=inline("(A(1,1,:)!=(c*ones(1,1,size(A,3))))(:)","A","c"); 245s assert(full(qtdecomp(A,first_eq,54)),[ones(4),B4;ones(4,8)]); 245s ***** test 245s ***** # 3 params 245s first_eq=inline("(A(1,1,:)!=((c1+c2+c3)*ones(1,1,size(A,3))))(:)","A","c1","c2","c3"); 245s assert(full(qtdecomp(A,first_eq,4,40,10)),[ones(4),B4;ones(4,8)]); 245s 11 tests, 11 passed, 0 known failure, 0 skipped 245s [inst/@imref2d/imref2d.m] 245s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@imref2d/imref2d.m 245s ***** error id=Octave:invalid-fun-call imref2d (1, 2, 3, 4) 245s ***** error id=Octave:invalid-input-arg imref2d (42) 245s ***** error id=Octave:invalid-input-arg imref2d ([42]) 245s ***** error id=Octave:expected-integer imref2d ([4.2, 42]) 245s ***** error id=Octave:expected-positive imref2d ([0, 0]) 245s ***** error id=Octave:expected-positive imref2d ([-4, 2]) 245s ***** error id=Octave:expected-positive imref2d ([4, 2], 0, 2) 245s ***** error id=Octave:expected-positive imref2d ([4, 2], 2, 0) 245s ***** error id=Octave:expected-real imref2d ([4, 2], j, 2) 245s ***** error id=Octave:expected-real imref2d ([4, 2], 2, j) 245s ***** error id=Octave:expected-real imref2d ([4, 2], [j, 2], [3, 4]) 245s ***** error id=Octave:expected-real imref2d ([4, 2], [1, 2], [j, 4]) 245s ***** error id=Octave:expected-vector imref2d ([4, 2], [], []) 245s ***** error id=Octave:expected-vector imref2d ([4, 2], [], [1]) 245s ***** error id=Octave:expected-scalar imref2d ([4, 2], [1], []) 245s ***** error id=Octave:incorrect-size imref2d ([4, 2], [1, 2], [0]) 245s ***** error id=Octave:incorrect-size imref2d ([4, 2], [1, 2], [1, 2, 3]) 245s ***** error id=Octave:incorrect-size imref2d ([4, 2], [1, 2, 3], [1, 2]) 245s ***** error id=Octave:incorrect-size imref2d ([4, 2], [1; 2], [1, 2]) 245s ***** error id=Octave:incorrect-size imref2d ([4, 2], [1, 2], [1; 2]) 245s ***** error id=Octave:invalid-indexing imref2d().InvalidProperty 245s ***** error id=Octave:expected-increasing imref2d ([100 200], [1.5 0.5], [2.5 3.5]) 245s ***** error id=Octave:expected-increasing imref2d ([100 200], [1.5 2.5], [2.5 1.5]) 245s ***** test 245s r = imref2d; 245s assert (r.XWorldLimits, [0.5, 2.5]) 245s assert (r.YWorldLimits, [0.5, 2.5]) 245s assert (r.ImageSize, [2, 2]) 245s assert (r.PixelExtentInWorldX, 1) 245s assert (r.PixelExtentInWorldY, 1) 245s assert (r.ImageExtentInWorldX, 2) 245s assert (r.ImageExtentInWorldY, 2) 245s assert (r.XIntrinsicLimits, [0.5, 2.5]) 245s assert (r.YIntrinsicLimits, [0.5, 2.5]) 245s ***** test 245s r = imref2d ([100, 200]); 245s assert (r.XWorldLimits, [0.5, 200.5]) 245s assert (r.YWorldLimits, [0.5, 100.5]) 245s assert (r.ImageSize, [100, 200]) 245s assert (r.PixelExtentInWorldX, 1) 245s assert (r.PixelExtentInWorldY, 1) 245s assert (r.ImageExtentInWorldX, 200) 245s assert (r.ImageExtentInWorldY, 100) 245s assert (r.XIntrinsicLimits, [0.5, 200.5]) 245s assert (r.YIntrinsicLimits, [0.5, 100.5]) 245s ***** test 245s xWorldLimits = [2, 5]; 245s yWorldLimits = [3, 6]; 245s r = imref2d ([291, 240], xWorldLimits, yWorldLimits); 245s assert (r.XWorldLimits, [2, 5]) 245s assert (r.YWorldLimits, [3, 6]) 245s assert (r.ImageSize, [291, 240]) 245s assert (r.PixelExtentInWorldX, 0.0125) 245s assert (r.PixelExtentInWorldY, 0.0103, 1e-3) 245s assert (r.ImageExtentInWorldX, 3) 245s assert (r.ImageExtentInWorldY, 3) 245s assert (r.XIntrinsicLimits, [0.5, 240.5]) 245s assert (r.YIntrinsicLimits, [0.5, 291.5]) 245s ***** test 245s pixelExtentInWorldX = 0.3125; 245s pixelExtentInWorldY = 0.3125; 245s r = imref2d ([512, 512], pixelExtentInWorldX, pixelExtentInWorldY); 245s assert (r.XWorldLimits, [0.15625, 160.1562], 1e-4) 245s assert (r.YWorldLimits, [0.15625, 160.1562], 1e-4) 245s assert (r.ImageSize, [512, 512]) 245s assert (r.PixelExtentInWorldX, 0.3125) 245s assert (r.PixelExtentInWorldY, 0.3125) 245s assert (r.ImageExtentInWorldX, 160) 245s assert (r.ImageExtentInWorldY, 160) 245s assert (r.XIntrinsicLimits, [0.5, 512.5]) 245s assert (r.YIntrinsicLimits, [0.5, 512.5]) 245s ***** test 245s pixelExtentInWorldX = 0.1; 245s pixelExtentInWorldY = 0.4; 245s r = imref2d ([100, 200], pixelExtentInWorldX, pixelExtentInWorldY); 245s assert (r.XWorldLimits, [0.05, 20.05], 1e-4) 245s assert (r.YWorldLimits, [0.2, 40.2], 1e-4) 245s assert (r.ImageSize, [100, 200]) 245s assert (r.PixelExtentInWorldX, 0.1) 245s assert (r.PixelExtentInWorldY, 0.4) 245s assert (r.ImageExtentInWorldX, 20) 245s assert (r.ImageExtentInWorldY, 40) 245s assert (r.XIntrinsicLimits, [0.5, 200.5]) 245s assert (r.YIntrinsicLimits, [0.5, 100.5]) 245s ***** test 245s r = imref2d; 245s assert (r.XWorldLimits, [0.5, 2.5]) 245s assert (r.YWorldLimits, [0.5, 2.5]) 245s assert (r.ImageSize, [2, 2]) 245s assert (r.PixelExtentInWorldX, 1) 245s assert (r.PixelExtentInWorldY, 1) 245s assert (r.ImageExtentInWorldX, 2) 245s assert (r.ImageExtentInWorldY, 2) 245s assert (r.XIntrinsicLimits, [0.5, 2.5]) 245s assert (r.YIntrinsicLimits, [0.5, 2.5]) 245s r.ImageSize = [800, 600]; 245s assert (r.XWorldLimits, [0.5, 2.5]) 245s assert (r.YWorldLimits, [0.5, 2.5]) 245s assert (r.ImageSize, [800, 600]) 245s assert (r.PixelExtentInWorldX, 0.003333, 1e-5) 245s assert (r.PixelExtentInWorldY, 0.0025) 245s assert (r.ImageExtentInWorldX, 2) 245s assert (r.ImageExtentInWorldY, 2) 245s assert (r.XIntrinsicLimits, [0.5, 600.5]) 245s assert (r.YIntrinsicLimits, [0.5, 800.5]) 245s ***** test 245s r = imref2d; 245s assert (r.XWorldLimits, [0.5, 2.5]) 245s assert (r.YWorldLimits, [0.5, 2.5]) 245s assert (r.ImageSize, [2, 2]) 245s assert (r.PixelExtentInWorldX, 1) 245s assert (r.PixelExtentInWorldY, 1) 245s assert (r.ImageExtentInWorldX, 2) 245s assert (r.ImageExtentInWorldY, 2) 245s assert (r.XIntrinsicLimits, [0.5, 2.5]) 245s assert (r.YIntrinsicLimits, [0.5, 2.5]) 245s r.XWorldLimits = [-60, 13.33]; 245s r.YWorldLimits = [-900.8, -560.26]; 245s assert (r.XWorldLimits, [-60, 13.33]) 245s assert (r.YWorldLimits, [-900.8, -560.26]) 245s assert (r.PixelExtentInWorldX, 36.6650) 245s assert (r.PixelExtentInWorldY, 170.27, 1e-5) 245s assert (r.ImageExtentInWorldX, 73.33, 1e-5) 245s assert (r.ImageExtentInWorldY, 340.54, 1e-5) 245s assert (r.XIntrinsicLimits, [0.5, 2.5]) 245s assert (r.YIntrinsicLimits, [0.5, 2.5]) 245s ***** test 245s r = imref2d; 245s fail ("r.XWorldLimits = []", "") 245s fail ("r.XWorldLimits = [1]", "") 245s fail ("r.XWorldLimits = [j]", "") 245s fail ("r.XWorldLimits = [1; 2]", "") 245s fail ("r.YWorldLimits = []", "") 245s fail ("r.YWorldLimits = [1]", "") 245s fail ("r.YWorldLimits = [j]", "") 245s fail ("r.YWorldLimits = [1; 2]", "") 245s ***** assert (imref2d ([4, 2, 3]).ImageSize, [4, 2]); 245s 32 tests, 32 passed, 0 known failure, 0 skipped 245s [inst/@imref2d/worldToSubscript.m] 245s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@imref2d/worldToSubscript.m 245s ***** error id=Octave:invalid-fun-call worldToSubscript (imref2d) 245s ***** error id=Octave:invalid-fun-call worldToSubscript (imref2d, 1, 2, 3) 245s ***** error id=Octave:expected-real worldToSubscript (imref2d, 1j, 2) 245s ***** error id=Octave:expected-real worldToSubscript (imref2d, 1, 2j) 245s ***** error id=Octave:invalid-input-arg worldToSubscript (imref2d, [1, 2], 3) 245s ***** error id=Octave:invalid-input-arg worldToSubscript (imref2d, [1], [2, 3]) 245s ***** test 245s r = imref2d ([512, 512], 0.3125, 0.3125); 245s xW = [38.44, 39.44, 38.44, -0.2]; 245s yW = [68.75, 68.75, 75.75, -1]; 245s [rS, cS] = worldToSubscript (r, xW, yW); 245s assert (rS, [220, 220, 242, NaN]) 245s assert (cS, [123, 126, 123, NaN]) 245s 7 tests, 7 passed, 0 known failure, 0 skipped 245s [inst/@imref2d/sizesMatch.m] 245s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@imref2d/sizesMatch.m 245s ***** error id=Octave:invalid-fun-call sizesMatch (imref2d) 245s ***** test 245s I = zeros (256, 256); 245s r = imref2d ([256, 256]); 245s assert (sizesMatch (r, I), true) 245s I2 = zeros (246, 300); 245s assert (sizesMatch (r, I2), false) 245s ***** test 245s r = imref2d ([256, 256]); 245s assert (sizesMatch (r, []), false) 245s ***** test 245s r = imref2d ([256, 256]); 245s assert (sizesMatch (r, 42), false) 245s ***** test 245s r = imref2d ([256, 256]); 245s assert (sizesMatch (r, zeros (256, 256, 3, 2)), true) 245s ***** test 245s I = zeros (384, 512, 3); 245s r = imref2d (size (I)); 245s assert (sizesMatch (r, I), true) 245s 6 tests, 6 passed, 0 known failure, 0 skipped 245s [inst/@imref2d/worldToIntrinsic.m] 245s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@imref2d/worldToIntrinsic.m 245s ***** error id=Octave:invalid-fun-call worldToIntrinsic (imref2d) 245s ***** error id=Octave:invalid-fun-call worldToIntrinsic (imref2d, 1, 2, 3) 245s ***** error id=Octave:expected-real worldToIntrinsic (imref2d, 1j, 2) 245s ***** error id=Octave:expected-real worldToIntrinsic (imref2d, 1, 2j) 245s ***** error id=Octave:invalid-input-arg worldToIntrinsic (imref2d, [1, 2], 3) 245s ***** error id=Octave:invalid-input-arg worldToIntrinsic (imref2d, [1], [2, 3]) 245s ***** test 245s r = imref2d ([512, 512], 0.3125, 0.3125); 245s xW = [38.44, 39.44, 38.44, -0.2]; 245s yW = [68.75, 68.75, 75.75, -1]; 245s [xI, yI] = worldToIntrinsic (r, xW, yW); 245s assert (xI, [123.008, 126.208, 123.008, -0.64], 1e-6) 245s assert (yI, [220, 220, 242.4, -3.2], 1e-6) 245s 7 tests, 7 passed, 0 known failure, 0 skipped 245s [inst/@imref2d/contains.m] 245s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@imref2d/contains.m 245s ***** error id=Octave:invalid-fun-call contains (imref2d) 245s ***** error id=Octave:invalid-fun-call contains (imref2d, 1) 246s ***** error id=Octave:invalid-fun-call contains (imref2d, 1, 2, 3) 246s ***** error id=Octave:invalid-input-arg contains (imref2d, 1, [2, 3]) 246s ***** error id=Octave:invalid-input-arg contains (imref2d, [1, 2], 3) 246s ***** error id=Octave:expected-real contains (imref2d, 0, j) 246s ***** error id=Octave:expected-real contains (imref2d, j, 0) 246s ***** assert (contains (imref2d, [], []), logical( zeros (0, 0))) 246s ***** assert (contains (imref2d, [1, 2; 3, 4], [5, -6; 7, 8]), logical (zeros (2, 2))) 246s ***** test 246s r = imref2d ([256, 256]); 246s assert (contains(r, [5, 8, 8], [5, 10, 257]), logical([1, 1, 0])) 246s 10 tests, 10 passed, 0 known failure, 0 skipped 246s [inst/@imref2d/intrinsicToWorld.m] 246s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@imref2d/intrinsicToWorld.m 246s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref2d) 246s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref2d, 1, 2, 3) 246s ***** error id=Octave:expected-real intrinsicToWorld (imref2d, 1j, 2) 246s ***** error id=Octave:expected-real intrinsicToWorld (imref2d, 1, 2j) 246s ***** error id=Octave:invalid-input-arg intrinsicToWorld (imref2d, [1, 2], 3) 246s ***** error id=Octave:invalid-input-arg intrinsicToWorld (imref2d, [1], [2, 3]) 246s ***** test 246s r = imref2d ([512, 512], 0.3125, 0.3125); 246s xIntrinsic = [34, 442]; 246s yIntrinsic = [172, 172]; 246s [xWorld, yWorld] = intrinsicToWorld (r, xIntrinsic, yIntrinsic); 246s assert (xWorld, [10.625, 138.125]) 246s assert (yWorld, [53.75, 53.75]) 246s ***** test 246s [xWorld, yWorld] = intrinsicToWorld (imref2d, -5.3, -2.8); 246s assert (xWorld, -5.3) 246s assert (yWorld, -2.8) 246s ***** test 246s [xW, yW] = intrinsicToWorld (imref2d, [1, 2; 3, 4], [2, 3; 5, 9]); 246s assert (xW, [1, 2; 3, 4]) 246s assert (yW, [2, 3; 5, 9]) 246s 9 tests, 9 passed, 0 known failure, 0 skipped 246s [inst/deconvwnr.m] 246s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/deconvwnr.m 246s ***** shared im0, psf0, im0_out, psf1, im2, out2_0, out2_1, im3 246s im0 = ones (5, 5); 246s psf0 = ones (3, 3); 246s im0_out = 0.11111 .* ones (5, 5); 246s psf1 = [1 0 0; 0 1 0; 0 0 1]; 246s im2 = checkerboard (2, 2, 2); 246s out2_0 = [ 246s -0.4713 -0.2786 0.4229 0.5161 -0.2759 -0.4685 0.5131 0.4199; 246s -0.4713 -0.2786 0.4229 0.5161 -0.2759 -0.4685 0.5131 0.4199; 246s 0.5161 0.4229 -0.2786 -0.4713 0.4199 0.5131 -0.4685 -0.2759; 246s 0.5161 0.4229 -0.2786 -0.4713 0.4199 0.5131 -0.4685 -0.2759; 246s -0.4713 -0.2786 0.4229 0.5161 -0.2759 -0.4685 0.5131 0.4199; 246s -0.4713 -0.2786 0.4229 0.5161 -0.2759 -0.4685 0.5131 0.4199; 246s 0.5161 0.4229 -0.2786 -0.4713 0.4199 0.5131 -0.4685 -0.2759; 246s 0.5161 0.4229 -0.2786 -0.4713 0.4199 0.5131 -0.4685 -0.2759]; 246s out2_1 = [ 246s -0.0000 0.8481 0.4288 -0.4194 0.0000 0.2765 0.1373 -0.1392; 246s 0.5623 -0.0000 -0.4194 0.1429 0.5623 0.0000 -0.1392 0.4231; 246s 0.1429 -0.4194 0 0.5623 0.4231 -0.1392 0 0.5623; 246s -0.4194 0.4288 0.8481 0 -0.1392 0.1373 0.2765 0; 246s -0.0000 0.8481 0.4288 -0.4194 0.0000 0.2765 0.1373 -0.1392; 246s 0.5623 -0.0000 -0.4194 0.1429 0.5623 0.0000 -0.1392 0.4231; 246s 0.1429 -0.4194 0 0.5623 0.4231 -0.1392 0 0.5623; 246s -0.4194 0.4288 0.8481 0 -0.1392 0.1373 0.2765 0]; 246s im3 = rot90 (diag (0.5.*ones (1,8)) + diag (ones(1,7), 1)); 246s ***** error deconvwnr () 246s ***** error deconvwnr (ones (5)) 246s ***** assert (deconvwnr (ones (5), ones (3))) 246s ***** assert (deconvwnr (ones (5), ones (3), 0.7)) 246s ***** assert (deconvwnr (ones (5), ones (3), 0.5 .* ones (5))) 246s ***** assert (deconvwnr (ones (5, 5, 5), ones (3))) 246s ***** error deconvwnr (ones (5), ones (3), -0.7) 246s ***** error 246s deconvwnr (ones (5), ones (7)) 246s ***** error 246s deconvwnr (ones (5, 8, 2), ones (6, 5)) 246s ***** assert (deconvwnr (im0, psf0), im0_out, 1e-5) 246s ***** assert (deconvwnr (im0, single (psf0)), im0_out, 1e-5) 246s ***** assert (class (deconvwnr (im0, psf0)), "double") 246s ***** assert (deconvwnr (single (im0), psf0), single (im0_out), 1e-5) 246s ***** assert (class (deconvwnr (single (im0), psf0)), "single") 246s ***** assert (deconvwnr (im2uint8 (im0), psf0), im2uint8 (im0_out)) 246s ***** assert (class (deconvwnr (im2uint8 (im0), psf0)), "uint8") 246s ***** assert (deconvwnr (im2uint16 (im0), psf0), im2uint16 (im0_out)) 246s ***** assert (class (deconvwnr (im2uint16 (im0), psf0)), "uint16") 246s ***** assert (deconvwnr (im2int16 (im0), psf0), im2int16 (im0_out)) 246s ***** assert (class (deconvwnr (im2int16 (im0), psf0)), "int16") 246s ***** error deconvwnr (true (5), ones (3)) 246s ***** test 246s assert (deconvwnr (im0, psf0, 0.01), im0_out, 1e-4) 246s assert (deconvwnr (im0, psf1, 0.01), 0.333.*ones (5), 1e-4) 246s ***** test 246s im1 = magic (5)./25; 246s out1_0 = [ 246s -0.0820 0.5845 -0.4293 0.2372 -0.0214; 246s 0.6241 -0.5877 0.2768 0.0182 -0.0424; 246s -0.5481 0.3164 0.0578 -0.2009 0.6637; 246s 0.1580 0.0974 -0.1613 0.7033 -0.5085; 246s 0.1370 -0.1217 0.5449 -0.4689 0.1976]; 246s out1_1 = [ 246s -0.2959 -0.1363 0.4038 0.7595 0.1347; 246s -0.0191 0.3269 0.8768 0.0559 -0.3748; 246s 0.2481 0.7979 0.1731 -0.4517 0.0982; 246s 0.7210 0.2904 -0.5305 0.0194 0.3654; 246s 0.2116 -0.4132 -0.0575 0.4826 0.6422]; 246s assert (deconvwnr (im1, psf0, 0.01), out1_0, 1e-4) 246s assert (deconvwnr (im1, psf1, 0.01), out1_1, 1e-4) 246s ***** test 246s assert (deconvwnr (im2, psf0, 0.01), out2_0, 1e-4) 246s assert (deconvwnr (im2, psf1, 0.01), out2_1, 1e-4) 246s ***** test 246s out3_0_x = [ 246s -1.1111 1.0556 -0.4444 -0.1111 0.5556 -0.9444 0.8889 0.0556; 246s 1.0556 -0.7778 0.2222 0.5556 -1.2778 1.2222 0.0556 -0.7778; 246s -0.4444 0.2222 0.2222 -0.9444 1.2222 -0.2778 -0.4444 0.7222; 246s -0.1111 0.5556 -0.9444 0.8889 0.0556 -0.4444 0.3889 -0.4444; 246s 0.5556 -1.2778 1.2222 0.0556 -0.7778 0.7222 -0.4444 0.2222; 246s -0.9444 1.2222 -0.2778 -0.4444 0.7222 -0.7778 0.5556 0.2222; 246s 0.8889 0.0556 -0.4444 0.3889 -0.4444 0.5556 -0.1111 -0.9444; 246s 0.0556 -0.7778 0.7222 -0.4444 0.2222 0.2222 -0.9444 1.2222]; 246s out3_0_01 = [ 246s -0.5064 0.2140 0.1101 -0.0993 0.0297 -0.1942 0.3223 0.0772; 246s 0.2140 -0.0659 0.0375 0.0891 -0.4109 0.4783 0.2202 -0.2860; 246s 0.1101 0.0375 -0.0525 -0.3208 0.5721 0.0034 -0.1743 0.0939; 246s -0.0993 0.0891 -0.3208 0.4624 0.0936 -0.1150 -0.1395 -0.0135; 246s 0.0297 -0.4109 0.5721 0.0936 -0.2566 -0.0027 0.1101 0.1341; 246s -0.1942 0.4783 0.0034 -0.1150 -0.0027 -0.0659 0.2542 -0.0819; 246s 0.3223 0.2202 -0.1743 -0.1395 0.1101 0.2542 -0.3023 -0.3371; 246s 0.0772 -0.2860 0.0939 -0.0135 0.1341 -0.0819 -0.3371 0.6794]; 246s out3_0_00001 = [ 246s -1.1087 1.0520 -0.4419 -0.1112 0.5532 -0.9410 0.8864 0.0557; 246s 1.0520 -0.7746 0.2213 0.5537 -1.2742 1.2190 0.0565 -0.7759; 246s -0.4419 0.2213 0.2211 -0.9418 1.2196 -0.2767 -0.4433 0.7195; 246s -0.1112 0.5537 -0.9418 0.8870 0.0557 -0.4428 0.3864 -0.4425; 246s 0.5532 -1.2742 1.2196 0.0557 -0.7755 0.7188 -0.4419 0.2220; 246s -0.9410 1.2190 -0.2767 -0.4428 0.7188 -0.7746 0.5544 0.2206; 246s 0.8864 0.0565 -0.4433 0.3864 -0.4419 0.5544 -0.1121 -0.9418; 246s 0.0557 -0.7759 0.7195 -0.4425 0.2220 0.2206 -0.9418 1.2201]; 246s out3_0_3 = [ 246s -0.0893 -0.0089 0.0446 -0.0357 -0.0268 0.0268 0.0893 0.0446; 246s -0.0089 0.0223 -0.0089 -0.0357 -0.0089 0.1473 0.1161 0.0179; 246s 0.0446 -0.0089 -0.0357 -0.0089 0.1607 0.0804 -0.0089 -0.0357; 246s -0.0357 -0.0357 -0.0089 0.1652 0.0804 -0.0179 -0.0714 0.0045; 246s -0.0268 -0.0089 0.1607 0.0804 -0.0179 -0.0446 0.0446 -0.0000; 246s 0.0268 0.1473 0.0804 -0.0179 -0.0446 0.0223 0.0268 -0.0000; 246s 0.0893 0.1161 -0.0089 -0.0714 0.0446 0.0268 -0.1071 -0.0446; 246s 0.0446 0.0179 -0.0357 0.0045 0.0000 -0.0000 -0.0446 0.1652]; 246s out3_1_x = [ 246s -0.3333 0.1667 -0.6667 -0.3333 0.3333 0.1667 0.3333 0.1667; 246s 0.1667 -0.3333 -0.3333 0.3333 0.1667 0.3333 0.1667 0.3333; 246s -0.6667 -0.3333 0.6667 0.1667 0.3333 0.1667 0.3333 0.1667; 246s -0.3333 0.3333 0.1667 -0.3333 0.1667 0.3333 0.1667 -0.6667; 246s 0.3333 0.1667 0.3333 0.1667 0.6667 0.1667 -0.6667 -0.3333; 246s 0.1667 0.3333 0.1667 0.3333 0.1667 -0.3333 -0.3333 0.3333; 246s 0.3333 0.1667 0.3333 0.1667 -0.6667 -0.3333 -0.3333 0.1667; 246s 0.1667 0.3333 0.1667 -0.6667 -0.3333 0.3333 0.1667 0.6667]; 246s out3_1_01 = [ 246s -0.1868 0.1548 -0.5994 -0.2997 0.3097 0.1548 0.3097 0.1548; 246s 0.1548 -0.2997 -0.2997 0.3097 0.1548 0.3097 0.1548 0.3097; 246s -0.5994 -0.2997 0.4965 0.1548 0.3097 0.1548 0.3097 0.1548; 246s -0.2997 0.3097 0.1548 -0.1247 0.1548 0.3097 0.1548 -0.5994; 246s 0.3097 0.1548 0.3097 0.1548 0.4965 0.1548 -0.5994 -0.2997; 246s 0.1548 0.3097 0.1548 0.3097 0.1548 -0.2997 -0.2997 0.3097; 246s 0.3097 0.1548 0.3097 0.1548 -0.5994 -0.2997 -0.1868 0.1548; 246s 0.1548 0.3097 0.1548 -0.5994 -0.2997 0.3097 0.1548 0.4343]; 246s out3_1_00001 = [ 246s -0.3331 0.1667 -0.6666 -0.3333 0.3333 0.1667 0.3333 0.1667; 246s 0.1667 -0.3333 -0.3333 0.3333 0.1667 0.3333 0.1667 0.3333; 246s -0.6666 -0.3333 0.6664 0.1667 0.3333 0.1667 0.3333 0.1667; 246s -0.3333 0.3333 0.1667 -0.3330 0.1667 0.3333 0.1667 -0.6666; 246s 0.3333 0.1667 0.3333 0.1667 0.6664 0.1667 -0.6666 -0.3333; 246s 0.1667 0.3333 0.1667 0.3333 0.1667 -0.3333 -0.3333 0.3333; 246s 0.3333 0.1667 0.3333 0.1667 -0.6666 -0.3333 -0.3331 0.1667; 246s 0.1667 0.3333 0.1667 -0.6666 -0.3333 0.3333 0.1667 0.6663]; 246s out3_1_3 = [ 246s -0.0089 0.0625 -0.1250 -0.0625 0.1250 0.0625 0.1250 0.0625; 246s 0.0625 -0.0625 -0.0625 0.1250 0.0625 0.1250 0.0625 0.1250; 246s -0.1250 -0.0625 0.1339 0.0625 0.1250 0.0625 0.1250 0.0625; 246s -0.0625 0.1250 0.0625 0.0982 0.0625 0.1250 0.0625 -0.1250; 246s 0.1250 0.0625 0.1250 0.0625 0.1339 0.0625 -0.1250 -0.0625; 246s 0.0625 0.1250 0.0625 0.1250 0.0625 -0.0625 -0.0625 0.1250; 246s 0.1250 0.0625 0.1250 0.0625 -0.1250 -0.0625 -0.0089 0.0625; 246s 0.0625 0.1250 0.0625 -0.1250 -0.0625 0.1250 0.0625 0.0268]; 246s assert (deconvwnr (im3, psf0), out3_0_x, 1e-4) 246s assert (deconvwnr (im3, psf0, 0.1), out3_0_01, 1e-4) 246s assert (deconvwnr (im3, psf0, 0.0001), out3_0_00001, 1e-4) 246s assert (deconvwnr (im3, psf0, 3), out3_0_3, 1e-4) 246s assert (deconvwnr (im3, psf1), out3_1_x, 1e-4) 246s assert (deconvwnr (im3, psf1, 0.1), out3_1_01, 1e-4) 246s assert (deconvwnr (im3, psf1, 0.0001), out3_1_00001, 1e-4) 246s assert (deconvwnr (im3, psf1, 3), out3_1_3, 1e-4) 246s ***** test 246s im_rgb = cat (3, im2, im3, magic (8)./64); 246s out_rgb_0(:, :, 1) = out2_0; 246s out_rgb_0(:, :, 2) = [ 246s -0.9255 0.7869 -0.2553 -0.1154 0.3801 -0.6906 0.7000 0.0651; 246s 0.7869 -0.5407 0.1534 0.4141 -1.0064 0.9816 0.1222 -0.6335; 246s -0.2553 0.1534 0.1343 -0.7453 1.0211 -0.1936 -0.3586 0.5209; 246s -0.1154 0.4141 -0.7453 0.7468 0.0675 -0.3247 0.2023 -0.2996; 246s 0.3801 -1.0064 1.0211 0.0675 -0.6045 0.4711 -0.2553 0.2032; 246s -0.6906 0.9816 -0.1936 -0.3247 0.4711 -0.5407 0.4692 0.1052; 246s 0.7000 0.1222 -0.3586 0.2023 -0.2553 0.4692 -0.1868 -0.7477; 246s 0.0651 -0.6335 0.5209 -0.2996 0.2032 0.1052 -0.7477 1.0630]; 246s out_rgb_0(:, :, 3) = [ 246s -0.8118 0.8805 0.8341 -0.7963 -0.6343 0.8222 0.7757 -0.6188; 246s 0.5720 -0.4151 -0.3687 0.5565 0.3945 -0.3567 -0.3103 0.3791; 246s 0.2007 -0.0438 0.0026 0.1852 0.0232 0.0146 0.0610 0.0078; 246s -0.6880 0.7568 0.7104 -0.6725 -0.5105 0.6984 0.6520 -0.4951; 246s 0.6079 -0.5392 -0.5856 0.6234 0.7854 -0.5975 -0.6439 0.8008; 246s 0.1051 0.0519 0.0983 0.0896 -0.0724 0.1102 0.1566 -0.0879; 246s -0.2662 0.4231 0.4696 -0.2817 -0.4437 0.4815 0.5279 -0.4592; 246s 0.7317 -0.6629 -0.7093 0.7471 0.9091 -0.7213 -0.7677 0.9246]; 246s out_rgb_1(:, :, 1) = out2_1; 246s out_rgb_1(:, :, 2) = [ 246s -0.3110 0.1654 -0.6593 -0.3297 0.3308 0.1654 0.3308 0.1654; 246s 0.1654 -0.3297 -0.3297 0.3308 0.1654 0.3308 0.1654 0.3308; 246s -0.6593 -0.3297 0.6418 0.1654 0.3308 0.1654 0.3308 0.1654; 246s -0.3297 0.3308 0.1654 -0.3016 0.1654 0.3308 0.1654 -0.6593; 246s 0.3308 0.1654 0.3308 0.1654 0.6418 0.1654 -0.6593 -0.3297; 246s 0.1654 0.3308 0.1654 0.3308 0.1654 -0.3297 -0.3297 0.3308; 246s 0.3308 0.1654 0.3308 0.1654 -0.6593 -0.3297 -0.3110 0.1654; 246s 0.1654 0.3308 0.1654 -0.6593 -0.3297 0.3308 0.1654 0.6323]; 246s out_rgb_1(:, :, 3) = [ 246s -0.0240 0.3338 0.3335 0.0329 0.0344 0.1564 0.3942 0.0913; 246s 0.7871 0.6512 -0.5394 -0.2225 0.7287 0.5905 -0.3619 -0.2809; 246s 0.1333 -0.7196 0.2335 1.0291 0.0749 -0.5421 0.1728 0.9708; 246s -0.2201 0.4109 0.6487 -0.1632 -0.1617 0.4716 0.4713 -0.1048; 246s 0.4430 -0.1331 -0.1334 0.4999 0.5014 -0.3106 -0.0727 0.5582; 246s -0.6326 0.1654 0.8803 0.2633 -0.6910 0.1047 1.0577 0.2049; 246s 0.6191 0.7001 -0.2523 -0.3905 0.5607 0.8776 -0.3130 -0.4489; 246s 0.2469 -0.0561 0.1818 0.3038 0.3052 0.0047 0.0043 0.3621]; 246s assert (deconvwnr (im_rgb, psf0, 0.01), out_rgb_0, 1e-4) 246s assert (deconvwnr (im_rgb, psf1, 0.01), out_rgb_1, 1e-4) 246s ***** test 246s ## Test that psf and nsr can be of class single, but are usually 246s ## internally as doubles. Matlab requires everything all to be 246s ## double so this is Matlab incompatible behaviour by design. 246s nsr = 0.1; 246s psf1_recast = double (single (psf1)); 246s nsr_recast = double (single (0.1)); 246s deconvolved = deconvwnr (im2, psf1_recast, nsr_recast); 246s assert (deconvwnr (im2, single (psf1), single (nsr)), deconvolved) 246s assert (deconvwnr (im2, single (psf1), nsr_recast), deconvolved) 246s assert (deconvwnr (im2, psf1_recast, single (nsr)), deconvolved) 246s ***** demo 246s I = phantom (); 246s figure, imshow (I); 246s title ("Original image"); 246s psf = fspecial ("motion", 30, 15); 246s blurred = imfilter (I, psf, "conv"); 246s figure, imshow (blurred); 246s title ("Image with added motion blur"); 246s var_noise = 0.00005; 246s blurred_noisy = imnoise (blurred, "gaussian", 0, var_noise); 246s figure, imshow (blurred_noisy); 246s title ("Image with motion blur and added Gaussian noise"); 246s estimated_nsr = var_noise / (var(blurred_noisy(:)) - var_noise); 246s J = deconvwnr (blurred_noisy, psf, estimated_nsr); 246s figure, imshow (J) 246s title ({"restored image after Wiener deconvolution", 246s "with known PSF and estimated NSR"}); 246s 27 tests, 27 passed, 0 known failure, 0 skipped 246s [inst/regionprops.m] 246s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/regionprops.m 246s ***** shared bw2d, gray2d, bw2d_over_bb, bw2d_insides 246s bw2d = logical ([ 246s 0 1 0 1 1 0 246s 0 1 1 0 1 1 246s 0 1 0 0 0 0 246s 0 0 0 1 1 1 246s 0 0 1 1 0 1]); 246s 246s gray2d = [ 246s 2 4 0 7 5 2 246s 3 0 4 9 3 7 246s 0 5 3 4 8 1 246s 9 2 0 5 8 6 246s 8 9 7 2 2 5]; 246s 246s ## For testing overlapping bounding boxes 246s bw2d_over_bb = logical ([ 246s 0 1 1 1 0 1 1 246s 1 1 0 0 0 0 1 246s 1 0 0 1 1 0 1 246s 1 0 0 1 1 0 0 246s 0 0 0 1 1 1 1]); 246s 246s ## For testing when there's regions inside regions 246s bw2d_insides = logical ([ 246s 0 0 0 0 0 0 0 0 246s 0 1 1 1 1 1 1 0 246s 0 1 0 0 0 0 1 0 246s 0 1 0 1 1 0 1 0 246s 0 1 0 1 1 0 1 0 246s 0 1 0 0 0 0 1 0 246s 0 1 1 1 1 1 1 0 246s 0 0 0 0 0 0 0 0]); 246s ***** function c = get_2d_centroid_for (idx) 246s subs = ind2sub ([5 6], idx); 246s m = false ([5 6]); 246s m(idx) = true; 246s y = sum ((1:5)' .* sum (m, 2) /sum (m(:))); 246s x = sum ((1:6) .* sum (m, 1) /sum (m(:))); 246s c = [x y]; 246s ***** endfunction 246s ***** assert (regionprops (bw2d, "Area"), struct ("Area", {8; 6})) 246s ***** assert (regionprops (double (bw2d), "Area"), struct ("Area", {14})) 246s ***** assert (regionprops (bwlabel (bw2d, 4), "Area"), struct ("Area", {4; 6; 4})) 246s ***** assert (regionprops (bw2d, "PixelIdxList"), 246s struct ("PixelIdxList", {[6; 7; 12; 8; 16; 21; 22; 27] 246s [15; 19; 20; 24; 29; 30]})) 246s ***** assert (regionprops (bwlabel (bw2d, 4), "PixelIdxList"), 246s struct ("PixelIdxList", {[6; 7; 8; 12] 246s [15; 19; 20; 24; 29; 30] 246s [16; 21; 22; 27]})) 246s ***** assert (regionprops (bw2d, "PixelList"), 246s struct ("PixelList", {[2 1; 2 2; 3 2; 2 3; 4 1; 5 1; 5 2; 6 2] 246s [3 5; 4 4; 4 5; 5 4; 6 4; 6 5]})) 246s ***** assert (regionprops (bwlabel (bw2d, 4), "PixelList"), 246s struct ("PixelList", {[2 1; 2 2; 2 3; 3 2] 246s [3 5; 4 4; 4 5; 5 4; 6 4; 6 5] 246s [4 1; 5 1; 5 2; 6 2]})) 246s ***** assert (regionprops (bw2d, gray2d, "PixelValues"), 246s struct ("PixelValues", {[4; 0; 4; 5; 7; 5; 3; 7] 246s [7; 5; 2; 8; 6; 5]})) 246s ***** assert (regionprops (bw2d, gray2d, "MaxIntensity"), 246s struct ("MaxIntensity", {7; 8})) 246s ***** assert (regionprops (bw2d, gray2d, "MinIntensity"), 246s struct ("MinIntensity", {0; 2})) 247s ***** assert (regionprops (bw2d, "BoundingBox"), 247s struct ("BoundingBox", {[1.5 0.5 5 3]; [2.5 3.5 4 2]})) 247s ***** assert (regionprops (bw2d, "Centroid"), 247s struct ("Centroid", {get_2d_centroid_for([6 7 8 12 16 21 22 27]) 247s get_2d_centroid_for([15 19 20 24 29 30])}), 247s 5 * eps) 247s ***** test 247s props = struct ("Area", {8; 6}, 247s "Centroid", {get_2d_centroid_for([6 7 8 12 16 21 22 27]) 247s get_2d_centroid_for([15 19 20 24 29 30])}, 247s "BoundingBox", {[1.5 0.5 5 3]; [2.5 3.5 4 2]}); 247s assert (regionprops (bw2d, "basic"), props, 5 * eps) 247s assert (regionprops (bwconncomp (bw2d, 8), "basic"), props, 5 * eps) 247s assert (regionprops (bwlabeln (bw2d, 8), "basic"), props, 5 * eps) 247s ***** test 247s props = struct ("Area", {4; 6; 4}, 247s "Centroid", {get_2d_centroid_for([6 7 8 12]) 247s get_2d_centroid_for([15 19 20 24 29 30]) 247s get_2d_centroid_for([16 21 22 27])}, 247s "BoundingBox", {[1.5 0.5 2 3]; [2.5 3.5 4 2]; [3.5 0.5 3 2]}); 247s assert (regionprops (bwconncomp (bw2d, 4), "basic"), props, 5 * eps) 247s assert (regionprops (bwlabeln (bw2d, 4), "basic"), props, 5 * eps) 247s ***** assert (regionprops (double (bw2d), "basic"), 247s struct ("Area", 14, 247s "Centroid", get_2d_centroid_for (find (bw2d)), 247s "BoundingBox", [1.5 0.5 5 5]), eps*1000) 247s ***** assert (regionprops ([0 0 1], "Centroid").Centroid, [3 1]) 247s ***** assert (regionprops ([0 0 1; 0 0 0], "Centroid").Centroid, [3 1]) 247s ***** assert (regionprops ([0 1 1], "Centroid").Centroid, [2.5 1]) 247s ***** assert (regionprops ([0 1 1; 0 0 0], "Centroid").Centroid, [2.5 1]) 247s ***** test 247s a = zeros (2, 3, 3); 247s a(:, :, 1) = [0 1 0; 0 0 0]; 247s a(:, :, 3) = a(:, :, 1); 247s c = regionprops (a, "centroid"); 247s assert (c.Centroid, [2 1 2]) 247s ***** test 247s d1=2; d2=4; d3=6; 247s a = ones (d1, d2, d3); 247s c = regionprops (a, "centroid"); 247s assert (c.Centroid, [mean(1:d2), mean(1:d1), mean(1:d3)], eps*1000) 247s ***** test 247s a = [0 0 2 2; 3 3 0 0; 0 1 0 1]; 247s c = regionprops (a, "centroid"); 247s assert (c(1).Centroid, [3 3]) 247s assert (c(2).Centroid, [3.5 1]) 247s assert (c(3).Centroid, [1.5 2]) 247s ***** test 247s ***** assert (regionprops (bw2d, gray2d, "WeightedCentroid"), 247s struct ("WeightedCentroid", 247s {sum([2 1; 2 2; 3 2; 2 3; 4 1; 5 1; 5 2; 6 2] 247s .* ([4; 0; 4; 5; 7; 5; 3; 7] / 35)) 247s sum([3 5; 4 4; 4 5; 5 4; 6 4; 6 5] 247s .* ([7; 5; 2; 8; 6; 5] / 33))}), 5 * eps) 247s ***** test 247s img = zeros (3, 9); 247s img(2, 1:9) = 0:0.1:0.8; 247s bw = im2bw (img, 0.5); 247s props = regionprops (bw, img, "WeightedCentroid"); 247s ix = 7:9; 247s x = sum (img(2,ix) .* (ix)) / sum (img(2,ix)); 247s assert (props(1).WeightedCentroid(1), x, 10*eps) 247s assert (props(1).WeightedCentroid(2), 2, 10*eps) 247s ***** assert (regionprops (bw2d, gray2d, "MeanIntensity"), 247s struct ("MeanIntensity", {mean([4 0 5 4 7 5 3 7]) 247s mean([7 5 2 8 6 5])})) 247s ***** assert (regionprops (bwlabel (bw2d, 4), gray2d, "MeanIntensity"), 247s struct ("MeanIntensity", {mean([4 0 5 4]) 247s mean([7 5 2 8 6 5]) 247s mean([7 5 3 7])})) 247s ***** assert (regionprops (bw2d, "SubarrayIdx"), 247s struct ("SubarrayIdx", {{[1 2 3], [2 3 4 5 6]} 247s {[4 5], [3 4 5 6]}})) 247s ***** assert (regionprops (bwlabel (bw2d, 4), "SubarrayIdx"), 247s struct ("SubarrayIdx", {{[1 2 3], [2 3]} 247s {[4 5], [3 4 5 6]} 247s {[1 2], [4 5 6]}})) 247s ***** test 247s out = struct ("Image", {logical([1 0 1 1 0; 1 1 0 1 1; 1 0 0 0 0]) 247s logical([0 1 1 1; 1 1 0 1])}); 247s assert (regionprops (bw2d, "Image"), out) 247s assert (regionprops (bw2d, gray2d, "Image"), out) 247s assert (regionprops (bwlabel (bw2d), "Image"), out) 247s ***** assert (regionprops (bwlabel (bw2d, 4), "Image"), 247s struct ("Image", {logical([1 0; 1 1; 1 0]) 247s logical([0 1 1 1; 1 1 0 1]) 247s logical([1 1 0; 0 1 1])})) 247s ***** test 247s out = struct ("Image", {logical([0 1 1 1; 1 1 0 0; 1 0 0 0; 1 0 0 0]) 247s logical([1 1 0 0; 1 1 0 0; 1 1 1 1]) 247s logical([1 1; 0 1; 0 1])}); 247s assert (regionprops (bw2d_over_bb, "Image"), out) 247s assert (regionprops (bwlabel (bw2d_over_bb), "Image"), out) 247s ***** test 247s out = struct ("Image", {logical([1 1 1 1 1 1 247s 1 0 0 0 0 1 247s 1 0 0 0 0 1 247s 1 0 0 0 0 1 247s 1 0 0 0 0 1 247s 1 1 1 1 1 1]) 247s logical([1 1; 1 1])}); 247s assert (regionprops (bw2d_insides, "Image"), out) 247s assert (regionprops (bwlabel (bw2d_insides), "Image"), out) 247s ***** test 247s l = uint8 ([ 247s 0 0 0 0 0 0 247s 0 1 1 1 1 0 247s 0 1 2 2 1 0 247s 0 1 2 2 1 0 247s 0 1 1 1 1 0 247s 0 0 0 0 0 0 247s ]); 247s assert (regionprops (l, "EulerNumber"), 247s struct ("EulerNumber", {0; 1})) 247s 247s l = uint8 ([ 247s 0 0 0 0 0 0 0 247s 0 1 1 1 1 1 0 247s 0 1 2 2 2 1 0 247s 0 1 2 3 2 1 0 247s 0 1 2 2 2 1 0 247s 0 1 1 1 1 1 0 247s 0 0 0 0 0 0 0 247s ]); 247s assert (regionprops (l, "EulerNumber"), 247s struct ("EulerNumber", {0; 0; 1})) 247s ***** test 247s l = uint8 ([ 247s 0 0 0 0 0 0 0 247s 0 1 1 1 1 1 0 247s 0 1 0 0 0 1 0 247s 0 1 0 1 0 1 0 247s 0 1 0 0 0 1 0 247s 0 1 1 1 1 1 0 247s 0 0 0 0 0 0 0 247s ]); 247s assert (regionprops (l, "EulerNumber"), 247s struct ("EulerNumber", 1)) 247s ***** test 247s l = uint8 ([ 247s 1 1 1 1 1 1 1 247s 1 1 2 1 2 2 1 247s 1 2 1 2 1 2 1 247s 1 1 2 1 2 1 1 247s 1 2 1 2 1 2 1 247s 1 2 2 1 2 1 1 247s 1 1 1 1 1 1 1 247s ]); 247s assert (regionprops (l, "EulerNumber"), 247s struct ("EulerNumber", {-9; -4})) 247s ***** test 247s l = uint8 ([ 247s 1 1 1 1 1 1 1 247s 1 1 4 1 5 5 1 247s 1 3 1 4 1 5 1 247s 1 1 3 1 4 1 1 247s 1 2 1 3 1 4 1 247s 1 2 2 1 3 1 1 247s 1 1 1 1 1 1 1 247s ]); 247s assert (regionprops (l, "EulerNumber"), 247s struct ("EulerNumber", {-9; 1; 1; 1; 1})) 247s ***** test 247s l = uint8 ([ 247s 1 1 1 1 1 1 1 247s 0 1 2 1 2 2 1 247s 1 2 1 2 1 2 1 247s 1 1 2 1 2 1 1 247s 1 2 1 2 1 2 1 247s 1 2 2 1 2 1 1 247s 1 1 1 1 1 1 1 247s ]); 247s filled = { 247s logical([ 247s 1 1 1 1 1 1 1 247s 0 1 1 1 1 1 1 247s 1 1 1 1 1 1 1 247s 1 1 1 1 1 1 1 247s 1 1 1 1 1 1 1 247s 1 1 1 1 1 1 1 247s 1 1 1 1 1 1 1 247s ]); 247s logical([ 247s 0 1 0 1 1 247s 1 1 1 1 1 247s 0 1 1 1 0 247s 1 1 1 1 1 247s 1 1 0 1 0 247s ]); 247s }; 247s assert (regionprops (l, {"FilledImage", "FilledArea"}), 247s struct ("FilledImage", filled, "FilledArea", {48; 19})) 247s ***** test 247s l = uint8 ([ 247s 0 0 0 0 0 0 0 247s 0 1 0 1 0 1 0 247s 0 1 0 1 0 1 0 247s 0 0 0 0 0 0 0 247s ]); 247s filled = logical ([ 247s 1 0 1 0 1 247s 1 0 1 0 1 247s ]); 247s assert (regionprops (l, {"FilledImage", "FilledArea"}), 247s struct ("FilledImage", filled, "FilledArea", 6)) 247s 247s l = uint8 ([ 247s 2 2 2 2 2 2 2 247s 2 1 2 1 2 1 2 247s 2 1 2 1 2 1 2 247s 2 2 2 2 2 2 2 247s ]); 247s filled = { 247s logical([ 247s 1 0 1 0 1 247s 1 0 1 0 1 247s ]); 247s true(4, 7) 247s }; 247s assert (regionprops (l, {"FilledImage", "FilledArea"}), 247s struct ("FilledImage", filled, "FilledArea", {6; 28})) 247s ***** test 247s l = uint8 ([ 247s 0 0 0 0 0 0 0 247s 0 1 1 1 1 1 0 247s 0 1 2 2 2 1 0 247s 0 1 2 3 2 1 0 247s 0 1 2 2 2 1 0 247s 0 1 1 1 1 1 0 247s 0 0 0 0 0 0 0 247s ]); 247s filled = {true(5, 5); true(3, 3); true}; 247s assert (regionprops (l, {"FilledImage", "FilledArea"}), 247s struct ("FilledImage", filled, "FilledArea", {25; 9; 1})) 247s ***** test 247s l = uint8 ([ 247s 1 1 1 2 0 0 247s 1 0 2 1 2 0 247s 1 2 0 1 0 2 247s 1 2 1 1 0 2 247s 0 1 2 2 2 2 247s ]); 247s filled = { 247s logical([ 247s 1 1 1 0 247s 1 1 1 1 247s 1 1 1 1 247s 1 1 1 1 247s 0 1 0 0 247s ]); 247s logical([ 247s 0 0 1 0 0 247s 0 1 1 1 0 247s 1 1 1 1 1 247s 1 1 1 1 1 247s 0 1 1 1 1 247s ]) 247s }; 247s assert (regionprops (l, {"FilledImage", "FilledArea"}), 247s struct ("FilledImage", filled, "FilledArea", {16; 18})) 247s ***** test 247s bw = false (5, 5, 5); 247s bw(2:4, 2:4, [1 5]) = true; 247s bw(2:4, [1 5], 2:4) = true; 247s bw([1 5], 2:4, 2:4) = true; 247s filled = bw; 247s filled(2:4, 2:4, 2:4) = true; 247s assert (regionprops (bw, {"FilledImage", "FilledArea"}), 247s struct ("FilledImage", filled, "FilledArea", 81)) 247s ***** test 247s l = uint8 ([ 247s 1 1 1 2 0 0 247s 1 0 2 1 2 0 247s 1 2 0 1 0 2 247s 1 2 1 1 0 2 247s 0 1 2 2 2 2 247s ]); 247s assert (regionprops (l, {"Extent"}), struct ("Extent", {0.55; 0.44})) 247s ***** test 247s bw = logical ([0 0 0; 0 1 0; 0 0 0]); 247s assert (regionprops (bw, {"MinorAxisLength", "MajorAxisLength", ... 247s "Eccentricity", "Orientation"}), 247s struct ("MajorAxisLength", 4 .* sqrt (1/12), 247s "MinorAxisLength", 4 .* sqrt (1/12), 247s "Eccentricity", 0, 247s "Orientation", 0)) 247s ***** test 247s a = eye (4); 247s t = regionprops (a, "majoraxislength"); 247s assert (t.MajorAxisLength, 6.4291, 1e-3); 247s t = regionprops (a, "minoraxislength"); 247s assert(t.MinorAxisLength, 1.1547 , 1e-3); 247s t = regionprops (a, "eccentricity"); 247s assert (t.Eccentricity, 0.98374 , 1e-3); 247s t = regionprops (a, "orientation"); 247s assert (t.Orientation, -45); 247s t = regionprops (a, "equivdiameter"); 247s assert (t.EquivDiameter, 2.2568, 1e-3); 247s ***** test 247s b = ones (5); 247s t = regionprops (b, "majoraxislength"); 247s assert (t.MajorAxisLength, 5.7735 , 1e-3); 247s t = regionprops (b, "minoraxislength"); 247s assert (t.MinorAxisLength, 5.7735 , 1e-3); 247s t = regionprops (b, "eccentricity"); 247s assert (t.Eccentricity, 0); 247s t = regionprops (b, "orientation"); 247s assert (t.Orientation, 0); 247s t = regionprops (b, "equivdiameter"); 247s assert (t.EquivDiameter, 5.6419, 1e-3); 247s ***** test 247s c = [0 0 1; 0 1 1; 1 1 0]; 247s t = regionprops (c, "minoraxislength"); 247s assert (t.MinorAxisLength, 1.8037 , 1e-3); 247s t = regionprops (c, "majoraxislength"); 247s assert (t.MajorAxisLength, 4.1633 , 1e-3); 247s t = regionprops (c, "eccentricity"); 247s assert (t.Eccentricity, 0.90128 , 1e-3); 247s t = regionprops (c, "orientation"); 247s assert (t.Orientation, 45); 247s t = regionprops (c, "equivdiameter"); 247s assert (t.EquivDiameter, 2.5231, 1e-3); 247s ***** test 247s bw = logical ([0 0 0 0; 0 1 1 0; 0 0 0 0]); 247s props = regionprops (bw, "Orientation"); 247s assert ([props.Orientation], 0, 0) 247s 247s props = regionprops (bw', "Orientation"); 247s assert ([props.Orientation], 90, 0) 247s 247s bw = logical ([0 0 0 0; 0 1 1 0; 0 1 1 0; 0 0 0 0]); 247s props = regionprops (bw, "Orientation"); 247s assert ([props.Orientation], 0, 0) 247s 247s bw = logical ([1 1 0 0 0 ; 0 0 1 1 0 ; 0 0 0 0 0; 0 0 0 0 0]); 247s props = regionprops (bw, "Orientation"); 247s assert ([props.Orientation], -22.5, eps (22.5)) 247s 247s bw = logical ([ 247s 1 1 0 0 1 247s 0 0 0 0 1 247s 0 0 0 0 0 247s 0 0 1 1 0 247s 1 0 1 1 0 247s 1 0 0 0 0 247s 0 1 0 0 0 247s 0 1 0 0 0]); 247s props = regionprops (bw, "Orientation"); 247s assert ([props.Orientation], [0 -67.5 0 90]) 247s ***** test 247s f = [0 0 0 0; 1 1 1 1; 0 1 1 1; 0 0 0 0]; 247s t = regionprops (f, "Extrema"); 247s 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]; 247s assert (t.Extrema, shouldbe, eps); 247s ***** test 247s bw = false (5); 247s bw([8 12 13 14 18]) = true; 247s extrema = [2 1; 3 1; 4 2; 4 3; 3 4; 2 4; 1 3; 1 2] + 0.5; 247s assert (regionprops (bw, "extrema"), struct ("Extrema", extrema)) 247s ***** test 247s ext1 = [1 0; 5 0; 6 1; 6 2; 2 3; 1 3; 1 3; 1 0] + 0.5; 247s ext2 = [3 3; 6 3; 6 3; 6 5; 6 5; 2 5; 2 5; 2 4] + 0.5; 247s assert (regionprops (bw2d, "extrema"), struct ("Extrema", {ext1; ext2})) 247s ***** assert (regionprops (bw2d, "equivDiameter"), 247s struct ("EquivDiameter", {sqrt(4*8/pi); sqrt(4*6/pi)})) 247s ***** assert (regionprops (bw2d_over_bb, "equivDiameter"), 247s struct ("EquivDiameter", {sqrt(4*7/pi); sqrt(4*8/pi); sqrt(4*4/pi)})) 247s ***** assert (regionprops (bw2d_insides, "equivDiameter"), 247s struct ("EquivDiameter", {sqrt(4*20/pi); sqrt(4*4/pi)})) 247s ***** test 247s I = zeros (40); 247s disk = fspecial ("disk",10); 247s disk = disk ./ max (disk(:)); 247s I(10:30, 10:30) = disk; 247s bw = im2bw (I, 0.5); 247s props = regionprops (bw, "PerimeterOld"); 247s assert (props.PerimeterOld, 10*4 + (sqrt (2) * 4)*4, eps*100) 247s props = regionprops (bw, "Perimeter"); 247s assert (props.Perimeter, 59.876) 247s 247s props = regionprops (bwconncomp (bw), "PerimeterOld"); 247s assert (props.PerimeterOld, 10*4 + (sqrt (2) * 4)*4, eps*100) 247s props = regionprops (bwconncomp (bw), "Perimeter"); 247s assert (props.Perimeter, 59.876) 247s ***** assert (regionprops (bw2d, "PerimeterOld"), 247s struct ("PerimeterOld", {(sqrt (2)*6 + 4); (sqrt (2)*3 + 4)}), eps*10) 247s ***** assert (regionprops (bw2d, "Perimeter"), 247s struct ("Perimeter", {11.81; 7.683})) 247s ***** assert (regionprops (bw2d_insides, "PerimeterOld"), 247s struct ("PerimeterOld", {20; 4})) 247s ***** assert (regionprops (bw2d_insides, "Perimeter"), 247s struct ("Perimeter", {19.236; 3.556})) 247s ***** assert (regionprops (bwconncomp (bw2d_insides), "PerimeterOld"), 247s struct ("PerimeterOld", {20; 4})) 247s ***** assert (regionprops (bwconncomp (bw2d_insides), "Perimeter"), 247s struct ("Perimeter", {19.236; 3.556})) 247s ***** test 247s BW = false (5); 247s BW(2:4, 2:4) = true; # region with simple shape 247s 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]; 247s cimage_test = true(3); 247s carea_test = 9; 247s csolid_test = 1; 247s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 247s hull = props.ConvexHull; 247s # test only for existence of the correct corner points 247s # because Matlab returns more points (than necessary) 247s # (The correct shape of the ConvexHull results will only 247s # be tested indirectly via the tests of ConvexArea.) 247s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 247s assert (all (hull(1,:) == hull(end,:))) 247s cimage = props.ConvexImage; 247s assert (cimage, cimage_test); 247s carea = props.ConvexArea; 247s assert (carea, carea_test); 247s csolid = props.Solidity; 247s assert (csolid, csolid_test); 247s ***** test 247s BW = logical ([... # region with non-trivial shape 247s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 247s 0 0 0 1 1 1 1 0 0 0 0 0 0 0 247s 0 0 1 1 1 1 1 0 0 0 0 0 0 0 247s 0 1 1 1 1 1 1 0 0 0 0 0 0 0 247s 0 0 1 1 1 1 1 1 1 1 1 0 0 0 247s 0 0 0 1 1 1 1 1 1 1 1 1 0 0 247s 0 0 0 0 1 1 1 1 1 1 1 1 1 0 247s 0 0 0 0 0 1 1 1 0 1 1 1 1 0 247s 0 0 0 0 0 0 1 0 0 0 1 1 1 0 247s 0 0 0 0 0 0 0 0 0 0 0 0 0 0]); 247s 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]; 247s cimage_test = logical ([... 247s 0 0 1 1 1 1 0 0 0 0 0 0 247s 0 1 1 1 1 1 1 1 0 0 0 0 247s 1 1 1 1 1 1 1 1 1 0 0 0 247s 0 1 1 1 1 1 1 1 1 1 0 0 247s 0 0 1 1 1 1 1 1 1 1 1 0 247s 0 0 0 1 1 1 1 1 1 1 1 1 247s 0 0 0 0 1 1 1 1 1 1 1 1 247s 0 0 0 0 0 1 1 1 1 1 1 1]); 247s carea_test = 62; 247s csolid_test = 0.8548; 247s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 247s hull = props.ConvexHull; 247s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 247s assert (all (hull(1,:) == hull(end,:))) 247s cimage = props.ConvexImage; 247s assert (cimage, cimage_test); 247s carea = props.ConvexArea; 247s assert (carea, carea_test); 247s csolid = props.Solidity; 247s assert (csolid, csolid_test, 1e-4); 247s ***** test 247s BW = false (7); 247s BW(2:6, 2:6) = true; 247s BW(4,4) = false; # region with hole 247s 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]; 247s cimage_test = true(5); 247s carea_test = 25; 247s csolid_test = 0.96; 247s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 247s hull = props.ConvexHull; 247s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 247s assert (all (hull(1,:) == hull(end,:))) 247s cimage = props.ConvexImage; 247s assert (cimage, cimage_test); 247s carea = props.ConvexArea; 247s assert (carea, carea_test); 247s csolid = props.Solidity; 247s assert (csolid, csolid_test, 1e-4); 247s ***** test 247s BW = false (5); 247s BW(3, 3) = true; # region with single pixel 247s hull_test = [3.5 3; 3 2.5; 2.5 3]; 247s cimage_test = true; 247s carea_test = 1; 247s csolid_test = 1; 247s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 247s hull = props.ConvexHull; 247s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 247s assert (all (hull(1,:) == hull(end,:))) 247s cimage = props.ConvexImage; 247s assert (cimage, cimage_test); 247s carea = props.ConvexArea; 247s assert (carea, carea_test); 247s csolid = props.Solidity; 247s assert (csolid, csolid_test); 247s ***** test 247s BW = false (5); 247s BW(3, 2:4) = true; # regions with pixel line 247s BW2 = BW'; 247s hull_test = [2 2.5; 1.5 3; 2 3.5; 4 3.5; 4.5 3; 4 2.5]; 247s hull_test2 = fliplr (hull_test); 247s cimage_test = true(1,3); 247s cimage_test2 = cimage_test'; 247s carea_test = 3; 247s csolid_test = 1; 247s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 247s hull = props.ConvexHull; 247s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 247s assert (all (hull(1,:) == hull(end,:))) 247s cimage = props.ConvexImage; 247s assert (cimage, cimage_test); 247s carea = props.ConvexArea; 247s assert (carea, carea_test); 247s csolid = props.Solidity; 247s assert (csolid, csolid_test); 247s props2 = regionprops (BW2, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 247s hull2 = props2.ConvexHull; 247s assert (sum (ismember (hull_test2, hull2, "rows")), rows (hull_test2)) 247s assert (all (hull2(1,:) == hull2(end,:))) 247s cimage2 = props2.ConvexImage; 247s assert (cimage2, cimage_test2); 247s carea2 = props2.ConvexArea; 247s assert (carea2, carea_test); 247s csolid2 = props2.Solidity; 247s assert (csolid2, csolid_test); 247s ***** test 247s BW = logical ([ ... 247s 1 0 1 0 247s 1 0 1 0 247s 1 0 1 0 247s 1 0 1 0]); # two seperate regions 247s hull_test_1 = [1.5 1; 1 0.5; 0.5 1; 0.5 4; 1 4.5; 1.5 4]; 247s hull_test_2 = [3.5 1; 3 0.5; 2.5 1; 2.5 4; 3 4.5; 3.5 4]; 247s cimage_test_1 = true(4,1); 247s cimage_test_2 = true(4,1); 247s carea_test1 = 4; 247s carea_test2 = 4; 247s csolid_test1 = 1; 247s csolid_test2 = 1; 247s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 247s hull1 = {props.ConvexHull}{1}; 247s assert (sum (ismember (hull_test_1, hull1, "rows")), rows (hull_test_1)) 247s assert (all (hull1(1,:) == hull1(end,:))) 247s hull2 = {props.ConvexHull}{2}; 247s assert (sum (ismember (hull_test_2, hull2, "rows")), rows (hull_test_2)) 247s assert (all (hull2(1,:) == hull2(end,:))) 247s cimage1 = {props.ConvexImage}{1}; 247s assert (cimage1, cimage_test_1); 247s cimage2 = {props.ConvexImage}{2}; 247s assert (cimage2, cimage_test_2); 247s carea1 = {props.ConvexArea}{1}; 247s assert (carea1, carea_test1); 247s carea2 = {props.ConvexArea}{2}; 247s assert (carea2, carea_test2); 247s csolid1 = {props.Solidity}{1}; 247s assert (csolid1, csolid_test1); 247s csolid2 = {props.Solidity}{2}; 247s assert (csolid2, csolid_test2); 247s ***** test 247s L = zeros (5); 247s L(1:2:5, :) = 1; # labelled region with 3 disconnected parts 247s 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]; 247s cimage_test = true(5); 247s carea_test = 25; 247s csolid_test = 0.6; 247s props = regionprops (L, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 247s hull = props.ConvexHull; 247s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 247s assert (all (hull(1,:) == hull(end,:))) 247s cimage = props.ConvexImage; 247s assert (cimage, cimage_test); 247s carea = props.ConvexArea; 247s assert (carea, carea_test); 247s csolid = props.Solidity; 247s assert (csolid, csolid_test); 247s ***** xtest 247s ## Matlab compatible, currently fails because of bug #50188 247s BW = false(4,16); 247s BW(2,2) = true; 247s BW(3,2:end-1) = true; # L-shaped region (small angle) 247s hull_test = [2 1.5; 1.5 2; 1.5 3; 2 3.5; 15 3.5; 15.5 3; 15 2.5]; 247s cimage_test = true (2,14); 247s cimage_test(1, 8:end) = false; # this is the Matlab result 247s carea_test = 21; 247s csolid_test = 0.7143; 247s props = regionprops (BW, {'ConvexHull', 'ConvexImage', 'ConvexArea', 'Solidity'}); 247s hull = props.ConvexHull; 247s assert (sum (ismember (hull_test, hull, "rows")), rows (hull_test)) 247s assert (all (hull(1,:) == hull(end,:))) 247s cimage = props.ConvexImage; 247s assert (cimage, cimage_test); 247s carea = props.ConvexArea; 247s assert (carea, carea_test); 247s csolid = props.Solidity; 247s assert (csolid, csolid_test, 1e-4); 247s !!!!! known failure 247s ASSERT errors for: assert (cimage,cimage_test) 247s 247s Location | Observed | Expected | Reason 247s (1,8) 1 0 Abs err 1 exceeds tol 0 by 1 247s ***** assert (regionprops ([1 0 1; 1 0 1], "Area"), struct ("Area", 4)) 247s ***** assert (regionprops ([1 0 2; 1 1 2], "Area"), struct ("Area", {3; 2})) 247s ***** assert (regionprops ([1 0 3; 1 1 3], "Area"), struct ("Area", {3; 0; 2})) 247s ***** assert (size (regionprops ([1 0 0; 0 0 2], "Area")), [2, 1]) 247s ***** error regionprops ([1 -2 0 3]) 247s ***** error regionprops ([1 1.5 0 3]) 247s ***** test 247s im = rand (5); 247s 247s ## First do this so we get a list of all supported properties and don't 247s ## have to update the list each time. 247s bw = false (5); 247s bw(13) = true; 247s props = regionprops (bw, im, "all"); 247s all_props = fieldnames (props); 247s 247s bw = false (5); 247s props = regionprops (bw, im, "all"); 247s assert (size (props), [0 1]) 247s assert (sort (all_props), sort (fieldnames (props))) 247s ***** test 247s im = rand (5); 247s 247s ## First do this so we get a list of all supported properties and don't 247s ## have to update the list each time. 247s labeled = zeros (5); 247s labeled(13) = 1; 247s props = regionprops (labeled, im, "all"); 247s all_props = fieldnames (props); 247s 247s labeled = zeros (5); 247s props = regionprops (labeled, im, "all"); 247s assert (size (props), [0 1]) 247s assert (sort (all_props), sort (fieldnames (props))) 247s ***** test 247s im = rand (5); 247s 247s ## First do this so we get a list of all supported properties and don't 247s ## have to update the list each time. 247s bw = false (5); 247s bw(13) = true; 247s props = regionprops (bwconncomp (bw), im, "all"); 247s all_props = fieldnames (props); 247s 247s bw = false (5); 247s props = regionprops (bwconncomp (bw), im, "all"); 247s assert (size (props), [0 1]) 247s assert (sort (all_props), sort (fieldnames (props))) 247s ***** test 247s bw = logical ([ 247s 0 1 1 1 1 247s 0 1 1 0 0 247s 0 0 0 0 0 247s 0 0 0 1 0 247s 0 1 1 1 0]); 247s props = regionprops (bw, "MajorAxisLength", "MinorAxisLength", 247s "Orientation"); 247s assert ([props.MajorAxisLength] ,[4.51354115 3.65148372], 1.e-8) 247s assert ([props.MinorAxisLength], [2.01801654 1.82574186], 1.e-8) 247s assert ([props.Orientation], [12.93317840 18.43494882], 1.e-8) 247s ***** warning 247s regionprops (rand (5, 5, 5) > 0.5, {"perimeter", "extrema"}); 247s ***** warning 247s regionprops (rand (5, 5) > 0.5, {"minintensity", "weightedcentroid"}); 247s ***** error 247s regionprops ([0 -1 3 4; 0 -1 3 4]) 247s ***** error 247s regionprops ([0 1.5 3 4; 0 1.5 3 4]) 247s ***** error 247s regionprops (int8 ([0 -1 3 4; 0 -1 3 4])) 247s ***** test # bug #52926 247s ## Perimeter of objects that would be connected with connectivity 8 247s ## but have been labeled with connectivity 4. 247s BW = logical ([1 1 1 0 0 0 0 0 247s 1 1 1 0 1 1 0 0 247s 1 1 1 0 1 1 0 0 247s 1 1 1 0 0 0 1 0 247s 1 1 1 0 0 0 1 0 247s 1 1 1 0 0 0 1 0 247s 1 1 1 0 0 1 1 0 247s 1 1 1 0 0 0 0 0]); 247s 247s L = bwlabel (BW, 4); 247s props = regionprops(L, "PerimeterOld"); 247s assert ([props.PerimeterOld], [18 4 6+sqrt(2)]) 247s props = regionprops(L, "Perimeter"); 247s assert ([props.Perimeter], [17.276 3.556 7.013]) 247s L = bwlabel (BW, 8); 247s props = regionprops(L, "PerimeterOld"); 247s assert ([props.PerimeterOld], [18 10+3*sqrt(2)]) 247s props = regionprops(L, "Perimeter"); 247s assert ([props.Perimeter], [17.276 13.108]) 247s ***** test 247s I = zeros(5); 247s I(3,3) = 1; 247s props = regionprops(I, "Perimeter"); 247s assert ([props.Perimeter], [0]) 247s I = zeros(5); 247s I(3,3:4) = 1; 247s props = regionprops (I, "Perimeter"); 247s assert ([props.Perimeter], [1.96]) 247s I = zeros(5); 247s I(3:4,3) = 1; 247s props = regionprops (I, "Perimeter"); 247s assert ([props.Perimeter], [1.96]) 247s I = zeros(5); 247s I(3,3) = 1; 247s I(4,4) = 1; 247s props = regionprops (I, "Perimeter"); 247s assert ([props.Perimeter], [2.812]) 247s I = zeros(5); 247s I(3,4) = 1; 247s I(4,3) = 1; 247s props = regionprops (I, "Perimeter"); 247s assert ([props.Perimeter], [2.812]) 247s I = zeros(5); 247s I(3:4,3:4) = 1; 247s props = regionprops (I, "Perimeter"); 247s assert ([props.Perimeter], [3.556]) 247s I = zeros(5); 247s I(3:4,3:4) = 1; 247s I(4,5) = 1; 247s props=regionprops (I, "Perimeter"); 247s assert ([props.Perimeter], [4.962]) 247s I = zeros(5); 247s I(3:4,3:4) = 1; 247s I(5,5) = 1; 247s props = regionprops (I, "Perimeter"); 247s assert ([props.Perimeter], [6.277], 4*eps) 247s I = zeros(5); 247s I(2,3) = 1; 247s I(3,2:4) = 1; 247s I(4,3) = 1; 247s props = regionprops (I, "Perimeter"); 247s assert ([props.Perimeter], [5.624]) 247s I = zeros(5); 247s I(2,3) = 1; 247s I(3,2:4) = 1; 247s I(4,3) = 1; 247s I(5,3) = 1; 247s props = regionprops (I, "Perimeter"); 247s assert ([props.Perimeter], [7.402], 4*eps) 247s I = zeros(5); 247s I(2,3) = 1; 247s I(3,2:4) = 1; 247s I(4,3) = 1; 247s I(5,4) = 1; 247s props = regionprops (I, "Perimeter"); 247s assert ([props.Perimeter], [8.436]) 247s I = zeros(5); 247s I(2,1:4) = 1; 247s I(3,4) = 1; 247s props = regionprops (I, "Perimeter"); 247s assert ([props.Perimeter], [7.013]) 248s ***** test # bug #61827 248s L = uint8 (checkerboard); 248s props = regionprops (L, "Centroid"); 248s assert ([props.Centroid], [40.5, 40.5], 1e-10) 248s 87 tests, 86 passed, 1 known failure, 0 skipped 248s [inst/mat2gray.m] 248s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/mat2gray.m 248s ***** assert(mat2gray([1 2 3]), [0 0.5 1]); # standard use 248s ***** assert(mat2gray(repmat ([1 2; 3 3], [1 1 3])), repmat ([0 0.5; 1 1], [1 1 3])); # setting min and max 248s ***** assert(mat2gray([1 2 3], [2 2]), [1 1 1]); # equal min and max 248s ***** assert(mat2gray([-1 0 0.5 3], [2 2]), [0 0 0.5 1]); # equal min and max 248s ***** test 248s ## SCALE is unset and all values in the input IMAGE are the same: 248s ## case 1: all values are in the [0 1] range] 248s assert (mat2gray ([.5 .5; .5 .5]), [.5 .5; .5 .5]) 248s ## case 2: all values are above the [0 1] range 248s assert (mat2gray ([3 3; 3 3]), [1 1; 1 1]) 248s ## case 2: all values are below the [0 1] range 248s assert (mat2gray ([-3 -3; -3 -3]), [0 0; 0 0]) 248s ***** assert(mat2gray([1 2 3], [3 1]), [1 0.5 0]); # max and min inverted 248s ***** assert (mat2gray ([-3 -2 -1]), [0 0.5 1]) 248s 7 tests, 7 passed, 0 known failure, 0 skipped 248s [inst/findbounds.m] 248s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/findbounds.m 248s ***** test 248s im = checkerboard (); 248s theta = pi/6; 248s T = maketform ('affine', [cos(theta) -sin(theta); ... 248s sin(theta) cos(theta); 0 0]); 248s inbnd = [0 0; 1 1]; 248s outbnd = findbounds (T, inbnd); 248s diag = 2^.5; 248s ang = pi/4; 248s assert (diff (outbnd(:,1)), diag * abs (cos (theta - ang)), eps) 248s assert (diff (outbnd(:,2)), diag * abs (cos (theta - ang)), eps) 248s 1 test, 1 passed, 0 known failure, 0 skipped 248s [inst/isbw.m] 248s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/isbw.m 248s ***** shared img 248s img = round (rand (10)); 248s ***** assert (isbw (img, "non-logical"), true); 248s ***** assert (isbw (img, "logical"), false); 248s ***** assert (isbw (logical (img), "logical"), true); 248s ***** assert (isbw (logical (img), "non-logical"), true); 248s ***** test 248s img(1, 1) = 2; 248s assert (isbw (img, "non-logical"), false); 248s ***** test 248s a( 1, 1) = 1; 248s a(50, 50) = 2; 248s assert (isbw (a, "non-logical"), false); 248s ***** assert (isbw (rand (5, 5, 1, 4) > 0.5), true) 248s ***** assert (isbw (rand (5, 5, 3, 4) > 0.5), false) 248s ***** assert (isbw (rand (5, 5, 3) > 0.5), false) 248s ***** assert (isbw (rand (5, 5, 1, 3, 4) > 0.5), false) 248s ***** assert (isbw (randi ([0 1], 5, 5, 1, 4), "non-logical"), true) 248s ***** assert (isbw (randi ([0 1], 5, 5, 3, 4), "non-logical"), false) 248s ***** assert (isbw (randi ([0 1], 5, 5, 3), "non-logical"), false) 248s ***** assert (isbw (randi ([0 1], 5, 5, 1, 3, 4), "non-logical"), false) 248s ***** assert (isbw (single ([0 0 1]), "non-logical"), true) 248s ***** assert (isbw ([0 NaN 1], "non-logical"), false) 248s 16 tests, 16 passed, 0 known failure, 0 skipped 248s [inst/imtophat.m] 248s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imtophat.m 248s ***** assert (imtophat (ones (3), [1 1; 0 1]), zeros (3)); 248s ***** assert (imtophat (true (3), [1 1; 0 1]), false (3)); 248s ***** shared in, out, se 248s in = [ 0 0 0 1 1 1 0 0 1 1 248s 0 1 0 1 1 1 0 0 0 1 248s 1 1 1 1 1 0 0 0 0 0 248s 0 1 1 1 1 0 0 0 0 0 248s 0 0 0 1 0 0 0 0 1 0 248s 0 0 0 0 0 0 0 1 1 1 248s 0 0 0 0 1 0 1 0 1 0 248s 0 0 0 1 1 1 1 1 0 0 248s 0 0 0 0 1 1 1 0 0 0 248s 0 0 0 1 1 1 0 0 0 0]; 248s 248s out = [ 0 0 0 0 0 0 0 0 1 1 248s 0 1 0 0 0 0 0 0 0 1 248s 1 1 1 1 1 0 0 0 0 0 248s 0 1 1 1 1 0 0 0 0 0 248s 0 0 0 1 0 0 0 0 1 0 248s 0 0 0 0 0 0 0 1 1 1 248s 0 0 0 0 1 0 1 0 1 0 248s 0 0 0 1 1 1 1 1 0 0 248s 0 0 0 0 1 1 1 0 0 0 248s 0 0 0 1 1 1 0 0 0 0]; 248s ***** assert (imtophat (logical (in), ones (3)), logical (out)); 248s 248s out = [12 19 0 0 0 16 23 0 7 0 248s 18 0 0 6 1 19 0 2 9 1 248s 0 74 81 12 7 0 1 8 15 7 248s 68 70 2 14 0 6 7 14 16 0 248s 69 76 8 0 0 7 14 21 0 1 248s 0 7 59 54 61 13 20 0 0 32 248s 18 0 69 60 62 19 0 0 0 27 248s 73 0 0 66 68 0 1 6 6 33 248s 0 0 17 19 1 0 2 9 7 14 248s 1 6 23 0 7 1 8 15 0 32]; 248s ***** assert (imtophat (magic (10), ones (3)), out); 248s ***** assert (imtophat (uint8 (magic (10)), strel ("square", 3)), uint8 (out)); 248s 248s ## using a se that will be decomposed in 2 pieces 248s out =[91 98 0 0 0 27 34 11 18 0 248s 94 76 3 6 1 33 15 17 24 1 248s 0 77 84 12 7 14 16 23 30 7 248s 80 82 14 18 0 32 34 41 43 0 248s 81 88 20 0 0 33 40 47 24 6 248s 12 19 63 57 64 16 23 0 7 39 248s 18 0 69 60 62 19 1 3 12 39 248s 73 0 0 66 68 0 2 9 18 45 248s 4 6 81 67 49 6 8 15 19 26 248s 5 12 87 48 55 7 14 21 0 32]; 248s ***** assert (imtophat (magic (10), ones(5)), out); 248s 248s ## using a weird non-symmetric and even-size se 248s out =[85 92 0 0 0 12 23 0 17 0 248s 91 73 0 6 0 18 0 2 13 0 248s 0 72 81 13 6 0 1 9 15 0 248s 60 62 10 12 0 8 8 17 17 0 248s 61 69 0 0 0 28 16 41 0 0 248s 0 0 47 52 61 12 16 0 0 31 248s 6 0 53 58 60 17 0 0 0 33 248s 69 0 0 60 62 0 0 6 0 33 248s 0 0 17 60 42 0 2 13 1 8 248s 0 6 23 0 7 0 7 15 0 14]; 248s ***** assert (imtophat (magic (10), [1 0 0 0; 1 1 1 0; 0 1 0 1]), out); 248s 248s ## N dimensional and weird se 248s in = reshape (magic(16), [4 8 4 2]); 248s se = ones (3, 3, 3); 248s se(:,:,1) = [1 0 1; 0 1 1; 0 0 0]; 248s se(:,:,3) = [1 0 1; 0 1 1; 0 0 1]; 248s out = zeros (size (in)); 248s out(:,:,1,1) = [ 248s 239 146 82 18 0 19 83 133 248s 0 35 99 163 219 128 64 0 248s 0 46 128 195 187 123 59 0 248s 157 93 47 0 14 78 142 211]; 248s out(:,:,2,1) = [ 248s 0 21 85 149 233 146 64 0 248s 205 128 64 0 0 41 87 151 248s 171 107 57 0 0 64 121 185 248s 0 64 142 213 169 105 41 0]; 248s out(:,:,3,1) = [ 248s 231 146 78 14 0 27 77 137 248s 0 43 107 167 211 128 64 0 248s 0 46 128 199 179 119 51 0 248s 149 85 39 0 18 78 142 219]; 248s out(:,:,4,1) = [ 248s 0 29 93 157 225 128 64 0 248s 197 128 64 0 0 31 95 159 248s 163 99 53 0 0 61 125 189 248s 0 64 146 221 161 97 33 0]; 248s out(:,:,1,2) = [ 248s 223 146 82 18 0 35 99 149 248s 0 48 115 179 203 128 64 0 248s 0 46 128 211 171 107 43 0 248s 141 77 31 0 14 78 142 227]; 248s out(:,:,2,2) = [ 248s 0 37 101 165 217 146 64 0 248s 189 125 64 0 0 57 103 167 248s 155 91 41 0 0 64 128 201 248s 0 64 142 229 153 89 25 0]; 248s out(:,:,3,2) = [ 248s 215 146 78 14 0 43 93 153 248s 0 48 123 183 195 128 64 0 248s 0 46 128 215 163 103 35 0 248s 133 69 23 0 18 78 142 235]; 248s out(:,:,4,2) = [ 248s 0 45 109 173 209 128 64 0 248s 181 117 64 0 0 47 111 175 248s 147 83 37 0 0 64 128 205 248s 0 64 146 237 145 81 17 0]; 248s ***** assert (imtophat (in, se), out); 248s 8 tests, 8 passed, 0 known failure, 0 skipped 248s [inst/poly2mask.m] 248s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/poly2mask.m 248s ***** demo 248s s = [0:pi/4:2*pi]; 248s x = cos (s) * 90 + 101; 248s y = sin (s) * 90 + 101; 248s bw = poly2mask(x, y, 200, 200); 248s imshow (bw); 248s ***** demo 248s s = [0:2*pi/5:pi*4]; 248s s = s ([1, 3, 5, 2, 4, 6]); 248s x = cos (s) * 90 + 101; 248s y = sin (s) * 90 + 101; 248s bw = poly2mask (x, y, 200, 200); 248s imshow (bw); 248s ***** # Convex polygons 248s ***** shared xs, ys, Rs, xt, yt, Rt 248s xs=[3,3,10,10]; 248s ys=[4,12,12,4]; 248s Rs=zeros(16,14); 248s Rs(5:12,4:10)=1; 248s Rs=logical(Rs); 248s xt=[1,4,7]; 248s yt=[1,4,1]; 248s Rt=[0,0,0,0,0,0,0; 248s 0,0,1,1,1,1,0; 248s 0,0,0,1,1,0,0; 248s 0,0,0,1,0,0,0; 248s 0,0,0,0,0,0,0]; 248s Rt=logical(Rt); 248s ***** assert(poly2mask(xs,ys,16,14),Rs); # rectangle 248s ***** assert(poly2mask(xs,ys,8,7),Rs(1:8,1:7)); # clipped 248s ***** assert(poly2mask(xs-7,ys-8,8,7),Rs(9:16,8:14)); # more clipping 248s ***** assert(poly2mask(xt,yt,5,7),Rt); # triangle 248s ***** assert(poly2mask(xt,yt,3,3),Rt(1:3,1:3)); # clipped 248s ***** # Concave polygons 248s ***** test 248s x=[3,3,5,5,8,8,10,10]; 248s y=[4,12,12,8,8,11,11,4]; 248s R=zeros(16,14); 248s R(5:12,4:5)=1; 248s R(5:8,6:8)=1; 248s R(5:11,9:10)=1; 248s R=logical(R); 248s assert(poly2mask(x,y,16,14), R); 248s ***** # Complex polygons 248s ***** test 248s x=[1,5,1,5]; 248s y=[1,1,4,4]; 248s R=[0,0,0,0,0,0; 248s 0,0,1,1,0,0; 248s 0,0,1,1,0,0; 248s 0,1,1,1,1,0; 248s 0,0,0,0,0,0]; 248s R=logical(R); 248s assert(poly2mask(x,y,5,6), R); 248s 7 tests, 7 passed, 0 known failure, 0 skipped 248s [inst/im2uint8.m] 248s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/im2uint8.m 248s ***** assert (im2uint8 (uint8 ([1 2 3])), uint8 ([1 2 3])); 248s ***** assert (im2uint8 (uint16 ([0 65535])), uint8 ([0 255])); 248s ***** assert (im2uint8 ([0 0.5 1]), uint8 ([0 128 255])); 248s ***** assert (im2uint8 ([1 2]), uint8 ([255 255])); 248s ***** assert (im2uint8 ([-1 0 0.5 1 2]), uint8 ([0 0 128 255 255])); 248s ***** assert (im2uint8 (int16 ([-32768 0 32768])), uint8 ([0 128 255])); 248s ***** assert (im2uint8 ([false true]), uint8 ([0 255])); 248s ***** assert (im2uint8 ([true false]), uint8 ([255 0])); 248s ***** assert (im2uint8 ([1 256], "indexed"), uint8 ([0 255])); 248s ***** assert (im2uint8 ([3 25], "indexed"), uint8 ([2 24])); 248s ***** assert (im2uint8 (uint16 ([3 25]), "indexed"), uint8 ([3 25])); 248s ***** error im2uint8 ([0 1 2], "indexed"); 248s ***** error im2uint8 (int16 ([17 8]), "indexed"); 248s ***** error im2uint8 (int16 ([-7 8]), "indexed"); 248s ***** error im2uint8 ([false true], "indexed"); 248s ***** error im2uint8 (uint16 (256), "indexed"); 248s ***** error im2uint8 (257, "indexed"); 248s ***** assert (im2uint8 ((1:255) ./ 256), uint8 ([1:128 128:254])) 248s ***** assert (im2uint8 ((0:255) ./ 256), uint8 ([0:128 128:254])) 248s 19 tests, 19 passed, 0 known failure, 0 skipped 248s [inst/imcrop.m] 248s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imcrop.m 248s ***** test 248s a = randi (255, [100 100]); 248s rect = [20 30 3 5]; 248s assert (nthargout ([1 2], @imcrop, a, rect), {a(30:35, 20:23) rect}); 248s assert (nthargout (2, @imcrop, a, rect), rect); 248s assert (nthargout ([3 4], 4, @imcrop, a, rect), {a(30:35, 20:23) rect}); 248s ***** test 248s rgb = randi (255, [100 100 3]); 248s rect = [20 30 3 5]; 248s assert (nthargout ([1 2], @imcrop, rgb, rect), {rgb(30:35, 20:23,:) rect}); 248s assert (nthargout (2, @imcrop, rgb, rect), rect); 248s assert (nthargout ([3 4], 4, @imcrop, rgb, rect), {rgb(30:35, 20:23,:) rect}); 248s ***** test 248s a = randi (255, [100 100]); 248s rect = [20 30 3 5]; 248s cmap = jet (255); 248s assert (nthargout ([1 2], @imcrop, a, cmap, rect), {a(30:35, 20:23) rect}); 248s assert (nthargout (2, @imcrop, a, cmap, rect), rect); 248s assert (nthargout ([3 4], 4, @imcrop, a, cmap, rect), {a(30:35, 20:23) rect}); 248s ***** test 248s a = rand (100) > 0.5; 248s rect = [20 30 3 5]; 248s assert (nthargout ([1 2], @imcrop, a, rect), {a(30:35, 20:23) rect}); 248s assert (nthargout (2, @imcrop, a, rect), rect); 248s assert (nthargout ([3 4], 4, @imcrop, a, rect), {a(30:35, 20:23) rect}); 248s ***** assert (imcrop (0, [0.5 0.5 0.9 0.9]), 0); 248s ***** assert (imcrop (zeros (5), [1 1 1 1]), zeros (2)); 248s ***** test 248s im = magic (5); 248s assert (imcrop (im, [1 1 5 5]), im) 248s assert (imcrop (im, [0 0 5 5]), im) 248s assert (imcrop (im, [1 1 2 5]), im(:,1:3)) 248s assert (imcrop (im, [1 -3 2 5]), im(1:2,1:3)) 248s assert (imcrop (im, [5 -3 2 5]), im(1:2,5)) 248s ***** test 248s im = [1:7] .* [1; 2; 3; 4; 5]; 248s assert (imcrop (im, [1 1 5 5]), im(:,1:6)) 248s assert (imcrop (im, [0 0 5 5]), im(:,1:5)) 248s assert (imcrop (im, [1 1 2 5]), im(:,1:3)) 248s assert (imcrop (im, [1 -3 2 7]), im(1:4,1:3)) 248s assert (imcrop (im, [7 -3 2 7]), im(1:4,7)) 248s ***** test 248s ## Matlab returns [] (size 0x0) for this cases, while we return 248s ## [] (size 2x0). We are not compatible by design. If it ever 248s ## becomes an issue to anyone we can review this decision. 248s assert (imcrop (magic (5), [6 -3 2 5]), zeros (2, 0)) 248s 9 tests, 9 passed, 0 known failure, 0 skipped 248s [inst/medfilt2.m] 248s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/medfilt2.m 248s ***** shared b, f 248s b = [ 0 1 2 3 248s 1 8 12 12 248s 4 20 24 21 248s 7 22 25 18]; 248s f = [ 0 1 2 0 248s 1 4 12 3 248s 4 12 20 12 248s 0 7 20 0]; 248s ***** assert (medfilt2 (b), f); 248s 248s f = [ 0 1 2 3 248s 1 8 12 12 248s 4 20 24 18 248s 4 20 24 18]; 248s ***** assert (medfilt2 (b, true (3, 1)), f); 248s ***** assert (medfilt2 (b, [3 1]), f); 248s 248s f = [ 1 8 10 10 248s 1 8 12 12 248s 4 20 24 18 248s 7 20 24 18]; 248s ***** assert (medfilt2 (b, [3 1], 10), f); 248s ***** assert (medfilt2 (b, 10, [3 1]), f); 248s 248s f = [ 0.5 4.5 7.0 7.5 248s 2.5 14.0 18.0 15.0 248s 2.5 14.0 18.0 15.0 248s 2.0 10.0 12.0 9.0]; 248s ***** assert (medfilt2 (b, true (4, 1)), f); 248s ***** assert (medfilt2 (b, [4 1]), f); 248s ***** test 248s A = zeros (3, 3); 248s B = ones (3, 3); 248s C = [1 1 1; 2 2 2; 3 3 3]; 248s D = C'; 248s E = ones (3, 3); 248s E(2,2) = 2; 248s F = 3 .* ones (3, 3); 248s F(2,2) = 1; 248s G = [-1 2 7; -5 2 8; -7 pi 9]; 248s H = [5 2 8; 1 -3 1; 5 1 0]; 248s A_out = [0 0 0; 0 0 0; 0 0 0]; 248s B_out = [0 1 0; 1 1 1; 0 1 0]; 248s C_out = [0 1 0; 1 2 1; 0 2 0]; 248s D_out = [0 1 0; 1 2 2; 0 1 0]; 248s E_out = [0 1 0; 1 1 1; 0 1 0]; 248s F_out = [0 3 0; 3 3 3; 0 3 0]; 248s G_out = [0 0 0; 0 2 2; 0 0 0]; 248s H_out = [0 1 0; 1 1 0; 0 0 0]; 248s assert (medfilt2 (A), A_out); 248s assert (medfilt2 (B), B_out); 248s assert (medfilt2 (C), C_out); 248s assert (medfilt2 (D), D_out); 248s assert (medfilt2 (E), E_out); 248s assert (medfilt2 (F), F_out); 248s assert (medfilt2 (G), G_out); 248s assert (medfilt2 (H), H_out); 248s 8 tests, 8 passed, 0 known failure, 0 skipped 248s [inst/edgetaper.m] 248s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/edgetaper.m 248s ***** assert (class (edgetaper (rand (100), rand (16))), "double") 248s ***** assert (class (edgetaper (randi (255, 100, "uint8"), rand (16))), "uint8") 248s 2 tests, 2 passed, 0 known failure, 0 skipped 248s [inst/@imref3d/worldToSubscript.m] 248s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@imref3d/worldToSubscript.m 248s ***** error id=Octave:invalid-fun-call worldToSubscript (imref3d) 248s ***** error id=Octave:invalid-fun-call worldToSubscript (imref3d, 1) 248s ***** error id=Octave:invalid-fun-call worldToSubscript (imref3d, 1, 2) 249s ***** error id=Octave:invalid-fun-call worldToSubscript (imref3d, 1, 2, 3, 4) 249s ***** error id=Octave:expected-real worldToSubscript (imref3d, 1j, 2, 3) 249s ***** error id=Octave:expected-real worldToSubscript (imref3d, 1, 2j, 3) 249s ***** error id=Octave:expected-real worldToSubscript (imref3d, 1, 2, 3j) 249s ***** error id=Octave:invalid-input-arg worldToSubscript (imref3d, [1, 2], 3, 4) 249s ***** error id=Octave:invalid-input-arg worldToSubscript (imref3d, 1, [2, 3], 4) 249s ***** error id=Octave:invalid-input-arg worldToSubscript (imref3d, 1, 2, [3, 4]) 249s ***** test 249s r = imref3d ([128, 128, 27], 2, 2, 4); 249s xW = [108, 108, 113.2, 2]; 249s yW = [92, 92, 92, -1]; 249s zW = [52, 55, 52, 0.33]; 249s [rS, cS, pS] = worldToSubscript (r, xW, yW, zW); 249s assert (rS, [46, 46, 46, NaN]) 249s assert (cS, [54, 54, 57, NaN]) 249s assert (pS, [13, 14, 13, NaN]) 249s 11 tests, 11 passed, 0 known failure, 0 skipped 249s [inst/@imref3d/imref3d.m] 249s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@imref3d/imref3d.m 249s ***** error id=Octave:invalid-fun-call imref3d (1, 2, 3, 4, 5) 249s ***** error id=Octave:incorrect-size imref3d (42) 249s ***** error id=Octave:incorrect-size imref3d ([42]) 249s ***** error id=Octave:incorrect-size imref3d ([4, 2]) 249s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3, 3]) 249s ***** error id=Octave:expected-integer imref3d ([4.2, 42]) 249s ***** error id=Octave:expected-positive imref3d ([0, 0]) 249s ***** error id=Octave:expected-positive imref3d ([-4, 2]) 249s ***** error id=Octave:expected-positive imref3d ([4, 2, 3], 0, 1, 2) 249s ***** error id=Octave:expected-positive imref3d ([4, 2, 3], 1, 0, 2) 249s ***** error id=Octave:expected-positive imref3d ([4, 2, 3], 1, 2, 0) 249s ***** error id=Octave:expected-real imref3d ([4, 2, 3], j, 1, 2) 249s ***** error id=Octave:expected-real imref3d ([4, 2, 3], 1, j, 2) 249s ***** error id=Octave:expected-real imref3d ([4, 2, 3], 1, 2, j) 249s ***** error id=Octave:expected-real imref3d ([4, 2, 3], [j, 2], [3, 4], [5, 6]) 249s ***** error id=Octave:expected-real imref3d ([4, 2, 3], [1, 2], [j, 4], [5, 6]) 249s ***** error id=Octave:expected-real imref3d ([4, 2, 3], [1, 2], [3, 4], [5, j]) 249s ***** error id=Octave:expected-vector imref3d ([4, 2, 3], [], [], []) 249s ***** error id=Octave:expected-vector imref3d ([4, 2, 3], [], [1], [2]) 249s ***** error id=Octave:expected-scalar imref3d ([4, 2, 3], [1], [], []) 249s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1, 2], [3, 4], [0]) 249s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1, 2], [3, 4, 5], [6, 7]) 249s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1, 2], [3, 4], [5, 6, 7]) 249s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1; 2], [3, 4], [5, 6]) 249s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1, 2], [3; 4], [5, 6]) 249s ***** error id=Octave:incorrect-size imref3d ([4, 2, 3], [1, 2], [3, 4], [5; 6]) 249s ***** error id=Octave:invalid-indexing imref3d().InvalidProperty 249s ***** error id=Octave:expected-increasing imref3d ([100, 200, 3], [1.5 0.5], [2.5, 3.5], [0.5, 1.5]) 249s ***** error id=Octave:expected-increasing imref3d ([100, 200, 3], [1.5 2.5], [2.5, 1.5], [0.5, 1.5]) 249s ***** error id=Octave:expected-increasing imref3d ([100, 200, 3], [1.5 2.5], [2.5, 3.5], [1.5, 0.5]) 249s ***** assert (imref3d ([4, 2, 3]).ImageSize, [4, 2, 3]) 249s ***** test 249s r = imref3d; 249s assert (r.XWorldLimits, [0.5, 2.5]) 249s assert (r.YWorldLimits, [0.5, 2.5]) 249s assert (r.ZWorldLimits, [0.5, 2.5]) 249s assert (r.ImageSize, [2, 2, 2]) 249s assert (r.PixelExtentInWorldX, 1) 249s assert (r.PixelExtentInWorldY, 1) 249s assert (r.PixelExtentInWorldZ, 1) 249s assert (r.ImageExtentInWorldX, 2) 249s assert (r.ImageExtentInWorldY, 2) 249s assert (r.ImageExtentInWorldZ, 2) 249s assert (r.XIntrinsicLimits, [0.5, 2.5]) 249s assert (r.YIntrinsicLimits, [0.5, 2.5]) 249s assert (r.ZIntrinsicLimits, [0.5, 2.5]) 249s ***** test 249s r = imref3d ([128, 128, 27]); 249s assert (r.XWorldLimits, [0.5, 128.5]) 249s assert (r.YWorldLimits, [0.5, 128.5]) 249s assert (r.ZWorldLimits, [0.5, 27.5]) 249s assert (r.ImageSize, [128, 128, 27]) 249s assert (r.PixelExtentInWorldX, 1) 249s assert (r.PixelExtentInWorldY, 1) 249s assert (r.PixelExtentInWorldZ, 1) 249s assert (r.ImageExtentInWorldX, 128) 249s assert (r.ImageExtentInWorldY, 128) 249s assert (r.ImageExtentInWorldZ, 27) 249s assert (r.XIntrinsicLimits, [0.5, 128.5]) 249s assert (r.YIntrinsicLimits, [0.5, 128.5]) 249s assert (r.ZIntrinsicLimits, [0.5, 27.5]) 249s ***** test 249s r = imref3d ([128, 128, 27], 2, 2, 4); 249s assert (r.XWorldLimits, [1, 257]) 249s assert (r.YWorldLimits, [1, 257]) 249s assert (r.ZWorldLimits, [2, 110]) 249s assert (r.ImageSize, [128, 128, 27]) 249s assert (r.PixelExtentInWorldX, 2) 249s assert (r.PixelExtentInWorldY, 2) 249s assert (r.PixelExtentInWorldZ, 4) 249s assert (r.ImageExtentInWorldX, 256) 249s assert (r.ImageExtentInWorldY, 256) 249s assert (r.ImageExtentInWorldZ, 108) 249s assert (r.XIntrinsicLimits, [0.5, 128.5]) 249s assert (r.YIntrinsicLimits, [0.5, 128.5]) 249s assert (r.ZIntrinsicLimits, [0.5, 27.5]) 249s ***** test 249s r = imref3d; 249s assert (r.XWorldLimits, [0.5, 2.5]) 249s assert (r.YWorldLimits, [0.5, 2.5]) 249s assert (r.ZWorldLimits, [0.5, 2.5]) 249s assert (r.ImageSize, [2, 2, 2]) 249s assert (r.PixelExtentInWorldX, 1) 249s assert (r.PixelExtentInWorldY, 1) 249s assert (r.PixelExtentInWorldZ, 1) 249s assert (r.ImageExtentInWorldX, 2) 249s assert (r.ImageExtentInWorldY, 2) 249s assert (r.ImageExtentInWorldZ, 2) 249s assert (r.XIntrinsicLimits, [0.5, 2.5]) 249s assert (r.YIntrinsicLimits, [0.5, 2.5]) 249s assert (r.ZIntrinsicLimits, [0.5, 2.5]) 249s r.ImageSize = [128, 128, 27]; 249s assert (r.XWorldLimits, [0.5, 2.5]) 249s assert (r.YWorldLimits, [0.5, 2.5]) 249s assert (r.ZWorldLimits, [0.5, 2.5]) 249s assert (r.ImageSize, [128, 128, 27]) 249s assert (r.PixelExtentInWorldX, 0.015625, 1e-6) 249s assert (r.PixelExtentInWorldY, 0.015625, 1e-6) 249s assert (r.PixelExtentInWorldZ, 0.074074, 1e-6) 249s assert (r.ImageExtentInWorldX, 2) 249s assert (r.ImageExtentInWorldY, 2) 249s assert (r.ImageExtentInWorldZ, 2) 249s assert (r.XIntrinsicLimits, [0.5, 128.5]) 249s assert (r.YIntrinsicLimits, [0.5, 128.5]) 249s assert (r.ZIntrinsicLimits, [0.5, 27.5]) 249s ***** test 249s r = imref3d; 249s assert (r.XWorldLimits, [0.5, 2.5]) 249s assert (r.YWorldLimits, [0.5, 2.5]) 249s assert (r.ZWorldLimits, [0.5, 2.5]) 249s assert (r.ImageSize, [2, 2, 2]) 249s assert (r.PixelExtentInWorldX, 1) 249s assert (r.PixelExtentInWorldY, 1) 249s assert (r.PixelExtentInWorldZ, 1) 249s assert (r.ImageExtentInWorldX, 2) 249s assert (r.ImageExtentInWorldY, 2) 249s assert (r.ImageExtentInWorldZ, 2) 249s assert (r.XIntrinsicLimits, [0.5, 2.5]) 249s assert (r.YIntrinsicLimits, [0.5, 2.5]) 249s assert (r.ZIntrinsicLimits, [0.5, 2.5]) 249s r.XWorldLimits = [-60, 13.33]; 249s r.YWorldLimits = [-900.8, -560.26]; 249s r.ZWorldLimits = [-302.48, 1500.333]; 249s assert (r.XWorldLimits, [-60, 13.33]) 249s assert (r.YWorldLimits, [-900.8, -560.26]) 249s assert (r.ZWorldLimits, [-302.48, 1500.333]) 249s assert (r.ImageSize, [2, 2, 2]) 249s assert (r.PixelExtentInWorldX, 36.6650) 249s assert (r.PixelExtentInWorldY, 170.27, 1e-5) 249s assert (r.PixelExtentInWorldZ, 901.4065) 249s assert (r.ImageExtentInWorldX, 73.33, 1e-5) 249s assert (r.ImageExtentInWorldY, 340.54, 1e-5) 249s assert (r.ImageExtentInWorldZ, 1802.813, 1e-5) 249s assert (r.XIntrinsicLimits, [0.5, 2.5]) 249s assert (r.YIntrinsicLimits, [0.5, 2.5]) 249s assert (r.ZIntrinsicLimits, [0.5, 2.5]) 249s ***** test 249s r = imref3d; 249s fail ("r.XWorldLimits = []", "") 249s fail ("r.XWorldLimits = [1]", "") 249s fail ("r.XWorldLimits = [j]", "") 249s fail ("r.XWorldLimits = [1; 2]", "") 249s fail ("r.YWorldLimits = []", "") 249s fail ("r.YWorldLimits = [1]", "") 249s fail ("r.YWorldLimits = [j]", "") 249s fail ("r.YWorldLimits = [1; 2]", "") 249s fail ("r.ZWorldLimits = []", "") 249s fail ("r.ZWorldLimits = [1]", "") 249s fail ("r.ZWorldLimits = [j]", "") 249s fail ("r.ZWorldLimits = [1; 2]", "") 249s 37 tests, 37 passed, 0 known failure, 0 skipped 249s [inst/@imref3d/worldToIntrinsic.m] 249s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@imref3d/worldToIntrinsic.m 249s ***** error id=Octave:invalid-fun-call worldToIntrinsic (imref3d) 249s ***** error id=Octave:invalid-fun-call worldToIntrinsic (imref3d, 1, 2) 249s ***** error id=Octave:invalid-fun-call worldToIntrinsic (imref3d, 1, 2, 3, 4) 249s ***** error id=Octave:expected-real worldToIntrinsic (imref3d, 1j, 2, 3) 249s ***** error id=Octave:expected-real worldToIntrinsic (imref3d, 1, 2j, 3) 249s ***** error id=Octave:expected-real worldToIntrinsic (imref3d, 1, 2, 3j) 249s ***** error id=Octave:invalid-input-arg worldToIntrinsic (imref3d, [1, 2], 3, 4) 249s ***** error id=Octave:invalid-input-arg worldToIntrinsic (imref3d, 1, [2, 3], 4) 249s ***** error id=Octave:invalid-input-arg worldToIntrinsic (imref3d, 1, 2, [3, 4]) 249s ***** test 249s r = imref3d ([128, 128, 27], 2, 2, 4); 249s xW = [108, 108, 108.2, 2]; 249s yW = [92, 92, 92, -1]; 249s zW = [52, 55, 52, 0.33]; 249s [xI, yI, zI] = worldToIntrinsic (r, xW, yW, zW); 249s assert (xI, [54, 54, 54.1, 1], 1e-6) 249s assert (yI, [46, 46, 46, -0.5], 1e-6) 249s assert (zI, [13, 13.75, 13, 0.0825], 1e-6) 250s 10 tests, 10 passed, 0 known failure, 0 skipped 250s [inst/@imref3d/contains.m] 250s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@imref3d/contains.m 250s ***** error id=Octave:invalid-fun-call contains (imref3d) 250s ***** error id=Octave:invalid-fun-call contains (imref3d, 1) 250s ***** error id=Octave:invalid-fun-call contains (imref3d, 1, 2) 250s ***** error id=Octave:invalid-fun-call contains (imref3d, 1, 2, 3, 4) 250s ***** error id=Octave:invalid-input-arg contains (imref3d, [1, 2], 3, 4) 250s ***** error id=Octave:invalid-input-arg contains (imref3d, 1, [2, 3], 4) 250s ***** error id=Octave:invalid-input-arg contains (imref3d, 1, 2, [3, 4]) 250s ***** error id=Octave:expected-real contains (imref3d, 1j, 2, 3) 250s ***** error id=Octave:expected-real contains (imref3d, 1, 2j, 3) 250s ***** error id=Octave:expected-real contains (imref3d, 1, 2, 3j) 250s ***** test 250s r = imref3d ([128, 128, 27]); 250s assert (contains (r, [5, 6, 6, 8], [5, 10, 10, 257], [1, 27.5, 28, 1]), logical ([1, 1, 0, 0])) 250s 11 tests, 11 passed, 0 known failure, 0 skipped 250s [inst/@imref3d/intrinsicToWorld.m] 250s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/@imref3d/intrinsicToWorld.m 250s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref3d) 250s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref3d, 1) 251s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref3d, 1, 2) 251s ***** error id=Octave:invalid-fun-call intrinsicToWorld (imref3d, 1, 2, 3, 4) 251s ***** error id=Octave:expected-real intrinsicToWorld (imref3d, 1j, 2, 3) 251s ***** error id=Octave:expected-real intrinsicToWorld (imref3d, 1, 2j, 3) 251s ***** error id=Octave:expected-real intrinsicToWorld (imref3d, 1, j, 3j) 251s ***** error id=Octave:invalid-input-arg intrinsicToWorld (imref3d, [1, 2], 3, 4) 251s ***** error id=Octave:invalid-input-arg intrinsicToWorld (imref3d, 1, [2, 3], 4) 251s ***** error id=Octave:invalid-input-arg intrinsicToWorld (imref3d, 1, 2, [3, 4]) 251s ***** test 251s r = imref3d ([128, 128, 27], 2, 2, 4); 251s xI = [54, 71, 57, 70]; 251s yI = [46, 48, 79, 80]; 251s zI = [13, 13, 13, 13]; 251s [xW, yW, zW] = intrinsicToWorld (r, xI, yI, zI); 251s assert (xW, [108, 142, 114, 140]) 251s assert (yW, [92, 96, 158, 160]) 251s assert (zW, [52, 52, 52, 52]) 251s ***** test 251s [xW, yW, zW] = intrinsicToWorld (imref3d, -5.3, -2.8, -15.88); 251s assert (xW, -5.3) 251s assert (yW, -2.8) 251s assert (zW, -15.88, 1e-6) 251s ***** test 251s [xW, yW, zW] = intrinsicToWorld (imref3d, [1, 2; 3, 4], 251s [2, 3; 5, 9], 251s [-5, 8; 19, 42.8]); 251s assert (xW, [1, 2; 3, 4]) 251s assert (yW, [2, 3; 5, 9]) 251s assert (zW, [-5, 8; 19, 42.8]) 251s 13 tests, 13 passed, 0 known failure, 0 skipped 251s [inst/imsubtract.m] 251s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imsubtract.m 251s ***** assert (imsubtract (uint8 ([23 250]), uint8 ([24 50])), uint8 ([ 0 200])); # default to first class and truncate 251s ***** assert (imsubtract (uint8 ([23 250]), 10), uint8 ([13 240])); # works subtracting a scalar 251s ***** assert (imsubtract (uint8 ([23 250]), uint8 ([24 50]), "uint16"), uint16 ([ 0 200])); # defining output class works (not in matlab) 251s ***** assert (imsubtract (logical ([ 1 0]), logical ([ 1 1])), double ([ 0 -1])); # return double for two logical images 251s ***** assert (imsubtract (logical ([ 1 0]), logical ([ 1 1]), "logical"), logical ([ 0 0])); # this is matlab incompatible on purpose 251s ***** error imsubtract (uint8 ([23 250]), uint16 ([23 250])); 251s ***** warning imsubtract (uint8 ([23 250]), uint8 ([24 255]), "int8"); 251s ***** test 251s warning ("off", "all"); 251s assert (imsubtract (uint8 ([23 250]), uint8 ([24 255]), "int8"), 251s int8 ([-1 0])) 251s 8 tests, 8 passed, 0 known failure, 0 skipped 251s [inst/imopen.m] 251s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imopen.m 251s ***** shared in, out 251s in = [ 0 0 0 1 1 1 0 0 1 1 251s 0 1 0 1 1 1 0 0 0 1 251s 1 1 1 1 1 0 0 0 0 0 251s 0 1 1 1 1 0 0 0 0 0 251s 0 0 0 1 0 0 0 0 1 0 251s 0 0 0 0 0 0 0 1 1 1 251s 0 0 0 0 1 0 1 0 1 0 251s 0 0 0 1 1 1 1 1 0 0 251s 0 0 0 0 1 1 1 0 0 0 251s 0 0 0 1 1 1 0 0 0 0]; 251s 251s out = [ 0 0 0 1 1 1 0 0 0 0 251s 0 0 0 1 1 1 0 0 0 0 251s 0 0 0 0 0 0 0 0 0 0 251s 0 0 0 0 0 0 0 0 0 0 251s 0 0 0 0 0 0 0 0 0 0 251s 0 0 0 0 0 0 0 0 0 0 251s 0 0 0 0 0 0 0 0 0 0 251s 0 0 0 0 0 0 0 0 0 0 251s 0 0 0 0 0 0 0 0 0 0 251s 0 0 0 0 0 0 0 0 0 0]; 251s ***** assert (imopen (logical (in), ones (3)), logical (out)); 251s 251s out = [80 80 1 8 15 51 51 51 51 40 251s 80 80 7 8 15 54 55 55 55 40 251s 4 7 7 8 15 54 55 55 55 40 251s 17 17 17 7 3 54 55 55 55 28 251s 17 17 17 2 9 54 54 54 52 33 251s 17 17 17 29 29 29 29 26 33 33 251s 5 5 13 29 29 29 30 32 39 39 251s 6 6 13 29 29 29 30 32 39 39 251s 10 12 77 77 77 35 35 35 39 39 251s 10 12 77 77 77 35 35 35 27 27]; 251s ***** assert (imopen (magic (10), ones (3)), out); 251s ***** assert (imopen (uint8 (magic (10)), strel ("square", 3)), uint8 (out)); 251s 251s ## using a se that will be decomposed in 2 pieces 251s out =[ 1 1 1 8 15 40 40 40 40 40 251s 4 4 4 8 15 40 40 40 40 40 251s 4 4 4 8 15 40 40 40 40 40 251s 5 5 5 3 3 28 28 28 28 28 251s 5 5 5 2 9 28 28 28 28 28 251s 5 5 13 26 26 26 26 26 26 26 251s 5 5 13 29 29 29 29 29 27 27 251s 6 6 13 29 29 29 29 29 27 27 251s 6 6 13 29 29 29 29 29 27 27 251s 6 6 13 29 29 29 29 29 27 27]; 251s ***** assert (imopen (magic (10), ones(5)), out); 251s 251s ## using a weird non-symmetric and even-size se 251s out =[ 7 7 1 8 15 55 51 51 41 40 251s 7 7 7 8 16 55 55 55 51 41 251s 4 9 7 7 16 54 55 54 55 47 251s 25 25 9 9 3 52 54 52 54 28 251s 25 24 25 2 9 33 52 34 52 34 251s 17 24 29 31 29 30 33 26 33 34 251s 17 5 29 31 31 31 30 32 39 33 251s 10 6 13 35 35 29 31 32 45 39 251s 10 12 77 36 36 35 35 31 45 45 251s 11 12 77 77 77 36 36 35 27 45]; 251s ***** assert (imopen (magic (10), [1 0 0 0; 1 1 1 0; 0 1 0 1]), out); 251s 5 tests, 5 passed, 0 known failure, 0 skipped 251s [inst/imtranslate.m] 251s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imtranslate.m 251s ***** test 251s obs = imtranslate (ones (5, 5), 2, 1, "crop"); 251s exp = zeros (5, 5); 251s exp(1:4, 3:5) = 1; 251s assert (obs, exp, eps * 10) 251s 251s obs = imtranslate (ones (5, 5), -2, -1, "crop"); 251s exp = zeros (5, 5); 251s exp(2:5, 1:3) = 1; 251s assert (obs, exp, eps * 10) 251s 1 test, 1 passed, 0 known failure, 0 skipped 251s [inst/colfilt.m] 251s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/colfilt.m 251s ***** demo 251s ## Perform moving average filter with a 4x4 window 251s A = magic (12) 251s colfilt (A, [4 4], "sliding", @mean) 251s ***** test 251s A = reshape (1:36, [6 6]); 251s assert (colfilt (A, [2 2], [3 3], "sliding", @sum), 251s conv2 (A, ones (2), "same")); 251s 1 test, 1 passed, 0 known failure, 0 skipped 251s [inst/grayslice.m] 251s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/grayslice.m 251s ***** test 251s expected = uint8 ([0 4 5 5 9]); 251s im = [0 0.45 0.5 0.55 1]; 251s assert (grayslice (im), expected) 251s assert (grayslice (im, 10), expected) 251s assert (grayslice (im, uint8 (10)), expected) 251s assert (grayslice (im, [.1 .2 .3 .4 .5 .6 .7 .8 .9]), expected) 251s ***** test 251s im = [0 0.45 0.5 0.55 1]; 251s assert (grayslice (im, 2), uint8 ([0 0 1 1 1])) 251s assert (grayslice (im, 3), uint8 ([0 1 1 1 2])) 251s assert (grayslice (im, 4), uint8 ([0 1 2 2 3])) 251s assert (grayslice (im, [0 0.5 1]), uint8 ([1 1 2 2 3])) 251s assert (grayslice (im, [0.5 1]), uint8 ([0 0 1 1 2])) 251s assert (grayslice (im, [0.6 1]), uint8 ([0 0 0 0 2])) 251s ***** test 251s im = [0 .55 1]; 251s assert (grayslice (im, 9), uint8 ([0 4 8])) 251s assert (grayslice (im, 9.1), uint8 ([0 5 8])) 251s assert (grayslice (im, 10), uint8 ([0 5 9])) 251s ***** assert (grayslice ([0 .5 1], [0 1 .5]), uint8 ([1 2 3])) 251s ***** test 251s ## 0 > N > 1 values are treated as if they are V and N=2 251s im = [0 .5 .55 .7 1]; 251s assert (grayslice (im, .5), uint8 ([0 1 1 1 1])) 251s assert (grayslice (im, .51), uint8 ([0 0 1 1 1])) 251s assert (grayslice (im, .7), uint8 ([0 0 0 1 1])) 251s assert (grayslice (im, 1), uint8 ([0 0 0 0 0])) 251s assert (grayslice (im, 1.2), uint8 ([0 0 0 0 0])) 251s ***** assert (grayslice ([0 .5 .7 1], [0 .5 1 2]), uint8 ([1 2 2 4])) 251s ***** assert (grayslice ([0 .45 .5 .65 .7 1], [.4 .5 .5 .7 .7 1]), 251s uint8 ([0 1 3 3 5 6])) 251s ***** assert (grayslice ([-.5 .1 .8 1.2], [-1 -.4 .05 .6 .9 1.1 2]), 251s uint8 ([1 3 4 7])) 251s ***** assert (grayslice ([0 .5 1], [-1 .5 1 2]), uint8 ([1 2 4])) 251s ***** assert (grayslice ([-2 -1 .5 1], [-1 .5 1]), uint8 ([0 1 2 3])) 251s ***** test 251s sliced = [ 251s repmat(0, [26 1]) 251s repmat(1, [25 1]) 251s repmat(2, [26 1]) 251s repmat(3, [25 1]) 251s repmat(4, [26 1]) 251s repmat(5, [25 1]) 251s repmat(6, [26 1]) 251s repmat(7, [25 1]) 251s repmat(8, [26 1]) 251s repmat(9, [26 1]) 251s ]; 251s sliced = uint8 (sliced(:).'); 251s assert (grayslice (uint8 (0:255)), sliced) 251s ***** assert (grayslice (uint8 (0:255), 255), uint8 ([0:254 254])) 251s ***** assert (class (grayslice (uint8 (0:255), 256)), "double") 251s ***** xtest 251s assert (grayslice (uint8 (0:255), 256), [1:256]) 251s 251s ## While the above fails, this passes and should continue to do so 251s ## since it's the actual formula in the documentation. 251s assert (grayslice (uint8 (0:255), 256), 251s grayslice (uint8 (0:255), (1:255)./256)) 251s !!!!! known failure 251s ASSERT errors for: assert (grayslice (uint8 (0:255), 256),[1:256]) 251s 251s Location | Observed | Expected | Reason 251s (129) 130 129 Abs err 1 exceeds tol 0 by 1 251s (130) 131 130 Abs err 1 exceeds tol 0 by 1 251s (131) 132 131 Abs err 1 exceeds tol 0 by 1 251s (132) 133 132 Abs err 1 exceeds tol 0 by 1 251s (133) 134 133 Abs err 1 exceeds tol 0 by 1 251s (134) 135 134 Abs err 1 exceeds tol 0 by 1 251s (135) 136 135 Abs err 1 exceeds tol 0 by 1 251s (136) 137 136 Abs err 1 exceeds tol 0 by 1 251s (137) 138 137 Abs err 1 exceeds tol 0 by 1 251s (138) 139 138 Abs err 1 exceeds tol 0 by 1 251s (139) 140 139 Abs err 1 exceeds tol 0 by 1 251s (140) 141 140 Abs err 1 exceeds tol 0 by 1 251s (141) 142 141 Abs err 1 exceeds tol 0 by 1 251s (142) 143 142 Abs err 1 exceeds tol 0 by 1 251s (143) 144 143 Abs err 1 exceeds tol 0 by 1 251s (144) 145 144 Abs err 1 exceeds tol 0 by 1 251s (145) 146 145 Abs err 1 exceeds tol 0 by 1 251s (146) 147 146 Abs err 1 exceeds tol 0 by 1 251s (147) 148 147 Abs err 1 exceeds tol 0 by 1 251s (148) 149 148 Abs err 1 exceeds tol 0 by 1 251s (149) 150 149 Abs err 1 exceeds tol 0 by 1 251s (150) 151 150 Abs err 1 exceeds tol 0 by 1 251s (151) 152 151 Abs err 1 exceeds tol 0 by 1 251s (152) 153 152 Abs err 1 exceeds tol 0 by 1 251s (153) 154 153 Abs err 1 exceeds tol 0 by 1 251s (154) 155 154 Abs err 1 exceeds tol 0 by 1 251s (155) 156 155 Abs err 1 exceeds tol 0 by 1 251s (156) 157 156 Abs err 1 exceeds tol 0 by 1 251s (157) 158 157 Abs err 1 exceeds tol 0 by 1 251s (158) 159 158 Abs err 1 exceeds tol 0 by 1 251s (159) 160 159 Abs err 1 exceeds tol 0 by 1 251s (160) 161 160 Abs err 1 exceeds tol 0 by 1 251s (161) 162 161 Abs err 1 exceeds tol 0 by 1 251s (162) 163 162 Abs err 1 exceeds tol 0 by 1 251s (163) 164 163 Abs err 1 exceeds tol 0 by 1 251s (164) 165 164 Abs err 1 exceeds tol 0 by 1 251s (165) 166 165 Abs err 1 exceeds tol 0 by 1 251s (166) 167 166 Abs err 1 exceeds tol 0 by 1 251s (167) 168 167 Abs err 1 exceeds tol 0 by 1 251s (168) 169 168 Abs err 1 exceeds tol 0 by 1 251s (169) 170 169 Abs err 1 exceeds tol 0 by 1 251s (170) 171 170 Abs err 1 exceeds tol 0 by 1 251s (171) 172 171 Abs err 1 exceeds tol 0 by 1 251s (172) 173 172 Abs err 1 exceeds tol 0 by 1 251s (173) 174 173 Abs err 1 exceeds tol 0 by 1 251s (174) 175 174 Abs err 1 exceeds tol 0 by 1 251s (175) 176 175 Abs err 1 exceeds tol 0 by 1 251s (176) 177 176 Abs err 1 exceeds tol 0 by 1 251s (177) 178 177 Abs err 1 exceeds tol 0 by 1 251s (178) 179 178 Abs err 1 exceeds tol 0 by 1 251s (179) 180 179 Abs err 1 exceeds tol 0 by 1 251s (180) 181 180 Abs err 1 exceeds tol 0 by 1 251s (181) 182 181 Abs err 1 exceeds tol 0 by 1 251s (182) 183 182 Abs err 1 exceeds tol 0 by 1 251s (183) 184 183 Abs err 1 exceeds tol 0 by 1 251s (184) 185 184 Abs err 1 exceeds tol 0 by 1 251s (185) 186 185 Abs err 1 exceeds tol 0 by 1 251s (186) 187 186 Abs err 1 exceeds tol 0 by 1 251s (187) 188 187 Abs err 1 exceeds tol 0 by 1 251s (188) 189 188 Abs err 1 exceeds tol 0 by 1 251s (189) 190 189 Abs err 1 exceeds tol 0 by 1 251s (190) 191 190 Abs err 1 exceeds tol 0 by 1 251s (191) 192 191 Abs err 1 exceeds tol 0 by 1 251s (192) 193 192 Abs err 1 exceeds tol 0 by 1 251s (193) 194 193 Abs err 1 exceeds tol 0 by 1 251s (194) 195 194 Abs err 1 exceeds tol 0 by 1 251s (195) 196 195 Abs err 1 exceeds tol 0 by 1 251s (196) 197 196 Abs err 1 exceeds tol 0 by 1 251s (197) 198 197 Abs err 1 exceeds tol 0 by 1 251s (198) 199 198 Abs err 1 exceeds tol 0 by 1 251s (199) 200 199 Abs err 1 exceeds tol 0 by 1 251s (200) 201 200 Abs err 1 exceeds tol 0 by 1 251s (201) 202 201 Abs err 1 exceeds tol 0 by 1 251s (202) 203 202 Abs err 1 exceeds tol 0 by 1 251s (203) 204 203 Abs err 1 exceeds tol 0 by 1 251s (204) 205 204 Abs err 1 exceeds tol 0 by 1 251s (205) 206 205 Abs err 1 exceeds tol 0 by 1 251s (206) 207 206 Abs err 1 exceeds tol 0 by 1 251s (207) 208 207 Abs err 1 exceeds tol 0 by 1 251s (208) 209 208 Abs err 1 exceeds tol 0 by 1 251s (209) 210 209 Abs err 1 exceeds tol 0 by 1 251s (210) 211 210 Abs err 1 exceeds tol 0 by 1 251s (211) 212 211 Abs err 1 exceeds tol 0 by 1 251s (212) 213 212 Abs err 1 exceeds tol 0 by 1 251s (213) 214 213 Abs err 1 exceeds tol 0 by 1 251s (214) 215 214 Abs err 1 exceeds tol 0 by 1 251s (215) 216 215 Abs err 1 exceeds tol 0 by 1 251s (216) 217 216 Abs err 1 exceeds tol 0 by 1 251s (217) 218 217 Abs err 1 exceeds tol 0 by 1 251s (218) 219 218 Abs err 1 exceeds tol 0 by 1 251s (219) 220 219 Abs err 1 exceeds tol 0 by 1 251s (220) 221 220 Abs err 1 exceeds tol 0 by 1 251s (221) 222 221 Abs err 1 exceeds tol 0 by 1 251s (222) 223 222 Abs err 1 exceeds tol 0 by 1 251s (223) 224 223 Abs err 1 exceeds tol 0 by 1 251s (224) 225 224 Abs err 1 exceeds tol 0 by 1 251s (225) 226 225 Abs err 1 exceeds tol 0 by 1 251s (226) 227 226 Abs err 1 exceeds tol 0 by 1 251s (227) 228 227 Abs err 1 exceeds tol 0 by 1 251s (228) 229 228 Abs err 1 exceeds tol 0 by 1 251s (229) 230 229 Abs err 1 exceeds tol 0 by 1 251s (230) 231 230 Abs err 1 exceeds tol 0 by 1 251s (231) 232 231 Abs err 1 exceeds tol 0 by 1 251s (232) 233 232 Abs err 1 exceeds tol 0 by 1 251s (233) 234 233 Abs err 1 exceeds tol 0 by 1 251s (234) 235 234 Abs err 1 exceeds tol 0 by 1 251s (235) 236 235 Abs err 1 exceeds tol 0 by 1 251s (236) 237 236 Abs err 1 exceeds tol 0 by 1 251s (237) 238 237 Abs err 1 exceeds tol 0 by 1 251s (238) 239 238 Abs err 1 exceeds tol 0 by 1 251s (239) 240 239 Abs err 1 exceeds tol 0 by 1 251s (240) 241 240 Abs err 1 exceeds tol 0 by 1 251s (241) 242 241 Abs err 1 exceeds tol 0 by 1 251s (242) 243 242 Abs err 1 exceeds tol 0 by 1 251s (243) 244 243 Abs err 1 exceeds tol 0 by 1 251s (244) 245 244 Abs err 1 exceeds tol 0 by 1 251s (245) 246 245 Abs err 1 exceeds tol 0 by 1 251s (246) 247 246 Abs err 1 exceeds tol 0 by 1 251s (247) 248 247 Abs err 1 exceeds tol 0 by 1 251s (248) 249 248 Abs err 1 exceeds tol 0 by 1 251s (249) 250 249 Abs err 1 exceeds tol 0 by 1 251s (250) 251 250 Abs err 1 exceeds tol 0 by 1 251s (251) 252 251 Abs err 1 exceeds tol 0 by 1 251s (252) 253 252 Abs err 1 exceeds tol 0 by 1 251s (253) 254 253 Abs err 1 exceeds tol 0 by 1 251s (254) 255 254 Abs err 1 exceeds tol 0 by 1 251s (255) 256 255 Abs err 1 exceeds tol 0 by 1 251s ***** test 251s ## Use of threshold in the [0 1] range for images of integer type does 251s ## not really work despite the Matlab documentation. It's Matlab 251s ## documentation that is wrong, see bug #55059 251s 251s assert (grayslice (uint8([0 100 200 255]), [.1 .4 .5]), 251s uint8 ([0 3 3 3])) 251s assert (grayslice (uint8([0 100 200 255]), [100 199 200 210]), 251s uint8 ([0 1 3 4])) 251s 251s ## P (penny) is a 2d image of class double in [1 255] range 251s q = warning ("query", "Octave:data-file-in-path"); 251s warning ("off", "Octave:data-file-in-path"); 251s load ("penny.mat"); 251s warning (q.state, "Octave:data-file-in-path"); 251s assert (grayslice (P), repmat (uint8 (9), size (P))) 251s ***** function gs = test_grayslice_v (I, v) 251s ## This is effectively what grayslice does but slower with a for 251s ## loop internally. 251s gs = zeros (size (I)); 251s for idx = 1:numel (v) 251s gs(I >= v(idx)) = idx; 251s endfor 251s if (numel (v) >= 256) 251s gs = gs +1; 251s else 251s gs = uint8 (gs); 251s endif 251s ***** endfunction 251s ***** test 251s q = warning ("query", "Octave:data-file-in-path"); 251s warning ("off", "Octave:data-file-in-path"); 251s load ("penny.mat"); 251s warning (q.state, "Octave:data-file-in-path"); 251s 251s ## The loaded P in penny.mat is of size 128x128, class double, and 251s ## with values in the [1 255] range 251s penny_uint8 = uint8 (P); 251s penny_double = im2double (penny_uint8); # rescales to [0 1] range] 251s 251s ## default of N = 10 251s expected = test_grayslice_v (penny_uint8, 251s [26 51 77 102 128 153 179 204 230]); 251s assert (grayslice (penny_uint8, 10), expected) 251s assert (grayslice (penny_uint8), expected) 251s 251s expected = test_grayslice_v (penny_double, 251s [.1 .2 .3 .4 .5 .6 .7 .8 .9]); 251s assert (grayslice (penny_double, 10), expected) 251s assert (grayslice (penny_double), expected) 251s ***** test 251s ## For images with more than 2d 251s q = warning ("query", "Octave:data-file-in-path"); 251s warning ("off", "Octave:data-file-in-path"); 251s load ("penny.mat"); 251s warning (q.state, "Octave:data-file-in-path"); 251s penny_double = im2double (uint8 (P)); 251s P_3d = repmat (penny_double, [1 1 3]); 251s P_5d = repmat (penny_double, [1 1 3 2 3]); 251s 251s v = [.3 .5 .7]; 251s expected_2d = test_grayslice_v (penny_double, v); 251s assert (grayslice (P_3d, v), repmat (expected_2d, [1 1 3])) 251s assert (grayslice (P_5d, v), repmat (expected_2d, [1 1 3 2 3])) 251s ***** test 251s q = warning ("query", "Octave:data-file-in-path"); 251s warning ("off", "Octave:data-file-in-path"); 251s load ("penny.mat"); 251s warning (q.state, "Octave:data-file-in-path"); 251s penny_double = uint8 (P); 251s 251s ## Test that change from uint8 to double happens at 256 exactly 251s assert (class (grayslice (penny_double, 255)), "uint8") 251s assert (class (grayslice (penny_double, 256)), "double") 251s 251s ## If returns in class double, it's +1. 251s v = [10 150 200]; 251s v_long = [v 256:600]; 251s assert (double (grayslice (penny_double, v)) +1, 251s grayslice (penny_double, v_long)) 251s ***** test 251s ## If there's a vector for floating point and goes outside the 251s ## range, it uses the last index of the vector. 251s q = warning ("query", "Octave:data-file-in-path"); 251s warning ("off", "Octave:data-file-in-path"); 251s load ("penny.mat"); 251s warning (q.state, "Octave:data-file-in-path"); 251s penny_double = im2double (uint8 (P)); 251s v = [.3 .5 .7 2:10]; 251s idx_1 = find (penny_double == 1); 251s assert (grayslice (penny_double, v)(idx_1), uint8 ([12; 12])) 251s ***** error x = grayslice ([1 2; 3 4], 0) 251s ***** error x = grayslice ([1 2; 3 4], -1) 251s ***** error x = grayslice ([1 2; 3 4], "foo") 251s ***** test 251s ## test output values for all input classes 251s 251s klasse = "uint8"; 251s im = cast ([intmin(klasse): intmax(klasse)], klasse); 251s erg05 = grayslice (im, 0.5); 251s first1_erg05 = im(find (erg05)(1)); 251s assert (first1_erg05, cast (1, klasse)); 251s erg5 = grayslice (im, 5); 251s first1_erg5 = im(find (erg5)(1)); 251s assert (first1_erg5, cast (51, klasse)); 251s ergint5 = grayslice (im, uint8 (5)); 251s first1_ergint5 = im(find (ergint5)(1)); 251s assert (first1_ergint5, cast (51, klasse)); 251s 251s klasse = "uint16"; 251s im = cast ([intmin(klasse): intmax(klasse)], klasse); 251s erg05 = grayslice (im, 0.5); 251s first1_erg05 = im(find (erg05)(1)); 251s assert (first1_erg05, cast (1, klasse)); 251s erg5 = grayslice (im, 5); 251s first1_erg5 = im(find (erg5)(1)); 251s assert (first1_erg5, cast (13107, klasse)); 251s ergint5 = grayslice (im, uint8 (5)); 251s first1_ergint5 = im(find (ergint5)(1)); 251s assert (first1_ergint5, cast (13107, klasse)); 251s 251s klasse = "int16"; 251s im = cast ([intmin(klasse): intmax(klasse)], klasse); 251s erg05 = grayslice (im, 0.5); 251s first1_erg05 = im(find (erg05)(1)); 251s assert (first1_erg05, cast (-32767, klasse)); 251s erg5 = grayslice (im, 5); 251s first1_erg5 = im(find (erg5)(1)); 251s assert (first1_erg5, cast (-19661, klasse)); 251s ergint5 = grayslice (im, uint8 (5)); 251s first1_ergint5 = im(find (ergint5)(1)); 251s assert (first1_ergint5, cast (-19661, klasse)); 251s 251s klasse = "single"; 251s im = cast ([0:0.001:1], klasse); 251s erg05 = grayslice (im, 0.5); 251s first1_erg05 = im(find (erg05)(1)); 251s assert (first1_erg05, cast (0.5, klasse)); 251s erg5 = grayslice (im, 5); 251s first1_erg5 = im(find (erg5)(1)); 251s assert (first1_erg5, cast (0.2, klasse)); 251s ergint5 = grayslice (im, uint8 (5)); 251s first1_ergint5 = im(find (ergint5)(1)); 251s assert (first1_ergint5, cast (0.2, klasse)); 251s 251s klasse = "double"; 251s im = cast ([0:0.001:1], klasse); 251s erg05 = grayslice (im, 0.5); 251s first1_erg05 = im(find (erg05)(1)); 251s assert (first1_erg05, cast (0.5, klasse)); 251s erg5 = grayslice (im, 5); 251s first1_erg5 = im(find (erg5)(1)); 251s assert (first1_erg5, cast (0.2, klasse)); 251s ergint5 = grayslice (im, uint8 (5)); 251s first1_ergint5 = im(find (ergint5)(1)); 251s assert (first1_ergint5, cast (0.2, klasse)); 251s 23 tests, 22 passed, 1 known failure, 0 skipped 251s [inst/padarray.m] 251s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/padarray.m 251s ***** demo 251s padarray([1,2,3;4,5,6],[2,1]) 251s % pads [1,2,3;4,5,6] with a whole border of 2 rows and 1 columns of 0 251s ***** demo 251s padarray([1,2,3;4,5,6],[2,1],5) 251s % pads [1,2,3;4,5,6] with a whole border of 2 rows and 1 columns of 5 251s ***** demo 251s padarray([1,2,3;4,5,6],[2,1],0,'pre') 251s % pads [1,2,3;4,5,6] with a left and top border of 2 rows and 1 columns of 0 251s ***** demo 251s padarray([1,2,3;4,5,6],[2,1],'circular') 251s % pads [1,2,3;4,5,6] with a whole 'circular' border of 2 rows and 1 columns 251s % border 'repeats' data as if we tiled blocks of data 251s ***** demo 251s padarray([1,2,3;4,5,6],[2,1],'replicate') 251s % pads [1,2,3;4,5,6] with a whole border of 2 rows and 1 columns which 251s % 'replicates' edge data 251s ***** demo 251s padarray([1,2,3;4,5,6],[2,1],'symmetric') 251s % pads [1,2,3;4,5,6] with a whole border of 2 rows and 1 columns which 251s % is symmetric to the data on the edge 251s ***** assert (padarray ([1;2], [1]), [0;1;2;0]); 251s ***** assert (padarray ([3 4], [0 2]), [0 0 3 4 0 0]); 251s ***** assert (padarray ([1 2 3; 4 5 6], [1 2]), 251s [zeros(1, 7); 0 0 1 2 3 0 0; 0 0 4 5 6 0 0; zeros(1, 7)]); 251s ***** test 251s assert (padarray ([1 2 3; 4 5 6], [3 2 1]), 251s cat(3, zeros(8, 7), 251s [ [ zeros(3, 7) ] 251s [zeros(2, 2) [1 2 3; 4 5 6] zeros(2, 2) ] 251s [ zeros(3,7)] ], 251s zeros (8, 7))); 251s ***** assert (padarray ([1 2], [4 5]), padarray ([1 2], [4 5], 0)); 251s ***** assert (padarray ([1 2], [4 5]), padarray ([1 2], [4 5], "both")); 251s ***** assert (padarray ([1;2], [1], i), [i; 1; 2; i]); 251s ***** assert (padarray ([1;2], [1], i, "pre"), [i; 1; 2]); 251s ***** assert (padarray ([1;2], [1], i, "post"), [1; 2; i]); 251s ***** assert (padarray ([1;2], [1], i, "both"), [i; 1; 2; i]); 251s ***** assert (padarray ([1 2], [0 1], i, "pre"), [i 1 2]); 251s ***** assert (padarray ([1 2], [0 1], i, "post"), [1 2 i]); 251s ***** assert (padarray ([1 2], [0 1], i, "both"), [i 1 2 i]); 251s ***** assert (padarray ([1 2], [0;1], i, "both"), [i 1 2 i]); 251s ***** test 251s A = [1 2 3; 4 5 6]; 251s B = repmat (A, 7, 9); 251s assert (padarray (A, [1 2], "circular", "pre"), B(2:4,2:6)); 251s assert (padarray (A, [1 2], "circular", "post"), B(3:5,4:8)); 251s assert (padarray (A, [1 2], "circular", "both"), B(2:5,2:8)); 251s ## This tests when padding is bigger than data 251s assert (padarray (A, [5 10], "circular", "both"), B(2:13,3:25)); 251s ***** test 251s A = int8 ([1 2 3; 4 5 6]); 251s B = repmat (A, 7, 9); 251s assert (padarray (A, [1 2], "circular", "pre"), B(2:4,2:6)); 251s assert (padarray (A, [1 2], "circular", "post"), B(3:5,4:8)); 251s assert (padarray (A, [1 2], "circular", "both"), B(2:5,2:8)); 251s ## This tests when padding is bigger than data 251s assert (padarray (A, [5 10], "circular", "both"), B(2:13,3:25)); 251s ***** test 251s A = [1 2; 3 4]; 251s B = kron (A, ones (10, 5)); 251s assert (padarray (A, [9 4], "replicate", "pre"), B(1:11,1:6)); 251s assert (padarray (A, [9 4], "replicate", "post"), B(10:20,5:10)); 251s assert (padarray (A, [9 4], "replicate", "both"), B); 251s ## same with uint class 251s assert (padarray (uint8 (A), [9 4], "replicate", "pre"), uint8 (B(1:11,1:6))); 251s assert (padarray (uint8 (A), [9 4], "replicate", "post"), uint8 (B(10:20,5:10))); 251s assert (padarray (uint8 (A), [9 4], "replicate", "both"), uint8 (B)); 251s ***** test 251s A = [1:3 251s 4:6]; 251s HA = [3:-1:1 251s 6:-1:4]; 251s VA = [4:6 251s 1:3]; 251s VHA = [6:-1:4 251s 3:-1:1]; 251s B = [VHA VA VHA 251s HA A HA 251s VHA VA VHA]; 251s assert (padarray (A, [1 2], "symmetric", "pre"), B(2:4,2:6)); 251s assert (padarray (A, [1 2], "symmetric", "post"), B(3:5,4:8)); 251s assert (padarray (A, [1 2], "symmetric", "both"), B(2:5,2:8)); 251s ## same with int class 251s assert (padarray (int16 (A), [1 2], "symmetric", "pre"), int16 (B(2:4,2:6))); 251s assert (padarray (int16 (A), [1 2], "symmetric", "post"), int16 (B(3:5,4:8))); 251s assert (padarray (int16 (A), [1 2], "symmetric", "both"), int16 (B(2:5,2:8))); 251s ***** assert (padarray (int8 ([1; 2]), [1]), int8 ([0; 1; 2; 0])); 251s ***** assert (padarray (uint8 ([3 4]), [0 2]), uint8 ([0 0 3 4 0 0])); 251s ***** assert (padarray (int16 ([1; 2]), [1], 4), int16 ([4; 1; 2; 4])); 251s ***** assert (padarray (uint16 ([1; 2]), [1], 0), uint16 ([0; 1; 2; 0])); 251s ***** assert (padarray (uint32 ([1; 2]), [1], 6, "post"), uint32 ([1; 2; 6])); 251s ***** assert (padarray (int32 ([1; 2]), [1], int32 (4), "pre"), int32 ([4; 1; 2])); 251s ***** test 251s in = [ 7 5 1 3 251s 5 3 3 4 251s 7 5 2 3 251s 6 1 3 8]; 251s padded = [ 251s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 251s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 251s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 251s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 251s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 251s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 251s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 251s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 251s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 251s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 251s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 251s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 251s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 251s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 251s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 251s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 251s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 251s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 251s 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 5 7 7 5 1 3 3 1 251s 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 3 5 5 3 3 4 4 3 251s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 251s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 251s 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 1 6 6 1 3 8 8 3 251s 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2 5 7 7 5 2 3 3 2]; 251s for ite = 1:10 251s assert (padarray (in, [ite ite], "symmetric"), padded((11-ite):(14+ite),(11-ite):(14+ite))); 251s assert (padarray (in, [ite ite], "symmetric", "pre"), padded((11-ite):14,(11-ite):14)); 251s assert (padarray (in, [ite ite], "symmetric", "post"), padded(11:(14+ite),11:(14+ite))); 251s endfor 251s ***** test 251s in = [ 7 5 4 9 251s 6 4 5 1 251s 5 3 3 3 251s 2 6 7 3]; 251s padded = [ 251s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 251s 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 251s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 251s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 251s 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 251s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 251s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 251s 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 251s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 251s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 251s 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 251s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 251s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 251s 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 251s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 251s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 251s 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 251s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 251s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 251s 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 7 3 7 6 2 6 251s 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 3 3 3 3 5 3 251s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 251s 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 4 9 4 5 7 5 251s 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4 5 1 5 4 6 4]; 251s for ite = 1:10 251s assert (padarray (in, [ite ite], "reflect"), padded((11-ite):(14+ite),(11-ite):(14+ite))); 251s assert (padarray (in, [ite ite], "reflect", "pre"), padded((11-ite):14,(11-ite):14)); 251s assert (padarray (in, [ite ite], "reflect", "post"), padded(11:(14+ite),11:(14+ite))); 251s endfor 251s 26 tests, 26 passed, 0 known failure, 0 skipped 251s [inst/affine3d.m] 251s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/affine3d.m 251s ***** test 251s Sx = 1.2; 251s Sy = 1.6; 251s Sz = 2.4; 251s A = [Sx 0 0 0; 0 Sy 0 0; 0 0 Sz 0; 0 0 0 1]; 251s tform = affine3d (A); 251s [X, Y, Z] = transformPointsForward (tform, 5, 10, 3); 251s assert ([X Y Z], [6 16 7.2], 5*eps) 251s [U, V, W] = transformPointsInverse (tform, X, Y, Z); 251s assert ([U V W], [5 10 3], eps) 251s assert (! isRigid (tform)) 251s assert (! isTranslation (tform)) 251s assert (! isSimilarity (tform)) 251s ***** test 251s A = [3 1 2 0; 4 5 8 0; 6 2 1 0; 0 0 0 1]; 251s tform = affine3d (A); 251s [X, Y, Z] = transformPointsForward (tform, 2, 3, 5); 251s assert (X, 48, eps) 251s assert (Y, 27, eps) 251s assert (Z, 33, eps) 251s [U, V, W] = transformPointsInverse (tform, X, Y, Z); 251s assert (U, 2, 50*eps) 251s assert (V, 3, 50*eps) 251s assert (W, 5, 50*eps) 251s assert (! isRigid (tform)) 251s assert (! isTranslation (tform)) 251s assert (! isSimilarity (tform)) 251s ***** test 251s A = [1 0 0 0; 0 1 0 0; 0 0 1 0; 5 10 1 1]; 251s tform = affine3d (A); 251s X = transformPointsForward (tform, [1 2 3; 4 5 6; 7 8 9]); 251s assert (round (X), [6, 12, 4; 9, 15, 7; 12, 18, 10]) 251s U = transformPointsInverse (tform, X); 251s assert (round (U), [1 2 3; 4 5 6; 7 8 9]) 251s assert (isRigid (tform)) 251s assert (isTranslation (tform)) 251s assert (isSimilarity (tform)) 251s ***** test 251s Sx = 1.2; 251s Sy = 1.6; 251s Sz = 2.4; 251s A = [Sx 0 0 0; 0 Sy 0 0; 0 0 Sz 0; 0 0 0 1]; 251s tform = affine3d (A); 251s [xlim, ylim, zlim] = outputLimits (tform, [1 128], [1 128], [1 27]); 251s assert (xlim, [ 1.2000 153.6000],1e-8) 251s assert (ylim, [1.6000 204.8000], 1e-8) 251s assert (zlim, [2.4000 64.8000], 1e-8) 251s ***** error affine3d (1, 2) 251s ***** error outputLimits (affine2d()) 251s ***** test 251s a = 23; 251s M = [cosd(a) 0 sind(a) 0; 251s 0 1 0 0; 251s -sind(a) 0 cosd(a) 0; 251s 0 0 0 1]; 251s tform = affine3d (M); 251s tform2 = invert (tform); 251s assert (tform.T * tform2.T, diag([1 1 1 1]), eps); 251s ***** test 251s tform = affine3d; 251s assert (tform.T, eye (4)) 251s assert (tform.Dimensionality, 3) 251s 8 tests, 8 passed, 0 known failure, 0 skipped 251s [inst/imabsdiff.m] 251s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imabsdiff.m 251s ***** assert (imabsdiff (uint8 ([23 250]), uint8 ([26 50])), uint8 ([ 3 200])); # default to first class and abs works 251s ***** assert (imabsdiff (uint8 ([23 250]), uint8 ([24 50]), "uint16"), uint16 ([ 1 200])); # defining output class works (not in matlab) 251s ***** assert (imabsdiff (uint8 ([23 250]), uint8 ([24 255]), "int8"), int8 ([ 1 5])); # signed integers kinda work (not in matlab) 251s ***** assert (imabsdiff (logical ([ 1 0]), logical ([ 1 1])), double ([ 0 1])); # return double for two logical images 251s ***** fail ("imabsdiff (uint8 ([23 250]), 30"); # fails subtracting a scalar 251s ***** fail ("imabsdiff (uint8 ([23 250]), uint16 ([23 250]))"); # input need to have same class 251s 6 tests, 6 passed, 0 known failure, 0 skipped 251s [inst/bwpack.m] 251s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/bwpack.m 251s ***** error id=Octave:invalid-fun-call bwpack () 252s ***** error id=Octave:invalid-input-arg bwpack ("text") 252s ***** xtest 252s ## bug #55521 252s assert (bwpack (eye (5)), uint32 ([1 2 4 8 16])) 252s ***** xtest 252s ## bug #55521 252s assert (bwpack (repmat (eye (4), 15, 1)), 252s uint32 ([286331153 572662306 1145324612 2290649224 252s 17895697 35791394 71582788 143165576])) 252s ***** xtest 252s ## bug #55521 252s assert (bwpack (ones (3, 3, 3, 3)), repmat (uint32 (7), 1, 3, 3, 3)) 252s ***** assert (bwpack (false (0, 10)), uint32 (zeros (0, 10))) 252s ***** assert (bwpack (false (0, 0)), uint32 (zeros (0, 0))) 252s ***** assert (bwpack (false (32, 0)), uint32 (zeros (1, 0))) 252s ***** assert (bwpack (false (33, 0)), uint32 (zeros (2, 0))) 252s ***** assert (bwpack (false (0, 10, 3)), uint32 (zeros (0, 10, 3))) 252s ***** assert (bwpack (false (33, 0, 3)), uint32 (zeros (2, 0, 3))) 252s ***** assert (bwpack (i), bwpack (logical (i))) 252s 12 tests, 12 passed, 0 known failure, 0 skipped 252s [inst/normxcorr2.m] 252s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/normxcorr2.m 252s ***** function offsets = get_max_offsets (c) 252s l = find (c == max (c(:))); 252s offsets = nthargout (1:ndims (c), @ind2sub, size (c), l); 252s ***** endfunction 252s ***** test 252s row_shift = 18; 252s col_shift = 20; 252s a = randi (255, 30, 30); 252s b = a(row_shift-10:row_shift, col_shift-7:col_shift); 252s c = normxcorr2 (b, a); 252s ## should return exact coordinates 252s assert (get_max_offsets (c), {row_shift col_shift}); 252s 252s ## Even with some small noise, should return exact coordinates 252s b = imnoise (b, "gaussian"); 252s c = normxcorr2 (b, a); 252s assert (get_max_offsets (c), {row_shift col_shift}); 252s ***** xtest 252s a = rand (10, 10); 252s c = normxcorr2 (a(5:7, 6:9), a); 252s assert (c(7, 9), 1, eps*100); 252s ***** test 252s a = 10 * randn (100, 100); 252s auto = normxcorr2 (a, a); 252s add_in = normxcorr2 (a, -a); 252s assert (auto, -add_in); 252s ***** test 252s a = 10 * randn (50, 50); 252s b = 10 * randn (100, 100); 252s do 252s scale = 100 * rand (); 252s until (scale != 0) 252s 252s assert (max ((normxcorr2 (scale*a,b) - normxcorr2 (a,b))(:)), 0, 1e-10); 252s assert (max ((normxcorr2 (a,scale*b) - normxcorr2 (a,b))(:)), 0, 1e-10); 252s 252s a_shift1 = a + scale * ones (size (a)); 252s b_shift1 = b + scale * ones (size (b)); 252s a_shift2 = a - scale * ones (size (a)); 252s b_shift2 = b - scale * ones (size (b)); 252s assert (max ((normxcorr2 (a_shift1,b) - normxcorr2 (a,b))(:)), 0, 1e-10); 252s assert (max ((normxcorr2 (a,b_shift1) - normxcorr2 (a,b))(:)), 0, 1e-10); 252s assert (max ((normxcorr2 (a_shift2,b) - normxcorr2 (a,b))(:)), 0, 1e-10); 252s assert (max ((normxcorr2 (a,b_shift2) - normxcorr2 (a,b))(:)), 0, 1e-10); 252s ***** test 252s a = randi (100, 15, 15, 15); 252s c = normxcorr2 (a(5:10, 2:6, 3:7), a); 252s assert (get_max_offsets (c), {10 6 7}); 252s 252s a = randi (100, 15, 15, 15); 252s c = normxcorr2 (a(5:10, 2:6, 1:1), a); 252s assert (get_max_offsets (c), {10 6 1}); 252s ***** warning normxcorr2 (rand (20), rand (5)); 252s ***** error normxcorr2 (rand (5)); 253s ***** error normxcorr2 (rand (5), rand (20), 2); 253s ***** test 253s a = [ 252 168 50 1 59; 253s 114 0 0 0 0] ./ 255; 253s b = [ 1 171 255 255 255 255 240 71 131 254 255 255 255; 253s 0 109 254 255 255 233 59 0 131 254 255 255 255; 253s 76 13 195 253 194 34 0 19 217 255 255 255 255; 253s 110 0 0 0 0 0 3 181 255 255 255 255 255; 253s 153 0 0 0 0 2 154 254 255 255 255 255 255]./255; 253s c = normxcorr2 (a, b); 253s assert (max (imag (c(:))), 0); 253s ***** test 253s img = [1 1 1 0]; 253s t = [1 1 0]; 253s c = normxcorr2 (t, img); 253s assert (c(3), 0) 253s 10 tests, 10 passed, 0 known failure, 0 skipped 253s [inst/impyramid.m] 253s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/impyramid.m 253s ***** xtest 253s ## bug #51979 (results are not matlab compatible) 253s in = [116 227 153 69 146 194 59 130 139 106 253s 2 47 137 249 90 75 16 24 158 44 253s 155 68 46 84 166 156 69 204 32 152 253s 71 221 137 230 210 153 192 115 30 118 253s 107 143 108 52 51 73 101 21 175 90 253s 54 158 143 77 26 168 113 229 165 225 253s 9 47 133 135 130 207 236 43 19 73]; 253s 253s reduced = [ 253s 114 139 131 103 111 253s 97 122 141 111 100 253s 103 123 112 123 122 253s 47 107 134 153 94]; 253s 253s expanded = [ 253s 115 154 185 178 150 122 105 116 138 159 158 117 78 86 112 129 133 120 103 253s 69 98 128 141 146 152 152 139 125 127 121 87 55 58 81 113 131 112 84 253s 40 54 74 100 131 167 184 157 119 104 92 64 41 44 66 100 121 103 74 253s 76 69 65 75 97 130 153 148 131 122 108 80 61 79 103 105 98 97 98 253s 120 105 88 77 78 96 121 143 155 154 140 112 98 124 143 109 74 91 123 253s 117 129 134 119 107 125 153 173 180 172 156 143 138 146 140 96 60 83 122 253s 99 139 170 157 139 156 181 188 180 164 151 154 156 140 112 81 65 84 110 253s 101 136 163 153 133 132 138 136 130 122 120 130 133 108 82 86 99 104 104 253s 103 126 143 136 116 97 81 73 73 82 94 105 105 87 78 108 138 133 116 253s 90 116 139 139 122 96 69 52 53 80 109 114 111 116 128 148 163 164 160 253s 66 99 131 140 131 109 83 62 62 102 142 144 138 154 169 164 157 169 184 253s 41 68 99 121 130 122 107 92 95 133 173 182 172 156 135 114 105 121 142 253s 21 38 64 98 124 131 127 123 129 160 194 212 199 144 82 52 48 65 85]; 253s 253s assert (impyramid (uint8 (in), "reduce"), uint8 (reduced)) 253s assert (impyramid (uint8 (in), "expand"), uint8 (expanded)) 253s !!!!! known failure 253s ASSERT errors for: assert (impyramid (uint8 (in), "reduce"),uint8 (reduced)) 253s 253s Location | Observed | Expected | Reason 253s (2,4) 110 111 Abs err 0 exceeds tol 0 by 0 253s (2,5) 99 100 Abs err 0 exceeds tol 0 by 0 253s (3,5) 121 122 Abs err 0 exceeds tol 0 by 0 253s ***** test 253s in = randi ([0 255], [40 39 3 5], "uint8"); 253s red = impyramid (in, "reduce"); 253s for p = 1:3 253s for n = 1:5 253s assert (red(:,:,p,n), impyramid (in(:,:,p,n), "reduce")) 253s endfor 253s endfor 253s 253s exp = impyramid (in, "expand"); 253s for p = 1:3 253s for n = 1:5 253s assert (exp(:,:,p,n), impyramid (in(:,:,p,n), "expand")) 253s endfor 253s endfor 253s ***** xtest 253s ## bug #51979 (results are not matlab compatible) 253s in = repmat (uint8 (255), [10 10]); 253s assert (impyramid (in, "reduce"), repmat (uint8 (255), [5 5])) 253s assert (impyramid (in, "expand"), repmat (uint8 (255), [19 19])) 253s !!!!! known failure 253s ASSERT errors for: assert (impyramid (in, "expand"),repmat (uint8 (255), [19, 19])) 253s 253s Location | Observed | Expected | Reason 253s (1,1) 195 255 Abs err 0 exceeds tol 0 by 0 253s (2,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (3,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (4,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (5,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (6,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (7,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (8,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (9,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (10,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (11,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (12,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (13,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (14,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (15,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (16,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (17,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (18,1) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,1) 195 255 Abs err 0 exceeds tol 0 by 0 253s (1,2) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,2) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,3) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,3) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,4) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,4) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,5) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,5) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,6) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,6) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,7) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,7) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,8) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,8) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,9) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,9) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,10) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,10) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,11) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,11) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,12) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,12) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,13) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,13) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,14) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,14) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,15) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,15) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,16) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,16) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,17) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,17) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,18) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,18) 223 255 Abs err 0 exceeds tol 0 by 0 253s (1,19) 195 255 Abs err 0 exceeds tol 0 by 0 253s (2,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (3,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (4,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (5,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (6,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (7,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (8,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (9,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (10,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (11,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (12,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (13,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (14,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (15,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (16,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (17,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (18,19) 223 255 Abs err 0 exceeds tol 0 by 0 253s (19,19) 195 255 Abs err 0 exceeds tol 0 by 0 253s ***** xtest 253s ## bug #51979 (results are not matlab compatible) 253s in = logical ([ 253s 1 0 1 1 0 0 1 1 0 0 253s 1 1 0 0 0 1 0 0 1 0 253s 0 1 1 0 1 1 1 1 1 1 253s 1 0 1 0 1 0 1 0 1 1 253s 1 1 1 0 0 0 1 1 1 1 253s 0 0 1 1 0 0 1 0 0 0 253s 0 0 1 1 0 1 1 0 1 1 253s 1 1 0 0 1 0 0 0 1 0 253s 1 1 1 1 1 1 0 1 0 0 253s 1 1 0 0 1 0 0 0 1 0]); 253s 253s reduced = logical ([ 253s 1 1 0 1 0 253s 1 1 0 1 1 253s 1 1 0 1 1 253s 0 1 0 0 0 253s 1 1 1 0 0]); 253s 253s expanded = logical ([ 253s 1 1 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 0 0 253s 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 253s 1 1 1 1 0 0 0 0 0 0 1 1 0 0 0 1 1 0 0 253s 1 1 1 1 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 253s 0 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 253s 0 0 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 253s 1 1 0 1 1 0 0 0 1 0 0 1 1 1 0 1 1 1 1 253s 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 253s 1 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 253s 0 0 1 1 1 1 0 0 0 0 0 0 1 1 1 0 0 0 0 253s 0 0 0 1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 0 253s 0 0 0 0 1 1 1 0 0 0 0 1 1 0 0 0 0 0 0 253s 0 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 253s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 253s 1 1 1 1 0 0 0 1 1 1 0 0 0 0 0 0 1 0 0 253s 1 1 1 1 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 253s 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 0 0 0 0 253s 1 1 1 1 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 253s 1 1 1 1 0 0 0 1 1 1 0 0 0 0 0 0 1 0 0]); 253s 253s assert (impyramid (in, "reduce"), reduced) 253s assert (impyramid (in, "expand"), expanded) 253s !!!!! known failure 253s ASSERT errors for: assert (impyramid (in, "reduce"),reduced) 253s 253s Location | Observed | Expected | Reason 253s (4,1) 1 0 Abs err 1 exceeds tol 0 by 1 253s (1,3) 1 0 Abs err 1 exceeds tol 0 by 1 253s (2,3) 1 0 Abs err 1 exceeds tol 0 by 1 253s (3,3) 1 0 Abs err 1 exceeds tol 0 by 1 253s (4,3) 1 0 Abs err 1 exceeds tol 0 by 1 253s (4,4) 1 0 Abs err 1 exceeds tol 0 by 1 253s (5,4) 1 0 Abs err 1 exceeds tol 0 by 1 253s (1,5) 1 0 Abs err 1 exceeds tol 0 by 1 253s (4,5) 1 0 Abs err 1 exceeds tol 0 by 1 253s (5,5) 1 0 Abs err 1 exceeds tol 0 by 1 253s 4 tests, 1 passed, 3 known failures, 0 skipped 253s [inst/bwhitmiss.m] 253s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/bwhitmiss.m 253s ***** test 253s bw1 = repmat ([0 1 0 1 1], [3 1]); 253s bw2 = repmat ([0 1 0 0 0], [3 1]); 253s assert (bwhitmiss (bw1, [1; 0; 1], [1 0 1]), logical (bw2)) 253s assert (bwhitmiss (bw1, [0 1 0; -1 0 -1; 0 1 0]), logical (bw2)) 253s 1 test, 1 passed, 0 known failure, 0 skipped 253s [inst/imadjust.m] 253s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imadjust.m 253s ***** error imadjust ("bad argument"); 253s ***** error imadjust ([1:100], "bad argument", [], 1); 253s ***** error <2 row column per plane> imadjust ([1:100], [0 1 1], [], 1); 253s ***** error <2 row column per plane> imadjust ([1:100], [], [0 1 1], 1); 253s ***** error imadjust ([1:100], [], [], [0; 1]); 253s ***** error imadjust (rand (5, 5, 3), [], [], [0 1]); 253s ***** error imadjust ([1:100], [0; 1], [], -1); 253s ***** error imadjust ([1:100], [0; 5], []); 253s ***** error imadjust ([1:100], [-2; 1], []); 253s ***** error imadjust ([1:100], [], [0; 4]); 253s ***** error imadjust ([1:100], [], [-2; 1]); 253s ***** error imadjust (rand (5) > .5); 253s ***** test 253s im = [0.01:0.01:1]; 253s assert (imadjust (im), [0 linspace(0, 1, 98) 1], eps) 253s assert (imadjust (im), imadjust (im, stretchlim (im, 0.01), [0; 1], 1)) 253s assert (imadjust (im, []), imadjust (im, [0; 1], [0; 1], 1)) 253s assert (imadjust (im, [], []), imadjust (im, [0; 1], [0; 1], 1)) 253s assert (imadjust (im, [], [.25 .75]), imadjust (im, [0; 1], [.25; .75], 1)) 253s assert (imadjust (im, [.25; .75], []), imadjust (im, [.25; .75], [0; 1], 1)) 253s ***** assert (imadjust (linspace (0, 1), [], [.25 .75]), linspace (.25, .75, 100), eps) 253s ***** assert (imadjust (linspace (0, 1, 100),[1/99; 98/99]), 253s [0 linspace(0, 1, 98) 1], eps) 253s ***** shared cm 253s cm = [[0:8]' [1:9]' [2:10]'] / 10; 253s ***** assert (imadjust (cm, [0; 1], [0.5; 1]), (cm /2) + .5) 253s ***** assert (imadjust (cm, [0 1], [0.5 1]), (cm /2) + .5) 253s ***** assert (imadjust (cm, [0; 1], [.1 .2 .3; .7 .8 .9]), 253s (cm*.6) + [.1 .2 .3], eps) 253s ***** assert (imadjust (cm, [.2 .4 .6; .7 .8 .9], [0; 1]), 253s [[0 0 linspace(0, 1, 6) 1]' ... 253s [0 0 0 linspace(0, 1, 5) 1]' ... 253s [0 0 0 0 linspace(0, 1, 4) 1]'], eps) 253s ***** assert (imadjust (cm, [.2 .4 .6; .7 .8 .9], [0 .1 .2; .8 .9 1]), 253s [[0 0 linspace(0, .8, 6) .8]' ... 253s [.1 .1 .1 linspace(.1, .9, 5) .9]' ... 253s [.2 .2 .2 .2 linspace(.2, 1, 4) 1]'], eps) 253s ***** assert (imadjust (cm, [.2 .4 .6; .7 .8 .9], [0 .1 .2; .8 .9 1], [0.5 1 2]), 253s [[0 0 0 (((([.3 .4 .5 .6]-.2)/.5).^.5)*.8) .8 .8]' ... 253s [.1 .1 .1 linspace(.1, .9, 5) .9]' ... 253s [.2 .2 .2 .2 .2 ((((([.7 .8]-.6)/.3).^2).*.8)+.2) 1 1]'], eps*10) 253s ***** test 253s im = [-0.4:.1:0.8 253s 0.0:.1:1.2 253s 0.1:.1:1.3 253s -0.4:.2:2.0]; 253s 253s ## just clipping 253s assert (imadjust (im, [0; 1], [0; 1]), 253s [0 0 0 0 (0:.1:.8) 253s (0:.1:1) 1 1 253s (.1:.1:1) 1 1 1 253s 0 0 (0:.2:1) 1 1 1 1 1], eps) 253s 253s ## clipping and invert 253s assert (imadjust (im, [0; 1], [1; 0]), 253s [1 1 1 1 (1:-.1:.2) 253s (1:-.1:0) 0 0 253s (.9:-.1:0) 0 0 0 253s 1 1 (1:-.2:0) 0 0 0 0 0], eps) 253s 253s ## rescale 253s assert (imadjust (im, [.2; .7], [.1; .9]), 253s [1 1 1 1 1 1 1 2.6 4.2 5.8 7.4 9 9 253s 1 1 1 2.6 4.2 5.8 7.4 9 9 9 9 9 9 253s 1 1 2.6 4.2 5.8 7.4 9 9 9 9 9 9 9 253s 1 1 1 1 4.2 7.4 9 9 9 9 9 9 9]/10, eps) 253s 253s ## rescale and invert 253s assert (imadjust (im, [.2; .7], [.9; .1]), 253s [9 9 9 9 9 9 9 7.4 5.8 4.2 2.6 1 1 253s 9 9 9 7.4 5.8 4.2 2.6 1 1 1 1 1 1 253s 9 9 7.4 5.8 4.2 2.6 1 1 1 1 1 1 1 253s 9 9 9 9 5.8 2.6 1 1 1 1 1 1 1]/10, eps) 253s ***** assert (imadjust (linspace (0, 1), [], [], 2), linspace (0, 1) .^ 2) 253s ***** shared oRGB 253s oRGB = zeros (10, 1, 3); 253s oRGB(:,:,1) = [0 linspace(0,1,6) 1 1 1]'; 253s oRGB(:,:,2) = [0 0 linspace(0,1,6) 1 1]'; 253s oRGB(:,:,3) = [0 0 0 linspace(0,1,6) 1]'; 253s ***** assert (imadjust (oRGB, [0; 1], [0; 1]), oRGB) 253s ***** assert (imadjust (oRGB, [.2; .8], [0; 1]), 253s reshape ([[0 0 0 1/3 2/3 1 1 1 1 1]' 253s [0 0 0 0 1/3 2/3 1 1 1 1]' 253s [0 0 0 0 0 1/3 2/3 1 1 1]'], [10 1 3]), eps) 253s ***** assert (imadjust (oRGB, [.2; .8], [.1; .9]), 253s reshape ([[.1 .1 .1 (1/3)+(.1/3) (2/3)-(.1/3) .9 .9 .9 .9 .9]' 253s [.1 .1 .1 .1 (1/3)+(.1/3) (2/3)-(.1/3) .9 .9 .9 .9]' 253s [.1 .1 .1 .1 .1 (1/3)+(.1/3) (2/3)-(.1/3) .9 .9 .9]'], 253s [10 1 3]), eps) 253s ***** assert (imadjust (oRGB, [.2; .8], [.2; .8]), 253s reshape ([[2 2 2 4 6 8 8 8 8 8]' 253s [2 2 2 2 4 6 8 8 8 8]' 253s [2 2 2 2 2 4 6 8 8 8]']/10, [10 1 3]), eps) 253s ***** assert (imadjust (oRGB, [0; 1], [.1 .2 .3; .9 .8 .7]), 253s reshape ([[1 1 2.6 4.2 5.8 7.4 9 9 9 9]' 253s [2 2 2 3.2 4.4 5.6 6.8 8 8 8]' 253s [3 3 3 3 3.8 4.6 5.4 6.2 7 7]']/10, [10 1 3]), eps) 253s ***** assert (imadjust (oRGB, [.1 .2 .3; .9 .8 .7], [0; 1]), 253s reshape ([[0 0 .125 .375 .625 .875 1 1 1 1]' 253s [0 0 0 0 1/3 2/3 1 1 1 1]' 253s [0 0 0 0 0 .25 .75 1 1 1]'], [10 1 3]), eps*10) 253s ***** assert (imadjust (oRGB, [.1 .2 .3; .9 .8 .7], [.2 0 .4; .5 1 .7 ]), 253s reshape ([[.2 .2 .2375 .3125 .3875 .4625 .5 .5 .5 .5]' 253s [0 0 0 0 1/3 2/3 1 1 1 1]' 253s [.4 .4 .4 .4 .4 .475 .625 .7 .7 .7]'], [10 1 3]), eps) 253s ***** test 253s img = rand (4, 4, 2, 3, 4); 253s adj = zeros (4, 4, 2, 3, 4); 253s for p = 1:2 253s for q = 1:3 253s for r = 1:4 253s adj(:,:,p,q,r) = imadjust (img(:,:,p,q,r)); 253s endfor 253s endfor 253s endfor 253s assert (imadjust (img), adj) 253s ***** test 253s img = rand (4, 4, 2, 3, 2); 253s adj = zeros (4, 4, 2, 3, 2); 253s in = reshape ([ 3 5 7 9 11 13 15 17 19 21 23 25; 253s 97 95 93 91 89 87 85 83 81 79 77 75] / 100, [2 2 3 2]); 253s out = reshape ([ 5 7 9 11 14 15 17 19 21 23 25 27; 253s 95 93 91 89 87 85 83 81 79 77 75 73] / 100, [2 2 3 2]); 253s gamma = reshape (0.6:.1:1.7, [1 2 3 2]); 253s for p = 1:2 253s for q = 1:3 253s for r = 1:2 253s adj(:,:,p,q,r) = imadjust (img(:,:,p,q,r), in(:,p,q,r), 253s out(:,p,q,r), gamma(1,p,q,r)); 253s endfor 253s endfor 253s endfor 253s assert (imadjust (img, in, out, gamma), adj, eps) 253s ***** test 253s in = int16 (1:6); 253s assert (imadjust (in), int16 ([-32768 -19661 -6554 6553 19660 32767])) 253s assert (imadjust (in, []), in) 253s ***** test 253s in = uint8([ 253s 35 1 6 26 19 24 253s 3 32 7 21 23 25 253s 31 9 2 22 27 20 253s 8 28 33 17 10 15 253s 30 5 34 12 14 16 253s 4 36 29 13 18 11]); 253s out = uint8([ 253s 12 0 0 1 0 0 253s 0 8 0 0 0 0 253s 7 0 0 0 2 0 253s 0 3 9 0 0 0 253s 6 0 11 0 0 0 253s 0 13 4 0 0 0]); 253s assert (imadjust (in, [.1 .9], [0 1]), out); 253s ***** test 253s in = uint8([ 253s 140 4 24 104 76 96 253s 12 128 28 84 92 100 253s 124 36 8 88 108 80 253s 32 112 132 68 40 60 253s 120 20 136 48 56 64 253s 16 144 116 52 72 44]); 253s out = uint8([ 253s 143 0 0 98 63 88 253s 0 128 3 73 83 93 253s 123 13 0 78 103 68 253s 8 108 133 53 18 43 253s 118 0 138 28 38 48 253s 0 148 113 33 58 23]); 253s assert (imadjust (in, [.1 .9], [0 1]), out); 253s ***** xtest 253s in_u8 = randi ([0 255], 5, 5, 2, 3, "uint8"); 253s in_u16 = randi ([0 65535], 5, 5, 2, 3, "uint16"); 253s in_i16 = randi ([-32768 32767], 5, 5, 2, 3, "int16"); 253s in_u8_d = im2double (in_u8); 253s in_u16_d = im2double (in_u16); 253s in_i16_d = im2double (in_i16); 253s lim_u8 = eps + 0.5 / double (intmax ("uint8")); 253s lim_u16 = eps + 0.5 / double (intmax ("uint16")); 253s lim_i16 = eps + 0.5 / ( double (intmax("int16")) - double (intmin ("int16")) ); 253s 253s ## default values 253s assert (im2double (imadjust (in_u8)), imadjust (in_u8_d), lim_u8) 253s assert (im2double( imadjust (in_u16)), imadjust (in_u16_d), lim_u16) 253s assert (im2double( imadjust (in_i16)), imadjust (in_i16_d), lim_i16) 253s 253s ## single adjustment for all planes 253s args = {[.3; .7], [.1; .9], [1.5]}; 253s assert (im2double (imadjust (in_u8, args{:})), imadjust (in_u8_d, args{:}), lim_u8) 253s assert (im2double (imadjust (in_u16, args{:})), imadjust (in_u16_d, args{:}), lim_u16) 253s assert (im2double (imadjust (in_i16, args{:})), imadjust (in_i16_d, args{:}), lim_i16) 253s 253s ## single adjustment for all planes (mixed with some complement) 253s args = {reshape([.2 .3 .25 .1 0 .1; .9 .7 .85 .9 1 .8], [2 2 3]), 253s reshape([.1 .2 .05 .9 1 .3; .9 .85 .7 .1 0 .9], [2 2 3]), 253s reshape([1 .75 1 1.2 1.5 2], [1 2 3])}; 253s assert (im2double (imadjust (in_u8, args{:})), imadjust (in_u8_d, args{:}), lim_u8) 253s assert (im2double (imadjust (in_u16, args{:})), imadjust (in_u16_d, args{:}), lim_u16) 253s assert (im2double (imadjust (in_i16, args{:})), imadjust (in_i16_d, args{:}), lim_i16) 253s 253s ## test use of [] as limit and negative 253s args = {[], [.95; 0], 1.25}; 253s assert (im2double (imadjust (in_u8, args{:})), imadjust (in_u8_d, args{:}), lim_u8) 253s assert (im2double (imadjust (in_u16, args{:})), imadjust (in_u16_d, args{:}), lim_u16) 253s assert (im2double (imadjust (in_i16, args{:})), imadjust (in_i16_d, args{:}), lim_i16) 253s 36 tests, 36 passed, 0 known failure, 0 skipped 253s [inst/imhist.m] 253s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imhist.m 253s ***** shared nn, bb, enn, ebb 253s [nn, bb] = imhist(logical([0 1 0 0 1])); 253s ***** assert({nn, bb}, {[3 2]', [0 1]'}) 253s [nn, bb] = imhist([0 0.2 0.4 0.9 1], 5); 253s ***** assert({nn, bb}, {[1 1 1 0 2]', [0 0.25 0.5 0.75 1]'}) 253s [nn, bb] = imhist([-2 0 0.2 0.4 0.9 1 5], 5); 253s ***** assert({nn, bb}, {[2 1 1 0 3]', [0 0.25 0.5 0.75 1]'}) 253s [nn, bb] = imhist(uint8([0 32 255]), 256); 253s enn = zeros(256, 1); enn([1, 33, 256]) = 1; 253s ebb = 0:255; 253s ***** assert({nn, bb}, {enn, ebb'}) 253s [nn, bb] = imhist(int8([-50 0 100]), 31); 253s enn = zeros(31, 1); enn([10, 16, 28]) = 1; 253s ebb = -128:8.5:127; 253s ***** assert({nn, bb}, {enn, ebb'}) 253s 5 tests, 5 passed, 0 known failure, 0 skipped 253s [inst/imimposemin.m] 253s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/imimposemin.m 253s ***** shared im0, bw0, out0, out0_4 253s im0 = uint8 ([5 5 5 5 5; 253s 5 4 3 4 5; 253s 5 3 0 3 5; 253s 5 4 3 4 5; 253s 5 5 5 5 5]); 253s bw0 = false (5); 253s bw0(4, 4) = true; 253s out0 = im0 + 1; 253s out0(4, 4) = 0; 253s out0_4 = out0; 253s out0_4(3, 3) = 4; 253s ***** error imimposemin () 253s ***** error imimposemin (im0) 254s ***** error imimposemin ("hello", bw0) 254s ***** error imimposemin (i.*im0, bw0) 254s ***** error imimposemin (sparse (im0), bw0) 254s ***** error imimposemin (im0, ones (2)) 254s ***** error imimposemin (im0, 'hello') 254s ***** error imimposemin (im0, i .* double (bw0)) 254s ***** error imimposemin (im0, sparse (bw0)) 254s ***** error imimposemin (im0, bw0, 'hello') 254s ***** error imimposemin (im0, bw0, 3) 254s ***** assert (imimposemin (im0, bw0), out0) 254s ***** assert (imimposemin (im0, bw0, 8), out0) 254s ***** assert (imimposemin (im0, bw0, 4), out0_4) 254s ***** assert (imimposemin (im0, bw0, true (3)), out0) 254s ***** test 254s out = imimposemin (im0, bw0); 254s assert (size (out), size (im0)) 254s assert (class (out), "uint8") 254s ***** test 254s out = imimposemin (double (im0), bw0); 254s assert (size (out), size (im0)) 254s assert (class (out), "double") 254s ***** test 254s out = imimposemin (single (im0), bw0); 254s assert (size (out), size (im0)) 254s assert (class (out), "single") 254s ***** test 254s out = imimposemin (uint16 (im0), bw0); 254s assert (size (out), size (im0)) 254s assert (class (out), "uint16") 254s ***** test 254s im = cat (3, im0, im0, im0, im0); 254s bw = cat (3, bw0, bw0, bw0, bw0); 254s out = imimposemin (im, bw); 254s assert (size (out), size (im)) 254s ***** test 254s expected_double = double (im0); 254s expected_double += 0.005; 254s expected_double(4, 4) = -inf; 254s out = imimposemin (double (im0), bw0); 254s assert (out, expected_double, eps) 254s ***** test 254s im = uint8 (10 .* ones (10)); 254s im(6:8, 6:8) = 2; 254s im(2:4, 2:4) = 7; 254s im(3, 3) = 5; 254s im(2, 9) = 9; 254s im(3, 8) = 9; 254s im(9, 2) = 9; 254s im(8, 3) = 9; 254s bw = false (10); 254s bw(3, 3) = true; 254s bw(6:8, 6:8) = true; 254s expected = uint8 (11 .* ones(10)); 254s expected(2:4, 2:4) = 8; 254s expected(3, 3) = 0; 254s expected(6:8, 6:8) = 0; 254s expected_double = double (expected); 254s expected_double -= 0.992; 254s expected_double (expected_double < 0) = -inf; 254s out = imimposemin (im, bw); 254s assert (out, expected, eps) 254s out = imimposemin (double (im), bw); 254s assert (out, expected_double, eps) 254s 22 tests, 22 passed, 0 known failure, 0 skipped 254s [inst/rgb2ycbcr.m] 254s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/rgb2ycbcr.m 254s ***** test 254s in(:,:,1) = magic (5); 254s in(:,:,2) = magic (5); 254s in(:,:,3) = magic (5); 254s out(:,:,1) = [31 37 17 23 29 254s 36 20 22 28 30 254s 19 21 27 33 35 254s 25 26 32 34 19 254s 25 31 37 18 24]; 254s out(:,:,2) = 128; 254s out(:,:,3) = 128; 254s assert (rgb2ycbcr (uint8 (in)), uint8 (out)); 254s ***** shared cbcr 254s cbcr = 0.5019607843137255; 254s out(1:10, 1) = linspace (16/255, 235/255, 10); 254s out(:, [2 3]) = cbcr; 254s assert (rgb2ycbcr (gray (10)), out, 0.00001); 254s ***** assert (rgb2ycbcr ([1 1 1]), [0.92157 cbcr cbcr], 0.0001); 254s ***** assert (class (rgb2ycbcr (single (rand (5, 5, 3)))), "single") 254s 3 tests, 3 passed, 0 known failure, 0 skipped 254s [inst/otsuthresh.m] 254s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/otsuthresh.m 254s ***** test 254s histo = zeros (1, 256); 254s histo([ 29 33 37 41 46 50 54 58 62 66 70 74 78 82 ... 254s 86 90 94 98 102 106 110 114 118 122 126 131 135 139 ... 254s 143 147 151 155 159 163 167 171 175 179 183 187 191 195 ... 254s 199 203 207 211 216 220 224 228 232 236 240 244 248 252]) = ... 254s [2 27 51 144 132 108 43 29 22 21 22 20 10 16 17 12 13 14 12 13 ... 254s 15 25 19 20 23 37 23 65 92 84 87 54 50 54 33 73 76 64 57 58 47 ... 254s 48 30 27 22 20 20 11 12 12 11 7 17 31 37 31]; 254s assert (otsuthresh (histo), 114.5/255) 254s ***** test 254s I = max (phantom (), 0); 254s H = imhist (I); 254s assert (otsuthresh (H), 178/255) 254s assert (otsuthresh (H'), 178/255) 254s H = imhist (I, 10); 254s assert (otsuthresh (H), 170/255) 254s ***** assert (otsuthresh (100), 0) 254s ***** assert (otsuthresh (zeros (256, 1)), 0) 254s ***** assert (otsuthresh (zeros (5, 1)), 0) 254s ***** assert (otsuthresh (uint8 ([10 20 30])), 0.5) 254s ***** assert (otsuthresh (int32 ([100 200 300])), 0.5) 254s ***** assert (otsuthresh (int32 ([100 200])), 0) 254s ***** assert (otsuthresh (single ([10 20 30 40])), 1/3); 254s ***** assert (otsuthresh (uint16 ([10 20 30 40 50 60 70 80 90 100])), 5/9) 254s ***** assert (otsuthresh (int16 ([10 20 30 40 50 60 70 80 90 100])), 5/9) 254s ***** assert (otsuthresh (int16 (1:255)), 156/254) 254s ***** assert (otsuthresh (int16 (1:1023)), 631/1022) 254s ***** assert (otsuthresh (int8 (1:1023)), 541/1022) 254s ***** test 254s warning ("off", "Octave:data-file-in-path", "local"); 254s S = load ("penny.mat"); 254s h = imhist (uint8 (S.P)); 254s assert (otsuthresh (h), 94/255); 254s ***** test 254s I = max (phantom (), 0); 254s h = imhist (I, 5); 254s assert (otsuthresh (h), 0.625); 254s ***** error id=Octave:invalid-fun-call otsuthresh () 254s ***** error id=Octave:invalid-fun-call otsuthresh (ones (10), 5) 254s ***** error otsuthresh ([]) 254s ***** error otsuthresh ([Inf 10]) 254s ***** error otsuthresh ([10 NA]) 254s ***** error otsuthresh ([10 NaN]) 254s ***** error otsuthresh (zeros (5)) 254s ***** error otsuthresh ([10 -10]) 254s ***** error otsuthresh ("foo") 254s ***** demo 254s I = max (phantom (), 0); 254s figure; imshow (I); 254s title ("Original image"); 254s h = imhist (I); 254s t = otsuthresh (h); 254s J = im2bw (I); 254s figure; imshow (J); 254s title_line = sprintf ("Black and white image after thresholding, t=%g", 254s t*255); 254s title (title_line); 254s ***** demo 254s warning ("off", "Octave:data-file-in-path", "local"); 254s S = load ("penny.mat"); 254s I = uint8 (S.P); 254s figure; imshow (I); 254s title ("Original penny image"); 254s h = imhist (I); 254s t = otsuthresh (h); 254s J = im2bw (I); 254s figure; imshow (J); 254s title_line = sprintf ("Black and white penny image after thresholding, t=%g", 254s t*255); 254s title (title_line); 254s I = 255 - I; 254s figure; imshow(I); 254s title ("Negative penny image"); 254s h = imhist (I); 254s t = otsuthresh (h); 254s J = im2bw (I); 254s figure; imshow (J); 254s title_line = sprintf ("Black and white negative penny image after thresholding, t=%g", 254s t*255); 254s title (title_line); 254s 25 tests, 25 passed, 0 known failure, 0 skipped 254s [inst/ycbcr2rgb.m] 254s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/inst/ycbcr2rgb.m 254s ***** assert (ycbcr2rgb (rgb2ycbcr (jet (10))), jet (10), 0.00001); 254s ***** assert (class (ycbcr2rgb (single (rand (5, 5, 3)))), "single") 254s 2 tests, 2 passed, 0 known failure, 0 skipped 254s Checking C++ files ... 254s [src/imreconstruct.cc] 254s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/imreconstruct.cc 254s ***** function recon = parallel_reconstruction (marker, mask, 254s conn = conndef (ndims (marker), "maximal")) 254s do 254s previous = marker; 254s marker = imdilate (marker, conn); 254s ## FIXME https://savannah.gnu.org/bugs/index.php?43712 254s if (strcmp (class (marker), "logical")) 254s marker = marker & mask; 254s else 254s marker = min (marker, mask); 254s endif 254s until (all ((marker == previous)(:))) 254s recon = marker; 254s ***** endfunction 254s ***** test 254s for cl = {"int8", "uint8", "int16", "uint16", "int32", "uint32"} 254s cl = cl{1}; 254s a = randi ([intmin(cl) intmax(cl)-30], 100, 100, cl); 254s b = a + randi (20, 100, 100, cl); 254s assert (imreconstruct (a, b), parallel_reconstruction (a, b)) 254s endfor 254s for cl = {"double", "single"} 254s cl = cl{1}; 254s a = (rand (100, 100, cl) - 0.5) .* 1000; 254s b = a + rand (100, 100, cl) * 100; 254s assert (imreconstruct (a, b), parallel_reconstruction (a, b)) 254s endfor 254s ***** test 254s for cl = {"int8", "uint8", "int16", "uint16", "int32", "uint32"} 254s cl = cl{1}; 254s a = randi ([intmin(cl) intmax(cl)-30], 100, 100, cl); 254s b = a + randi (20, 100, 100, cl); 254s c = [0 1 0; 1 1 1; 0 1 0]; 254s assert (imreconstruct (a, b, c), parallel_reconstruction (a, b, c)) 254s endfor 254s ***** test 254s a = randi (210, 100, 100); 254s b = a + randi (20, 100, 100); 254s c = ones (3, 1); 254s assert (imreconstruct (a, b, c), parallel_reconstruction (a, b, c)) 254s ***** test 254s a = randi (210, 500, 500, 10, 4); 254s b = a + randi (20, 500, 500, 10, 4); 254s c = ones (3, 3, 3); 254s assert (imreconstruct (a, b, c), parallel_reconstruction (a, b, c)) 268s ***** test 268s a = randi (210, 500, 500, 10, 4); 268s b = a + randi (20, 500, 500, 10, 4); 268s c = conndef (4, "minimal"); 268s assert (imreconstruct (a, b, c), parallel_reconstruction (a, b, c)) 275s ***** test 275s a = [ 0 0 0 0 0 0 0 1 0 0 275s 0 0 0 0 0 0 0 1 0 0 275s 1 0 0 0 0 0 0 0 0 0 275s 0 0 0 0 0 0 0 0 0 0 275s 0 0 0 0 0 0 0 1 0 0 275s 0 0 0 0 0 0 1 0 0 0 275s 0 0 0 0 0 0 0 0 0 0 275s 0 0 0 0 0 0 0 0 0 0 275s 0 0 0 0 1 0 0 0 0 0 275s 0 0 0 0 0 0 0 1 0 0]; 275s 275s b = [ 0 1 0 0 0 0 0 1 1 0 275s 1 1 0 0 0 1 0 1 1 0 275s 1 1 0 0 1 0 0 0 0 0 275s 1 1 0 0 0 1 1 0 0 0 275s 1 0 0 0 0 0 1 1 0 0 275s 0 1 0 0 0 0 1 1 0 0 275s 0 0 0 1 0 0 0 0 0 0 275s 0 0 0 0 1 1 0 0 0 0 275s 0 0 0 1 1 0 0 0 0 0 275s 1 0 0 0 1 0 0 1 0 1]; 275s 275s c = [ 0 1 0 0 0 0 0 1 1 0 275s 1 1 0 0 0 1 0 1 1 0 275s 1 1 0 0 1 0 0 0 0 0 275s 1 1 0 0 0 1 1 0 0 0 275s 1 0 0 0 0 0 1 1 0 0 275s 0 1 0 0 0 0 1 1 0 0 275s 0 0 0 1 0 0 0 0 0 0 275s 0 0 0 0 1 1 0 0 0 0 275s 0 0 0 1 1 0 0 0 0 0 275s 0 0 0 0 1 0 0 1 0 0]; 275s assert (imreconstruct (logical (a), logical (b)), logical (c)); 275s 275s c = [ 0 1 0 0 0 0 0 1 1 0 275s 1 1 0 0 0 0 0 1 1 0 275s 1 1 0 0 0 0 0 0 0 0 275s 1 1 0 0 0 1 1 0 0 0 275s 1 0 0 0 0 0 1 1 0 0 275s 0 0 0 0 0 0 1 1 0 0 275s 0 0 0 0 0 0 0 0 0 0 275s 0 0 0 0 1 1 0 0 0 0 275s 0 0 0 1 1 0 0 0 0 0 275s 0 0 0 0 1 0 0 1 0 0]; 275s assert (imreconstruct (logical (a), logical (b), [0 1 0; 1 1 1; 0 1 0]), 275s logical (c)); 275s ***** test 275s do 275s b = rand (100, 100, 100) > 0.98; 275s until (nnz (b) > 4) 275s b = imdilate (b, ones (5, 5, 5)); 275s a = false (size (b)); 275s f = find (b); 275s a(f(randi (numel (f), 6, 1))) = true; 275s assert (imreconstruct (a, b), parallel_reconstruction (a, b)) 276s ***** test 276s a = randi (200, 100,100, 10, 10); 276s b = a + randi (20, 100,100, 10, 10); 276s c1 = ones (3, 3, 3); 276s c2 = zeros (3, 3, 3, 3); 276s c2(:,:,:,2) = c1; 276s assert (imreconstruct (a, b, c1), imreconstruct (a, b, c2)) 276s ***** test 276s ## Values in MARKER above MASK should be clipped (bug #48794) 276s ## (well, treated internally as if they were clipped) 276s mask = logical ([1 1 1; 1 0 1; 1 1 1]); 276s assert (imreconstruct (true (3, 3), mask), mask) 276s 276s mask = ones (5, 5); 276s mask(2:4,2:4) = 0; 276s assert (imreconstruct (ones (5, 5), mask), mask) 276s 276s mask = ones (5, 5); 276s mask(2:4,2:4) = 0; 276s assert (imreconstruct (repmat (2, [5, 5]), mask), mask) 276s 276s mask = ones (5, 5); 276s mask(2:4,2:4) = 0; 276s assert (imreconstruct (repmat (2, [5, 5]), mask), mask) 276s 276s marker = ones (3, 3, 3, 3); 276s mask = marker; 276s mask(2, 2, 2, 2) = 0; 276s assert (imreconstruct (marker, mask), mask) 276s 276s marker = randi (210, 100, 100); 276s assert (imreconstruct (marker +1, marker), marker) 276s assert (imreconstruct (marker +1, marker), imreconstruct (marker, marker)) 276s 9 tests, 9 passed, 0 known failure, 0 skipped 276s [src/__spatial_filtering__.cc] 276s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/__spatial_filtering__.cc 276s ***** error 276s __spatial_filtering__ (ones (10), ones (3), "std", ones (10), 0) 276s ***** error 276s __spatial_filtering__ (ones (10), ones (3), "std", ones (3, 3, 3), 0) 276s ***** error 276s __spatial_filtering__ (ones (10), ones (3), "std", ones (1, 9), 0) 276s ***** shared a, domain, s, out 276s a = [ 82 2 97 43 79 43 41 65 51 11 276s 60 65 21 56 94 77 36 38 75 39 276s 32 68 78 1 16 75 76 90 81 56 276s 43 90 82 41 36 1 87 19 18 63 276s 63 64 2 48 18 43 38 25 22 99 276s 12 46 90 79 3 92 39 79 10 22 276s 38 98 11 10 40 90 88 38 4 76 276s 54 37 9 4 33 98 36 47 53 57 276s 38 76 82 50 14 74 64 99 7 33 276s 88 96 41 62 84 89 97 23 41 3]; 276s 276s domain = ones (3); 276s s = zeros (3); 276s 276s out = [ 2 1 1 1 16 36 36 11 276s 21 1 1 1 1 1 18 18 276s 2 1 1 1 1 1 18 18 276s 2 2 2 1 1 1 10 10 276s 2 2 2 3 3 25 4 4 276s 9 4 3 3 3 36 4 4 276s 9 4 4 4 14 36 4 4 276s 9 4 4 4 14 23 7 3]; 276s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 1), out); 276s 276s out = [ 97 97 97 94 94 90 90 90 276s 90 90 94 94 94 90 90 90 276s 90 90 82 75 87 90 90 99 276s 90 90 90 92 92 92 87 99 276s 98 98 90 92 92 92 88 99 276s 98 98 90 98 98 98 88 79 276s 98 98 82 98 98 99 99 99 276s 96 96 84 98 98 99 99 99]; 276s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, nnz (domain)), out); 276s 276s out = [ 60 43 43 43 43 43 51 51 276s 60 56 36 36 36 38 38 39 276s 63 48 18 18 36 38 25 25 276s 46 48 36 36 36 38 22 22 276s 38 46 11 40 39 39 25 22 276s 37 11 10 33 39 47 38 38 276s 38 11 11 33 40 64 38 38 276s 41 41 33 50 64 64 41 33]; 276s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 4), out); 276s 276s out = [ 31.223 33.788 35.561 31.011 26.096 20.630 20.403 24.712 276s 23.428 29.613 32.376 34.002 33.593 32.470 29.605 26.333 276s 27.834 32.890 29.903 24.207 30.083 32.497 31.898 32.600 276s 32.027 28.995 33.530 31.002 32.241 32.004 27.501 32.070 276s 34.682 36.030 33.046 33.745 32.509 27.352 28.607 34.180 276s 32.709 37.690 32.992 40.036 34.456 26.656 27.685 26.863 276s 30.971 36.227 25.775 34.873 29.917 25.269 32.292 30.410 276s 29.135 31.626 30.056 33.594 30.814 28.853 30.917 29.120]; 276s ***** assert (__spatial_filtering__ (a, domain, "std", s), out, 0.001); 276s 276s out = [ 95 96 96 93 78 54 54 79 276s 69 89 93 93 93 89 72 72 276s 88 89 81 74 86 89 72 81 276s 88 88 88 91 91 91 77 89 276s 96 96 88 89 89 67 84 95 276s 89 94 87 95 95 62 84 75 276s 89 94 78 94 84 63 95 95 276s 87 92 80 94 84 76 92 96]; 276s ***** assert (__spatial_filtering__ (a, domain, "range", s), out); 276s 276s domain = [ 1 1 0 276s 0 1 1 276s 0 1 0]; 276s 276s out = [ 2 2 1 16 36 36 38 39 276s 60 1 1 16 1 36 19 18 276s 32 2 1 1 1 19 18 18 276s 2 2 18 3 1 1 19 10 276s 46 2 2 3 18 38 10 4 276s 11 9 4 3 3 36 4 4 276s 9 4 4 10 36 36 38 4 276s 37 9 4 4 33 36 7 7]; 276s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 1), out); 276s 276s out = [ 82 97 97 94 79 76 90 81 276s 90 82 56 94 94 90 90 81 276s 90 82 78 36 87 87 90 90 276s 90 90 82 43 92 87 87 99 276s 98 90 79 92 92 88 79 25 276s 98 90 90 90 98 92 79 79 276s 98 98 50 98 98 90 99 57 276s 96 82 62 84 98 99 99 53]; 276s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, nnz (domain)), out); 276s 276s out = [ 68 78 94 79 77 43 75 75 276s 78 78 41 75 77 87 81 75 276s 82 78 48 18 75 76 76 81 276s 64 90 79 41 43 39 79 22 276s 90 79 48 48 90 79 38 22 276s 46 46 79 79 92 88 47 76 276s 76 82 33 40 90 88 88 53 276s 82 50 50 74 89 98 47 47]; 276s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 4), out); 276s 276s out = [ 34.2389 39.2772 39.6699 31.6812 20.7364 16.5439 22.2419 17.2395 276s 11.9248 36.3084 21.6217 30.8350 36.4047 21.6726 30.9144 26.1017 276s 22.2980 33.2746 27.5808 14.5017 36.8890 29.0259 34.6020 33.2521 276s 32.2490 37.9579 26.9685 17.1959 32.5346 31.3847 33.5976 36.8280 276s 21.3354 40.1833 34.0044 33.9882 32.9894 24.1102 25.6613 9.0995 276s 35.4641 35.3794 39.0871 35.4753 39.9775 28.7193 26.7451 35.6553 276s 35.2179 45.3398 19.3210 35.2987 28.4042 24.0832 26.8421 25.0539 276s 23.4307 26.2812 26.3287 35.6959 25.2646 28.1016 34.9829 17.9221]; 276s ***** assert (__spatial_filtering__ (a, domain, "std", s), out, 0.001); 276s 276s out = [ 80 95 96 78 43 40 52 42 276s 30 81 55 78 93 54 71 63 276s 58 80 77 35 86 68 72 72 276s 88 88 64 40 91 86 68 89 276s 52 88 77 89 74 50 69 21 276s 87 81 86 87 95 56 75 75 276s 89 94 46 88 62 54 61 53 276s 59 73 58 80 65 63 92 46]; 276s ***** assert (__spatial_filtering__ (a, domain, "range", s), out); 276s 276s s = [ 1 -3 4 276s 6 -7 2 276s -1 3 -5]; 276s 276s out = [ -1 3 4 19 38 29 31 41 276s 61 3 -6 9 4 33 22 21 276s 33 5 -2 2 -6 21 12 11 276s 4 -5 20 6 -2 2 16 13 276s 39 -1 3 -4 19 32 12 3 276s 13 4 3 0 4 36 6 -3 276s 11 2 -3 11 38 29 35 1 276s 34 6 1 5 34 33 9 0]; 276s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 1), out); 276s 276s out = [ 83 94 98 87 80 79 93 84 276s 93 85 53 91 95 92 83 74 276s 84 75 79 29 89 80 87 91 276s 87 93 83 45 95 84 88 101 276s 101 83 72 94 93 91 72 26 276s 91 87 91 92 101 93 76 80 276s 95 99 53 100 91 91 102 59 276s 99 75 65 87 95 101 92 50]; 276s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, nnz (domain)), out); 276s 276s out = [ 71 81 96 79 78 44 77 68 276s 80 71 44 77 78 90 83 72 276s 83 75 51 21 72 76 77 78 276s 57 91 82 42 40 42 82 20 276s 92 81 45 49 85 81 41 24 276s 43 47 76 80 90 81 50 78 276s 79 85 35 37 87 85 89 46 276s 84 52 43 76 92 100 44 48]; 276s ***** assert (__spatial_filtering__ (a, domain, "ordered", s, 4), out); 276s 276s out = [ 34.903 40.206 39.885 28.627 20.620 19.248 25.209 17.111 276s 14.536 35.865 23.221 32.230 34.903 23.923 28.879 22.621 276s 20.635 30.113 29.351 11.610 38.863 25.936 34.608 34.482 276s 29.811 40.998 28.279 17.897 34.666 29.978 36.150 38.213 276s 25.066 39.240 30.013 37.300 31.856 27.428 22.884 10.281 276s 31.890 34.761 39.645 37.526 39.336 27.031 25.648 39.285 276s 35.017 47.776 22.764 35.912 25.460 25.636 29.861 24.566 276s 25.213 25.000 26.391 38.451 24.631 31.305 31.118 20.611]; 276s ***** assert (__spatial_filtering__ (a, domain, "std", s), out, 0.001); 276s 276s out = [ 84 91 94 68 42 50 62 43 276s 32 82 59 82 91 59 61 53 276s 51 70 81 27 95 59 75 80 276s 83 98 63 39 97 82 72 88 276s 62 84 69 98 74 59 60 23 276s 78 83 88 92 97 57 70 83 276s 84 97 56 89 53 62 67 58 276s 65 69 64 82 61 68 83 50]; 276s ***** assert (__spatial_filtering__ (a, domain, "range", s), out); 276s 18 tests, 18 passed, 0 known failure, 0 skipped 276s [src/watershed.cc] 276s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/watershed.cc 276s ***** test 276s ex = tril (ones (50), -1) + triu (repmat (2, [50 50]), 2); 276s ex(1, 1) = 1; 276s ex(end, end) = 1; 276s 276s in = ones (50); 276s in(end,1) = 0; 276s in(1,end) = 0; 276s assert (watershed (in), ex) 276s ***** test 276s ex = tril (ones (49), -1) + triu (repmat (2, [49 49]), 2); 276s ex(1, 1) = 1; 276s ex(end, end) = 1; 276s 276s in = ones (49); 276s in(end,1) = 0; 276s in(1,end) = 0; 276s assert (watershed (in), ex) 276s 276s c = (fspecial ('disk', 5) > 0) + 1; 276s in(20:30,20:30) = c; 276s c = (fspecial ('disk', 4) > 0) + 2; 276s in(21:29,21:29) = c; 276s assert (watershed (in), ex) 276s ***** test 276s ex = tril (ones (49), -1) + triu (repmat (2, [49 49]), 2); 276s ex(1:28,1:28) = (tril (ones (28) ,7) + triu (repmat (2, [28 28]), 10)); 276s ex(1,9) = 1; 276s ex(end,end) = 1; 276s ex(20:29, 29) = 0; 276s 276s in = ones (49); 276s in(end,1) = 0; 276s in(1,end) = 0; 276s c = (fspecial ("disk", 5) > 0) + 1; 276s in(1:11,38:48) = c; 276s 276s assert (watershed (in), ex) 276s ***** test 276s im = [ 276s 3 4 5 6 0 276s 2 3 4 5 6 276s 1 2 3 4 5 276s 0 1 2 3 4 276s 1 0 1 2 3]; 276s 276s labeled8 = [ 276s 1 1 1 0 2 276s 1 1 1 0 0 276s 1 1 1 1 1 276s 1 1 1 1 1 276s 1 1 1 1 1]; 276s labeled4 = [ 276s 1 1 1 0 3 276s 1 1 1 0 0 276s 1 1 0 2 2 276s 1 0 2 2 2 276s 0 2 2 2 2]; 276s labeled_weird = [ 276s 1 1 1 0 2 276s 1 1 1 1 0 276s 1 1 1 1 1 276s 1 1 1 1 1 276s 1 1 1 1 1]; 276s 276s assert (watershed (im), labeled8); 276s assert (watershed (im, 8), labeled8); 276s assert (watershed (im, 4), labeled4); 276s assert (watershed (im, [1 1 0; 1 1 1; 0 1 1]), labeled_weird); 277s ***** test 277s im = [ 277s 2 3 30 2 277s 3 30 3 30 277s 255 31 30 4 277s 2 255 31 30 277s 1 2 255 5]; 277s 277s labeled4 = [ 277s 1 1 0 4 277s 1 0 3 0 277s 0 2 0 5 277s 2 2 2 0 277s 2 2 0 6]; 277s labeled_weird = [ 277s 1 1 0 3 277s 1 1 1 0 277s 0 1 1 1 277s 2 0 0 0 277s 2 2 0 4]; 277s 277s assert (watershed (im, 4), labeled4); 277s assert (watershed (im, [1 1 0; 1 1 1; 0 1 1]), labeled_weird); 277s ***** xtest 277s ## The following test is required for Matlab compatibility. There must be 277s ## something specific about their implementation that causes it to return 277s ## this value. Even when solving it on paper, we get different results. 277s im = [ 277s 2 3 30 2 277s 3 30 3 30 277s 255 31 30 4 277s 2 255 31 30 277s 1 2 255 5]; 277s 277s labeled8 = [ 277s 1 1 0 3 277s 1 1 0 3 277s 0 0 0 0 277s 2 2 0 4 277s 2 2 0 4]; 277s assert (watershed (im), labeled8); 277s assert (watershed (im, 8), labeled8); 277s !!!!! known failure 277s ASSERT errors for: assert (watershed (im),labeled8) 277s 277s Location | Observed | Expected | Reason 277s (3,4) 3 0 Abs err 3 exceeds tol 0 by 3 277s (4,4) 0 4 Abs err 4 exceeds tol 0 by 4 277s ***** test 277s im = [ 277s 2 2 2 2 2 2 2 277s 2 2 30 30 30 2 2 277s 2 30 20 20 20 30 2 277s 40 40 20 20 20 40 40 277s 1 40 20 20 20 40 0 277s 1 1 40 20 40 0 0 277s 1 1 1 20 0 0 0]; 277s 277s labeled8 = [ 277s 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 277s 0 0 0 0 0 0 0 277s 2 2 2 0 3 3 3 277s 2 2 2 0 3 3 3 277s 2 2 2 0 3 3 3]; 277s labeled4 = [ 277s 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 277s 0 1 1 1 1 1 0 277s 2 0 1 1 1 0 3 277s 2 2 0 1 0 3 3 277s 2 2 2 0 3 3 3]; 277s labeled_weird = [ 277s 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 277s 0 1 1 0 0 0 0 277s 2 0 0 0 3 3 3 277s 2 2 0 3 3 3 3 277s 2 2 2 0 3 3 3]; 277s 277s assert (watershed (im), labeled8); 277s assert (watershed (im, 8), labeled8); 277s assert (watershed (im, 4), labeled4); 277s assert (watershed (im, [1 1 0; 1 1 1; 0 1 1]), labeled_weird); 277s ***** test 277s im = [ 277s 40 40 40 40 40 40 40 40 40 40 40 40 40 277s 40 3 3 5 5 5 10 10 10 10 15 20 40 277s 40 3 3 5 5 30 30 30 10 15 15 20 40 277s 40 3 3 5 30 20 20 20 30 15 15 20 40 277s 40 40 40 40 40 20 20 20 40 40 40 40 40 277s 40 10 10 10 40 20 20 20 40 10 10 10 40 277s 40 5 5 5 10 40 20 40 10 10 5 5 40 277s 40 1 3 5 10 15 20 15 10 5 1 0 40 277s 40 1 3 5 10 15 20 15 10 5 1 0 40 277s 40 40 40 40 40 40 40 40 40 40 40 40 40]; 277s 277s labeled8 = [ 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 0 0 0 0 0 0 0 0 0 0 0 0 0 277s 2 2 2 2 2 2 0 3 3 3 3 3 3 277s 2 2 2 2 2 2 0 3 3 3 3 3 3 277s 2 2 2 2 2 2 0 3 3 3 3 3 3 277s 2 2 2 2 2 2 0 3 3 3 3 3 3 277s 2 2 2 2 2 2 0 3 3 3 3 3 3]; 277s labeled4 = [ 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 0 0 0 0 1 1 1 1 1 0 0 0 0 277s 2 2 2 2 0 1 1 1 0 3 3 3 3 277s 2 2 2 2 2 0 1 0 3 3 3 3 3 277s 2 2 2 2 2 2 0 3 3 3 3 3 3 277s 2 2 2 2 2 2 0 3 3 3 3 3 3 277s 2 2 2 2 2 2 0 3 3 3 3 3 3]; 277s labeled_weird = [ 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 1 1 1 1 1 1 1 1 1 1 1 1 1 277s 0 0 0 0 1 1 0 0 0 0 0 0 0 277s 2 2 2 2 0 0 0 3 3 3 3 3 3 277s 2 2 2 2 2 0 3 3 3 3 3 3 3 277s 2 2 2 2 2 2 0 3 3 3 3 3 3 277s 2 2 2 2 2 2 0 3 3 3 3 3 3 277s 2 2 2 2 2 2 0 3 3 3 3 3 3]; 277s 277s assert (watershed (im), labeled8); 277s assert (watershed (im, 8), labeled8); 277s assert (watershed (im, 4), labeled4); 277s assert (watershed (im, [1 1 0; 1 1 1; 0 1 1]), labeled_weird); 277s ***** xtest 277s ## This test is failing for Matlab compatibility 277s im_full = [ 277s 1 2 10 3 8 7 5 277s 3 2 5 10 8 1 4 277s 1 8 2 3 8 3 6]; 277s 277s matlab_result_full = [ 277s 1 1 0 3 0 4 4 277s 0 0 0 0 0 4 4 277s 2 2 2 0 4 4 4]; 277s 277s assert (watershed (im_full), matlab_result_full); 277s 277s im_crop = [ 277s 2 10 3 8 7 5 277s 2 5 10 8 1 4 277s 8 2 3 8 3 6]; 277s 277s matlab_result_crop = [ 277s 1 0 2 0 3 3 277s 1 0 0 0 3 3 277s 1 1 1 0 3 3]; 277s 277s assert (watershed (im_crop), matlab_result_crop); 277s !!!!! known failure 277s ASSERT errors for: assert (watershed (im_full),matlab_result_full) 277s 277s Location | Observed | Expected | Reason 277s (3,4) 2 0 Abs err 2 exceeds tol 0 by 2 277s (3,5) 0 4 Abs err 4 exceeds tol 0 by 4 277s 9 tests, 7 passed, 2 known failures, 0 skipped 277s [src/graycomatrix.cc] 277s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/graycomatrix.cc 277s ***** shared a 277s ***** test 277s a = [0 0 0 1 2; 277s 1 1 0 1 1; 277s 2 2 1 0 0; 277s 1 1 0 2 0; 277s 0 0 1 0 1]; 277s squeeze(graycomatrix(a, 3, 1, -pi/4)) == [4 2 0; 277s 2 3 2; 277s 1 2 0]; 277s 277s ***** assert(size(graycomatrix(a, 3, 1:5, [0:3]*-pi/4)), [3, 3, 5, 4]) 277s ***** demo 277s 277s # Pattern Recognition Engineering (Nadler & Smith) 277s # Digital Image Processing (Gonzales & Woods), p. 668 277s 277s a = [0 0 0 1 2; 277s 1 1 0 1 1; 277s 2 2 1 0 0; 277s 1 1 0 2 0; 277s 0 0 1 0 1]; 277s 277s graycomatrix(a, 3, 1, [0 1]*-pi/4) 277s 277s 2 tests, 2 passed, 0 known failure, 0 skipped 277s [src/conndef.cc] 277s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/conndef.cc 277s ***** assert (conndef (1, "minimal"), [1; 1; 1]); 277s ***** assert (conndef (2, "minimal"), [0 1 0; 1 1 1; 0 1 0]); 277s ***** test 277s C = zeros (3, 3, 3); 277s C(:,2,2) = 1; 277s C(2,:,2) = 1; 277s C(2,2,:) = 1; 277s assert (conndef (3, "minimal"), C); 277s ***** test 277s C = zeros (3, 3, 3, 3); 277s C(:,:,2,1) = [0 0 0 277s 0 1 0 277s 0 0 0]; 277s C(:,:,1,2) = [0 0 0 277s 0 1 0 277s 0 0 0]; 277s C(:,:,2,2) = [0 1 0 277s 1 1 1 277s 0 1 0]; 277s C(:,:,3,2) = [0 0 0 277s 0 1 0 277s 0 0 0]; 277s C(:,:,2,3) = [0 0 0 277s 0 1 0 277s 0 0 0]; 277s assert (conndef (4, "minimal"), C); 277s ***** assert (conndef (1, "maximal"), ones (3, 1)); 277s ***** assert (conndef (2, "maximal"), ones (3, 3)); 277s ***** assert (conndef (3, "maximal"), ones (3, 3, 3)); 277s ***** assert (conndef (4, "maximal"), ones (3, 3, 3, 3)); 277s ***** assert (nnz (conndef (3, "minimal")), 7) 277s ***** assert (nnz (conndef (4, "minimal")), 9) 277s ***** assert (nnz (conndef (5, "minimal")), 11) 277s ***** assert (nnz (conndef (6, "minimal")), 13) 277s ***** assert (find (conndef (3, "minimal")), [5 11 13 14 15 17 23](:)) 277s ***** assert (find (conndef (4, "minimal")), [14 32 38 40 41 42 44 50 68](:)) 277s ***** assert (find (conndef (5, "minimal")), 277s [ 41 95 113 119 121 122 123 125 131 149 203](:)) 277s ***** assert (find (conndef (6, "minimal")), 277s [ 122 284 338 356 362 364 365 366 368 374 392 446 608](:)) 277s ***** error conndef () 277s ***** error conndef (-2, "minimal") 277s ***** error conndef (char (2), "minimal") 277s ***** error conndef ("minimal", 3) 277s ***** error conndef (3, "invalid") 277s ***** error conndef (10) 277s ***** assert (conndef (2, "minimal"), conndef (4)) 277s ***** assert (conndef (2, "maximal"), conndef (8)) 277s ***** assert (conndef (3, "minimal"), conndef (6)) 277s ***** assert (conndef (3, "maximal"), conndef (26)) 277s ***** assert (conndef (18), reshape ([0 1 0 1 1 1 0 1 0 277s 1 1 1 1 1 1 1 1 1 277s 0 1 0 1 1 1 0 1 0], [3 3 3])) 277s ***** test iptcheckconn ( 4, "func", "var") 277s ***** test iptcheckconn ( 6, "func", "var") 277s ***** test iptcheckconn ( 8, "func", "var") 277s ***** test iptcheckconn (18, "func", "var") 277s ***** test iptcheckconn (26, "func", "var") 277s ***** test iptcheckconn (1, "func", "var") 277s ***** test iptcheckconn (ones (3, 1), "func", "var") 277s ***** test iptcheckconn (ones (3, 3), "func", "var") 277s ***** test iptcheckconn (ones (3, 3, 3), "func", "var") 277s ***** test iptcheckconn (ones (3, 3, 3, 3), "func", "var") 277s ***** error 277s iptcheckconn (3, "func", "VAR"); 277s ***** error 277s iptcheckconn ([1 1 1; 1 0 1; 1 1 1], "func", "VAR"); 277s ***** error 277s iptcheckconn ([1 2 1; 1 1 1; 1 1 1], "func", "VAR"); 277s ***** error 277s iptcheckconn ([0 1 1; 1 1 1; 1 1 1], "func", "VAR"); 277s ***** error 277s iptcheckconn (ones (3, 3, 3, 4), "func", "VAR"); 277s 42 tests, 42 passed, 0 known failure, 0 skipped 277s [src/bwdist.cc] 277s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/bwdist.cc 277s ***** shared bw 277s 277s bw = [0 1 0 1 0 1 1 0 277s 0 0 0 1 1 0 0 0 277s 0 0 0 1 1 0 0 0 277s 0 0 0 1 1 0 0 0 277s 0 0 1 1 1 1 1 1 277s 1 1 1 1 0 0 0 1 277s 1 1 1 0 0 0 1 0 277s 0 0 1 0 0 0 1 1]; 277s ***** test 277s out = [ 1.00000 0.00000 1.00000 0.00000 1.00000 0.00000 0.00000 1.00000 277s 1.41421 1.00000 1.00000 0.00000 0.00000 1.00000 1.00000 1.41421 277s 2.23607 2.00000 1.00000 0.00000 0.00000 1.00000 2.00000 2.00000 277s 2.00000 1.41421 1.00000 0.00000 0.00000 1.00000 1.00000 1.00000 277s 1.00000 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 277s 0.00000 0.00000 0.00000 0.00000 1.00000 1.00000 1.00000 0.00000 277s 0.00000 0.00000 0.00000 1.00000 1.41421 1.00000 0.00000 1.00000 277s 1.00000 1.00000 0.00000 1.00000 2.00000 1.00000 0.00000 0.00000]; 277s out = single (out); 277s 277s assert (bwdist (bw), out, 0.0001); # default is euclidean 277s assert (bwdist (bw, "euclidean"), out, 0.0001); 277s assert (bwdist (logical (bw), "euclidean"), out, 0.0001); 277s ***** test 277s out = [ 1 0 1 0 1 0 0 1 277s 1 1 1 0 0 1 1 1 277s 2 2 1 0 0 1 2 2 277s 2 1 1 0 0 1 1 1 277s 1 1 0 0 0 0 0 0 277s 0 0 0 0 1 1 1 0 277s 0 0 0 1 1 1 0 1 277s 1 1 0 1 2 1 0 0]; 277s out = single (out); 277s 277s assert (bwdist (bw, "chessboard"), out); 277s ***** test 277s out = [ 1 0 1 0 1 0 0 1 277s 2 1 1 0 0 1 1 2 277s 3 2 1 0 0 1 2 2 277s 2 2 1 0 0 1 1 1 277s 1 1 0 0 0 0 0 0 277s 0 0 0 0 1 1 1 0 277s 0 0 0 1 2 1 0 1 277s 1 1 0 1 2 1 0 0]; 277s out = single (out); 277s 277s assert (bwdist (bw, "cityblock"), out); 277s ***** test 277s out = [ 1.00000 0.00000 1.00000 0.00000 1.00000 0.00000 0.00000 1.00000 277s 1.41421 1.00000 1.00000 0.00000 0.00000 1.00000 1.00000 1.41421 277s 2.41421 2.00000 1.00000 0.00000 0.00000 1.00000 2.00000 2.00000 277s 2.00000 1.41421 1.00000 0.00000 0.00000 1.00000 1.00000 1.00000 277s 1.00000 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 277s 0.00000 0.00000 0.00000 0.00000 1.00000 1.00000 1.00000 0.00000 277s 0.00000 0.00000 0.00000 1.00000 1.41421 1.00000 0.00000 1.00000 277s 1.00000 1.00000 0.00000 1.00000 2.00000 1.00000 0.00000 0.00000]; 277s out = single (out); 277s 277s assert (bwdist (bw, "quasi-euclidean"), out, 0.0001); 277s 277s bw(logical (bw)) = 3; # there is no actual check if matrix is binary or 0 and 1 277s assert (bwdist (bw, "quasi-euclidean"), out, 0.0001); 277s 277s bw(logical (bw)) = -2; # anything non-zero is considered object 277s assert (bwdist (bw, "quasi-euclidean"), out, 0.0001); 277s ***** test 277s bw = [ 1 1 1 1 0 1 1 1 1 277s 1 1 1 1 0 1 1 1 1 277s 1 1 0 1 1 1 1 1 1 277s 0 1 1 1 1 1 1 1 1]; 277s 277s dist = [ 0 0 0 0 1 0 0 0 0 277s 0 0 0 0 1 0 0 0 0 277s 0 0 1 0 0 0 0 0 0 277s 1 0 0 0 0 0 0 0 0]; 277s dist = single (dist); 277s 277s c = [ 1 5 9 13 13 21 25 29 33 277s 2 6 10 14 14 22 26 30 34 277s 3 7 10 15 19 23 27 31 35 277s 8 8 12 16 20 24 28 32 36]; 277s c = uint32 (c); 277s 277s [dout, cout] = bwdist (bw, "euclidean"); 277s assert (dout, dist) 277s assert (cout, c) 277s ***** test 277s bw = [ 0 1 1 0 0 0 1 0 277s 0 0 0 0 0 0 0 0 277s 1 1 0 0 0 0 0 0 277s 0 0 0 0 0 0 1 0 277s 0 0 0 0 1 0 0 1 277s 0 0 0 0 0 0 0 0 277s 1 0 0 0 0 0 0 0 277s 0 0 1 0 0 1 1 0]; 277s out = single ([ 277s 1.00000 0.00000 0.00000 1.00000 2.00000 1.00000 0.00000 1.00000 277s 1.00000 1.00000 1.00000 sqrt(2) sqrt(2)+1 sqrt(2) 1.00000 sqrt(2) 277s 0.00000 0.00000 1.00000 2.00000 2.00000 sqrt(2) 1.00000 sqrt(2) 277s 1.00000 1.00000 sqrt(2) sqrt(2) 1.00000 1.00000 0.00000 1.00000 277s 2.00000 2.00000 2.00000 1.00000 0.00000 1.00000 1.00000 0.00000 277s 1.00000 sqrt(2) 2.00000 sqrt(2) 1.00000 sqrt(2) sqrt(2) 1.00000 277s 0.00000 1.00000 1.00000 sqrt(2) sqrt(2) 1.00000 1.00000 sqrt(2) 277s 1.00000 1.00000 0.00000 1.00000 1.00000 0.00000 0.00000 1.00000 277s ]); 277s assert (bwdist (bw, "quasi-euclidean"), out); 277s ***** error bwdist (bw, "not a valid method"); 277s ***** test 277s ## Special case of there being no foreground element (bug #50874) 277s expected_dist = single (Inf (2, 2)); 277s expected_idx = uint32 ([0 0; 0 0]); 277s 277s [dist, idx] = bwdist (false (2, 2)); 277s assert (dist, expected_dist) 277s assert (idx, expected_idx) 277s 277s [dist, idx] = bwdist (zeros (2, 2)); 277s assert (dist, expected_dist) 277s assert (idx, expected_idx) 277s ***** test 277s ## Special case of 1D input (bug #50874) 277s assert (bwdist ([1 0]), single ([0 1])) 277s assert (bwdist ([1 0]'), single ([0 1]')) 277s assert (bwdist ([0 1 0 0 0 0 1 1]), single ([1 0 1 2 2 1 0 0])) 277s assert (bwdist ([1 1 0 0 0 0 1 1]'), single ([0 0 1 2 2 1 0 0])') 277s assert (bwdist ([1 0], "euclidean"), single ([0 1])) 277s assert (bwdist ([1 0], "chessboard"), single ([0 1])) 277s assert (bwdist ([1 0], "cityblock"), single ([0 1])) 277s assert (bwdist ([1 0], "quasi-euclidean"), single ([0 1])) 277s ***** test 277s ## test 1D input with 2nd output argument (indices) (bug #50874) 277s expected_dist = single ([1 0 1]); 277s expected_idx = uint32 ([2 2 2]); 277s 277s [dist, idx] = bwdist ([0 1 0]); 277s assert (dist, expected_dist) 277s assert (idx, expected_idx) 277s 277s [dist, idx] = bwdist ([0 1 0]'); 277s assert (dist, expected_dist') 277s assert (idx, expected_idx') 277s 277s expected_dist = single ([0 0 1 0 0]); 277s expected_idx = uint32 ([1 2 2 4 5]); 277s [dist, idx] = bwdist ([1 1 0 1 1]); 277s assert (dist, expected_dist) 277s assert (idx, expected_idx) 277s 277s expected_dist = single ([1 0 1 2 1 0 0 0 1 1 0 0 0 0 1 2 3 4]); 277s expected_idx = uint32 ([2 2 2 2 6 6 7 8 8 11 11 12 13 14 14 14 14 14]); 277s [dist, idx] = bwdist ([0 1 0 0 0 1 1 1 0 0 1 1 1 1 0 0 0 0]); 277s assert (dist, expected_dist) 277s assert (idx, expected_idx) 277s 277s expected_dist = single ([0 0 1 2 1 0 0 0 1 1 0 0 0 0 1 2 1 0]); 277s expected_idx = uint32 ([1 2 2 2 6 6 7 8 8 11 11 12 13 14 14 14 18 18]); 277s [dist, idx] = bwdist ([1 1 0 0 0 1 1 1 0 0 1 1 1 1 0 0 0 1]); 277s assert (dist, expected_dist) 277s assert (idx, expected_idx) 277s ***** test 277s assert (bwdist ([0 0]), single ([Inf, Inf])) 277s assert (bwdist ([0 0]'), single ([Inf, Inf]')) 277s ***** xtest 277s ## This is Matlab incompatible because the bottom right corners is 277s ## equally distant to the top right and bottom left corners. However, 277s ## both are correct answers, and the returned value is just 277s ## implementation dependent. 277s bw = logical ([ 277s 0 0 1 277s 0 0 0 277s 1 0 0 277s ]); 277s expected_dist = single ([ 277s 2.0 1.0 0.0 277s 1.0 sqrt(2) 1.0 277s 0.0 1.0 2.0 277s ]); 277s expected_idx = uint32 ([ 277s 3 7 7 277s 3 3 7 277s 3 3 3 277s ]); 277s [dist, idx] = bwdist (bw); 277s assert (dist, expected_dist) 277s assert (idx, expected_idx) 277s !!!!! known failure 277s ASSERT errors for: assert (idx,expected_idx) 277s 277s Location | Observed | Expected | Reason 277s (3,3) 7 3 Abs err 4 exceeds tol 0 by 4 277s 12 tests, 11 passed, 1 known failure, 0 skipped 277s [src/intlut.cc] 277s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/intlut.cc 277s ***** assert (intlut (uint8 (1:4), uint8 ( 255:-1:0)), uint8 (254:-1:251)); 277s ***** assert (intlut (uint16 (1:4), uint16 (65535:-1:0)), uint16 (65534:-1:65531)); 277s ***** assert (intlut (int16 (1:4), int16 (32767:-1:-32768)), int16 (-2:-1:-5)); 277s ***** assert (intlut (uint8 (255), uint8 (0:255)), uint8 (255)); 277s ***** assert (intlut (uint16 (65535), uint16 (0:65535)), uint16 (65535)); 277s ***** assert (intlut (int16 (32767), int16 (-32768:32767)), int16 (32767)); 277s ***** error intlut () 277s ***** error intlut ("text") 277s ***** error intlut (1:20, uint8 (0:255)); 277s ***** error intlut (uint16 (1:20), uint8 (0:255)); 277s ***** error intlut (uint8 (1:20), uint8 (0:200)); 277s ***** error intlut (uint16 (1:20), uint16 (0:500)); 278s ***** error intlut (uint8 (56), uint8 (magic (16) -1)) 278s 13 tests, 13 passed, 0 known failure, 0 skipped 278s [src/bwlabeln.cc] 278s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/bwlabeln.cc 278s ***** shared a2d, a3d 278s a2d = [1 0 0 0 0 0 1 0 0 1 278s 1 0 0 1 0 1 0 1 0 1 278s 1 0 1 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 1 0 0 0 0 0 0 0 0 278s 1 1 0 1 1 1 0 0 0 0 278s 1 1 0 1 0 0 0 1 0 0 278s 1 1 0 0 0 0 1 0 1 0 278s 1 1 0 0 0 0 0 0 0 0 278s 1 1 0 0 0 1 1 0 0 1]; 278s 278s a3d = a2d; 278s a3d(:,:,2) = [ 278s 0 0 0 0 0 0 0 0 0 0 278s 1 0 0 1 1 0 0 1 0 0 278s 0 0 0 1 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 1 0 0 0 0 0 0 0 0 278s 1 1 0 0 1 1 0 0 0 0 278s 1 1 0 1 0 0 0 0 0 0 278s 1 0 0 0 0 0 1 0 0 0 278s 0 1 0 0 0 0 0 0 0 1 278s 1 1 0 0 0 0 1 0 0 0]; 278s 278s a3d(:,:,3) = [ 278s 1 0 0 0 0 0 0 0 0 0 278s 0 1 0 1 1 0 0 1 0 0 278s 0 0 0 1 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 1 1 1 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 1 0 0 0 0 0 0 0 0 0 278s 1 1 0 0 0 0 0 0 0 1 278s 1 1 0 0 0 0 0 0 0 0]; 278s ***** test 278s label2dc4 = [ 278s 1 0 0 0 0 0 8 0 0 13 278s 1 0 0 4 0 6 0 10 0 13 278s 1 0 3 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 2 0 0 0 0 0 0 0 0 278s 2 2 0 5 5 5 0 0 0 0 278s 2 2 0 5 0 0 0 11 0 0 278s 2 2 0 0 0 0 9 0 12 0 278s 2 2 0 0 0 0 0 0 0 0 278s 2 2 0 0 0 7 7 0 0 14]; 278s assert (bwlabeln (a2d, 4), label2dc4) 278s assert (bwlabeln (a2d, [0 1 0; 1 1 1; 0 1 0]), label2dc4) 278s assert (bwlabeln (a2d, conndef (2, "minimal")), label2dc4) 278s assert (bwlabeln (a2d, conndef (3, "minimal")), label2dc4) 278s ***** test 278s label2dc8 = [ 278s 1 0 0 0 0 0 5 0 0 8 278s 1 0 0 3 0 5 0 5 0 8 278s 1 0 3 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 2 0 0 0 0 0 0 0 0 278s 2 2 0 4 4 4 0 0 0 0 278s 2 2 0 4 0 0 0 7 0 0 278s 2 2 0 0 0 0 7 0 7 0 278s 2 2 0 0 0 0 0 0 0 0 278s 2 2 0 0 0 6 6 0 0 9]; 278s assert (bwlabeln (a2d, 8), label2dc8) 278s assert (bwlabeln (a2d, ones (3)), label2dc8) 278s assert (bwlabeln (a2d, conndef (2, "maximal")), label2dc8) 278s assert (bwlabeln (a2d, conndef (3, "maximal")), label2dc8) 278s ***** test 278s label3dc8 = [ 278s 1 0 0 0 0 0 5 0 0 8 278s 1 0 0 3 0 5 0 5 0 8 278s 1 0 3 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 2 0 0 0 0 0 0 0 0 278s 2 2 0 4 4 4 0 0 0 0 278s 2 2 0 4 0 0 0 7 0 0 278s 2 2 0 0 0 0 7 0 7 0 278s 2 2 0 0 0 0 0 0 0 0 278s 2 2 0 0 0 6 6 0 0 9]; 278s label3dc8(:,:,2) = [ 278s 0 0 0 0 0 0 0 0 0 0 278s 10 0 0 12 12 0 0 16 0 0 278s 0 0 0 12 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 11 0 0 0 0 0 0 0 0 278s 11 11 0 0 13 13 0 0 0 0 278s 11 11 0 13 0 0 0 0 0 0 278s 11 0 0 0 0 0 14 0 0 0 278s 0 11 0 0 0 0 0 0 0 17 278s 11 11 0 0 0 0 15 0 0 0]; 278s label3dc8(:,:,3) = [ 278s 18 0 0 0 0 0 0 0 0 0 278s 0 18 0 20 20 0 0 22 0 0 278s 0 0 0 20 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 21 21 21 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 19 0 0 0 0 0 0 0 0 0 278s 19 19 0 0 0 0 0 0 0 23 278s 19 19 0 0 0 0 0 0 0 0]; 278s assert (bwlabeln (a3d, 8), label3dc8) 278s assert (bwlabeln (a3d, ones (3, 3)), label3dc8) 278s assert (bwlabeln (a3d, conndef (2, "maximal")), label3dc8) 278s ***** test 278s label3dc26 = [ 278s 1 0 0 0 0 0 3 0 0 7 278s 1 0 0 3 0 3 0 3 0 7 278s 1 0 3 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 2 0 0 0 0 0 0 0 0 278s 2 2 0 4 4 4 0 0 0 0 278s 2 2 0 4 0 0 0 6 0 0 278s 2 2 0 0 0 0 6 0 6 0 278s 2 2 0 0 0 0 0 0 0 0 278s 2 2 0 0 0 5 5 0 0 6]; 278s label3dc26(:,:,2) = [ 278s 0 0 0 0 0 0 0 0 0 0 278s 1 0 0 3 3 0 0 3 0 0 278s 0 0 0 3 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 2 0 0 0 0 0 0 0 0 278s 2 2 0 0 4 4 0 0 0 0 278s 2 2 0 4 0 0 0 0 0 0 278s 2 0 0 0 0 0 6 0 0 0 278s 0 2 0 0 0 0 0 0 0 6 278s 2 2 0 0 0 0 5 0 0 0]; 278s label3dc26(:,:,3) = [ 278s 1 0 0 0 0 0 0 0 0 0 278s 0 1 0 3 3 0 0 3 0 0 278s 0 0 0 3 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 4 4 4 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 2 0 0 0 0 0 0 0 0 0 278s 2 2 0 0 0 0 0 0 0 6 278s 2 2 0 0 0 0 0 0 0 0]; 278s assert (bwlabeln (a3d, 26), label3dc26) 278s assert (bwlabeln (a3d, ones (3, 3, 3)), label3dc26) 278s assert (bwlabeln (a3d, conndef (3, "maximal")), label3dc26) 278s ***** test 278s label3dc18 = [ 278s 1 0 0 0 0 0 3 0 0 7 278s 1 0 0 3 0 3 0 3 0 7 278s 1 0 3 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 2 0 0 0 0 0 0 0 0 278s 2 2 0 4 4 4 0 0 0 0 278s 2 2 0 4 0 0 0 6 0 0 278s 2 2 0 0 0 0 6 0 6 0 278s 2 2 0 0 0 0 0 0 0 0 278s 2 2 0 0 0 5 5 0 0 8]; 278s label3dc18(:,:,2) = [ 278s 0 0 0 0 0 0 0 0 0 0 278s 1 0 0 3 3 0 0 3 0 0 278s 0 0 0 3 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 2 0 0 0 0 0 0 0 0 278s 2 2 0 0 4 4 0 0 0 0 278s 2 2 0 4 0 0 0 0 0 0 278s 2 0 0 0 0 0 6 0 0 0 278s 0 2 0 0 0 0 0 0 0 8 278s 2 2 0 0 0 0 5 0 0 0]; 278s label3dc18(:,:,3) = [ 278s 1 0 0 0 0 0 0 0 0 0 278s 0 1 0 3 3 0 0 3 0 0 278s 0 0 0 3 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 4 4 4 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 2 0 0 0 0 0 0 0 0 0 278s 2 2 0 0 0 0 0 0 0 8 278s 2 2 0 0 0 0 0 0 0 0]; 278s assert (bwlabeln (a3d, 18), label3dc18) 278s ***** test 278s label2dc3 = [ 278s 1 0 0 0 0 0 11 0 0 17 278s 1 0 0 5 0 8 0 14 0 17 278s 1 0 4 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 3 0 0 0 0 0 0 0 0 278s 2 3 0 6 7 9 0 0 0 0 278s 2 3 0 6 0 0 0 15 0 0 278s 2 3 0 0 0 0 12 0 16 0 278s 2 3 0 0 0 0 0 0 0 0 278s 2 3 0 0 0 10 13 0 0 18]; 278s assert (bwlabeln (a2d, [1 1 1]'), label2dc3) 278s 278s label3dc3 = label2dc3; 278s label3dc3(:,:,2) = [ 278s 0 0 0 0 0 0 0 0 0 0 278s 19 0 0 24 26 0 0 31 0 0 278s 0 0 0 24 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 22 0 0 0 0 0 0 0 0 278s 20 22 0 0 27 28 0 0 0 0 278s 20 22 0 25 0 0 0 0 0 0 278s 20 0 0 0 0 0 29 0 0 0 278s 0 23 0 0 0 0 0 0 0 32 278s 21 23 0 0 0 0 30 0 0 0]; 278s label3dc3(:,:,3) = [ 278s 33 0 0 0 0 0 0 0 0 0 278s 0 35 0 37 39 0 0 42 0 0 278s 0 0 0 37 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 38 40 41 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 34 0 0 0 0 0 0 0 0 0 278s 34 36 0 0 0 0 0 0 0 43 278s 34 36 0 0 0 0 0 0 0 0]; 278s assert (bwlabeln (a3d, [1 1 1]'), label3dc3) 278s ***** test 278s label2dc1 = zeros (size (a2d)); 278s label2dc1(a2d != 0) = 1:nnz (a2d); 278s assert (bwlabeln (a2d, [1]), label2dc1); 278s assert (bwlabeln (a2d, [0 1 0]'), label2dc1); 278s 278s label3dc1 = zeros (size (a3d)); 278s label3dc1(a3d != 0) = 1:nnz (a3d); 278s assert (bwlabeln (a3d, [1]), label3dc1); 278s assert (bwlabeln (a3d, [0 1 0]'), label3dc1); 278s ***** shared in 278s in = rand (10) > 0.8; 278s ***** assert (bwlabel (in, 4), bwlabeln (in, 4)); 278s ***** assert (bwlabel (in, 4), bwlabeln (in, [0 1 0; 1 1 1; 0 1 0])); 278s ***** assert (bwlabel (in, 8), bwlabeln (in, 8)); 278s ***** assert (bwlabel (in, 8), bwlabeln (in, [1 1 1; 1 1 1; 1 1 1])); 278s ***** assert (bwlabel (logical ([0 1 0; 0 0 0; 1 0 1])), [0 2 0; 0 0 0; 1 0 3]); 278s ***** assert (bwlabel ([0 1 0; 0 0 0; 1 0 1]), [0 2 0; 0 0 0; 1 0 3]); 278s ***** assert (bwlabel ([0 -1 0; 0 0 0; 5 0 0.2]), [0 2 0; 0 0 0; 1 0 3]); 278s ***** shared in, out 278s 278s in = [ 0 1 1 0 0 1 0 0 0 0 278s 0 0 0 1 0 0 0 0 0 1 278s 0 1 1 0 0 0 0 0 1 1 278s 1 0 0 0 0 0 0 1 0 0 278s 0 0 0 0 0 1 1 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 1 0 0 0 0 0 0 278s 0 0 0 0 1 1 0 1 0 0 278s 0 0 0 1 0 1 0 1 0 1 278s 1 1 0 0 0 0 0 1 1 0]; 278s 278s out = [ 0 3 3 0 0 9 0 0 0 0 278s 0 0 0 5 0 0 0 0 0 13 278s 0 4 4 0 0 0 0 0 13 13 278s 1 0 0 0 0 0 0 11 0 0 278s 0 0 0 0 0 10 10 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 6 0 0 0 0 0 0 278s 0 0 0 0 8 8 0 12 0 0 278s 0 0 0 7 0 8 0 12 0 14 278s 2 2 0 0 0 0 0 12 12 0]; 278s ***** assert (nthargout ([1 2], @bwlabel, in, 4), {out, 14}); 278s ***** assert (nthargout ([1 2], @bwlabel, logical (in), 4), {out, 14}); 278s 278s out = [ 0 3 3 0 0 7 0 0 0 0 278s 0 0 0 3 0 0 0 0 0 11 278s 0 4 4 0 0 0 0 0 11 11 278s 1 0 0 0 0 0 0 9 0 0 278s 0 0 0 0 0 8 8 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 5 0 0 0 0 0 0 278s 0 0 0 0 5 5 0 10 0 0 278s 0 0 0 6 0 5 0 10 0 12 278s 2 2 0 0 0 0 0 10 10 0]; 278s ***** assert (nthargout ([1 2], @bwlabel, in, 6), {out, 12}); 278s ***** assert (nthargout ([1 2], @bwlabel, logical (in), 6), {out, 12}); 278s 278s ## The labeled image is not the same as Matlab, but they are 278s ## labeled correctly. Do we really need to get them properly 278s ## ordered? (the algorithm in bwlabeln does it) 278s mout = [0 1 1 0 0 4 0 0 0 0 278s 0 0 0 1 0 0 0 0 0 5 278s 0 1 1 0 0 0 0 0 5 5 278s 1 0 0 0 0 0 0 5 0 0 278s 0 0 0 0 0 5 5 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 3 0 0 0 0 0 0 278s 0 0 0 0 3 3 0 6 0 0 278s 0 0 0 3 0 3 0 6 0 6 278s 2 2 0 0 0 0 0 6 6 0]; 278s 278s out = [ 0 2 2 0 0 4 0 0 0 0 278s 0 0 0 2 0 0 0 0 0 5 278s 0 2 2 0 0 0 0 0 5 5 278s 2 0 0 0 0 0 0 5 0 0 278s 0 0 0 0 0 5 5 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 0 0 0 3 0 0 0 0 0 0 278s 0 0 0 0 3 3 0 6 0 0 278s 0 0 0 3 0 3 0 6 0 6 278s 1 1 0 0 0 0 0 6 6 0]; 278s ***** assert (nthargout ([1 2], @bwlabel, in, 8), {out, 6}); 278s ***** assert (nthargout ([1 2], @bwlabel, logical (in), 8), {out, 6}); 278s 278s ***** error bwlabel (rand (10, 10, 10) > 0.8, 4) 278s ***** error bwlabel (rand (10) > 0.8, "text") 278s ***** error bwlabel ("text", 6) 278s 23 tests, 23 passed, 0 known failure, 0 skipped 278s [src/bwconncomp.cc] 278s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/bwconncomp.cc 278s ***** test 278s a = rand (10) > 0.5; 278s cc = bwconncomp (a, 4); 278s assert (cc.Connectivity, 4) 278s assert (cc.ImageSize, [10 10]) 278s 278s b = false (10); 278s for i = 1:numel (cc.PixelIdxList) 278s b(cc.PixelIdxList{i}) = true; 278s endfor 278s assert (a, b) 278s ***** test 278s a = rand (10, 13) > 0.5; 278s cc = bwconncomp (a, 4); 278s assert (cc.ImageSize, [10 13]) 278s 278s b = false (10, 13); 278s for i = 1:numel (cc.PixelIdxList) 278s b(cc.PixelIdxList{i}) = true; 278s endfor 278s assert (a, b) 278s ***** test 278s a = rand (15) > 0.5; 278s conn_8 = bwconncomp (a, 8); 278s assert (conn_8, bwconncomp (a)) 278s assert (conn_8, bwconncomp (a, ones (3))) 278s assert (conn_8.Connectivity, 8) 278s assert (bwconncomp (a, ones (3)).Connectivity, 8) 278s assert (bwconncomp (a, [0 1 0; 1 1 1; 0 1 0]).Connectivity, 4) 278s ***** test 278s bw = logical ([ 278s 1 0 0 1 0 1 0 278s 1 0 0 1 0 1 0 278s 0 0 0 0 0 1 0 278s 0 0 0 0 1 0 0 278s 1 1 0 1 1 0 0 278s 0 1 0 0 0 0 0 278s 1 1 0 0 0 0 0 278s ]); 278s cc = bwconncomp (bw); 278s cc = struct (); 278s cc.Connectivity = 8; 278s cc.ImageSize = [7 7]; 278s cc.NumObjects = 4; 278s ## The commented line has the results from Matlab. We return the 278s ## same result but in a slightly different order. Since the order 278s ## is not defined, it is not required for compatibility. 278s #cc.PixelIdxList = {[1;2], [5;7;12;13;14], [22;23], [26;32;33;36;37;38]}; 278s cc.PixelIdxList = {[1;2], [5;12;13;7;14], [22;23], [26;32;33;38;37;36]}; 278s assert (bwconncomp (bw), cc) 278s ***** test 278s ## test that PixelIdxList is a row vector 278s a = rand (40, 40) > 0.2; 278s cc = bwconncomp (a, 4); 278s assert (rows (cc.PixelIdxList), 1) 278s assert (columns (cc.PixelIdxList), cc.NumObjects) 278s ***** assert (bwconncomp (false (5)), struct ("ImageSize", [5 5], "NumObjects", 0, 278s "PixelIdxList", {cell(1, 0)}, 278s "Connectivity", 8)) 278s ***** test 278s in = [ 0 0 1 0 0 1 0 1 0 0 278s 0 0 1 0 0 0 0 0 1 1 278s 1 0 0 0 0 1 1 0 0 0 278s 1 0 0 0 1 0 0 0 0 0 278s 1 1 1 1 0 0 0 0 0 1 278s 0 1 0 1 1 0 0 1 0 0 278s 1 0 0 0 1 0 0 0 0 0 278s 0 0 0 1 1 0 0 1 0 0 278s 0 1 0 1 1 0 0 1 1 0 278s 0 1 0 1 1 1 0 0 1 0]; 278s assert (bwareaopen (in, 1, 4), logical (in)) 278s 278s out = [0 0 0 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 1 0 0 0 0 0 0 0 0 0 278s 1 0 0 0 0 0 0 0 0 0 278s 1 1 1 1 0 0 0 0 0 0 278s 0 1 0 1 1 0 0 0 0 0 278s 0 0 0 0 1 0 0 0 0 0 278s 0 0 0 1 1 0 0 0 0 0 278s 0 0 0 1 1 0 0 0 0 0 278s 0 0 0 1 1 1 0 0 0 0]; 278s assert (bwareaopen (logical (in), 10, 4), logical (out)) 278s assert (bwareaopen (in, 10, 4), logical (out)) 278s assert (bwareaopen (in, 10, [0 1 0; 1 1 1; 0 1 0]), logical (out)) 278s 278s out = [0 0 0 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 1 0 0 0 0 1 1 0 0 0 278s 1 0 0 0 1 0 0 0 0 0 278s 1 1 1 1 0 0 0 0 0 0 278s 0 1 0 1 1 0 0 0 0 0 278s 1 0 0 0 1 0 0 0 0 0 278s 0 0 0 1 1 0 0 0 0 0 278s 0 0 0 1 1 0 0 0 0 0 278s 0 0 0 1 1 1 0 0 0 0]; 278s assert (bwareaopen (in, 10, 8), logical (out)) 278s assert (bwareaopen (in, 10, ones (3)), logical (out)) 278s assert (bwareaopen (in, 10), logical (out)) 278s 278s out = [0 0 0 0 0 0 0 0 0 0 278s 0 0 0 0 0 0 0 0 0 0 278s 1 0 0 0 0 0 0 0 0 0 278s 1 0 0 0 0 0 0 0 0 0 278s 1 1 1 1 0 0 0 0 0 0 278s 0 1 0 1 1 0 0 0 0 0 278s 0 0 0 0 1 0 0 0 0 0 278s 0 0 0 1 1 0 0 1 0 0 278s 0 0 0 1 1 0 0 1 1 0 278s 0 0 0 1 1 1 0 0 1 0]; 278s assert (bwareaopen (in, 4, [1 1 0; 1 1 1; 0 1 1]), logical (out)) 278s ***** error bwareaopen ("not an image", 78, 8) 278s ***** error bwareaopen (rand (10) > 0.5, 10, 100) 278s ***** error bwareaopen (rand (10) > 0.5, 10, "maximal") 278s ***** error bwareaopen (rand (10) > 0.5, 10, [1 1 1; 0 1 1; 0 1 0]) 278s 11 tests, 11 passed, 0 known failure, 0 skipped 278s [src/bwfill.cc] 278s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/bwfill.cc 278s ***** test 278s 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]; 278s R4 = logical(ones(5)); 278s 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]); 278s assert (bwfill (A,1,1,4), R4) 278s assert (bwfill (A,1,1,8), R8) 278s assert (bwfill (A,1,1), R8) 278s 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]); 278s assert (bwfill (A,3,3,4), B) 278s assert (bwfill (A,3,3,8), B) 278s assert (bwfill (A,3,3), B) 278s 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]); 278s assert (bwfill (A,3,1,8), C) 278s assert (bwfill (A,3,1,4), R4) 278s assert (bwfill (A, [3 1], [1 3], 4), R4); 278s 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]); 278s assert (bwfill (A, [3 1], [1 3], 8), D); 278s assert (bwfill (A, [3 1], [1 3]), D); 278s 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]); 278s assert (bwfill (A, "holes", 4), E); 278s 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]); 278s assert (bwfill (A, "holes", 8), F); 278s assert (bwfill (A, "holes"), F); 278s ***** error id=Octave:invalid-fun-call bwfill () 278s ***** error id=Octave:invalid-fun-call bwfill ("aaa") 278s ***** error id=Octave:invalid-fun-call bwfill (rand (5) > 0.5) 278s ***** error id=Octave:invalid-fun-call bwfill (rand (5) > 0.5, 2) 279s ***** error bwfill (rand (5) > 0.5, "holes", 1) 279s ***** error bwfill (rand (5) > 0.5, 2, 2, 5) 279s ***** error id=Octave:invalid-fun-call bwfill (rand (5) > 0.5, "xxx") 279s ***** error id=Octave:invalid-fun-call bwfill (rand (5) > 0.5, 2, 2, 4, 5) 279s ***** error id=Octave:invalid-fun-call bwfill (rand (5) > 0.5, "holes", 4, 2) 279s 10 tests, 10 passed, 0 known failure, 0 skipped 279s [src/hough_line.cc] 279s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/hough_line.cc 279s ***** test 279s I = zeros(100, 100); 279s I(1,1) = 1; I(100,100) = 1; I(1,100) = 1; I(100, 1) = 1; I(50,50) = 1; 279s [J, R] = houghtf(I); J = J / max(J(:)); 279s assert(size(J) == [length(R) 181]); 279s 279s ***** demo 279s I = zeros(100, 150); 279s I(30,:) = 1; I(:, 65) = 1; I(35:45, 35:50) = 1; 279s for i = 1:90, I(i,i) = 1;endfor 279s I = imnoise(I, 'salt & pepper'); 279s imshow(I); 279s J = houghtf(I); J = J / max(J(:)); 279s imshow(J); 279s 1 test, 1 passed, 0 known failure, 0 skipped 279s [src/imerode.cc] 279s >>>>> /tmp/autopkgtest.LXs3YZ/build.k3z/src/src/imerode.cc 279s ***** assert (imerode (eye (3), [1]), eye (3)); 279s ***** assert (imerode (eye (3), []), Inf (3, 3)); 279s ***** test 279s im = [0 1 0 279s 1 1 1 279s 0 1 0]; 279s se = [1 0 0 279s 0 1 0 279s 0 1 1]; 279s assert (imerode (im, se), [0 1 0; 0 0 0; 0 1 0]); 279s assert (imerode (logical(im), se), logical ([0 1 0; 0 0 0; 0 1 0])); 279s assert (imerode (im, se, "full"), 279s [ 0 0 0 0 Inf 279s 1 0 1 0 Inf 279s 0 0 0 0 0 279s Inf 0 1 0 1 279s Inf Inf 0 1 0]); 279s assert (imerode (logical(im), se, "full"), 279s logical([0 0 0 0 1 279s 1 0 1 0 1 279s 0 0 0 0 0 279s 1 0 1 0 1 279s 1 1 0 1 0])); 279s ***** xtest 279s a = rand ([10 40 15 6 8 5]) > 0.2; 279s se = ones ([5 3 7]); 279s 279s ## the image is not really indexed but this way it is padded with 1s 279s assert (imerode (a, se), colfilt (a, "indexed", size (se), "sliding", @all)) 279s 279s assert (imerode (a, se, "valid"), convn (a, se, "valid") == nnz (se)) 279s ## again, we need to pad it ourselves because convn pads with zeros 279s b = true (size (a) + [4 2 6 0 0 0]); 279s b(3:12, 2:41, 4:18,:,:,:) = a; 279s assert (imdilate (b, se, "same"), convn (b, se, "same") > 0) 279s b = true (size (a) + [8 4 12 0 0 0]); 279s b(5:14, 3:42, 7:21,:,:,:) = a; 279s assert (imdilate (b, se, "full"), convn (b, se, "full") > 0) 283s ***** test 283s im = [0 0 0 0 0 0 0 283s 0 0 1 0 1 0 0 283s 0 0 1 1 0 1 0 283s 0 0 1 1 1 0 0 283s 0 0 0 0 0 0 0]; 283s se = [0 0 0 283s 0 1 0 283s 0 1 1]; 283s out = [0 0 0 0 0 0 0 283s 0 0 1 0 0 0 0 283s 0 0 1 1 0 0 0 283s 0 0 0 0 0 0 0 283s 0 0 0 0 0 0 0]; 283s assert (imerode (im, se), out); 283s assert (imerode (logical (im), se), logical (out)); 283s assert (imerode (im, logical (se)), out); 283s assert (imerode (logical (im), logical (se)), logical (out)); 283s 283s # with an even-size SE 283s se = [0 0 0 1 283s 0 1 0 0 283s 0 1 1 1]; 283s out = [0 0 0 0 0 0 0 283s 0 0 0 0 0 0 0 283s 0 0 1 0 0 0 0 283s 0 0 0 0 0 0 0 283s 0 0 0 0 0 0 0]; 283s assert (imerode (im, se), out); 283s out = [ 0 0 0 0 1 0 1 283s 0 0 1 0 1 1 0 283s 0 0 1 1 1 1 1 283s 0 0 1 1 1 1 1 283s 0 0 1 1 1 1 1]; 283s assert (imdilate (im, se), out); 283s ***** test 283s a = [ 82 2 97 43 79 43 41 65 51 11 283s 60 65 21 56 94 77 36 38 75 39 283s 32 68 78 1 16 75 76 90 81 56 283s 43 90 82 41 36 1 87 19 18 63 283s 63 64 2 48 18 43 38 25 22 99 283s 12 46 90 79 3 92 39 79 10 22 283s 38 98 11 10 40 90 88 38 4 76 283s 54 37 9 4 33 98 36 47 53 57 283s 38 76 82 50 14 74 64 99 7 33 283s 88 96 41 62 84 89 97 23 41 3]; 283s 283s domain = ones (3); 283s out = [ 2 1 1 1 16 36 36 11 283s 21 1 1 1 1 1 18 18 283s 2 1 1 1 1 1 18 18 283s 2 2 2 1 1 1 10 10 283s 2 2 2 3 3 25 4 4 283s 9 4 3 3 3 36 4 4 283s 9 4 4 4 14 36 4 4 283s 9 4 4 4 14 23 7 3]; 283s assert (imerode (a, domain, "valid"), out); 283s assert (imerode (uint8 (a), domain, "valid"), uint8 (out)); 283s assert (imerode (uint8 (a), strel ("arbitrary", domain), "valid"), uint8 (out)); 283s assert (imerode (uint8 (a), strel ("square", 3), "valid"), uint8 (out)); 283s 283s ***** ## Test for non-flat strel 283s assert (imerode (a, strel ("arbitrary", domain, ones (3)), "valid"), out -1); 283s 283s out = [ 97 97 97 94 94 90 90 90 283s 90 90 94 94 94 90 90 90 283s 90 90 82 75 87 90 90 99 283s 90 90 90 92 92 92 87 99 283s 98 98 90 92 92 92 88 99 283s 98 98 90 98 98 98 88 79 283s 98 98 82 98 98 99 99 99 283s 96 96 84 98 98 99 99 99]; 283s assert (imdilate (a, domain, "valid"), out); 283s assert (imdilate (uint8 (a), domain, "valid"), uint8 (out)); 283s 283s ***** ## Test for non-flat strel 283s assert (imdilate (a, strel ("arbitrary", domain, ones (3)), "valid"), out +1); 283s 283s ## test while using SE that can be decomposed and an actual sequence 283s domain = ones (5); 283s out = [ 2 1 1 1 1 1 16 11 11 11 283s 2 1 1 1 1 1 1 1 11 11 283s 2 1 1 1 1 1 1 1 11 11 283s 2 1 1 1 1 1 1 1 10 10 283s 2 1 1 1 1 1 1 1 4 4 283s 2 2 2 1 1 1 1 1 4 4 283s 2 2 2 2 2 3 3 4 4 4 283s 9 4 3 3 3 3 3 3 3 3 283s 9 4 4 4 4 4 4 3 3 3 283s 9 4 4 4 4 4 7 3 3 3]; 283s assert (imerode (a, domain), out); 283s assert (imerode (a, strel ("square", 5)), out); 283s assert (imerode (a, getsequence (strel ("square", 5))), out); 283s 283s ## using a non-symmetric SE 283s domain = [ 1 1 0 283s 0 1 1 283s 0 1 0]; 283s 283s out = [ 2 2 1 16 36 36 38 39 283s 60 1 1 16 1 36 19 18 283s 32 2 1 1 1 19 18 18 283s 2 2 18 3 1 1 19 10 283s 46 2 2 3 18 38 10 4 283s 11 9 4 3 3 36 4 4 283s 9 4 4 10 36 36 38 4 283s 37 9 4 4 33 36 7 7]; 283s assert (imerode (a, domain, "valid"), out); 283s assert (imerode (a, strel ("arbitrary", domain, ones (3)), "valid"), out -1); 283s 283s out = [ 78 97 56 94 94 90 90 81 283s 90 82 78 94 87 87 90 90 283s 90 90 82 43 75 87 90 99 283s 90 90 79 92 92 87 79 25 283s 98 90 90 90 92 92 79 79 283s 98 98 79 98 98 90 88 57 283s 98 82 50 74 98 99 99 53 283s 96 82 84 89 98 97 99 99]; 283s assert (imdilate (a, domain, "valid"), out); 283s assert (imdilate (a, strel ("arbitrary", domain, ones (3)), "valid"), out +1); 283s ***** test 283s im = reshape (magic(16), [4 8 4 2]); 283s se = true (3, 3, 3); 283s out = zeros (4, 8, 4, 2); 283s out(:,:,1,1) = [ 283s 3 3 46 2 2 2 47 47 283s 3 3 30 2 2 2 31 31 283s 17 17 16 16 16 20 13 13 283s 33 33 16 16 16 36 13 13]; 283s out(:,:,2,1) = [ 283s 3 3 46 2 2 2 43 43 283s 3 3 30 2 2 2 27 27 283s 17 17 12 12 12 20 13 13 283s 33 33 12 12 12 36 13 13]; 283s out(:,:,3,1) = [ 283s 3 3 42 6 6 6 43 43 283s 3 3 26 6 6 6 27 27 283s 21 21 12 12 12 20 9 9 283s 37 37 12 12 12 36 9 9]; 283s out(:,:,4,1) = [ 283s 7 7 42 6 6 6 43 43 283s 7 7 26 6 6 6 27 27 283s 21 21 12 12 12 24 9 9 283s 37 37 12 12 12 40 9 9]; 283s out(:,:,1,2) = [ 283s 11 11 38 10 10 10 39 39 283s 11 11 22 10 10 10 23 23 283s 25 25 8 8 8 28 5 5 283s 41 41 8 8 8 44 5 5]; 283s out(:,:,2,2) = [ 283s 11 11 38 10 10 10 35 35 283s 11 11 22 10 10 10 19 19 283s 25 25 4 4 4 28 5 5 283s 41 41 4 4 4 44 5 5]; 283s out(:,:,3,2) = [ 283s 11 11 34 14 14 14 35 35 283s 11 11 18 14 14 14 19 19 283s 29 29 4 4 4 28 1 1 283s 45 45 4 4 4 44 1 1]; 283s out(:,:,4,2) = [ 283s 15 15 34 14 14 14 35 35 283s 15 15 18 14 14 14 19 19 283s 29 29 4 4 4 32 1 1 283s 45 45 4 4 4 48 1 1]; 283s assert (imerode (im, se), out); 283s assert (imerode (uint16 (im), se), uint16 (out)); 283s 283s ## trying a more weird SE 283s se(:,:,1) = [1 0 1; 0 1 1; 0 0 0]; 283s se(:,:,3) = [1 0 1; 0 1 1; 0 0 1]; 283s out(:,:,1,1) = [ 283s 3 17 46 2 2 2 47 47 283s 17 3 30 2 2 2 31 31 283s 17 17 16 16 16 20 13 31 283s 33 33 16 16 16 36 13 13]; 283s out(:,:,2,1) = [ 283s 3 3 46 2 2 20 43 61 283s 3 3 30 2 20 2 27 43 283s 33 17 12 20 20 20 13 13 283s 51 33 12 12 30 36 13 13]; 283s out(:,:,3,1) = [ 283s 3 21 42 6 6 6 43 43 283s 21 3 26 6 6 6 27 27 283s 21 21 12 12 12 20 9 27 283s 37 37 12 12 12 36 9 9]; 283s out(:,:,4,1) = [ 283s 7 7 42 6 6 24 57 57 283s 7 7 26 6 24 6 43 43 283s 37 21 26 24 24 24 9 9 283s 55 37 12 12 26 40 9 9]; 283s out(:,:,1,2) = [ 283s 11 25 38 10 10 10 39 39 283s 25 11 22 10 10 10 23 23 283s 25 25 8 8 8 28 5 23 283s 41 41 8 8 8 44 5 5]; 283s out(:,:,2,2) = [ 283s 11 11 38 10 10 28 35 53 283s 11 11 22 10 22 10 19 35 283s 41 25 4 22 22 28 5 5 283s 59 41 4 4 22 44 5 5]; 283s out(:,:,3,2) = [ 283s 11 29 34 14 14 14 35 35 283s 29 11 18 14 14 14 19 19 283s 29 29 4 4 4 28 1 19 283s 45 45 4 4 4 44 1 1]; 283s out(:,:,4,2) = [ 283s 15 15 34 14 14 32 49 49 283s 15 15 18 14 18 14 35 35 283s 45 29 18 18 18 32 1 1 283s 63 45 4 4 18 48 1 1]; 283s assert (imerode (im, se), out); 283s assert (imerode (uint16 (im), se), uint16 (out)); 283s ***** error imerode (ones (10), 45) 283s ***** error imerode (ones (10), "some text") 283s ***** error imerode (ones (10), {23, 45}) 283s ***** error imerode (rand (10) > 10 , strel ("arbitrary", true (3), ones (3))) 283s ***** xtest 283s a = rand ([10 40 15 6 8 5]) > 0.8; 283s se = ones ([5 3 7]); 283s assert (imdilate (a, se), convn (a, se, "same") > 0) 283s assert (imdilate (a, se, "full"), convn (a, se, "full") > 0) 283s assert (imdilate (a, se, "valid"), convn (a, se, "valid") > 0) 283s assert (imdilate (a, se), colfilt (a, size (se), "sliding", @any)) 286s ***** test 288s im = reshape (magic(16), [4 8 4 2]); 288s se = true (3, 3, 3); 288s out = zeros (4, 8, 4, 2); 288s 288s out(:,:,1,1) = [ 288s 256 256 209 253 253 253 212 212 288s 256 256 225 253 253 253 228 228 288s 238 238 243 243 243 239 242 242 288s 222 222 243 243 243 223 242 242]; 288s out(:,:,2,1) = [ 288s 256 256 213 253 253 253 212 212 288s 256 256 229 253 253 253 228 228 288s 238 238 243 243 243 239 246 246 288s 222 222 243 243 243 223 246 246]; 288s out(:,:,3,1) = [ 288s 252 252 213 253 253 253 216 216 288s 252 252 229 253 253 253 232 232 288s 238 238 247 247 247 235 246 246 288s 222 222 247 247 247 219 246 246]; 288s out(:,:,4,1) = [ 288s 252 252 213 249 249 249 216 216 288s 252 252 229 249 249 249 232 232 288s 234 234 247 247 247 235 246 246 288s 218 218 247 247 247 219 246 246]; 288s out(:,:,1,2) = [ 288s 248 248 217 245 245 245 220 220 288s 248 248 233 245 245 245 236 236 288s 230 230 251 251 251 231 250 250 288s 214 214 251 251 251 215 250 250]; 288s out(:,:,2,2) = [ 288s 248 248 221 245 245 245 220 220 288s 248 248 237 245 245 245 236 236 288s 230 230 251 251 251 231 254 254 288s 214 214 251 251 251 215 254 254]; 288s out(:,:,3,2) = [ 288s 244 244 221 245 245 245 224 224 288s 244 244 237 245 245 245 240 240 288s 230 230 255 255 255 227 254 254 288s 214 214 255 255 255 211 254 254]; 288s out(:,:,4,2) = [ 288s 244 244 221 241 241 241 224 224 288s 244 244 237 241 241 241 240 240 288s 226 226 255 255 255 227 254 254 288s 210 210 255 255 255 211 254 254]; 288s assert (imdilate (im, se), out); 288s assert (imdilate (uint16 (im), se), uint16 (out)); 288s 288s ## trying a more weird SE 288s se(:,:,1) = [1 0 1; 0 1 1; 0 0 0]; 288s se(:,:,3) = [1 0 1; 0 1 1; 0 0 1]; 288s out(:,:,1,1) = [ 288s 256 256 209 239 253 253 212 194 288s 256 256 225 239 239 239 228 212 288s 222 222 243 239 243 239 242 242 288s 208 208 225 243 243 223 242 242]; 288s out(:,:,2,1) = [ 288s 256 256 213 253 253 253 212 212 288s 238 256 229 253 253 253 228 228 288s 238 238 243 243 243 239 246 228 288s 222 222 243 243 243 223 228 246]; 288s out(:,:,3,1) = [ 288s 252 252 213 235 253 253 216 198 288s 252 252 229 235 235 253 232 216 288s 222 238 247 235 247 235 246 246 288s 204 222 229 247 247 219 246 246]; 288s out(:,:,4,1) = [ 288s 252 252 213 249 249 249 216 216 288s 234 252 229 249 249 249 232 232 288s 234 234 247 247 247 235 246 232 288s 218 218 247 247 247 219 232 246]; 288s out(:,:,1,2) = [ 288s 248 248 217 231 245 245 220 202 288s 248 248 233 233 233 231 236 220 288s 214 214 251 233 251 231 250 250 288s 200 200 233 251 251 215 250 250]; 288s out(:,:,2,2) = [ 288s 248 248 221 245 245 245 220 220 288s 230 248 237 245 245 245 236 236 288s 230 230 251 251 251 231 254 236 288s 214 214 251 251 251 215 236 254]; 288s out(:,:,3,2) = [ 288s 244 244 221 227 245 245 224 206 288s 244 244 237 237 237 245 240 224 288s 214 230 255 237 255 227 254 254 288s 196 214 237 255 255 211 254 254]; 288s out(:,:,4,2) = [ 288s 244 244 221 241 241 241 224 224 288s 226 244 237 241 241 241 240 240 288s 226 226 255 255 255 227 254 240 288s 210 210 255 255 255 211 240 254]; 288s assert (imdilate (im, se), out); 288s assert (imdilate (uint16 (im), se), uint16 (out)); 288s ***** test # scalar blank SE 288s se = 0; 288s assert (imerode (5, se), Inf) 288s assert (imerode (true, se), true) 288s assert (imerode (false, se), true) 288s assert (imerode (uint8 (3), se), uint8 (255)) 288s 288s assert (imdilate (5, se), -Inf) 288s assert (imdilate (true, se), false) 288s assert (imdilate (false, se), false) 288s assert (imdilate (uint8 (3), se), uint8 (0)) 288s ***** test # empty SE 288s se = []; 288s assert (imerode (5, se), Inf) 288s assert (imerode (true, se), true) 288s assert (imerode (false, se), true) 288s assert (imerode (uint8 (3), se), uint8 (255)) 288s 288s assert (imdilate (5, se), -Inf) 288s assert (imdilate (true, se), false) 288s assert (imdilate (false, se), false) 288s assert (imdilate (uint8 (3), se), uint8 (0)) 288s ***** test # non-scalar blank SE 288s se = zeros (3, 3); 288s assert (imerode (5, se), Inf) 288s assert (imerode (true, se), true) 288s assert (imerode (false, se), true) 288s assert (imerode (uint8 (3), se), uint8 (255)) 288s 288s assert (imdilate (5, se), -Inf) 288s assert (imdilate(true, se), false) 288s assert (imdilate (false, se), false) 288s assert (imdilate (uint8 (3), se), uint8 (0)) 288s ***** test # erode only with out-of-border elements 288s se = [1 1 1; 1 0 1; 1 1 1]; 288s assert (imerode (5, se), Inf) 288s assert (imerode (true, se), true) 288s 288s assert (imdilate (5, se), -Inf) 288s assert (imdilate (true, se), false) 288s ***** test # only true elements of SE are out-of-border 288s se = [0 0 0; 1 0 0; 1 1 0]; 288s assert (imerode (zeros (3), se), [0 0 0; 0 0 0; Inf 0 0]) 288s assert (imerode (false (3), se), logical ([0 0 0; 0 0 0; 1 0 0])) 288s assert (imdilate (zeros (3), se), [0 0 -Inf; 0 0 0; 0 0 0]) 288s assert (imdilate (false (3), se), false (3, 3)) 288s 288s se = [0 0 0; 0 0 0; 1 1 1]; 288s assert (imerode (zeros (3, 3), se), [0 0 0; 0 0 0; Inf Inf Inf]) 288s assert (imerode (false (3, 3), se), logical ([0 0 0; 0 0 0; 1 1 1])) 288s assert (imdilate (zeros (3, 3), se), [-Inf -Inf -Inf; 0 0 0; 0 0 0]) 288s assert (imdilate (false (3, 3), se), false (3, 3)) 288s ***** test # only true elements of even-sized SE are out-of-border 288s se = logical ([0 1; 1 1]); 288s assert (imerode (false (3, 3), se), logical ([0 0 0; 0 0 0; 0 0 1])) 288s assert (imerode (zeros (3, 3), se), [0 0 0; 0 0 0; 0 0 Inf]) 288s 288s assert (imdilate (false (3, 3), se), false (3, 3)) 288s assert (imdilate (zeros (3, 3), se), [-Inf 0 0; 0 0 0; 0 0 0]) 288s 19 tests, 19 passed, 0 known failure, 0 skipped 288s Done running the unit tests. 288s Summary: 2033 tests, 1998 passed, 35 known failures, 0 skipped 288s autopkgtest [19:39:06]: test command1: -----------------------] 289s command1 PASS 289s autopkgtest [19:39:08]: test command1: - - - - - - - - - - results - - - - - - - - - - 289s autopkgtest [19:39:08]: @@@@@@@@@@@@@@@@@@@@ summary 289s command1 PASS 294s Creating nova instance adt-noble-arm64-octave-image-20240320-193419-juju-7f2275-prod-proposed-migration-environment-2 from image adt/ubuntu-noble-arm64-server-20240320.img (UUID e0f61a12-2f1c-4e49-a68b-f68d2ad5dd10)...