Login  Register

Re: curvature along the outline of a thresholded object

Posted by Aryeh Weiss on Jul 13, 2020; 5:38am
URL: http://imagej.273.s1.nabble.com/curvature-along-the-outline-of-a-thresholded-object-tp5023589p5023700.html

Hi Bob, and thanks for the plugin.

I tried to compile and run it in the Fiji script editor (in part to
learn how to do it, mostly I use python). After installing openjdk-8
,when I run it
I get the following error:
java.lang.ArrayIndexOutOfBoundsException.

So I decided to try to see where this happens. First thing I did was to
make the pixels not square, and I indeed get the warning message about
that. So I knew that it is running at least that far.

Then I added another showMessage right after that one (actually I
started lower down and worked my way up), like so:

         if(pw != ph){
             IJ.showMessage("Warning: pixel height and width in the
image calibration differ.\n"+
                     "This plugin is not designed for that.  The pixel
width \n"+
                     "will be used and the pixel height will be ignored.");
             IJ.showMessage("does this print");   // line that I added
         }

And in this case, the first warning pops up, but the second one that I
added does not, and I get the java.lang.ArrayIndexOutOfBoundsException

I dont know Java, but this seems very strange to me

Thanks in advance for any assistance
--aryeh

On 13/07/2020 06:36, Robert Dougherty wrote:
>   Fabrice, Thomas, Thomas, Herbie, Gabriel, and others who might be following this,
>
> I just posted Version 6 of my curvature plugin at http://www.optinav.info/Curvature.htm I hope it is finished.
> My ulterior motive in writing this was that the curvature subject reminded me of the Kelvin effect in evaporating respiratory droplets that are trying to propagate COVID-19.  I realize that this is probably not the OP application.  Also, [1] suggests the Kelvin effect becomes important for droplets smaller than 0.5 microns, and this is pretty small for this case. Even (dried) talking droplets are 0.9 microns or so. Anyway, it is what it is. An introduction to this subject can be found under "Interesting Video" on the top of http://www.optinav.info/ I'd like feedback from biologists.
>
> Bob
> 1. Marr, L. C., Tang, J. W., Van Mullekom, J., & Lakdawala, S. S. (2019). Mechanistic insights into the effect of humidity on airborne influenza virus survival, transmission and incidence. Journal of the Royal Society Interface, 16(150), 20180298.
>
--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html