def nonzero_hsv_data(self):
        """ Computes non zero hsv values.

        Returns
        -------
        :obj:`numpy.ndarray`
            array of the hsv values for the image
        """
        hsv_data = cv2.cvtColor(self.data, cv2.COLOR_BGR2HSV)
        nonzero_px = self.nonzero_pixels()
        return hsv_data[nonzero_px[:, 0], nonzero_px[:, 1], ...]
def nonzero_hsv_data ( self ) : hsv_data = cv2 . cvtColor ( self . data , cv2 . COLOR_BGR2HSV ) nonzero_px = self . nonzero_pixels ( ) return hsv_data [ nonzero_px [ : , 0 ] , nonzero_px [ : , 1 ] , ... ]
Computes non zero hsv values.

        Returns
        -------
        :obj:`numpy.ndarray`
            array of the hsv values for the image