From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13674 invoked by alias); 21 Jan 2018 07:12:05 -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 13655 invoked by uid 89); 21 Jan 2018 07:12:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=HTo:U*david, jars, HTo:D*be, images X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 21 Jan 2018 07:12:01 +0000 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ed9nJ-000074-NM; Sun, 21 Jan 2018 08:11:57 +0100 Received: from 70-36-239-2.dsl.dynamic.fusionbroadband.com ([70.36.239.2] helo=localhost.localdomain) by mailfront11.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1ed9nA-0006G3-5y; Sun, 21 Jan 2018 08:11:48 +0100 Subject: Re: ImagJ/Fiji 'binding' wrong number of args - help welcome To: David Pirotte , kawa References: <20180120225959.315c0608@capac> From: Per Bothner Message-ID: <39453e2b-700e-385c-88a5-164c58a6a1a8@bothner.com> Date: Sun, 21 Jan 2018 07:12:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180120225959.315c0608@capac> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-q1/txt/msg00017.txt.bz2 On 01/20/2018 04:59 PM, David Pirotte wrote: > but when I try: > > kawa -Dplugins.dir=/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.LocalThicknessWrapper.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? processImage is a non-static method, so it needs two arguments: The implicit 'this' argument, plus the inputImage argument. -- --Per Bothner per@bothner.com http://per.bothner.com/