@@ -10,38 +10,29 @@ namespace TensorStack.Extractors.Common
1010 /// </summary>
1111 public record ExtractorOptions : IRunOptions
1212 {
13- /// <summary>
14- /// Initializes a new instance of the <see cref="ExtractorOptions"/> class.
15- /// </summary>
16- /// <param name="tileMode">Enable/Disable TileMode, splitting image into smaller tiles to save memory.</param>
17- /// <param name="maxTileSize">The maximum size of the tile for TileMode</param>
18- /// <param name="tileOverlap">The tile overlap in pixels to avoid visible seams.</param>
19- public ExtractorOptions ( bool mergeInput = false , TileMode tileMode = TileMode . None , int maxTileSize = 512 , int tileOverlap = 16 )
20- {
21- MergeInput = mergeInput ;
22- TileMode = tileMode ;
23- MaxTileSize = maxTileSize ;
24- TileOverlap = tileOverlap ;
25- }
26-
2713 /// <summary>
2814 /// Megre the input and output result into a new tensor.
2915 /// </summary>
30- public bool MergeInput { get ; set ; }
16+ public bool MergeInput { get ; init ; }
3117
3218 /// <summary>
3319 /// Enable/Disable TileMode, splitting image into smaller tiles to save memory.
3420 /// </summary>
35- public TileMode TileMode { get ; }
21+ public TileMode TileMode { get ; init ; }
3622
3723 /// <summary>
3824 /// The maximum size of the tile.
3925 /// </summary>
40- public int MaxTileSize { get ; }
26+ public int MaxTileSize { get ; init ; }
4127
4228 /// <summary>
4329 /// The tile overlap in pixels to avoid visible seams.
4430 /// </summary>
45- public int TileOverlap { get ; }
31+ public int TileOverlap { get ; init ; }
32+
33+ /// <summary>
34+ /// Gets a value indicating whether the output is inverted.
35+ /// </summary>
36+ public bool IsInverted { get ; init ; }
4637 }
4738}
0 commit comments