spine.data.larcv.Meta
- spine.data.larcv.Meta
Methods
__init__(lower, upper, size, count)as_dict([lite, include_derived])Returns the data class as dictionary of (key, value) pairs.
attr_names([include_derived, ...])Return the names of valid attributes on this data class.
from_dict(cls_dict)Builds and returns an object of the class from a dictionary of attributes.
from_larcv(meta)Factory function for creating ImageMeta from LArCV metadata.
index(coords)Unique pix associated with individual axis indexes.
inner_mask(coords)Computes a boolean mask of which coordinates are within the image bounds.
scalar_dict([attrs, lengths, lite])Returns the data class attributes as a dictionary of scalars.
set_precision([precision])Casts all the vector attributes to a different precision.
shift_indexes(shifts)Apply offsets to index attributes in place.
to_cm(coords[, center])Converts pixel coordinates to detector coordinates in cm.
to_px(coords[, floor])Converts detector coordinates in cm to pixel coordinates.
value_with_units(attr)Fetch an attribute value with its documented units.
Attributes
dimensionNumber of dimensions in the image.
enum_attrsFetches HDF5-friendly enumerator descriptors for enum-backed fields.
enum_dictsFetches the dictionary of enumerated attributes and their enumerator descriptors.
enum_valuesFetches reverse enum lookups from stored values to symbolic names.
field_unitsFetches the documented units for each field.
index_attrsReturn the tuple of index-bearing attributes.
index_multipliersGet the index multipliers for converting between pixel coordinates and unique pixel indices.
num_elementsTotal number of pixel in the image.
loweruppersizecountalias of
ImageMeta3D