22 references to Anchor
Microsoft.ML.ImageAnalytics (22)
ImageResizer.cs (19)
49public ImageResizingEstimator.Anchor? CropAnchor;
85public ImageResizingEstimator.Anchor CropAnchor = ImageResizingEstimator.Defaults.CropAnchor;
128ImageResizingEstimator.Anchor cropAnchor = ImageResizingEstimator.Anchor.Center)
208var anchor = (ImageResizingEstimator.Anchor)ctx.Reader.ReadByte();
209Host.CheckDecode(Enum.IsDefined(typeof(ImageResizingEstimator.Anchor), anchor));
246Contracts.Assert((ImageResizingEstimator.Anchor)(byte)col.Anchor == col.Anchor);
316ImageResizingEstimator.Anchor.Top => ImageResizeMode.CropAnchorTop,
317ImageResizingEstimator.Anchor.Bottom => ImageResizeMode.CropAnchorBottom,
318ImageResizingEstimator.Anchor.Left => ImageResizeMode.CropAnchorLeft,
319ImageResizingEstimator.Anchor.Right => ImageResizeMode.CropAnchorRight,
364/// <seealso cref="ImageEstimatorsCatalog.ResizeImages(TransformsCatalog, string, int, int, string, ResizingKind, Anchor)"/>
370public const Anchor CropAnchor = Anchor.Center;
432public readonly Anchor Anchor;
451Anchor anchor = Defaults.CropAnchor)
457Contracts.CheckUserArg(Enum.IsDefined(typeof(Anchor), anchor), nameof(anchor));
485Anchor cropAnchor = Defaults.CropAnchor)