giatools.util¶
Copyright 2017-2025 Leonid Kostrykin, Biomedical Computer Vision Group, Heidelberg University.
Distributed under the MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
- giatools.util.convert_image_to_format_of(image, format_image)¶
Convert the first image to the format of the second image.
- giatools.util.distance_to_external_frame()¶
Returns the number of stack levels until the first frame of the user’s code.
- giatools.util.move_char(s: str, pos_src: int, pos_dst: int) str¶
- giatools.util.silent(func)¶
Decorator that mutes the standard error stream of the decorated function.
- giatools.util.str_without_positions(s: str, positions: Iterable[int]) str¶
Returns the string s with the characters removed from it.