(self)
return img
Get the NNF visualisation
        :return: The RGB Matrix of the NNF
Get the NNF visualisation
        :return: The RGB Matrix of the NNF
Get the NNF visualisation : return : The RGB Matrix of the NNF
def visualize(self):
        """
        Get the NNF visualisation
        :return: The RGB Matrix of the NNF
        """
        nnf = self.nnf

        img = np.zeros((nnf.shape[0], nnf.shape[1], 3), dtype=np.uint8)

        for i in range(nnf.shape[0]):
            for j in range(nnf.shape[1]):
                pos = nnf[i, j]
                img[i, j, 0] = int(255 * (pos[0] / self.B.shape[1]))
                img[i, j, 2] = int(255 * (pos[1] / self.B.shape[0]))

        return img
def visualize ( self ) : nnf = self . nnf img = np . zeros ( ( nnf . shape [ 0 ] , nnf . shape [ 1 ] , 3 ) , dtype = np . uint8 ) for i in range ( nnf . shape [ 0 ] ) : for j in range ( nnf . shape [ 1 ] ) : pos = nnf [ i , j ] img [ i , j , 0 ] = int ( 255 * ( pos [ 0 ] / self . B . shape [ 1 ] ) ) img [ i , j , 2 ] = int ( 255 * ( pos [ 1 ] / self . B . shape [ 0 ] ) ) return img