// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: mediapipe/util/tracking/motion_models.proto // #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Mediapipe { /// Holder for reflection information generated from mediapipe/util/tracking/motion_models.proto public static partial class MotionModelsReflection { #region Descriptor /// File descriptor for mediapipe/util/tracking/motion_models.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static MotionModelsReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CittZWRpYXBpcGUvdXRpbC90cmFja2luZy9tb3Rpb25fbW9kZWxzLnByb3Rv", "EgltZWRpYXBpcGUiMAoQVHJhbnNsYXRpb25Nb2RlbBINCgJkeBgBIAEoAjoB", "MBINCgJkeRgCIAEoAjoBMCJWCg9TaW1pbGFyaXR5TW9kZWwSDQoCZHgYASAB", "KAI6ATASDQoCZHkYAiABKAI6ATASEAoFc2NhbGUYAyABKAI6ATESEwoIcm90", "YXRpb24YBCABKAI6ATAiUQoVTGluZWFyU2ltaWxhcml0eU1vZGVsEg0KAmR4", "GAEgASgCOgEwEg0KAmR5GAIgASgCOgEwEgwKAWEYAyABKAI6ATESDAoBYhgE", "IAEoAjoBMCJjCgtBZmZpbmVNb2RlbBINCgJkeBgBIAEoAjoBMBINCgJkeRgC", "IAEoAjoBMBIMCgFhGAMgASgCOgExEgwKAWIYBCABKAI6ATASDAoBYxgFIAEo", "AjoBMBIMCgFkGAYgASgCOgExIpQBCgpIb21vZ3JhcGh5Eg8KBGhfMDAYASAB", "KAI6ATESDwoEaF8wMRgCIAEoAjoBMBIPCgRoXzAyGAMgASgCOgEwEg8KBGhf", "MTAYBCABKAI6ATASDwoEaF8xMRgFIAEoAjoBMRIPCgRoXzEyGAYgASgCOgEw", "Eg8KBGhfMjAYByABKAI6ATASDwoEaF8yMRgIIAEoAjoBMCJKChdNaXh0dXJl", "TGluZWFyU2ltaWxhcml0eRIvCgVtb2RlbBgBIAMoCzIgLm1lZGlhcGlwZS5M", "aW5lYXJTaW1pbGFyaXR5TW9kZWwiNgoNTWl4dHVyZUFmZmluZRIlCgVtb2Rl", "bBgBIAMoCzIWLm1lZGlhcGlwZS5BZmZpbmVNb2RlbCLQAQoRTWl4dHVyZUhv", "bW9ncmFwaHkSJAoFbW9kZWwYASADKAsyFS5tZWRpYXBpcGUuSG9tb2dyYXBo", "eRI+CgNkb2YYAiABKA4yKC5tZWRpYXBpcGUuTWl4dHVyZUhvbW9ncmFwaHku", "VmFyaWFibGVET0Y6B0FMTF9ET0YiVQoLVmFyaWFibGVET0YSCwoHQUxMX0RP", "RhAAEhMKD1RSQU5TTEFUSU9OX0RPRhABEhUKEVNLRVdfUk9UQVRJT05fRE9G", "EAISDQoJQ09OU1RfRE9GEAM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TranslationModel), global::Mediapipe.TranslationModel.Parser, new[]{ "Dx", "Dy" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.SimilarityModel), global::Mediapipe.SimilarityModel.Parser, new[]{ "Dx", "Dy", "Scale", "Rotation" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.LinearSimilarityModel), global::Mediapipe.LinearSimilarityModel.Parser, new[]{ "Dx", "Dy", "A", "B" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.AffineModel), global::Mediapipe.AffineModel.Parser, new[]{ "Dx", "Dy", "A", "B", "C", "D" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Homography), global::Mediapipe.Homography.Parser, new[]{ "H00", "H01", "H02", "H10", "H11", "H12", "H20", "H21" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MixtureLinearSimilarity), global::Mediapipe.MixtureLinearSimilarity.Parser, new[]{ "Model" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MixtureAffine), global::Mediapipe.MixtureAffine.Parser, new[]{ "Model" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MixtureHomography), global::Mediapipe.MixtureHomography.Parser, new[]{ "Model", "Dof" }, null, new[]{ typeof(global::Mediapipe.MixtureHomography.Types.VariableDOF) }, null, null) })); } #endregion } #region Messages /// /// Simple translational model: /// I * x + [dx; dy] with I being 2x2 identity transform. /// public sealed partial class TranslationModel : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TranslationModel()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TranslationModel() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TranslationModel(TranslationModel other) : this() { _hasBits0 = other._hasBits0; dx_ = other.dx_; dy_ = other.dy_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TranslationModel Clone() { return new TranslationModel(this); } /// Field number for the "dx" field. public const int DxFieldNumber = 1; private readonly static float DxDefaultValue = 0F; private float dx_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Dx { get { if ((_hasBits0 & 1) != 0) { return dx_; } else { return DxDefaultValue; } } set { _hasBits0 |= 1; dx_ = value; } } /// Gets whether the "dx" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasDx { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "dx" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearDx() { _hasBits0 &= ~1; } /// Field number for the "dy" field. public const int DyFieldNumber = 2; private readonly static float DyDefaultValue = 0F; private float dy_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Dy { get { if ((_hasBits0 & 2) != 0) { return dy_; } else { return DyDefaultValue; } } set { _hasBits0 |= 2; dy_ = value; } } /// Gets whether the "dy" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasDy { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "dy" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearDy() { _hasBits0 &= ~2; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TranslationModel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TranslationModel other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dx, other.Dx)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dy, other.Dy)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HasDx) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dx); if (HasDy) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dy); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HasDx) { output.WriteRawTag(13); output.WriteFloat(Dx); } if (HasDy) { output.WriteRawTag(21); output.WriteFloat(Dy); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasDx) { output.WriteRawTag(13); output.WriteFloat(Dx); } if (HasDy) { output.WriteRawTag(21); output.WriteFloat(Dy); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HasDx) { size += 1 + 4; } if (HasDy) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TranslationModel other) { if (other == null) { return; } if (other.HasDx) { Dx = other.Dx; } if (other.HasDy) { Dy = other.Dy; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { Dx = input.ReadFloat(); break; } case 21: { Dy = input.ReadFloat(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 13: { Dx = input.ReadFloat(); break; } case 21: { Dy = input.ReadFloat(); break; } } } } #endif } /// /// Non-linear similarity model (w.r.t. to its parametrization). /// c_r := cos(rotation); /// s_r := sin(rotation); /// Transformation applied to x: /// [scale 0; * [c_r -s_r; * x + [dx; /// 0 scale] s_r c_r] dy] /// public sealed partial class SimilarityModel : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SimilarityModel()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SimilarityModel() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SimilarityModel(SimilarityModel other) : this() { _hasBits0 = other._hasBits0; dx_ = other.dx_; dy_ = other.dy_; scale_ = other.scale_; rotation_ = other.rotation_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SimilarityModel Clone() { return new SimilarityModel(this); } /// Field number for the "dx" field. public const int DxFieldNumber = 1; private readonly static float DxDefaultValue = 0F; private float dx_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Dx { get { if ((_hasBits0 & 1) != 0) { return dx_; } else { return DxDefaultValue; } } set { _hasBits0 |= 1; dx_ = value; } } /// Gets whether the "dx" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasDx { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "dx" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearDx() { _hasBits0 &= ~1; } /// Field number for the "dy" field. public const int DyFieldNumber = 2; private readonly static float DyDefaultValue = 0F; private float dy_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Dy { get { if ((_hasBits0 & 2) != 0) { return dy_; } else { return DyDefaultValue; } } set { _hasBits0 |= 2; dy_ = value; } } /// Gets whether the "dy" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasDy { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "dy" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearDy() { _hasBits0 &= ~2; } /// Field number for the "scale" field. public const int ScaleFieldNumber = 3; private readonly static float ScaleDefaultValue = 1F; private float scale_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Scale { get { if ((_hasBits0 & 4) != 0) { return scale_; } else { return ScaleDefaultValue; } } set { _hasBits0 |= 4; scale_ = value; } } /// Gets whether the "scale" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasScale { get { return (_hasBits0 & 4) != 0; } } /// Clears the value of the "scale" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearScale() { _hasBits0 &= ~4; } /// Field number for the "rotation" field. public const int RotationFieldNumber = 4; private readonly static float RotationDefaultValue = 0F; private float rotation_; /// /// angle in [-pi, pi]. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Rotation { get { if ((_hasBits0 & 8) != 0) { return rotation_; } else { return RotationDefaultValue; } } set { _hasBits0 |= 8; rotation_ = value; } } /// Gets whether the "rotation" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasRotation { get { return (_hasBits0 & 8) != 0; } } /// Clears the value of the "rotation" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearRotation() { _hasBits0 &= ~8; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SimilarityModel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SimilarityModel other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dx, other.Dx)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dy, other.Dy)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Scale, other.Scale)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Rotation, other.Rotation)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HasDx) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dx); if (HasDy) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dy); if (HasScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Scale); if (HasRotation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rotation); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HasDx) { output.WriteRawTag(13); output.WriteFloat(Dx); } if (HasDy) { output.WriteRawTag(21); output.WriteFloat(Dy); } if (HasScale) { output.WriteRawTag(29); output.WriteFloat(Scale); } if (HasRotation) { output.WriteRawTag(37); output.WriteFloat(Rotation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasDx) { output.WriteRawTag(13); output.WriteFloat(Dx); } if (HasDy) { output.WriteRawTag(21); output.WriteFloat(Dy); } if (HasScale) { output.WriteRawTag(29); output.WriteFloat(Scale); } if (HasRotation) { output.WriteRawTag(37); output.WriteFloat(Rotation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HasDx) { size += 1 + 4; } if (HasDy) { size += 1 + 4; } if (HasScale) { size += 1 + 4; } if (HasRotation) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SimilarityModel other) { if (other == null) { return; } if (other.HasDx) { Dx = other.Dx; } if (other.HasDy) { Dy = other.Dy; } if (other.HasScale) { Scale = other.Scale; } if (other.HasRotation) { Rotation = other.Rotation; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { Dx = input.ReadFloat(); break; } case 21: { Dy = input.ReadFloat(); break; } case 29: { Scale = input.ReadFloat(); break; } case 37: { Rotation = input.ReadFloat(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 13: { Dx = input.ReadFloat(); break; } case 21: { Dy = input.ReadFloat(); break; } case 29: { Scale = input.ReadFloat(); break; } case 37: { Rotation = input.ReadFloat(); break; } } } } #endif } /// /// Linear similarity model: /// [a -b; * x + [dx; /// b a] dy] /// public sealed partial class LinearSimilarityModel : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LinearSimilarityModel()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LinearSimilarityModel() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LinearSimilarityModel(LinearSimilarityModel other) : this() { _hasBits0 = other._hasBits0; dx_ = other.dx_; dy_ = other.dy_; a_ = other.a_; b_ = other.b_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LinearSimilarityModel Clone() { return new LinearSimilarityModel(this); } /// Field number for the "dx" field. public const int DxFieldNumber = 1; private readonly static float DxDefaultValue = 0F; private float dx_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Dx { get { if ((_hasBits0 & 1) != 0) { return dx_; } else { return DxDefaultValue; } } set { _hasBits0 |= 1; dx_ = value; } } /// Gets whether the "dx" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasDx { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "dx" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearDx() { _hasBits0 &= ~1; } /// Field number for the "dy" field. public const int DyFieldNumber = 2; private readonly static float DyDefaultValue = 0F; private float dy_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Dy { get { if ((_hasBits0 & 2) != 0) { return dy_; } else { return DyDefaultValue; } } set { _hasBits0 |= 2; dy_ = value; } } /// Gets whether the "dy" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasDy { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "dy" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearDy() { _hasBits0 &= ~2; } /// Field number for the "a" field. public const int AFieldNumber = 3; private readonly static float ADefaultValue = 1F; private float a_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float A { get { if ((_hasBits0 & 4) != 0) { return a_; } else { return ADefaultValue; } } set { _hasBits0 |= 4; a_ = value; } } /// Gets whether the "a" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasA { get { return (_hasBits0 & 4) != 0; } } /// Clears the value of the "a" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearA() { _hasBits0 &= ~4; } /// Field number for the "b" field. public const int BFieldNumber = 4; private readonly static float BDefaultValue = 0F; private float b_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float B { get { if ((_hasBits0 & 8) != 0) { return b_; } else { return BDefaultValue; } } set { _hasBits0 |= 8; b_ = value; } } /// Gets whether the "b" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasB { get { return (_hasBits0 & 8) != 0; } } /// Clears the value of the "b" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearB() { _hasBits0 &= ~8; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LinearSimilarityModel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LinearSimilarityModel other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dx, other.Dx)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dy, other.Dy)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HasDx) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dx); if (HasDy) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dy); if (HasA) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A); if (HasB) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HasDx) { output.WriteRawTag(13); output.WriteFloat(Dx); } if (HasDy) { output.WriteRawTag(21); output.WriteFloat(Dy); } if (HasA) { output.WriteRawTag(29); output.WriteFloat(A); } if (HasB) { output.WriteRawTag(37); output.WriteFloat(B); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasDx) { output.WriteRawTag(13); output.WriteFloat(Dx); } if (HasDy) { output.WriteRawTag(21); output.WriteFloat(Dy); } if (HasA) { output.WriteRawTag(29); output.WriteFloat(A); } if (HasB) { output.WriteRawTag(37); output.WriteFloat(B); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HasDx) { size += 1 + 4; } if (HasDy) { size += 1 + 4; } if (HasA) { size += 1 + 4; } if (HasB) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(LinearSimilarityModel other) { if (other == null) { return; } if (other.HasDx) { Dx = other.Dx; } if (other.HasDy) { Dy = other.Dy; } if (other.HasA) { A = other.A; } if (other.HasB) { B = other.B; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { Dx = input.ReadFloat(); break; } case 21: { Dy = input.ReadFloat(); break; } case 29: { A = input.ReadFloat(); break; } case 37: { B = input.ReadFloat(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 13: { Dx = input.ReadFloat(); break; } case 21: { Dy = input.ReadFloat(); break; } case 29: { A = input.ReadFloat(); break; } case 37: { B = input.ReadFloat(); break; } } } } #endif } /// /// Affine according to /// ( [a b * x + [dx; /// ( c d] dy] /// public sealed partial class AffineModel : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AffineModel()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AffineModel() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AffineModel(AffineModel other) : this() { _hasBits0 = other._hasBits0; dx_ = other.dx_; dy_ = other.dy_; a_ = other.a_; b_ = other.b_; c_ = other.c_; d_ = other.d_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AffineModel Clone() { return new AffineModel(this); } /// Field number for the "dx" field. public const int DxFieldNumber = 1; private readonly static float DxDefaultValue = 0F; private float dx_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Dx { get { if ((_hasBits0 & 1) != 0) { return dx_; } else { return DxDefaultValue; } } set { _hasBits0 |= 1; dx_ = value; } } /// Gets whether the "dx" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasDx { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "dx" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearDx() { _hasBits0 &= ~1; } /// Field number for the "dy" field. public const int DyFieldNumber = 2; private readonly static float DyDefaultValue = 0F; private float dy_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Dy { get { if ((_hasBits0 & 2) != 0) { return dy_; } else { return DyDefaultValue; } } set { _hasBits0 |= 2; dy_ = value; } } /// Gets whether the "dy" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasDy { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "dy" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearDy() { _hasBits0 &= ~2; } /// Field number for the "a" field. public const int AFieldNumber = 3; private readonly static float ADefaultValue = 1F; private float a_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float A { get { if ((_hasBits0 & 4) != 0) { return a_; } else { return ADefaultValue; } } set { _hasBits0 |= 4; a_ = value; } } /// Gets whether the "a" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasA { get { return (_hasBits0 & 4) != 0; } } /// Clears the value of the "a" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearA() { _hasBits0 &= ~4; } /// Field number for the "b" field. public const int BFieldNumber = 4; private readonly static float BDefaultValue = 0F; private float b_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float B { get { if ((_hasBits0 & 8) != 0) { return b_; } else { return BDefaultValue; } } set { _hasBits0 |= 8; b_ = value; } } /// Gets whether the "b" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasB { get { return (_hasBits0 & 8) != 0; } } /// Clears the value of the "b" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearB() { _hasBits0 &= ~8; } /// Field number for the "c" field. public const int CFieldNumber = 5; private readonly static float CDefaultValue = 0F; private float c_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float C { get { if ((_hasBits0 & 16) != 0) { return c_; } else { return CDefaultValue; } } set { _hasBits0 |= 16; c_ = value; } } /// Gets whether the "c" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasC { get { return (_hasBits0 & 16) != 0; } } /// Clears the value of the "c" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearC() { _hasBits0 &= ~16; } /// Field number for the "d" field. public const int DFieldNumber = 6; private readonly static float DDefaultValue = 1F; private float d_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float D { get { if ((_hasBits0 & 32) != 0) { return d_; } else { return DDefaultValue; } } set { _hasBits0 |= 32; d_ = value; } } /// Gets whether the "d" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasD { get { return (_hasBits0 & 32) != 0; } } /// Clears the value of the "d" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearD() { _hasBits0 &= ~32; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AffineModel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AffineModel other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dx, other.Dx)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Dy, other.Dy)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(A, other.A)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(B, other.B)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(C, other.C)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(D, other.D)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HasDx) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dx); if (HasDy) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Dy); if (HasA) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(A); if (HasB) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(B); if (HasC) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(C); if (HasD) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(D); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HasDx) { output.WriteRawTag(13); output.WriteFloat(Dx); } if (HasDy) { output.WriteRawTag(21); output.WriteFloat(Dy); } if (HasA) { output.WriteRawTag(29); output.WriteFloat(A); } if (HasB) { output.WriteRawTag(37); output.WriteFloat(B); } if (HasC) { output.WriteRawTag(45); output.WriteFloat(C); } if (HasD) { output.WriteRawTag(53); output.WriteFloat(D); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasDx) { output.WriteRawTag(13); output.WriteFloat(Dx); } if (HasDy) { output.WriteRawTag(21); output.WriteFloat(Dy); } if (HasA) { output.WriteRawTag(29); output.WriteFloat(A); } if (HasB) { output.WriteRawTag(37); output.WriteFloat(B); } if (HasC) { output.WriteRawTag(45); output.WriteFloat(C); } if (HasD) { output.WriteRawTag(53); output.WriteFloat(D); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HasDx) { size += 1 + 4; } if (HasDy) { size += 1 + 4; } if (HasA) { size += 1 + 4; } if (HasB) { size += 1 + 4; } if (HasC) { size += 1 + 4; } if (HasD) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AffineModel other) { if (other == null) { return; } if (other.HasDx) { Dx = other.Dx; } if (other.HasDy) { Dy = other.Dy; } if (other.HasA) { A = other.A; } if (other.HasB) { B = other.B; } if (other.HasC) { C = other.C; } if (other.HasD) { D = other.D; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { Dx = input.ReadFloat(); break; } case 21: { Dy = input.ReadFloat(); break; } case 29: { A = input.ReadFloat(); break; } case 37: { B = input.ReadFloat(); break; } case 45: { C = input.ReadFloat(); break; } case 53: { D = input.ReadFloat(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 13: { Dx = input.ReadFloat(); break; } case 21: { Dy = input.ReadFloat(); break; } case 29: { A = input.ReadFloat(); break; } case 37: { B = input.ReadFloat(); break; } case 45: { C = input.ReadFloat(); break; } case 53: { D = input.ReadFloat(); break; } } } } #endif } /// /// Homography according to /// [h_00 h_01 h_02; /// h_10 h_11 h_12; /// h_20 h_21 1]; /// Note: The parametrization with h_22 = 1 does not always hold, e.g. /// if the origin (0, 0, 1) gets mapped to the line at infinity /// (0, 0, 1). However for video we expect small perspective /// changes between frames and this parametrization improves /// robustness greatly as it removes an additional DOF. /// Therefore, all methods in motion_stabilization should not be /// used for general wide-baseline matching of frames. /// public sealed partial class Homography : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Homography()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Homography() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Homography(Homography other) : this() { _hasBits0 = other._hasBits0; h00_ = other.h00_; h01_ = other.h01_; h02_ = other.h02_; h10_ = other.h10_; h11_ = other.h11_; h12_ = other.h12_; h20_ = other.h20_; h21_ = other.h21_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Homography Clone() { return new Homography(this); } /// Field number for the "h_00" field. public const int H00FieldNumber = 1; private readonly static float H00DefaultValue = 1F; private float h00_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float H00 { get { if ((_hasBits0 & 1) != 0) { return h00_; } else { return H00DefaultValue; } } set { _hasBits0 |= 1; h00_ = value; } } /// Gets whether the "h_00" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasH00 { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "h_00" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearH00() { _hasBits0 &= ~1; } /// Field number for the "h_01" field. public const int H01FieldNumber = 2; private readonly static float H01DefaultValue = 0F; private float h01_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float H01 { get { if ((_hasBits0 & 2) != 0) { return h01_; } else { return H01DefaultValue; } } set { _hasBits0 |= 2; h01_ = value; } } /// Gets whether the "h_01" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasH01 { get { return (_hasBits0 & 2) != 0; } } /// Clears the value of the "h_01" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearH01() { _hasBits0 &= ~2; } /// Field number for the "h_02" field. public const int H02FieldNumber = 3; private readonly static float H02DefaultValue = 0F; private float h02_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float H02 { get { if ((_hasBits0 & 4) != 0) { return h02_; } else { return H02DefaultValue; } } set { _hasBits0 |= 4; h02_ = value; } } /// Gets whether the "h_02" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasH02 { get { return (_hasBits0 & 4) != 0; } } /// Clears the value of the "h_02" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearH02() { _hasBits0 &= ~4; } /// Field number for the "h_10" field. public const int H10FieldNumber = 4; private readonly static float H10DefaultValue = 0F; private float h10_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float H10 { get { if ((_hasBits0 & 8) != 0) { return h10_; } else { return H10DefaultValue; } } set { _hasBits0 |= 8; h10_ = value; } } /// Gets whether the "h_10" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasH10 { get { return (_hasBits0 & 8) != 0; } } /// Clears the value of the "h_10" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearH10() { _hasBits0 &= ~8; } /// Field number for the "h_11" field. public const int H11FieldNumber = 5; private readonly static float H11DefaultValue = 1F; private float h11_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float H11 { get { if ((_hasBits0 & 16) != 0) { return h11_; } else { return H11DefaultValue; } } set { _hasBits0 |= 16; h11_ = value; } } /// Gets whether the "h_11" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasH11 { get { return (_hasBits0 & 16) != 0; } } /// Clears the value of the "h_11" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearH11() { _hasBits0 &= ~16; } /// Field number for the "h_12" field. public const int H12FieldNumber = 6; private readonly static float H12DefaultValue = 0F; private float h12_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float H12 { get { if ((_hasBits0 & 32) != 0) { return h12_; } else { return H12DefaultValue; } } set { _hasBits0 |= 32; h12_ = value; } } /// Gets whether the "h_12" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasH12 { get { return (_hasBits0 & 32) != 0; } } /// Clears the value of the "h_12" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearH12() { _hasBits0 &= ~32; } /// Field number for the "h_20" field. public const int H20FieldNumber = 7; private readonly static float H20DefaultValue = 0F; private float h20_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float H20 { get { if ((_hasBits0 & 64) != 0) { return h20_; } else { return H20DefaultValue; } } set { _hasBits0 |= 64; h20_ = value; } } /// Gets whether the "h_20" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasH20 { get { return (_hasBits0 & 64) != 0; } } /// Clears the value of the "h_20" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearH20() { _hasBits0 &= ~64; } /// Field number for the "h_21" field. public const int H21FieldNumber = 8; private readonly static float H21DefaultValue = 0F; private float h21_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float H21 { get { if ((_hasBits0 & 128) != 0) { return h21_; } else { return H21DefaultValue; } } set { _hasBits0 |= 128; h21_ = value; } } /// Gets whether the "h_21" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasH21 { get { return (_hasBits0 & 128) != 0; } } /// Clears the value of the "h_21" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearH21() { _hasBits0 &= ~128; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Homography); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Homography other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H00, other.H00)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H01, other.H01)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H02, other.H02)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H10, other.H10)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H11, other.H11)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H12, other.H12)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H20, other.H20)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H21, other.H21)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HasH00) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H00); if (HasH01) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H01); if (HasH02) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H02); if (HasH10) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H10); if (HasH11) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H11); if (HasH12) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H12); if (HasH20) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H20); if (HasH21) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H21); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HasH00) { output.WriteRawTag(13); output.WriteFloat(H00); } if (HasH01) { output.WriteRawTag(21); output.WriteFloat(H01); } if (HasH02) { output.WriteRawTag(29); output.WriteFloat(H02); } if (HasH10) { output.WriteRawTag(37); output.WriteFloat(H10); } if (HasH11) { output.WriteRawTag(45); output.WriteFloat(H11); } if (HasH12) { output.WriteRawTag(53); output.WriteFloat(H12); } if (HasH20) { output.WriteRawTag(61); output.WriteFloat(H20); } if (HasH21) { output.WriteRawTag(69); output.WriteFloat(H21); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasH00) { output.WriteRawTag(13); output.WriteFloat(H00); } if (HasH01) { output.WriteRawTag(21); output.WriteFloat(H01); } if (HasH02) { output.WriteRawTag(29); output.WriteFloat(H02); } if (HasH10) { output.WriteRawTag(37); output.WriteFloat(H10); } if (HasH11) { output.WriteRawTag(45); output.WriteFloat(H11); } if (HasH12) { output.WriteRawTag(53); output.WriteFloat(H12); } if (HasH20) { output.WriteRawTag(61); output.WriteFloat(H20); } if (HasH21) { output.WriteRawTag(69); output.WriteFloat(H21); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HasH00) { size += 1 + 4; } if (HasH01) { size += 1 + 4; } if (HasH02) { size += 1 + 4; } if (HasH10) { size += 1 + 4; } if (HasH11) { size += 1 + 4; } if (HasH12) { size += 1 + 4; } if (HasH20) { size += 1 + 4; } if (HasH21) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Homography other) { if (other == null) { return; } if (other.HasH00) { H00 = other.H00; } if (other.HasH01) { H01 = other.H01; } if (other.HasH02) { H02 = other.H02; } if (other.HasH10) { H10 = other.H10; } if (other.HasH11) { H11 = other.H11; } if (other.HasH12) { H12 = other.H12; } if (other.HasH20) { H20 = other.H20; } if (other.HasH21) { H21 = other.H21; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 13: { H00 = input.ReadFloat(); break; } case 21: { H01 = input.ReadFloat(); break; } case 29: { H02 = input.ReadFloat(); break; } case 37: { H10 = input.ReadFloat(); break; } case 45: { H11 = input.ReadFloat(); break; } case 53: { H12 = input.ReadFloat(); break; } case 61: { H20 = input.ReadFloat(); break; } case 69: { H21 = input.ReadFloat(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 13: { H00 = input.ReadFloat(); break; } case 21: { H01 = input.ReadFloat(); break; } case 29: { H02 = input.ReadFloat(); break; } case 37: { H10 = input.ReadFloat(); break; } case 45: { H11 = input.ReadFloat(); break; } case 53: { H12 = input.ReadFloat(); break; } case 61: { H20 = input.ReadFloat(); break; } case 69: { H21 = input.ReadFloat(); break; } } } } #endif } /// /// Mixture models with higher degrees of freedom, according to /// \sum_i model(i) * weight(i), where weights are passed during transform and /// are expected to sum to one. /// public sealed partial class MixtureLinearSimilarity : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MixtureLinearSimilarity()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MixtureLinearSimilarity() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MixtureLinearSimilarity(MixtureLinearSimilarity other) : this() { model_ = other.model_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MixtureLinearSimilarity Clone() { return new MixtureLinearSimilarity(this); } /// Field number for the "model" field. public const int ModelFieldNumber = 1; private static readonly pb::FieldCodec _repeated_model_codec = pb::FieldCodec.ForMessage(10, global::Mediapipe.LinearSimilarityModel.Parser); private readonly pbc::RepeatedField model_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Model { get { return model_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MixtureLinearSimilarity); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MixtureLinearSimilarity other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!model_.Equals(other.model_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= model_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else model_.WriteTo(output, _repeated_model_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { model_.WriteTo(ref output, _repeated_model_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += model_.CalculateSize(_repeated_model_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MixtureLinearSimilarity other) { if (other == null) { return; } model_.Add(other.model_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { model_.AddEntriesFrom(input, _repeated_model_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { model_.AddEntriesFrom(ref input, _repeated_model_codec); break; } } } } #endif } public sealed partial class MixtureAffine : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MixtureAffine()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MixtureAffine() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MixtureAffine(MixtureAffine other) : this() { model_ = other.model_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MixtureAffine Clone() { return new MixtureAffine(this); } /// Field number for the "model" field. public const int ModelFieldNumber = 1; private static readonly pb::FieldCodec _repeated_model_codec = pb::FieldCodec.ForMessage(10, global::Mediapipe.AffineModel.Parser); private readonly pbc::RepeatedField model_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Model { get { return model_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MixtureAffine); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MixtureAffine other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!model_.Equals(other.model_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= model_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else model_.WriteTo(output, _repeated_model_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { model_.WriteTo(ref output, _repeated_model_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += model_.CalculateSize(_repeated_model_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MixtureAffine other) { if (other == null) { return; } model_.Add(other.model_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { model_.AddEntriesFrom(input, _repeated_model_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { model_.AddEntriesFrom(ref input, _repeated_model_codec); break; } } } } #endif } public sealed partial class MixtureHomography : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MixtureHomography()); private pb::UnknownFieldSet _unknownFields; private int _hasBits0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Mediapipe.MotionModelsReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MixtureHomography() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MixtureHomography(MixtureHomography other) : this() { _hasBits0 = other._hasBits0; model_ = other.model_.Clone(); dof_ = other.dof_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MixtureHomography Clone() { return new MixtureHomography(this); } /// Field number for the "model" field. public const int ModelFieldNumber = 1; private static readonly pb::FieldCodec _repeated_model_codec = pb::FieldCodec.ForMessage(10, global::Mediapipe.Homography.Parser); private readonly pbc::RepeatedField model_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Model { get { return model_; } } /// Field number for the "dof" field. public const int DofFieldNumber = 2; private readonly static global::Mediapipe.MixtureHomography.Types.VariableDOF DofDefaultValue = global::Mediapipe.MixtureHomography.Types.VariableDOF.AllDof; private global::Mediapipe.MixtureHomography.Types.VariableDOF dof_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Mediapipe.MixtureHomography.Types.VariableDOF Dof { get { if ((_hasBits0 & 1) != 0) { return dof_; } else { return DofDefaultValue; } } set { _hasBits0 |= 1; dof_ = value; } } /// Gets whether the "dof" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasDof { get { return (_hasBits0 & 1) != 0; } } /// Clears the value of the "dof" field [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearDof() { _hasBits0 &= ~1; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MixtureHomography); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MixtureHomography other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!model_.Equals(other.model_)) return false; if (Dof != other.Dof) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= model_.GetHashCode(); if (HasDof) hash ^= Dof.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else model_.WriteTo(output, _repeated_model_codec); if (HasDof) { output.WriteRawTag(16); output.WriteEnum((int) Dof); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { model_.WriteTo(ref output, _repeated_model_codec); if (HasDof) { output.WriteRawTag(16); output.WriteEnum((int) Dof); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += model_.CalculateSize(_repeated_model_codec); if (HasDof) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Dof); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MixtureHomography other) { if (other == null) { return; } model_.Add(other.model_); if (other.HasDof) { Dof = other.Dof; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { model_.AddEntriesFrom(input, _repeated_model_codec); break; } case 16: { Dof = (global::Mediapipe.MixtureHomography.Types.VariableDOF) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { model_.AddEntriesFrom(ref input, _repeated_model_codec); break; } case 16: { Dof = (global::Mediapipe.MixtureHomography.Types.VariableDOF) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the MixtureHomography message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Specifies which degree of freedom vary across mixture. /// Can be used to implement several transformation functions quicker. /// public enum VariableDOF { /// /// All dof are variable. /// [pbr::OriginalName("ALL_DOF")] AllDof = 0, /// /// Only translation (h_02, h_12) varies. /// [pbr::OriginalName("TRANSLATION_DOF")] TranslationDof = 1, /// /// Translation (h_02, h_12), and skew-rotation /// [pbr::OriginalName("SKEW_ROTATION_DOF")] SkewRotationDof = 2, /// /// (h_01, h_10) vary. /// [pbr::OriginalName("CONST_DOF")] ConstDof = 3, } } #endregion } #endregion } #endregion Designer generated code