From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51148 invoked by alias); 21 Jan 2018 01:00:50 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 47513 invoked by uid 89); 21 Jan 2018 01:00:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*F:D*be, jars, Hx-languages-length:1072, images X-HELO: maximusconfessor.all2all.org Received: from maximusconfessor.all2all.org (HELO maximusconfessor.all2all.org) (79.99.200.102) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 21 Jan 2018 01:00:20 +0000 Received: from localhost (unknown [192.168.0.2]) by maximusconfessor.all2all.org (Postfix) with ESMTP id F1670A04C10B for ; Sun, 21 Jan 2018 02:00:17 +0100 (CET) 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 H+YlRnkMBlxw for ; Sun, 21 Jan 2018 02:00:13 +0100 (CET) Received: from capac (unknown [177.158.33.158]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id D4D41A04C01C for ; Sun, 21 Jan 2018 02:00:12 +0100 (CET) Date: Sun, 21 Jan 2018 01:00:00 -0000 From: David Pirotte To: kawa Subject: ImagJ/Fiji 'binding' wrong number of args - help welcome Message-ID: <20180120225959.315c0608@capac> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/9X7mNeIOCPsGs3ntIWCwgYU"; protocol="application/pgp-signature" X-IsSubscribed: yes X-SW-Source: 2018-q1/txt/msg00015.txt.bz2 --Sig_/9X7mNeIOCPsGs3ntIWCwgYU Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-length: 1061 Hello, I'm trying to provide access to an ImageJ/Fiji plugin defined here [1]. To = start with, I want to 'bind' processImage (see line 116 in [1], like this: (define-alias process-image sc.fiji.localThickness.LocalThicknessWrapper:processImage) then: export CLASSPATH=3D.:./jars/ij.jar:./jars/local-thickness.jar kawa -C ij-local-thickness.scm but when I try: kawa -Dplugins.dir=3D/usr/lpdi/projects/kawa/jars #|kawa:1|# (import (ij-core) (ij-local-thickness)) #|.....2|# #|kawa:3|# (define iplus1 (ij-open "images/camada-mapa.png")) #|kawa:4|# (ij-local-thickness iplus1) gnu.mapping.WrongArguments: call to 'sc.fiji.localThickness.LocalThicknes= sWrapper.processImage(ij.ImagePlus)' has too few arguments (1; must be 2) at gnu.mapping.CallContext.matchError(CallContext.java:150) at gnu.expr.PrimProcedure.applyToConsumerX(PrimProcedure.java:196) ... What am I doing wrong? Thanks, David [1] https://github.com/fiji/LocalThickness/blob/master/src/main/java/sc/fij= i/localThickness/LocalThicknessWrapper.java --Sig_/9X7mNeIOCPsGs3ntIWCwgYU Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature Content-length: 488 -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAlpj5g8ACgkQ83T9k6MF etfWeQf+J23X/PTR99WRy69eWLTQ62SzBBvQXK6he5537ZVmMzPmhGUWAS0dGC/g LM+L6vDWGP+g81uvheBaB/27zwxrLEHrl99F5bAYG3hn1UBHZ3SfzOENfZ2y/oLh +HP0LwAIBSrSPHaMONQqEDYViz1tl7UOFeOvmnUMpIAP2v8GUeAggsfj3eg7oMDP AaR0kAInvDAosbKh9C4v4KPEIvsBGWgaBvoKsEgG59i+NEsFWCyq8k06M7AwbLXL qYynHzaU9oCkYvEgwcRTilymxbNLaQlSsr+WwN/XZxqVgIDWGEjA3kMYX5UeLaPk XTbjjXBn9F4nnDZxNckuD26lWAuzvA== =HRbC -----END PGP SIGNATURE----- --Sig_/9X7mNeIOCPsGs3ntIWCwgYU--