I am trying to write a plugin based off the existing Strahler Analysis plugin and I would like to select a rectangular ROI to work with. However, when I run the plugin in Eclipse, the setROI() function throws a NullPointerException. The code for this part is below. How can I fix this issue? My JRE version is 1.8.
and we see that the dendlab project has a skeleton2.tif file in its resources directory.
You need to make sure that you include your image.tif file as a resource
in the jar you build that contains Strahler.class (or open the file from
To debug this you might start by making sure that you can run the
original Strahler plugin from your eclipse environment. Then see if
you can run your modified Strahler.java, but still open the original
skeleton2.tif, and then finally check that you can replace skeleton2.tif
with your image.tif in the jar (or open it from elsewhere).