public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: David Pirotte <david@altosw.be>, kawa <kawa@sourceware.org>
Subject: Re: ImagJ/Fiji 'binding' wrong number of args - help welcome
Date: Sun, 21 Jan 2018 07:12:00 -0000	[thread overview]
Message-ID: <39453e2b-700e-385c-88a5-164c58a6a1a8@bothner.com> (raw)
In-Reply-To: <20180120225959.315c0608@capac>

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/

  reply	other threads:[~2018-01-21  7:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-21  1:00 David Pirotte
2018-01-21  7:12 ` Per Bothner [this message]
2018-01-21  8:59   ` David Pirotte
2018-01-21 18:42     ` Per Bothner
2018-01-22  1:49       ` David Pirotte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=39453e2b-700e-385c-88a5-164c58a6a1a8@bothner.com \
    --to=per@bothner.com \
    --cc=david@altosw.be \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).