Base classes¶
BaseComponent¶
- class BaseComponent(*args, **kwargs)[source]¶
Base class for components of geological model.
- apply(func, attr, *args, inplace=False, **kwargs)[source]¶
Apply function to attributes.
- Parameters:
func (callable) – A function to apply. Must accept data as its first argument.
attr (str, array-like) – Attributes to get data from.
args (misc) – Any additional positional arguments to
func.kwargs (misc) – Any additional named arguments to
func.
- Returns:
output – Transformed component.
- Return type:
- property attributes¶
Array of attributes.
- property class_name¶
Name of the component.
- dump(path, **kwargs)[source]¶
Dump attributes into file.
- Parameters:
- Returns:
comp – BaseComponent unchanged.
- Return type:
- static dump_array_ascii(buffer, array, header=None, fmt='%f', compressed=True)[source]¶
Writes array-like data into an ASCII buffer.
- Parameters:
- property empty¶
True if component is empty else False.
- empty_like()[source]¶
Get an empty component with the same state and the structure of embedded BaseComponents (if any).
- property field¶
Field associated with the component.
- load(path_or_buffer, **kwargs)[source]¶
Load data from a file or buffer.
- Parameters:
- Returns:
comp – BaseComponent with loaded attributes.
- Return type:
- ravel(attr=None, order='F')[source]¶
Ravel attributes where applicable assuming by default Fortran order.
- reshape(attr, newshape, order='C', inplace=True)[source]¶
Reshape numpy.ndarray attributes.
- Parameters:
- Returns:
output
- Return type:
BaseComponent if inplace else reshaped attribute itself.
- property state¶
Get state.
SpatialComponent¶
- class SpatialComponent(*args, **kwargs)[source]¶
Bases:
BaseComponentBase component for spatial-type attributes.
- add_to_attribute(attr, addition, box)[source]¶
Add a constant to an attribute.
- Parameters:
- Returns:
self
- Return type:
self.__class__
- affine_transform(func, attr, *args, inplace=False, **kwargs)¶
Compute affine_transform for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.affine_transform.kwargs (misc) – Any additional named arguments to
scipy.ndimage.affine_transform.
- Returns:
output – Transformed component.
- Return type:
- binary_closing(func, attr, *args, inplace=False, **kwargs)¶
Compute binary_closing for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_closing.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_closing.
- Returns:
output – Transformed component.
- Return type:
- binary_dilation(func, attr, *args, inplace=False, **kwargs)¶
Compute binary_dilation for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_dilation.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_dilation.
- Returns:
output – Transformed component.
- Return type:
- binary_erosion(func, attr, *args, inplace=False, **kwargs)¶
Compute binary_erosion for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_erosion.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_erosion.
- Returns:
output – Transformed component.
- Return type:
- binary_fill_holes(func, attr, *args, inplace=False, **kwargs)¶
Compute binary_fill_holes for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_fill_holes.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_fill_holes.
- Returns:
output – Transformed component.
- Return type:
- binary_hit_or_miss(func, attr, *args, inplace=False, **kwargs)¶
Compute binary_hit_or_miss for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_hit_or_miss.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_hit_or_miss.
- Returns:
output – Transformed component.
- Return type:
- binary_opening(func, attr, *args, inplace=False, **kwargs)¶
Compute binary_opening for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_opening.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_opening.
- Returns:
output – Transformed component.
- Return type:
- binary_propagation(func, attr, *args, inplace=False, **kwargs)¶
Compute binary_propagation for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.binary_propagation.kwargs (misc) – Any additional named arguments to
scipy.ndimage.binary_propagation.
- Returns:
output – Transformed component.
- Return type:
- black_tophat(func, attr, *args, inplace=False, **kwargs)¶
Compute black_tophat for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.black_tophat.kwargs (misc) – Any additional named arguments to
scipy.ndimage.black_tophat.
- Returns:
output – Transformed component.
- Return type:
- center_of_mass(func, attr, *args, inplace=False, **kwargs)¶
Compute center_of_mass for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.center_of_mass.kwargs (misc) – Any additional named arguments to
scipy.ndimage.center_of_mass.
- Returns:
output – Transformed component.
- Return type:
- clip(func, attr, *args, inplace=False, **kwargs)¶
Compute array of cliped values for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
numpy.clip.kwargs (misc) – Any additional named arguments to
numpy.clip.
- Returns:
output – Transformed component.
- Return type:
- convolve(func, attr, *args, inplace=False, **kwargs)¶
Compute convolve for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.convolve.kwargs (misc) – Any additional named arguments to
scipy.ndimage.convolve.
- Returns:
output – Transformed component.
- Return type:
- convolve1d(func, attr, *args, inplace=False, **kwargs)¶
Compute convolve1d for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.convolve1d.kwargs (misc) – Any additional named arguments to
scipy.ndimage.convolve1d.
- Returns:
output – Transformed component.
- Return type:
- copy_attribute(attr1, attr2, box=None)[source]¶
Copy attribute values to another atribute.
- Parameters:
- Returns:
self
- Return type:
self.__class__
- correlate(func, attr, *args, inplace=False, **kwargs)¶
Compute correlate for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.correlate.kwargs (misc) – Any additional named arguments to
scipy.ndimage.correlate.
- Returns:
output – Transformed component.
- Return type:
- correlate1d(func, attr, *args, inplace=False, **kwargs)¶
Compute correlate1d for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.correlate1d.kwargs (misc) – Any additional named arguments to
scipy.ndimage.correlate1d.
- Returns:
output – Transformed component.
- Return type:
- crop(func, attr, *args, inplace=False, **kwargs)¶
Compute cropped array by crop_width along each dimension for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
crop.kwargs (misc) – Any additional named arguments to
crop.
- Returns:
output – Transformed component.
- Return type:
- distance_transform_bf(func, attr, *args, inplace=False, **kwargs)¶
Compute distance_transform_bf for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.distance_transform_bf.kwargs (misc) – Any additional named arguments to
scipy.ndimage.distance_transform_bf.
- Returns:
output – Transformed component.
- Return type:
- distance_transform_cdt(func, attr, *args, inplace=False, **kwargs)¶
Compute distance_transform_cdt for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.distance_transform_cdt.kwargs (misc) – Any additional named arguments to
scipy.ndimage.distance_transform_cdt.
- Returns:
output – Transformed component.
- Return type:
- distance_transform_edt(func, attr, *args, inplace=False, **kwargs)¶
Compute distance_transform_edt for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.distance_transform_edt.kwargs (misc) – Any additional named arguments to
scipy.ndimage.distance_transform_edt.
- Returns:
output – Transformed component.
- Return type:
- equals_attribute(attr, val, box=None, dtype=None, create=False)[source]¶
Set attribute values to a constant.
- Parameters:
attr (str) – Attribute to be modified.
multiplier (float) – Multiplier.
box (Sequence[int, int, int, int, int, int]) – (i1, i2, j1, j2, k1, k2) - Box in which attribute values should be set to a constant (attr[i1:i2, j1:j2, k1:k2]) = val), by default None.
dtype (type) – Type of created array.
create (bool) – If create==True attribute is created, in case it does not exist.
- Returns:
self
- Return type:
self.__class__
- extrema(func, attr, *args, inplace=False, **kwargs)¶
Compute extrema for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.extrema.kwargs (misc) – Any additional named arguments to
scipy.ndimage.extrema.
- Returns:
output – Transformed component.
- Return type:
- find_objects(func, attr, *args, inplace=False, **kwargs)¶
Compute find_objects for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.find_objects.kwargs (misc) – Any additional named arguments to
scipy.ndimage.find_objects.
- Returns:
output – Transformed component.
- Return type:
- flip(func, attr, *args, inplace=False, **kwargs)¶
Compute reversed order of elements in an array along the given axis for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
numpy.flip.kwargs (misc) – Any additional named arguments to
numpy.flip.
- Returns:
output – Transformed component.
- Return type:
- fourier_ellipsoid(func, attr, *args, inplace=False, **kwargs)¶
Compute fourier_ellipsoid for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.fourier_ellipsoid.kwargs (misc) – Any additional named arguments to
scipy.ndimage.fourier_ellipsoid.
- Returns:
output – Transformed component.
- Return type:
- fourier_gaussian(func, attr, *args, inplace=False, **kwargs)¶
Compute fourier_gaussian for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.fourier_gaussian.kwargs (misc) – Any additional named arguments to
scipy.ndimage.fourier_gaussian.
- Returns:
output – Transformed component.
- Return type:
- fourier_shift(func, attr, *args, inplace=False, **kwargs)¶
Compute fourier_shift for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.fourier_shift.kwargs (misc) – Any additional named arguments to
scipy.ndimage.fourier_shift.
- Returns:
output – Transformed component.
- Return type:
- fourier_uniform(func, attr, *args, inplace=False, **kwargs)¶
Compute fourier_uniform for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.fourier_uniform.kwargs (misc) – Any additional named arguments to
scipy.ndimage.fourier_uniform.
- Returns:
output – Transformed component.
- Return type:
- gaussian_filter(func, attr, *args, inplace=False, **kwargs)¶
Compute gaussian_filter for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.gaussian_filter.kwargs (misc) – Any additional named arguments to
scipy.ndimage.gaussian_filter.
- Returns:
output – Transformed component.
- Return type:
- gaussian_filter1d(func, attr, *args, inplace=False, **kwargs)¶
Compute gaussian_filter1d for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.gaussian_filter1d.kwargs (misc) – Any additional named arguments to
scipy.ndimage.gaussian_filter1d.
- Returns:
output – Transformed component.
- Return type:
- gaussian_gradient_magnitude(func, attr, *args, inplace=False, **kwargs)¶
Compute gaussian_gradient_magnitude for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.gaussian_gradient_magnitude.kwargs (misc) – Any additional named arguments to
scipy.ndimage.gaussian_gradient_magnitude.
- Returns:
output – Transformed component.
- Return type:
- gaussian_laplace(func, attr, *args, inplace=False, **kwargs)¶
Compute gaussian_laplace for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.gaussian_laplace.kwargs (misc) – Any additional named arguments to
scipy.ndimage.gaussian_laplace.
- Returns:
output – Transformed component.
- Return type:
- generic_filter(func, attr, *args, inplace=False, **kwargs)¶
Compute generic_filter for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.generic_filter.kwargs (misc) – Any additional named arguments to
scipy.ndimage.generic_filter.
- Returns:
output – Transformed component.
- Return type:
- generic_filter1d(func, attr, *args, inplace=False, **kwargs)¶
Compute generic_filter1d for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.generic_filter1d.kwargs (misc) – Any additional named arguments to
scipy.ndimage.generic_filter1d.
- Returns:
output – Transformed component.
- Return type:
- generic_gradient_magnitude(func, attr, *args, inplace=False, **kwargs)¶
Compute generic_gradient_magnitude for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.generic_gradient_magnitude.kwargs (misc) – Any additional named arguments to
scipy.ndimage.generic_gradient_magnitude.
- Returns:
output – Transformed component.
- Return type:
- generic_laplace(func, attr, *args, inplace=False, **kwargs)¶
Compute generic_laplace for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.generic_laplace.kwargs (misc) – Any additional named arguments to
scipy.ndimage.generic_laplace.
- Returns:
output – Transformed component.
- Return type:
- geometric_transform(func, attr, *args, inplace=False, **kwargs)¶
Compute geometric_transform for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.geometric_transform.kwargs (misc) – Any additional named arguments to
scipy.ndimage.geometric_transform.
- Returns:
output – Transformed component.
- Return type:
- gradient(func, attr, *args, inplace=False, **kwargs)¶
Compute gradient for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
numpy.gradient.kwargs (misc) – Any additional named arguments to
numpy.gradient.
- Returns:
output – Transformed component.
- Return type:
- grey_closing(func, attr, *args, inplace=False, **kwargs)¶
Compute grey_closing for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.grey_closing.kwargs (misc) – Any additional named arguments to
scipy.ndimage.grey_closing.
- Returns:
output – Transformed component.
- Return type:
- grey_dilation(func, attr, *args, inplace=False, **kwargs)¶
Compute grey_dilation for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.grey_dilation.kwargs (misc) – Any additional named arguments to
scipy.ndimage.grey_dilation.
- Returns:
output – Transformed component.
- Return type:
- grey_erosion(func, attr, *args, inplace=False, **kwargs)¶
Compute grey_erosion for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.grey_erosion.kwargs (misc) – Any additional named arguments to
scipy.ndimage.grey_erosion.
- Returns:
output – Transformed component.
- Return type:
- grey_opening(func, attr, *args, inplace=False, **kwargs)¶
Compute grey_opening for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.grey_opening.kwargs (misc) – Any additional named arguments to
scipy.ndimage.grey_opening.
- Returns:
output – Transformed component.
- Return type:
- histogram(func, attr, *args, inplace=False, **kwargs)¶
Compute histogram for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.histogram.kwargs (misc) – Any additional named arguments to
scipy.ndimage.histogram.
- Returns:
output – Transformed component.
- Return type:
- label(func, attr, *args, inplace=False, **kwargs)¶
Compute label for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.label.kwargs (misc) – Any additional named arguments to
scipy.ndimage.label.
- Returns:
output – Transformed component.
- Return type:
- labeled_comprehension(func, attr, *args, inplace=False, **kwargs)¶
Compute labeled_comprehension for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.labeled_comprehension.kwargs (misc) – Any additional named arguments to
scipy.ndimage.labeled_comprehension.
- Returns:
output – Transformed component.
- Return type:
- laplace(func, attr, *args, inplace=False, **kwargs)¶
Compute laplace for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.laplace.kwargs (misc) – Any additional named arguments to
scipy.ndimage.laplace.
- Returns:
output – Transformed component.
- Return type:
- load(path_or_buffer, **kwargs)[source]¶
Load data from a file or buffer.
- Parameters:
- Returns:
comp – BaseComponent with loaded attributes.
- Return type:
- map_coordinates(func, attr, *args, inplace=False, **kwargs)¶
Compute map_coordinates for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.map_coordinates.kwargs (misc) – Any additional named arguments to
scipy.ndimage.map_coordinates.
- Returns:
output – Transformed component.
- Return type:
- maximum(func, attr, *args, inplace=False, **kwargs)¶
Compute maximum for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.maximum.kwargs (misc) – Any additional named arguments to
scipy.ndimage.maximum.
- Returns:
output – Transformed component.
- Return type:
- maximum_filter(func, attr, *args, inplace=False, **kwargs)¶
Compute maximum_filter for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.maximum_filter.kwargs (misc) – Any additional named arguments to
scipy.ndimage.maximum_filter.
- Returns:
output – Transformed component.
- Return type:
- maximum_filter1d(func, attr, *args, inplace=False, **kwargs)¶
Compute maximum_filter1d for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.maximum_filter1d.kwargs (misc) – Any additional named arguments to
scipy.ndimage.maximum_filter1d.
- Returns:
output – Transformed component.
- Return type:
- maximum_position(func, attr, *args, inplace=False, **kwargs)¶
Compute maximum_position for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.maximum_position.kwargs (misc) – Any additional named arguments to
scipy.ndimage.maximum_position.
- Returns:
output – Transformed component.
- Return type:
- mean(func, attr, *args, inplace=False, **kwargs)¶
Compute mean for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.mean.kwargs (misc) – Any additional named arguments to
scipy.ndimage.mean.
- Returns:
output – Transformed component.
- Return type:
- median(func, attr, *args, inplace=False, **kwargs)¶
Compute median for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.median.kwargs (misc) – Any additional named arguments to
scipy.ndimage.median.
- Returns:
output – Transformed component.
- Return type:
- median_filter(func, attr, *args, inplace=False, **kwargs)¶
Compute median_filter for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.median_filter.kwargs (misc) – Any additional named arguments to
scipy.ndimage.median_filter.
- Returns:
output – Transformed component.
- Return type:
- minimum(func, attr, *args, inplace=False, **kwargs)¶
Compute minimum for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.minimum.kwargs (misc) – Any additional named arguments to
scipy.ndimage.minimum.
- Returns:
output – Transformed component.
- Return type:
- minimum_filter(func, attr, *args, inplace=False, **kwargs)¶
Compute minimum_filter for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.minimum_filter.kwargs (misc) – Any additional named arguments to
scipy.ndimage.minimum_filter.
- Returns:
output – Transformed component.
- Return type:
- minimum_filter1d(func, attr, *args, inplace=False, **kwargs)¶
Compute minimum_filter1d for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.minimum_filter1d.kwargs (misc) – Any additional named arguments to
scipy.ndimage.minimum_filter1d.
- Returns:
output – Transformed component.
- Return type:
- minimum_position(func, attr, *args, inplace=False, **kwargs)¶
Compute minimum_position for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.minimum_position.kwargs (misc) – Any additional named arguments to
scipy.ndimage.minimum_position.
- Returns:
output – Transformed component.
- Return type:
- morphological_gradient(func, attr, *args, inplace=False, **kwargs)¶
Compute morphological_gradient for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.morphological_gradient.kwargs (misc) – Any additional named arguments to
scipy.ndimage.morphological_gradient.
- Returns:
output – Transformed component.
- Return type:
- morphological_laplace(func, attr, *args, inplace=False, **kwargs)¶
Compute morphological_laplace for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.morphological_laplace.kwargs (misc) – Any additional named arguments to
scipy.ndimage.morphological_laplace.
- Returns:
output – Transformed component.
- Return type:
- multiply_attribute(attr, multiplier, box)[source]¶
Multiply attribute by a constant.
- Parameters:
- Returns:
self
- Return type:
self.__class__
- pad(func, attr, *args, inplace=False, **kwargs)¶
Compute padded array for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
numpy.pad.kwargs (misc) – Any additional named arguments to
numpy.pad.
- Returns:
output – Transformed component.
- Return type:
- pad_na(attr, fill_na=0.0, inplace=True)[source]¶
Add dummy cells into the state vector in the positions of non-active cells if necessary.
- Parameters:
- Returns:
output
- Return type:
component if inplace else padded attribute.
- percentile_filter(func, attr, *args, inplace=False, **kwargs)¶
Compute percentile_filter for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.percentile_filter.kwargs (misc) – Any additional named arguments to
scipy.ndimage.percentile_filter.
- Returns:
output – Transformed component.
- Return type:
- prewitt(func, attr, *args, inplace=False, **kwargs)¶
Compute prewitt for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.prewitt.kwargs (misc) – Any additional named arguments to
scipy.ndimage.prewitt.
- Returns:
output – Transformed component.
- Return type:
- random_noise(func, attr, *args, inplace=False, **kwargs)¶
Compute array with added random noise of various types for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
random_noise.kwargs (misc) – Any additional named arguments to
random_noise.
- Returns:
output – Transformed component.
- Return type:
- rank_filter(func, attr, *args, inplace=False, **kwargs)¶
Compute rank_filter for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.rank_filter.kwargs (misc) – Any additional named arguments to
scipy.ndimage.rank_filter.
- Returns:
output – Transformed component.
- Return type:
- ravel(attr, **kwargs)[source]¶
Returns ravel representation for attributes with pre-defined ravel transformation.
- rescale(func, attr, *args, inplace=False, **kwargs)¶
Compute rescale for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
skimage.transform.rescale.kwargs (misc) – Any additional named arguments to
skimage.transform.rescale.
- Returns:
output – Transformed component.
- Return type:
- resize(func, attr, *args, inplace=False, **kwargs)¶
Compute resize for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
skimage.transform.resize.kwargs (misc) – Any additional named arguments to
skimage.transform.resize.
- Returns:
output – Transformed component.
- Return type:
- rot90(func, attr, *args, inplace=False, **kwargs)¶
Compute rotated an array by 90 degrees in the plane specified by axes for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
numpy.rot90.kwargs (misc) – Any additional named arguments to
numpy.rot90.
- Returns:
output – Transformed component.
- Return type:
- rotate(func, attr, *args, inplace=False, **kwargs)¶
Compute rotate for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.rotate.kwargs (misc) – Any additional named arguments to
scipy.ndimage.rotate.
- Returns:
output – Transformed component.
- Return type:
- shift(func, attr, *args, inplace=False, **kwargs)¶
Compute shift for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.shift.kwargs (misc) – Any additional named arguments to
scipy.ndimage.shift.
- Returns:
output – Transformed component.
- Return type:
- sobel(func, attr, *args, inplace=False, **kwargs)¶
Compute sobel for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.sobel.kwargs (misc) – Any additional named arguments to
scipy.ndimage.sobel.
- Returns:
output – Transformed component.
- Return type:
- spline_filter(func, attr, *args, inplace=False, **kwargs)¶
Compute spline_filter for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.spline_filter.kwargs (misc) – Any additional named arguments to
scipy.ndimage.spline_filter.
- Returns:
output – Transformed component.
- Return type:
- spline_filter1d(func, attr, *args, inplace=False, **kwargs)¶
Compute spline_filter1d for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.spline_filter1d.kwargs (misc) – Any additional named arguments to
scipy.ndimage.spline_filter1d.
- Returns:
output – Transformed component.
- Return type:
- standard_deviation(func, attr, *args, inplace=False, **kwargs)¶
Compute standard_deviation for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.standard_deviation.kwargs (misc) – Any additional named arguments to
scipy.ndimage.standard_deviation.
- Returns:
output – Transformed component.
- Return type:
- sum(func, attr, *args, inplace=False, **kwargs)¶
Compute sum for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.sum.kwargs (misc) – Any additional named arguments to
scipy.ndimage.sum.
- Returns:
output – Transformed component.
- Return type:
- sum_labels(func, attr, *args, inplace=False, **kwargs)¶
Compute sum_labels for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.sum_labels.kwargs (misc) – Any additional named arguments to
scipy.ndimage.sum_labels.
- Returns:
output – Transformed component.
- Return type:
- uniform_filter(func, attr, *args, inplace=False, **kwargs)¶
Compute uniform_filter for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.uniform_filter.kwargs (misc) – Any additional named arguments to
scipy.ndimage.uniform_filter.
- Returns:
output – Transformed component.
- Return type:
- uniform_filter1d(func, attr, *args, inplace=False, **kwargs)¶
Compute uniform_filter1d for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.uniform_filter1d.kwargs (misc) – Any additional named arguments to
scipy.ndimage.uniform_filter1d.
- Returns:
output – Transformed component.
- Return type:
- variance(func, attr, *args, inplace=False, **kwargs)¶
Compute variance for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.variance.kwargs (misc) – Any additional named arguments to
scipy.ndimage.variance.
- Returns:
output – Transformed component.
- Return type:
- watershed_ift(func, attr, *args, inplace=False, **kwargs)¶
Compute watershed_ift for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.watershed_ift.kwargs (misc) – Any additional named arguments to
scipy.ndimage.watershed_ift.
- Returns:
output – Transformed component.
- Return type:
- white_tophat(func, attr, *args, inplace=False, **kwargs)¶
Compute white_tophat for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.white_tophat.kwargs (misc) – Any additional named arguments to
scipy.ndimage.white_tophat.
- Returns:
output – Transformed component.
- Return type:
- zoom(func, attr, *args, inplace=False, **kwargs)¶
Compute zoom for given data.
- Parameters:
attr (str, optional) – Attribute to get the data from.
args (misc) – Any additional positional arguments to
scipy.ndimage.zoom.kwargs (misc) – Any additional named arguments to
scipy.ndimage.zoom.
- Returns:
output – Transformed component.
- Return type: