Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

inverse mask python

>>> a = numpy.array([False,True,False])
>>> ~a
array([ True, False,  True], dtype=bool)
>>> numpy.logical_not(a)
array([ True, False,  True], dtype=bool)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #inverse #mask #python
ADD COMMENT
Topic
Name
6+2 =