def isInsideMaskSpace(transfMaskVoxCoord, maskShape):
    """Condition of having voxels from a transformed coordinates inside a mask image boundaries.

    Parameters
    ----------
    transfMaskVoxCoord: List
        List of integers containing the transformed coordenates from TOF voxel space
        to mask voxel space.
    maskShape: List
        Shape from mask obtained from shape atribute of a fslImage.

    Returns
    -------
    boolean: bool
        boolean indicating if the transfMaskVoxCoord is inside the mask voxel space.

    """
    boolean = (transfMaskVoxCoord[0]>=0 and transfMaskVoxCoord[0]<maskShape[0]) and \
                        (transfMaskVoxCoord[1]>=0 and transfMaskVoxCoord[1]<maskShape[1]) and\
                        (transfMaskVoxCoord[2]>=0 and transfMaskVoxCoord[2]<maskShape[2])
    return boolean