# -*- coding: utf-8 -*-# Copyright (C) 2022-2023 by SCICO Developers# All rights reserved. BSD 3-clause License.# This file is part of the SCICO package. Details of the copyright and# user license can be found in the 'LICENSE' file distributed with the# package."""Definition of typed dictionaries for training data."""importsysfromtypingimportOptional,Unionifsys.version_info>=(3,8):fromtypingimportTypedDict# pylint: disable=no-name-in-moduleelse:fromtyping_extensionsimportTypedDictfromscico.numpyimportArrayfromscico.typingimportShape
[docs]classCTDataSetDict(TypedDict):"""Definition of the structure to store generated CT data."""img:Array# original imagesino:Array# sinogramfbp:Array# filtered back projection
[docs]classConfigImageSetDict(TypedDict):"""Definition of the configuration for image data preprocessing."""output_size:Union[int,Shape]stride:Optional[Union[Shape,int]]multi:boolaugment:boolrun_gray:boolnum_img:inttest_num_img:intdata_mode:strnoise_level:floatnoise_range:booltest_split:floatseed:float