http://imagej.273.s1.nabble.com/Debugging-ImageJ-using-Netbeans-tp3703700p3703702.html
I do not know of methods get and set in Image processor. But you can use
ip2.getPixel(int x, int y) and ip2.putPixel(int x, int y, int value). You
>
> Hi,
>
> Thanks for the information, I removed the Macadapter.java because its not
> needed when I run it in windows.
>
> The Plugin "Myinverter.Java" shows couple of errors. since the get(i) does
> not match the definition of get(int,int)& set(i,255-p) does not match the
> definition of set(int,int,int). The following code is attached & the errors
> are highlighted. Do you know proper arguments for the get & set functions???
>
> public class My_Inverter implements PlugInFilter {
>
> public int setup(String arg, ImagePlus img) {
> return DOES_8G; // this plugin accepts 8-bit grayscale
> images
> }
>
> public void run(ImageProcessor ip) {
> int w = ip.getWidth();
> int h = ip.getHeight();
> int size = w*h;
>
> ByteProcessor ip2 = (ByteProcessor)ip;
> for (int i = 0; i < size; i++) {
> int p = ip2.get(i);
> ip2.set(i,255-p);
> }
> }
>
> }
>
> Thanks
> Nilesh
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:
[hidden email]]On Behalf Of
> Soft Aliance
> Sent: Wednesday, February 15, 2006 5:36 PM
> To:
[hidden email]
> Subject: Re: Debugging ImageJ using Netbeans
>
>
> Hi,
>
> I am using NetBeans 4.1 on two machines running on Win XP home in one
> and
> Win2000 in another. I removed the Mac
> Adaptor.java. in both. I can write, compile and debug my plugins in ImageJ
> without any problem.
> Perhaps along with the notes for compiling ImageJ in NetBeans one shld.
> add
> this.
>
> Balaji .J
>
> On 2/15/06, Johannes Schindelin <
[hidden email]> wrote:
> >
> > Hi,
> >
> > On Wed, 15 Feb 2006, Powar, Nilesh wrote:
> >
> > > Is there any way I could add the package com.apple.mrj???
> >
> > Yes. You can steal it from a Mac OS X computer. But I don't know if it
> is
> > all Java, or some native dependencies exist. The best thing is to
> include
> > the .class compiled on a Mac, and leave out/disable the .java file.
> >
> > Hth,
> > Dscho
> >
>