MatchingMemoryUsage#
- class MatchingMemoryUsage(fast_shape, ft_shape, float_nbytes, complex_nbytes, integer_nbytes)[source]#
Bases:
ABC
Class specification for estimating the memory requirements of template matching.
- Parameters:
- fast_shapetuple of int
Shape of the real array.
- ft_shapetuple of int
Shape of the complex array.
- float_nbytesint
Number of bytes of the used float, e.g. 4 for float32.
- complex_nbytesint
Number of bytes of the used complex, e.g. 8 for complex64.
- integer_nbytesint
Number of bytes of the used integer, e.g. 4 for int32.
- Attributes:
- real_array_sizeint
Number of elements in real array.
- complex_array_sizeint
Number of elements in complex array.
- float_nbytesint
Number of bytes of the used float, e.g. 4 for float32.
- complex_nbytesint
Number of bytes of the used complex, e.g. 8 for complex64.
- integer_nbytesint
Number of bytes of the used integer, e.g. 4 for int32.
Methods
base_usage():
Returns the base memory usage in bytes.
per_fork():
Returns the memory usage in bytes per fork.
Methods
Return the base memory usage in bytes.
Return the memory usage per fork in bytes.