Re: Fast Math Operations on Images
Posted by haider on Sep 03, 2014; 6:00am
URL: http://imagej.273.s1.nabble.com/Fast-Math-Operations-on-Images-tp5009453p5009473.html
@Gabriel
Thank you for the code. It works as expected and it takes about .1 seconds (much much faster). I did try loading the image into a 1D array and then performing the operations. But doing such operations on a python array was still very slow. I used list comprehension and it brought the operation time from 10 seconds to 6 seconds, but this was still not good enough. I think I will stick with the Internal ImageJ commands now that the problems have been resolved.
@Michael
Gabriel's solution works well, but I will still look into doing these operations by writing a PlugInFilter. Thanks for telling me about it.