class IOHandlers[T <: HasIOMetadata, IO <: IOHandler[T]] extends AnyRef
An object representing a collection of IO handlers providing load/save capabilities for a given object type. If there are multiple implementations for the given type (e.g., multiple image preprocessor implementations, multiple feature extractor implementations), they are distinguished (and uniquely identified) by their IO Identifiers (see HasIOIdentifier).
For every supported IO Identifier, a corresponding IOHandler must be registered using the register()
method. The identifiers/handlers that come
built into scalismo are automatically registered and available, but manual registration is required for user-defined handlers.
- T
the type of objects that can be loaded/saved
- IO
the type of the corresponding IO handlers
- Alphabetic
- By Inheritance
- IOHandlers
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new IOHandlers()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def find(identifier: String): Try[IO]
Find the handler corresponding to the given IO identifier.
Find the handler corresponding to the given IO identifier.
- identifier
an IO identifier.
- returns
the corresponding IO handler, or a Failure if no handler was registered for the identifier.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def load(h5File: HDF5File, h5Group: Group): Try[T]
Convenience method to load an object from an HDF5 group.
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.
- 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.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def register(handler: IO): Unit
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.
- handler
the IO Handler to register.
- def save(t: T, h5File: HDF5File, h5Group: Group): Try[Unit]
Convenience method to store an object to an HDF5 group.
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.
- t
the object to save.
- h5File
the HDF5 file containing the group.
- h5Group
the HDF5 group to save the object to.
- returns
Success or Failure
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()