nrtk.impls.perturb_image_factory.generic.step
Defines StepPerturbImageFactory, which creates PerturbImage instances varying a parameter over a range in steps.
- Classes:
StepPerturbImageFactory: Factory for producing PerturbImage instances with a specific parameter (theta_key) varying over a specified range.
- Dependencies:
math for range calculations.
nrtk.interfaces for the PerturbImage and PerturbImageFactory interfaces.
- Usage:
Instantiate StepPerturbImageFactory with a PerturbImage type, a theta_key to vary, and the start, stop, and step values for the parameter range. This factory can then be used to generate perturbed image instances with controlled variations.
- Example:
- factory = StepPerturbImageFactory(
perturber=SomePerturbImageClass, theta_key=”parameter”, start=0.0, stop=10.0, step=1.0, to_int=False
) theta_values = factory.thetas # Access generated range of parameter values
Classes
Simple PerturbImageFactory implementation to step through the given range of values. |