ImagePreprocessorIOHandlers

scalismo.statisticalmodel.asm.ImagePreprocessorIOHandlers$

IO Handlers for the ImagePreprocessor type.

Handlers for the built-in IdentityImagePreprocessor and GaussianGradientImagePreprocessor are pre-registered.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Inherited methods

def find(identifier: String): Try[IO]

Find the handler corresponding to the given IO identifier.

Find the handler corresponding to the given IO identifier.

Attributes

identifier

an IO identifier.

Returns:

the corresponding IO handler, or a Failure if no handler was registered for the identifier.

Inherited from:
IOHandlers
def load(h5File: StatisticalModelReader, path: HDFPath): Try[T]

Convenience method to load an object from an HDF5 group. This method loads the IO metadata from the file, then uses the list of registered handlers to automatically find the corresponding IO handler, and finally uses that handler to load the object.

Convenience method to load an object from an HDF5 group. This method loads the IO metadata from the file, then uses the list of registered handlers to automatically find the corresponding IO handler, and finally uses that handler to load the object.

Attributes

h5File

the HDF5 file containing the group.

h5Group

the HDF5 group within the file to load the object from.

Returns:

the object corresponding to the information in the HDF5 group.

Inherited from:
IOHandlers

Register an IO handler to make it available for loading and saving object instances.

Register an IO handler to make it available for loading and saving object instances.

Attributes

handler

the IO Handler to register.

Inherited from:
IOHandlers
def save(t: ImagePreprocessor, h5File: HDF5Writer, path: HDFPath): Try[Unit]

Convenience method to store an object to an HDF5 group. This method uses the list of registered handlers to automatically find the correct IO handler, then saves the object's metadata and uses the IO handler to save the object.

Convenience method to store an object to an HDF5 group. This method uses the list of registered handlers to automatically find the correct IO handler, then saves the object's metadata and uses the IO handler to save the object.

Attributes

h5File

the HDF5 file containing the group.

h5Group

the HDF5 group to save the object to.

t

the object to save.

Returns:

Success or Failure

Inherited from:
IOHandlers