On Thursday, May 28, 2015 02:02:36 AM [email protected] wrote:
> I use matlab for image segmentation.I am currently trying to do the same in
> julia. How can regionproperties be implemented in julia to get the bounding
> box.

If your image is binary (i.e., has Bool values), then an easy approach is to 
use m = any(img, dim) along with findfirst and findlast.

> How can this be done in julia?
> 
> BW = imgHSV(:,:,1) < 0.05 | imgHSV(:,:,1) > 0.15;

It's almost the same: you use .< instead of <. You may also need to call 
`separate`. There's quite a lot of help available at 
http://timholy.github.io/Images.jl/

Best,
--Tim

Reply via email to