Importing ImageJFunctions

Hello all!
I’m trying to convert Img to ImagePlus with ImageJFunctions.wrap().

I’ve tried to import “net.imglib2.img.display.imagej.ImageJFunctions” by adding the following dependency and repository to my pom.xml.

          <dependency>
  	<groupId>net.imglib2</groupId>
  	<artifactId>imglib2-ij</artifactId>
  </dependency>
          <repository>
  	<id>scijava.public</id>
  	<url>https://maven.scijava.org/content/groups/public</url>
  </repository>

Eclipse recognises it and returns the correct version number of 2.0.0-beta-44, but I still can’t access it. Could I please have some guidance as to where to look to troubleshoot?

1 Like

Hey @Reuben_Ganesan,

what error pops up? Or can you maybe provide a screenshot of the problem?

Cheers,
Robert

error

Thank you for replying!
This is the error I recieved.

I’ve managed to solve it, I needed to update the project with maven. Sorry for taking your time.

1 Like

No worries. Happy that it works now! Maven is sometimes a bit tricky :wink:

Cheers,
Robert

1 Like