@staticmethod
    def padVolumeWithAnotherVolume(bigVolume, smallVolume, backgroundValue=None):
        # Get the position of the origin in the small volume in the big one
        origin = Util.ras_to_ijk(bigVolume, smallVolume.GetOrigin())
        # Create a copy of the big volume to have the same spacial information
        #vlogic = slicer.modules.volumes.logic()
        #resultVolume = vlogic.CloneVolume(bigVolume, smallVolume.GetName() + "_extended")
        resultVolume = Util.cloneVolume(bigVolume, smallVolume.GetName() + "_extended")

        # Get the numpy arrays to operate with them
        npb = slicer.util.array(resultVolume.GetName())
        nps = slicer.util.array(smallVolume.GetName())
        # Initialize the big volume to the backround value or the minimum value of the big volume (default)
        if backgroundValue is None:
            back = npb.min()
            npb[:] = back
        else:
            npb[:] = backgroundValue
        # Copy the values of the small volume in the big one
        # Create the indexes
        x0 = int(origin[0])
        x1 = x0 + nps.shape[2]
        y0 = int(origin[1])
        y1 = y0 + nps.shape[1]
        z0 = int(origin[2])
        z1 = z0 + nps.shape[0]
        # Copy values
        npb[z0:z1, y0:y1, x0:x1] = nps[:,:,:]
        # Refresh values in mrml
        resultVolume.GetImageData().Modified()
        # Return the result volume
        return resultVolume
Returns whether this object can have children.
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/CIP_Common/CIP/logic/SlicerUtil.py/SlicerUtil.padVolumeWithAnotherVolume--crossover with--dataset/ETHPy150Open enthought/envisage/examples/plugins/single_project/sample_project/data/data.py/DataAdapter.allows_children