modules/utils.py
def grid_plot(imdata):
    '''
        Plot 3D set of images into a 2D grid using subplots.

        Inputs:
            imdata: N x H x W image stack

        Outputs:
            None
    '''
    N, H, W = imdata.shape

    nrows = int(np.sqrt(N))
    ncols = int(np.ceil(N/nrows))

    for idx in range(N):
        plt.subplot(nrows, ncols, idx+1)
        plt.imshow(imdata[idx, :, :], cmap='gray')
        plt.xticks([], [])
        plt.yticks([], [])

        Plot 3D set of images into a 2D grid using subplots.

        Inputs:
            imdata: N x H x W image stack

        Outputs:
            None
    
Plot 3D set of images into a 2D grid using subplots.
Inputs:
imdata: N x H x W image stack

None
Plot 3D set of images into a 2D grid using subplots . Inputs : imdata : N x H x W image stack None
def grid_plot(imdata):
    N, H, W = imdata.shape
    nrows = int(np.sqrt(N))
    ncols = int(np.ceil(N/nrows))
    for idx in range(N):
        plt.subplot(nrows, ncols, idx+1)
        plt.imshow(imdata[idx, :, :], cmap='gray')
        plt.xticks([], [])
        plt.yticks([], [])
def grid_plot ( imdata ) : N , H , W = imdata . shape nrows = int ( np . sqrt ( N ) ) ncols = int ( np . ceil ( N / nrows ) ) for idx in range ( N ) : plt . subplot ( nrows , ncols , idx + 1 ) plt . imshow ( imdata [ idx , : , : ] , cmap = 'gray' ) plt . xticks ( [ ] , [ ] ) plt . yticks ( [ ] , [ ] )
Plot 3D set of images into a 2D grid using subplots.
Plot 3D set of images into a 2D grid using subplots .
'''
        Plot 3D set of images into a 2D grid using subplots.

        Inputs:
            imdata: N x H x W image stack

        Outputs:
            None
    '''
imdata