+// ===================================================================
+
+#if !defined(_MSC_VER) || _MSC_VER >= 1900
+const int ProposalParameter::kFeatStrideFieldNumber;
+const int ProposalParameter::kBaseSizeFieldNumber;
+const int ProposalParameter::kMinSizeFieldNumber;
+const int ProposalParameter::kRatioFieldNumber;
+const int ProposalParameter::kScaleFieldNumber;
+const int ProposalParameter::kPreNmsTopnFieldNumber;
+const int ProposalParameter::kPostNmsTopnFieldNumber;
+const int ProposalParameter::kNmsThreshFieldNumber;
+#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
+
+ProposalParameter::ProposalParameter()
+ : ::google::protobuf::Message(), _internal_metadata_(NULL) {
+ if (this != internal_default_instance()) protobuf_InitDefaults_opencv_2dcaffe_2eproto();
+ SharedCtor();
+ // @@protoc_insertion_point(constructor:opencv_caffe.ProposalParameter)
+}
+
+void ProposalParameter::InitAsDefaultInstance() {
+}
+
+ProposalParameter::ProposalParameter(const ProposalParameter& from)
+ : ::google::protobuf::Message(),
+ _internal_metadata_(NULL) {
+ SharedCtor();
+ UnsafeMergeFrom(from);
+ // @@protoc_insertion_point(copy_constructor:opencv_caffe.ProposalParameter)
+}
+
+void ProposalParameter::SharedCtor() {
+ _cached_size_ = 0;
+ feat_stride_ = 16u;
+ base_size_ = 16u;
+ min_size_ = 16u;
+ pre_nms_topn_ = 6000u;
+ post_nms_topn_ = 300u;
+ nms_thresh_ = 0.7f;
+}
+
+ProposalParameter::~ProposalParameter() {
+ // @@protoc_insertion_point(destructor:opencv_caffe.ProposalParameter)
+ SharedDtor();
+}
+
+void ProposalParameter::SharedDtor() {
+}
+
+void ProposalParameter::SetCachedSize(int size) const {
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+}
+const ::google::protobuf::Descriptor* ProposalParameter::descriptor() {
+ protobuf_AssignDescriptorsOnce();
+ return ProposalParameter_descriptor_;
+}
+
+const ProposalParameter& ProposalParameter::default_instance() {
+ protobuf_InitDefaults_opencv_2dcaffe_2eproto();
+ return *internal_default_instance();
+}
+
+::google::protobuf::internal::ExplicitlyConstructed<ProposalParameter> ProposalParameter_default_instance_;
+
+ProposalParameter* ProposalParameter::New(::google::protobuf::Arena* arena) const {
+ ProposalParameter* n = new ProposalParameter;
+ if (arena != NULL) {
+ arena->Own(n);
+ }
+ return n;
+}
+
+void ProposalParameter::Clear() {
+// @@protoc_insertion_point(message_clear_start:opencv_caffe.ProposalParameter)
+ if (_has_bits_[0 / 32] & 231u) {
+ feat_stride_ = 16u;
+ base_size_ = 16u;
+ min_size_ = 16u;
+ pre_nms_topn_ = 6000u;
+ post_nms_topn_ = 300u;
+ nms_thresh_ = 0.7f;
+ }
+ ratio_.Clear();
+ scale_.Clear();
+ _has_bits_.Clear();
+ if (_internal_metadata_.have_unknown_fields()) {
+ mutable_unknown_fields()->Clear();
+ }
+}
+
+bool ProposalParameter::MergePartialFromCodedStream(
+ ::google::protobuf::io::CodedInputStream* input) {
+#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
+ ::google::protobuf::uint32 tag;
+ // @@protoc_insertion_point(parse_start:opencv_caffe.ProposalParameter)
+ for (;;) {
+ ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
+ tag = p.first;
+ if (!p.second) goto handle_unusual;
+ switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
+ // optional uint32 feat_stride = 1 [default = 16];
+ case 1: {
+ if (tag == 8) {
+ set_has_feat_stride();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
+ input, &feat_stride_)));
+ } else {
+ goto handle_unusual;
+ }
+ if (input->ExpectTag(16)) goto parse_base_size;
+ break;
+ }
+
+ // optional uint32 base_size = 2 [default = 16];
+ case 2: {
+ if (tag == 16) {
+ parse_base_size:
+ set_has_base_size();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
+ input, &base_size_)));
+ } else {
+ goto handle_unusual;
+ }
+ if (input->ExpectTag(24)) goto parse_min_size;
+ break;
+ }
+
+ // optional uint32 min_size = 3 [default = 16];
+ case 3: {
+ if (tag == 24) {
+ parse_min_size:
+ set_has_min_size();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
+ input, &min_size_)));
+ } else {
+ goto handle_unusual;
+ }
+ if (input->ExpectTag(37)) goto parse_ratio;
+ break;
+ }
+
+ // repeated float ratio = 4;
+ case 4: {
+ if (tag == 37) {
+ parse_ratio:
+ DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
+ 1, 37, input, this->mutable_ratio())));
+ } else if (tag == 34) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
+ input, this->mutable_ratio())));
+ } else {
+ goto handle_unusual;
+ }
+ if (input->ExpectTag(37)) goto parse_ratio;
+ if (input->ExpectTag(45)) goto parse_scale;
+ break;
+ }
+
+ // repeated float scale = 5;
+ case 5: {
+ if (tag == 45) {
+ parse_scale:
+ DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
+ 1, 45, input, this->mutable_scale())));
+ } else if (tag == 42) {
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
+ input, this->mutable_scale())));
+ } else {
+ goto handle_unusual;
+ }
+ if (input->ExpectTag(45)) goto parse_scale;
+ if (input->ExpectTag(48)) goto parse_pre_nms_topn;
+ break;
+ }
+
+ // optional uint32 pre_nms_topn = 6 [default = 6000];
+ case 6: {
+ if (tag == 48) {
+ parse_pre_nms_topn:
+ set_has_pre_nms_topn();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
+ input, &pre_nms_topn_)));
+ } else {
+ goto handle_unusual;
+ }
+ if (input->ExpectTag(56)) goto parse_post_nms_topn;
+ break;
+ }
+
+ // optional uint32 post_nms_topn = 7 [default = 300];
+ case 7: {
+ if (tag == 56) {
+ parse_post_nms_topn:
+ set_has_post_nms_topn();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
+ input, &post_nms_topn_)));
+ } else {
+ goto handle_unusual;
+ }
+ if (input->ExpectTag(69)) goto parse_nms_thresh;
+ break;
+ }
+
+ // optional float nms_thresh = 8 [default = 0.7];
+ case 8: {
+ if (tag == 69) {
+ parse_nms_thresh:
+ set_has_nms_thresh();
+ DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
+ float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
+ input, &nms_thresh_)));
+ } else {
+ goto handle_unusual;
+ }
+ if (input->ExpectAtEnd()) goto success;
+ break;
+ }
+
+ default: {
+ handle_unusual:
+ if (tag == 0 ||
+ ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
+ ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
+ goto success;
+ }
+ DO_(::google::protobuf::internal::WireFormat::SkipField(
+ input, tag, mutable_unknown_fields()));
+ break;
+ }
+ }
+ }
+success:
+ // @@protoc_insertion_point(parse_success:opencv_caffe.ProposalParameter)
+ return true;
+failure:
+ // @@protoc_insertion_point(parse_failure:opencv_caffe.ProposalParameter)
+ return false;
+#undef DO_
+}
+
+void ProposalParameter::SerializeWithCachedSizes(
+ ::google::protobuf::io::CodedOutputStream* output) const {
+ // @@protoc_insertion_point(serialize_start:opencv_caffe.ProposalParameter)
+ // optional uint32 feat_stride = 1 [default = 16];
+ if (has_feat_stride()) {
+ ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->feat_stride(), output);
+ }
+
+ // optional uint32 base_size = 2 [default = 16];
+ if (has_base_size()) {
+ ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->base_size(), output);
+ }
+
+ // optional uint32 min_size = 3 [default = 16];
+ if (has_min_size()) {
+ ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->min_size(), output);
+ }
+
+ // repeated float ratio = 4;
+ for (int i = 0; i < this->ratio_size(); i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteFloat(
+ 4, this->ratio(i), output);
+ }
+
+ // repeated float scale = 5;
+ for (int i = 0; i < this->scale_size(); i++) {
+ ::google::protobuf::internal::WireFormatLite::WriteFloat(
+ 5, this->scale(i), output);
+ }
+
+ // optional uint32 pre_nms_topn = 6 [default = 6000];
+ if (has_pre_nms_topn()) {
+ ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->pre_nms_topn(), output);
+ }
+
+ // optional uint32 post_nms_topn = 7 [default = 300];
+ if (has_post_nms_topn()) {
+ ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->post_nms_topn(), output);
+ }
+
+ // optional float nms_thresh = 8 [default = 0.7];
+ if (has_nms_thresh()) {
+ ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->nms_thresh(), output);
+ }
+
+ if (_internal_metadata_.have_unknown_fields()) {
+ ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
+ unknown_fields(), output);
+ }
+ // @@protoc_insertion_point(serialize_end:opencv_caffe.ProposalParameter)
+}
+
+::google::protobuf::uint8* ProposalParameter::InternalSerializeWithCachedSizesToArray(
+ bool deterministic, ::google::protobuf::uint8* target) const {
+ (void)deterministic; // Unused
+ // @@protoc_insertion_point(serialize_to_array_start:opencv_caffe.ProposalParameter)
+ // optional uint32 feat_stride = 1 [default = 16];
+ if (has_feat_stride()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->feat_stride(), target);
+ }
+
+ // optional uint32 base_size = 2 [default = 16];
+ if (has_base_size()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->base_size(), target);
+ }
+
+ // optional uint32 min_size = 3 [default = 16];
+ if (has_min_size()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->min_size(), target);
+ }
+
+ // repeated float ratio = 4;
+ for (int i = 0; i < this->ratio_size(); i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteFloatToArray(4, this->ratio(i), target);
+ }
+
+ // repeated float scale = 5;
+ for (int i = 0; i < this->scale_size(); i++) {
+ target = ::google::protobuf::internal::WireFormatLite::
+ WriteFloatToArray(5, this->scale(i), target);
+ }
+
+ // optional uint32 pre_nms_topn = 6 [default = 6000];
+ if (has_pre_nms_topn()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->pre_nms_topn(), target);
+ }
+
+ // optional uint32 post_nms_topn = 7 [default = 300];
+ if (has_post_nms_topn()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->post_nms_topn(), target);
+ }
+
+ // optional float nms_thresh = 8 [default = 0.7];
+ if (has_nms_thresh()) {
+ target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->nms_thresh(), target);
+ }
+
+ if (_internal_metadata_.have_unknown_fields()) {
+ target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
+ unknown_fields(), target);
+ }
+ // @@protoc_insertion_point(serialize_to_array_end:opencv_caffe.ProposalParameter)
+ return target;
+}
+
+size_t ProposalParameter::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:opencv_caffe.ProposalParameter)
+ size_t total_size = 0;
+
+ if (_has_bits_[0 / 32] & 231u) {
+ // optional uint32 feat_stride = 1 [default = 16];
+ if (has_feat_stride()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::UInt32Size(
+ this->feat_stride());
+ }
+
+ // optional uint32 base_size = 2 [default = 16];
+ if (has_base_size()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::UInt32Size(
+ this->base_size());
+ }
+
+ // optional uint32 min_size = 3 [default = 16];
+ if (has_min_size()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::UInt32Size(
+ this->min_size());
+ }
+
+ // optional uint32 pre_nms_topn = 6 [default = 6000];
+ if (has_pre_nms_topn()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::UInt32Size(
+ this->pre_nms_topn());
+ }
+
+ // optional uint32 post_nms_topn = 7 [default = 300];
+ if (has_post_nms_topn()) {
+ total_size += 1 +
+ ::google::protobuf::internal::WireFormatLite::UInt32Size(
+ this->post_nms_topn());
+ }
+
+ // optional float nms_thresh = 8 [default = 0.7];
+ if (has_nms_thresh()) {
+ total_size += 1 + 4;
+ }
+
+ }
+ // repeated float ratio = 4;
+ {
+ size_t data_size = 0;
+ unsigned int count = this->ratio_size();
+ data_size = 4UL * count;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->ratio_size());
+ total_size += data_size;
+ }
+
+ // repeated float scale = 5;
+ {
+ size_t data_size = 0;
+ unsigned int count = this->scale_size();
+ data_size = 4UL * count;
+ total_size += 1 *
+ ::google::protobuf::internal::FromIntSize(this->scale_size());
+ total_size += data_size;
+ }
+
+ if (_internal_metadata_.have_unknown_fields()) {
+ total_size +=
+ ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
+ unknown_fields());
+ }
+ int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
+ GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
+ _cached_size_ = cached_size;
+ GOOGLE_SAFE_CONCURRENT_WRITES_END();
+ return total_size;
+}
+
+void ProposalParameter::MergeFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_merge_from_start:opencv_caffe.ProposalParameter)
+ if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
+ const ProposalParameter* source =
+ ::google::protobuf::internal::DynamicCastToGenerated<const ProposalParameter>(
+ &from);
+ if (source == NULL) {
+ // @@protoc_insertion_point(generalized_merge_from_cast_fail:opencv_caffe.ProposalParameter)
+ ::google::protobuf::internal::ReflectionOps::Merge(from, this);
+ } else {
+ // @@protoc_insertion_point(generalized_merge_from_cast_success:opencv_caffe.ProposalParameter)
+ UnsafeMergeFrom(*source);
+ }
+}
+
+void ProposalParameter::MergeFrom(const ProposalParameter& from) {
+// @@protoc_insertion_point(class_specific_merge_from_start:opencv_caffe.ProposalParameter)
+ if (GOOGLE_PREDICT_TRUE(&from != this)) {
+ UnsafeMergeFrom(from);
+ } else {
+ MergeFromFail(__LINE__);
+ }
+}
+
+void ProposalParameter::UnsafeMergeFrom(const ProposalParameter& from) {
+ GOOGLE_DCHECK(&from != this);
+ ratio_.UnsafeMergeFrom(from.ratio_);
+ scale_.UnsafeMergeFrom(from.scale_);
+ if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
+ if (from.has_feat_stride()) {
+ set_feat_stride(from.feat_stride());
+ }
+ if (from.has_base_size()) {
+ set_base_size(from.base_size());
+ }
+ if (from.has_min_size()) {
+ set_min_size(from.min_size());
+ }
+ if (from.has_pre_nms_topn()) {
+ set_pre_nms_topn(from.pre_nms_topn());
+ }
+ if (from.has_post_nms_topn()) {
+ set_post_nms_topn(from.post_nms_topn());
+ }
+ if (from.has_nms_thresh()) {
+ set_nms_thresh(from.nms_thresh());
+ }
+ }
+ if (from._internal_metadata_.have_unknown_fields()) {
+ ::google::protobuf::UnknownFieldSet::MergeToInternalMetdata(
+ from.unknown_fields(), &_internal_metadata_);
+ }
+}
+
+void ProposalParameter::CopyFrom(const ::google::protobuf::Message& from) {
+// @@protoc_insertion_point(generalized_copy_from_start:opencv_caffe.ProposalParameter)
+ if (&from == this) return;
+ Clear();
+ MergeFrom(from);
+}
+
+void ProposalParameter::CopyFrom(const ProposalParameter& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:opencv_caffe.ProposalParameter)
+ if (&from == this) return;
+ Clear();
+ UnsafeMergeFrom(from);
+}
+
+bool ProposalParameter::IsInitialized() const {
+
+ return true;
+}
+
+void ProposalParameter::Swap(ProposalParameter* other) {
+ if (other == this) return;
+ InternalSwap(other);
+}
+void ProposalParameter::InternalSwap(ProposalParameter* other) {
+ std::swap(feat_stride_, other->feat_stride_);
+ std::swap(base_size_, other->base_size_);
+ std::swap(min_size_, other->min_size_);
+ ratio_.UnsafeArenaSwap(&other->ratio_);
+ scale_.UnsafeArenaSwap(&other->scale_);
+ std::swap(pre_nms_topn_, other->pre_nms_topn_);
+ std::swap(post_nms_topn_, other->post_nms_topn_);
+ std::swap(nms_thresh_, other->nms_thresh_);
+ std::swap(_has_bits_[0], other->_has_bits_[0]);
+ _internal_metadata_.Swap(&other->_internal_metadata_);
+ std::swap(_cached_size_, other->_cached_size_);
+}
+
+::google::protobuf::Metadata ProposalParameter::GetMetadata() const {
+ protobuf_AssignDescriptorsOnce();
+ ::google::protobuf::Metadata metadata;
+ metadata.descriptor = ProposalParameter_descriptor_;
+ metadata.reflection = ProposalParameter_reflection_;
+ return metadata;
+}
+
+#if PROTOBUF_INLINE_NOT_IN_HEADERS
+// ProposalParameter
+
+// optional uint32 feat_stride = 1 [default = 16];
+bool ProposalParameter::has_feat_stride() const {
+ return (_has_bits_[0] & 0x00000001u) != 0;
+}
+void ProposalParameter::set_has_feat_stride() {
+ _has_bits_[0] |= 0x00000001u;
+}
+void ProposalParameter::clear_has_feat_stride() {
+ _has_bits_[0] &= ~0x00000001u;
+}
+void ProposalParameter::clear_feat_stride() {
+ feat_stride_ = 16u;
+ clear_has_feat_stride();
+}
+::google::protobuf::uint32 ProposalParameter::feat_stride() const {
+ // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.feat_stride)
+ return feat_stride_;
+}
+void ProposalParameter::set_feat_stride(::google::protobuf::uint32 value) {
+ set_has_feat_stride();
+ feat_stride_ = value;
+ // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.feat_stride)
+}
+
+// optional uint32 base_size = 2 [default = 16];
+bool ProposalParameter::has_base_size() const {
+ return (_has_bits_[0] & 0x00000002u) != 0;
+}
+void ProposalParameter::set_has_base_size() {
+ _has_bits_[0] |= 0x00000002u;
+}
+void ProposalParameter::clear_has_base_size() {
+ _has_bits_[0] &= ~0x00000002u;
+}
+void ProposalParameter::clear_base_size() {
+ base_size_ = 16u;
+ clear_has_base_size();
+}
+::google::protobuf::uint32 ProposalParameter::base_size() const {
+ // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.base_size)
+ return base_size_;
+}
+void ProposalParameter::set_base_size(::google::protobuf::uint32 value) {
+ set_has_base_size();
+ base_size_ = value;
+ // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.base_size)
+}
+
+// optional uint32 min_size = 3 [default = 16];
+bool ProposalParameter::has_min_size() const {
+ return (_has_bits_[0] & 0x00000004u) != 0;
+}
+void ProposalParameter::set_has_min_size() {
+ _has_bits_[0] |= 0x00000004u;
+}
+void ProposalParameter::clear_has_min_size() {
+ _has_bits_[0] &= ~0x00000004u;
+}
+void ProposalParameter::clear_min_size() {
+ min_size_ = 16u;
+ clear_has_min_size();
+}
+::google::protobuf::uint32 ProposalParameter::min_size() const {
+ // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.min_size)
+ return min_size_;
+}
+void ProposalParameter::set_min_size(::google::protobuf::uint32 value) {
+ set_has_min_size();
+ min_size_ = value;
+ // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.min_size)
+}
+
+// repeated float ratio = 4;
+int ProposalParameter::ratio_size() const {
+ return ratio_.size();
+}
+void ProposalParameter::clear_ratio() {
+ ratio_.Clear();
+}
+float ProposalParameter::ratio(int index) const {
+ // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.ratio)
+ return ratio_.Get(index);
+}
+void ProposalParameter::set_ratio(int index, float value) {
+ ratio_.Set(index, value);
+ // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.ratio)
+}
+void ProposalParameter::add_ratio(float value) {
+ ratio_.Add(value);
+ // @@protoc_insertion_point(field_add:opencv_caffe.ProposalParameter.ratio)
+}
+const ::google::protobuf::RepeatedField< float >&
+ProposalParameter::ratio() const {
+ // @@protoc_insertion_point(field_list:opencv_caffe.ProposalParameter.ratio)
+ return ratio_;
+}
+::google::protobuf::RepeatedField< float >*
+ProposalParameter::mutable_ratio() {
+ // @@protoc_insertion_point(field_mutable_list:opencv_caffe.ProposalParameter.ratio)
+ return &ratio_;
+}
+
+// repeated float scale = 5;
+int ProposalParameter::scale_size() const {
+ return scale_.size();
+}
+void ProposalParameter::clear_scale() {
+ scale_.Clear();
+}
+float ProposalParameter::scale(int index) const {
+ // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.scale)
+ return scale_.Get(index);
+}
+void ProposalParameter::set_scale(int index, float value) {
+ scale_.Set(index, value);
+ // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.scale)
+}
+void ProposalParameter::add_scale(float value) {
+ scale_.Add(value);
+ // @@protoc_insertion_point(field_add:opencv_caffe.ProposalParameter.scale)
+}
+const ::google::protobuf::RepeatedField< float >&
+ProposalParameter::scale() const {
+ // @@protoc_insertion_point(field_list:opencv_caffe.ProposalParameter.scale)
+ return scale_;
+}
+::google::protobuf::RepeatedField< float >*
+ProposalParameter::mutable_scale() {
+ // @@protoc_insertion_point(field_mutable_list:opencv_caffe.ProposalParameter.scale)
+ return &scale_;
+}
+
+// optional uint32 pre_nms_topn = 6 [default = 6000];
+bool ProposalParameter::has_pre_nms_topn() const {
+ return (_has_bits_[0] & 0x00000020u) != 0;
+}
+void ProposalParameter::set_has_pre_nms_topn() {
+ _has_bits_[0] |= 0x00000020u;
+}
+void ProposalParameter::clear_has_pre_nms_topn() {
+ _has_bits_[0] &= ~0x00000020u;
+}
+void ProposalParameter::clear_pre_nms_topn() {
+ pre_nms_topn_ = 6000u;
+ clear_has_pre_nms_topn();
+}
+::google::protobuf::uint32 ProposalParameter::pre_nms_topn() const {
+ // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.pre_nms_topn)
+ return pre_nms_topn_;
+}
+void ProposalParameter::set_pre_nms_topn(::google::protobuf::uint32 value) {
+ set_has_pre_nms_topn();
+ pre_nms_topn_ = value;
+ // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.pre_nms_topn)
+}
+
+// optional uint32 post_nms_topn = 7 [default = 300];
+bool ProposalParameter::has_post_nms_topn() const {
+ return (_has_bits_[0] & 0x00000040u) != 0;
+}
+void ProposalParameter::set_has_post_nms_topn() {
+ _has_bits_[0] |= 0x00000040u;
+}
+void ProposalParameter::clear_has_post_nms_topn() {
+ _has_bits_[0] &= ~0x00000040u;
+}
+void ProposalParameter::clear_post_nms_topn() {
+ post_nms_topn_ = 300u;
+ clear_has_post_nms_topn();
+}
+::google::protobuf::uint32 ProposalParameter::post_nms_topn() const {
+ // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.post_nms_topn)
+ return post_nms_topn_;
+}
+void ProposalParameter::set_post_nms_topn(::google::protobuf::uint32 value) {
+ set_has_post_nms_topn();
+ post_nms_topn_ = value;
+ // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.post_nms_topn)
+}
+
+// optional float nms_thresh = 8 [default = 0.7];
+bool ProposalParameter::has_nms_thresh() const {
+ return (_has_bits_[0] & 0x00000080u) != 0;
+}
+void ProposalParameter::set_has_nms_thresh() {
+ _has_bits_[0] |= 0x00000080u;
+}
+void ProposalParameter::clear_has_nms_thresh() {
+ _has_bits_[0] &= ~0x00000080u;
+}
+void ProposalParameter::clear_nms_thresh() {
+ nms_thresh_ = 0.7f;
+ clear_has_nms_thresh();
+}
+float ProposalParameter::nms_thresh() const {
+ // @@protoc_insertion_point(field_get:opencv_caffe.ProposalParameter.nms_thresh)
+ return nms_thresh_;
+}
+void ProposalParameter::set_nms_thresh(float value) {
+ set_has_nms_thresh();
+ nms_thresh_ = value;
+ // @@protoc_insertion_point(field_set:opencv_caffe.ProposalParameter.nms_thresh)
+}
+
+inline const ProposalParameter* ProposalParameter::internal_default_instance() {
+ return &ProposalParameter_default_instance_.get();
+}
+#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
+