From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: GNU Guile-CV 0.1.8 released Date: Sun, 17 Dec 2017 23:28:30 -0200 Message-ID: <20171217232830.71a768cb@capac> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/_DMJuIkH_MpYL27tHu8/Lug"; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1513560418 7280 195.159.176.226 (18 Dec 2017 01:26:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Dec 2017 01:26:58 +0000 (UTC) To: guile-user , guile-devel , info-gnu Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Dec 18 02:26:54 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQkCj-0001ZM-Ua for guile-devel@m.gmane.org; Mon, 18 Dec 2017 02:26:54 +0100 Original-Received: from localhost ([::1]:56254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQkEi-00045j-99 for guile-devel@m.gmane.org; Sun, 17 Dec 2017 20:28:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48355) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQkEd-00045V-27 for guile-devel@gnu.org; Sun, 17 Dec 2017 20:28:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQkEY-0002eP-Vr for guile-devel@gnu.org; Sun, 17 Dec 2017 20:28:51 -0500 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:50156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQkEY-0002c0-Jw; Sun, 17 Dec 2017 20:28:46 -0500 Original-Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id DA88FA04C020; Mon, 18 Dec 2017 02:28:43 +0100 (CET) Original-Received: from maximusconfessor.all2all.org ([192.168.0.1]) by localhost (maximusconfessor.all2all.org [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id 1EIJgSmru7NC; Mon, 18 Dec 2017 02:28:39 +0100 (CET) Original-Received: from capac (unknown [177.41.27.28]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 95864A04C01C; Mon, 18 Dec 2017 02:28:37 +0100 (CET) X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 79.99.200.102 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19443 gmane.lisp.guile.user:14381 Archived-At: --Sig_/_DMJuIkH_MpYL27tHu8/Lug Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, GNU Guile-CV 0.1.8 is released. * About Guile-CV - Image Processing and Analysis in Guile - is a Computer Vision functional programming library for the Guile Scheme language. Based on Vigra (Vision with Generic Algorithms - a C++ image processing and analysis library), Guile-CV comprises a direct binding to Vigra C (a C wrapper to most of the Vigra functionality), enriched with pure Guile scheme algorithms, all accessible through a nice, clean and easy to use high level API. Guile-CV is natively multi-threaded, and takes advantage of multiple cores, using high-level and fine grained application-level parallelism constructs available in Guile, based on its support to POSIX threads. http://www.gnu.org/software/guile-cv/ * Download Here are the compressed sources and a GPG detached signature [*]: http://ftp.gnu.org/gnu/guile-cv/guile-cv-0.1.8.tar.gz http://ftp.gnu.org/gnu/guile-cv/guile-cv-0.1.8.tar.gz.sig This released was bootstrapped with the following tools: -] gcc (Debian 7.2.0-17) 7.2.1 20171205 -] autoconf (GNU Autoconf) 2.69=20 -] automake (GNU automake) 1.15.1=20 -] libtool (GNU libtool) 2.4.6=20 -] makeinfo (GNU texinfo) 6.5=20 -] pdflatex 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian)=20 -] guile-2.2 2.2.3 -] guile-lib-1.0 0.2.5.1 -] vigra from the source, last commit here: fb427440d - June 28, 2017 -] vigra_c from the source, last commit here: 691b189b0 - Oct 25, 2017 * Changes since 0.1.7 ** Dependencies Vigra C >=3D commit 691b189b0 Oct 25, 2017 A clipping bug has been fixed in vigra_exportgrayimage_c, vigra_exportrgbimage_c and vigra_exportrgbaimage_c. A new vigra_clipimage_c function is available and Guile-CV uses it. ** Configuring Guile for Guile-CV I finally got my hands on how to configure Guile's raised exception system (special thanks to Daniel Lloren) so it does not 'blow' the repl upon errors anymore, while using Guile-CV (or manipulating any other big structures for that matters, huge lists, arrays, sfri-4 bytevectors ...). As a consequence, the manual has been updated and now covers both Guile's repl-print and raised exception system configuration, either globally, or individually: it is highly recommended for all users, even those who are already using Guile-CV I mean, not just new users, to very carefully read and apply these two recommendations. ** Interface changes im-fill-holes im-fill-holes-channel Previously, these two procedures were respectively named im-fill and im-fill-channel, but that was a bit ambiguous. im-scrap New optional keyword, #:exclude-on-edges, for which the default is #f. im-label im-label-channel im-label-all im-label-all-channel Return n-label, not n-object. The number of labels correspond to the highest label value + 1: earlier version of Guile-CV, prior to version 0.1.8, did return the number of objects, which correspond to the highest label value. This was less then optimal, since not only 0.0 is a label, but other procedures, im-features for example, do consider and return a feature object for the background as well. Note that Vigra C functions return the label highest value, but the vigra-label-all function starts to label using 1.0, so in this case, the label highest value is also the number of label used, hence im-label-all-channel has to return 'n-object' and not '(+ n-object 1)', fixed. I don't like this, for me it is inconsistent, and im-label-all should start to label using 0.0 as well, so I mailed the Vigra folks, let's see... im-features Consistency between im-label, im-label-all and im-features. All these already named their argument 'n-label', but it actually ment 'n-object'. I changed all this - and the segmentation related code as well - so it is consistent everywhere in the code. And now, the n-label argument value also correspond to the length of the list of features returned, so much better. Vigra C functions, at the contrary, expect 'n-object', or expressed differently, expect the label highest value, which correspond to (- n-label 1). This is also consistent everywhere in the code now. im-binary? Now accepts more then one image. ** New interfaces im-clip im-clip-channel im-reconstruct im-and-channel im-or-channel im-xor-channel im-=3D-channel? im-binary-channel? or-l Though undocumented still, I list it her too: we had and-l already, and there are (well known among schemers) situations where you need a function (not a macro)... im-composite->rgb Composite images only differs to others in the sence that they can have more then 3 channels, any number of channels actually, the 4th _not_ being the traditional alpha channel. Each channel holds on specific information, depending on the application domaim. It is sometime necessary to visualize these though, in which case they must be 'converted' to RGB images, hence this new procedure. This is a 'work in progress': as it is, it will only work if the composite image has 4 channels. In this first implementation, the algorithm will super impose the 4th channel to the RGB's, so one says 'white pixels always win' (this because the 4th channel is (generally) associated with the White 'color'). ** Removed interfaces im-list=3D? It was a bad idea to make this internal procedure public, and users can call (apply im-=3D? ...) anyway. ** Performance improvements im-rgb->gray im-threshold Calls im-rgb->gray-1, which was unnecessary calling float-round at each step, and I also noticed that recursive tail call procedures have a tiny penalty compared to loop, so rewrote both. Now, in addition, both procedures will split their work in between as many core as available, except if the parameter %use-par-map has been set to #f. On my laptop - i5-2450M CPU @ 2.50GHz =C3=97 4 and 5.7GB of mem - both procedures are now 3 to 4 times faster. im-fill-holes Labels are 'discrete' floats, by definition, so we can use =3D instead of float=3D?, which is 3 to 4 times faster. im-features Area, left, top, right, bottom values are discrete floats, use float->int, not float-round. im-min im-min-channel im-max im-max-channel im-range im-range-channel im-add im-add-channel im-subtract im-subtract-channel im-multiply (value) im-multiply-channel (value) im-divide (value) im-divide-channel (value) im-and im-and-channel im-or im-xor-channel im-or im-xor-channel im-=3D? im-=3D-channel? im-binary? im-binary-channel? im-rgb->gray im-fill-holes im-fill-holes-channel im-threshold im-reconstruct im-particle-clean Till Guile-3.0 becomes available, I decided to temporarily rewrite the math, linear algebra and logical 'low level' procedures in C. Tests performed on my laptop - i5-2450M CPU @ 2.50GHz =C3=97 4 and 5.7GB of mem= - using GRAY and RGB test images of 2718 x 1732 show gains in the range of 20x to 100x faster, depending on the operation and whether images involved have 1 or more channels (though in Guile-CV, unless the user sets the %use-par-map parameter to #f, all multi channel operations are multi threaded). Because all memory allocation still is done in scheme, and not in C, I am very comfortable with this approach, as I said, till we have an AOT compiler that compiles fixed size floating points and small integers operations and vector loops for these that runs as fast as in C, and I am pretty confident that it will happen, maybe not tomorrow, but it will happen. ** Bug fixes * Bug reports Please report bugs to bug-guile-cv@gnu.org * Mailing lists For the time being, Guile-CV uses Guile's mailing list: guile-user@gnu.org is for general user help and discussion; guile-devel@gnu.org is used to discuss most aspects of Guile-CV, including development and enhancement requests. David [*] Use a .sig file to verify that the corresponding file (without the .sig suffix) is intact. First, be sure to download both the .sig file and the corresponding tarball. Then, run a command like this: gpg --verify guile-cv-0.1.8.tar.gz.sig If that command fails because you don't have the required public key, then run this command to import it: gpg --keyserver keys.gnupg.net --recv-keys A3057AD7 and rerun the 'gpg --verify' command --Sig_/_DMJuIkH_MpYL27tHu8/Lug Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAlo3Gb8ACgkQ83T9k6MF etdFBwgAjOtWj5T1bMhmV+j1ryKi4l7xVjWe6A6eL1eaLMA7oAf6BqzXwEmF6Lxi /J7abWbLl5s9OfBBiJIRWkp5AhLuBJbmD3MK39HOlyQkcbn1CKgVtS6JQgAdLAz+ B8xH0uS3U+igdCek3cpRx4fcU205Tu2Z7nv2EXBjP2AEJr+SsWVE2uw8DiBfGkSB RiXNTmhDnivRnK9xoK+Qw0si212JB6yD2HzpE5OE4bpNpR+/f9wQqOlFaowvq4bQ tuTRkjuAqd279kdLaPjYgBEbJYhMhZ6tABEmqmbZjWHh1lAwIvoDVSBO/a8t0hZo IqD7QiuZdJjmddxCJgOqHuLPvj7s4A== =gJ8d -----END PGP SIGNATURE----- --Sig_/_DMJuIkH_MpYL27tHu8/Lug--