• Post Reply Bookmark Topic Watch Topic
  • New Topic

ImageJ: Constructor error seems to conflict with API  RSS feed

 
Eric Barnhill
Rancher
Posts: 239
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm wondering if anyone can explain why I am getting a constructor error in this situation.

In the API for ij.process.FloatProcessor (this is for development of a plugin for the medical imaging software imageJ) I see the following constructor:



My code has the lines:



The compiler gives me the following error:


^
I'm confused. It looks to me like it is the appropriate constructor. Can anyone explain why I am getting this error? I would be happy to add more information as needed.

Thanks, Eric

 
Matthew Brown
Bartender
Posts: 4568
9
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first thing I'd check is: does the version of the documentation you're reading match the version of the library you're compiling against?
 
Eric Barnhill
Rancher
Posts: 239
Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Matthew. Good to know it wasn't a dumb mistake, now I'll go check on these things.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think FloatProcessor has had (int, int, int[]), (int, int, float[]) and (int, int, double[]) constructors for a long time, so I don't think that's the problem. Doesn't hurt to check, though: the latest javadocs (for 1.46m) are at http://rsb.info.nih.gov/ij/developer/api/index.html, and the corresponding ij.jar file can be found at http://rsb.info.nih.gov/ij/upgrade/index.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!