[julia-users] Re: Image processing: Otsu's method thresholding. Help with optimizing code/algorithm

2014-11-09 Thread Jason Merrill
On Saturday, November 8, 2014 1:52:09 PM UTC-6, Jason Merrill wrote: Here's a sketch of a different algorithm that I believe converges to the same value: 1. Initialize thresh to the mean value of the image pixels 2. Compute the mean of the pixels that are larger than thresh, mplus, and

Re: [julia-users] Re: Image processing: Otsu's method thresholding. Help with optimizing code/algorithm

2014-11-09 Thread Tim Holy
I agree that `mean` is not type-stable (via `sum`-`mapreduce`). Good catch! I wonder how long that has been lurking? But I can't replicate the difference between `in_img` and `data(in_img)`, to me they are the same. --Tim On Sunday, November 09, 2014 06:24:25 PM Jason Merrill wrote: On

[julia-users] Re: Image processing: Otsu's method thresholding. Help with optimizing code/algorithm

2014-11-09 Thread Aneesh Sathe
ah cool! I was thinking of doing a multi-thresh method like the one here: http://people.csail.mit.edu/jayadev/papers/mlt_thr_img.pdf this should make it easier...thank you! On Monday, November 10, 2014 10:24:26 AM UTC+8, Jason Merrill wrote: On Saturday, November 8, 2014 1:52:09 PM UTC-6,