Skip to content

Here start the development of a plugin for Fiji (imageJ), which will read the .obj format.

Notifications You must be signed in to change notification settings

Tom-TBT/fijiPlugin_objReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a minimal Maven project implementing an ImageJ 1.x plugin

It is intended as an ideal starting point to develop new ImageJ 1.x plugins in an IDE of your choice. You can even collaborate with developers using a different IDE than you.

In Eclipse, for example, it is as simple as File>Import...>Existing Maven Project

In Netbeans, it is even simpler: File>Open Project. The same works in IntelliJ.

If jEdit is your preferred IDE, you will need the Maven Plugin.

Die-hard command-line developers can use Maven directly by calling mvn in the project root.

However you build the project, in the end you will have the .jar file (called artifact in Maven speak) in the target/ subdirectory.

To copy the artifact into the correct place, you can call mvn -Dimagej.app.directory=/path/to/Fiji.app/. This will not only copy your artifact, but also all the dependencies. Restart your ImageJ or call Help>Refresh Menus to see your plugin in the menus.

Developing plugins in an IDE is convenient, especially for debugging. To that end, the plugin contains a main() method which sets the plugins.dir system property (so that the plugin is added to the Plugins menu), starts ImageJ, loads an image and runs the plugin. See also this page for information how Fiji makes it easier to debug in IDEs.

Since this project is intended as a starting point for your own developments, it is in the public domain.

How to use this project as a starting point

Either

Then:

  1. Edit the pom.xml file. Every entry should be pretty self-explanatory. In particular, change
    1. the artifactId (and optionally also groupId)
    2. the version (note that you typically want to use a version number ending in -SNAPSHOT to mark it as a work in progress rather than a final version)
    3. the dependencies (read how to specify the correct groupId/artifactId/version triplet here)
    4. the developer information
    5. the scm information
  2. Remove the Process_Pixels.java file and add your own .java files to src/main/java/<package>/ (if you need supporting files -- like icons -- in the resulting .jar file, put them into src/main/resources/)
  3. Edit src/main/resources/plugins.config
  4. Replace the contents of README.md with information about your project.

If you cloned the minimal-ij1-plugin repository, you probably want to publish the result in your own repository:

  1. Call git status to verify .gitignore lists all the files (or file patterns) that should be ignored
  2. Call git add . and git add -u to stage the current files for commit
  3. Call git commit or git gui to commit the changes
  4. Create a new GitHub repository
  5. git remote set-url origin [email protected]:<username>/<projectname>
  6. git push origin HEAD

About

Here start the development of a plugin for Fiji (imageJ), which will read the .obj format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages