def indices(state=true)
      if state
        (@narray.eq 1).where.to_a
      else
        (@narray.eq 0).where.to_a
      end
    end
def indices(state=true)
      if state
        (@narray.eq 1).where.to_a
      else
        (@narray.eq 0).where.to_a
      end
    end
Computes a hash code for this object.

 @note Two objects with the same attributes will have the same hash code.

 @return [Fixnum] the object's hash code

 Gives the indices of either the true or the false pixels of the binary image.

 @param [Boolean] state the state of the pixels for which to extract indices (defaults to true)
 @return [Array] the indices of the true or false pixels in the binary image