Used for visualization of midle slice of the data3d
        :param ax:
        :param contour:
        :param i:
        :return:

def __drawSegmentedSlice(self, ax, contour, i):
        """
        Used for visualization of midle slice of the data3d
        :param ax:
        :param contour:
        :param i:
        :return:
        """
        i = int(i)
        ax.cla()
        ax.imshow(self.data[i, :, :], cmap=self.cmap)

        ax.set_xticklabels([])
        ax.set_yticklabels([])
        if contour is not None:
            #ax.contour(contour[i, :, :])
            logger.debug("type contour " + str(type(contour)))
            logger.debug("max contour " + str(np.max(contour)))
            logger.debug("min contour " + str(np.min(contour)))
            logger.debug("type contour " + str(type(contour[i,:,:])))
            logger.debug("max contour " + str(np.max(contour[i,:,:])))
            logger.debug("min contour " + str(np.min(contour[i,:,:])))
            contour_slice = contour[i, :, :]
            if np.max(contour_slice) != np.min(contour_slice):
                ax.contour(contour[i, :, :] + 1)