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

[-- Attachment #1: Type: text/plain, Size: 847 bytes --]

Hello Per,

> >    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.
> 

But what is 'this' argument, how do I 'grab it' from imagej/fiji plugin?

thanks,
David

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2018-01-21  8:59 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
2018-01-21  8:59   ` David Pirotte [this message]
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=20180121065856.51dcae4b@capac \
    --to=david@altosw.be \
    --cc=kawa@sourceware.org \
    --cc=per@bothner.com \
    /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).