how to get non zero elements from an image

3 views (last 30 days)
i needed histogram of non zero elements from an image.... please could someone help me, how to get the non zero elements from an image...

Accepted Answer

Matt J
Matt J on 31 Dec 2012
nonzeros(yourImage)

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!