12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: locate_parameter.proto
- #include "locate_parameter.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/stubs/once.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace Measure {
- class Area3dDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Area3d>
- _instance;
- } _Area3d_default_instance_;
- class YoloParameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<YoloParameter>
- _instance;
- } _YoloParameter_default_instance_;
- class PointSiftParameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<PointSiftParameter>
- _instance;
- } _PointSiftParameter_default_instance_;
- class cnnParameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<cnnParameter>
- _instance;
- } _cnnParameter_default_instance_;
- class LocateParameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<LocateParameter>
- _instance;
- } _LocateParameter_default_instance_;
- } // namespace Measure
- namespace protobuf_locate_5fparameter_2eproto {
- void InitDefaultsArea3dImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- {
- void* ptr = &::Measure::_Area3d_default_instance_;
- new (ptr) ::Measure::Area3d();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Measure::Area3d::InitAsDefaultInstance();
- }
- void InitDefaultsArea3d() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsArea3dImpl);
- }
- void InitDefaultsYoloParameterImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- {
- void* ptr = &::Measure::_YoloParameter_default_instance_;
- new (ptr) ::Measure::YoloParameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Measure::YoloParameter::InitAsDefaultInstance();
- }
- void InitDefaultsYoloParameter() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsYoloParameterImpl);
- }
- void InitDefaultsPointSiftParameterImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- protobuf_locate_5fparameter_2eproto::InitDefaultsArea3d();
- ::Measure::PointSiftParameter::_default_graph_.DefaultConstruct();
- *::Measure::PointSiftParameter::_default_graph_.get_mutable() = ::std::string("seg_model_last.ckpt.meta", 24);
- ::google::protobuf::internal::OnShutdownDestroyString(
- ::Measure::PointSiftParameter::_default_graph_.get_mutable());
- ::Measure::PointSiftParameter::_default_cpkt_.DefaultConstruct();
- *::Measure::PointSiftParameter::_default_cpkt_.get_mutable() = ::std::string("seg_model_last.ckpt", 19);
- ::google::protobuf::internal::OnShutdownDestroyString(
- ::Measure::PointSiftParameter::_default_cpkt_.get_mutable());
- {
- void* ptr = &::Measure::_PointSiftParameter_default_instance_;
- new (ptr) ::Measure::PointSiftParameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Measure::PointSiftParameter::InitAsDefaultInstance();
- }
- void InitDefaultsPointSiftParameter() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPointSiftParameterImpl);
- }
- void InitDefaultscnnParameterImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::Measure::cnnParameter::_default_weights_file_.DefaultConstruct();
- *::Measure::cnnParameter::_default_weights_file_.get_mutable() = ::std::string("frozen_model.pb", 15);
- ::google::protobuf::internal::OnShutdownDestroyString(
- ::Measure::cnnParameter::_default_weights_file_.get_mutable());
- {
- void* ptr = &::Measure::_cnnParameter_default_instance_;
- new (ptr) ::Measure::cnnParameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Measure::cnnParameter::InitAsDefaultInstance();
- }
- void InitDefaultscnnParameter() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultscnnParameterImpl);
- }
- void InitDefaultsLocateParameterImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- protobuf_locate_5fparameter_2eproto::InitDefaultsArea3d();
- protobuf_locate_5fparameter_2eproto::InitDefaultscnnParameter();
- protobuf_locate_5fparameter_2eproto::InitDefaultsPointSiftParameter();
- protobuf_locate_5fparameter_2eproto::InitDefaultsYoloParameter();
- {
- void* ptr = &::Measure::_LocateParameter_default_instance_;
- new (ptr) ::Measure::LocateParameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Measure::LocateParameter::InitAsDefaultInstance();
- }
- void InitDefaultsLocateParameter() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLocateParameterImpl);
- }
- ::google::protobuf::Metadata file_level_metadata[5];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, x_min_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, x_max_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, y_min_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, y_max_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, z_min_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, z_max_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, cfg_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, weights_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, min_x_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, max_x_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, min_y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, max_y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, freq_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, point_size_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, cls_num_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, freq_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, area_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, graph_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, cpkt_),
- 3,
- 4,
- 5,
- 2,
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, width_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, height_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, freq_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, nclass_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, weights_file_),
- 1,
- 2,
- 3,
- 4,
- 5,
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, area_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, net_3dcnn_parameter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, seg_parameter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, yolo_parameter_),
- 0,
- 1,
- 2,
- 3,
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 11, sizeof(::Measure::Area3d)},
- { 17, 29, sizeof(::Measure::YoloParameter)},
- { 36, 47, sizeof(::Measure::PointSiftParameter)},
- { 53, 64, sizeof(::Measure::cnnParameter)},
- { 70, 79, sizeof(::Measure::LocateParameter)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::Measure::_Area3d_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Measure::_YoloParameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Measure::_PointSiftParameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Measure::_cnnParameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Measure::_LocateParameter_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- ::google::protobuf::MessageFactory* factory = NULL;
- AssignDescriptors(
- "locate_parameter.proto", schemas, file_default_instances, TableStruct::offsets, factory,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\026locate_parameter.proto\022\007Measure\"\203\001\n\006Ar"
- "ea3d\022\020\n\005x_min\030\001 \001(\001:\0010\022\024\n\005x_max\030\002 \001(\001:\0051"
- "2000\022\023\n\005y_min\030\003 \001(\001:\0044500\022\024\n\005y_max\030\004 \001(\001"
- ":\00511000\022\021\n\005z_min\030\005 \001(\001:\00260\022\023\n\005z_max\030\006 \001("
- "\001:\0043000\"\226\001\n\rYoloParameter\022\r\n\003cfg\030\001 \001(\t:\000"
- "\022\021\n\007weights\030\002 \001(\t:\000\022\020\n\005min_x\030\003 \001(\001:\0010\022\024\n"
- "\005max_x\030\004 \001(\001:\00512000\022\023\n\005min_y\030\005 \001(\001:\0044500"
- "\022\024\n\005max_y\030\006 \001(\001:\00511000\022\020\n\004freq\030\007 \001(\001:\00225"
- "\"\277\001\n\022PointSiftParameter\022\030\n\npoint_size\030\001 "
- "\001(\003:\0048192\022\022\n\007cls_num\030\002 \001(\003:\0013\022\020\n\004freq\030\003 "
- "\001(\001:\00250\022\035\n\004area\030\004 \001(\0132\017.Measure.Area3d\022\'"
- "\n\005graph\030\005 \001(\t:\030seg_model_last.ckpt.meta\022"
- "!\n\004cpkt\030\006 \001(\t:\023seg_model_last.ckpt\"\227\001\n\014c"
- "nnParameter\022\023\n\006length\030\001 \001(\001:\003224\022\022\n\005widt"
- "h\030\002 \001(\001:\003224\022\022\n\006height\030\003 \001(\001:\00296\022\020\n\004freq"
- "\030\004 \001(\001:\00225\022\021\n\006nclass\030\005 \001(\001:\0013\022%\n\014weights"
- "_file\030\006 \001(\t:\017frozen_model.pb\"\310\001\n\017LocateP"
- "arameter\022\035\n\004area\030\001 \001(\0132\017.Measure.Area3d\022"
- "2\n\023net_3dcnn_parameter\030\002 \001(\0132\025.Measure.c"
- "nnParameter\0222\n\rseg_parameter\030\003 \001(\0132\033.Mea"
- "sure.PointSiftParameter\022.\n\016yolo_paramete"
- "r\030\004 \001(\0132\026.Measure.YoloParameter"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 871);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "locate_parameter.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_locate_5fparameter_2eproto
- namespace Measure {
- // ===================================================================
- void Area3d::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Area3d::kXMinFieldNumber;
- const int Area3d::kXMaxFieldNumber;
- const int Area3d::kYMinFieldNumber;
- const int Area3d::kYMaxFieldNumber;
- const int Area3d::kZMinFieldNumber;
- const int Area3d::kZMaxFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Area3d::Area3d()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_locate_5fparameter_2eproto::InitDefaultsArea3d();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Measure.Area3d)
- }
- Area3d::Area3d(const Area3d& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&x_min_, &from.x_min_,
- static_cast<size_t>(reinterpret_cast<char*>(&z_max_) -
- reinterpret_cast<char*>(&x_min_)) + sizeof(z_max_));
- // @@protoc_insertion_point(copy_constructor:Measure.Area3d)
- }
- void Area3d::SharedCtor() {
- _cached_size_ = 0;
- x_min_ = 0;
- x_max_ = 12000;
- y_min_ = 4500;
- y_max_ = 11000;
- z_min_ = 60;
- z_max_ = 3000;
- }
- Area3d::~Area3d() {
- // @@protoc_insertion_point(destructor:Measure.Area3d)
- SharedDtor();
- }
- void Area3d::SharedDtor() {
- }
- void Area3d::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* Area3d::descriptor() {
- ::protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Area3d& Area3d::default_instance() {
- ::protobuf_locate_5fparameter_2eproto::InitDefaultsArea3d();
- return *internal_default_instance();
- }
- Area3d* Area3d::New(::google::protobuf::Arena* arena) const {
- Area3d* n = new Area3d;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void Area3d::Clear() {
- // @@protoc_insertion_point(message_clear_start:Measure.Area3d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 63u) {
- x_min_ = 0;
- x_max_ = 12000;
- y_min_ = 4500;
- y_max_ = 11000;
- z_min_ = 60;
- z_max_ = 3000;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Area3d::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:Measure.Area3d)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional double x_min = 1 [default = 0];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
- set_has_x_min();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &x_min_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double x_max = 2 [default = 12000];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
- set_has_x_max();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &x_max_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double y_min = 3 [default = 4500];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
- set_has_y_min();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &y_min_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double y_max = 4 [default = 11000];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
- set_has_y_max();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &y_max_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double z_min = 5 [default = 60];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
- set_has_z_min();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &z_min_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double z_max = 6 [default = 3000];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
- set_has_z_max();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &z_max_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Measure.Area3d)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Measure.Area3d)
- return false;
- #undef DO_
- }
- void Area3d::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Measure.Area3d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional double x_min = 1 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->x_min(), output);
- }
- // optional double x_max = 2 [default = 12000];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->x_max(), output);
- }
- // optional double y_min = 3 [default = 4500];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->y_min(), output);
- }
- // optional double y_max = 4 [default = 11000];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->y_max(), output);
- }
- // optional double z_min = 5 [default = 60];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->z_min(), output);
- }
- // optional double z_max = 6 [default = 3000];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->z_max(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Measure.Area3d)
- }
- ::google::protobuf::uint8* Area3d::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Measure.Area3d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional double x_min = 1 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->x_min(), target);
- }
- // optional double x_max = 2 [default = 12000];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->x_max(), target);
- }
- // optional double y_min = 3 [default = 4500];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->y_min(), target);
- }
- // optional double y_max = 4 [default = 11000];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->y_max(), target);
- }
- // optional double z_min = 5 [default = 60];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->z_min(), target);
- }
- // optional double z_max = 6 [default = 3000];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->z_max(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Measure.Area3d)
- return target;
- }
- size_t Area3d::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Measure.Area3d)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 63u) {
- // optional double x_min = 1 [default = 0];
- if (has_x_min()) {
- total_size += 1 + 8;
- }
- // optional double x_max = 2 [default = 12000];
- if (has_x_max()) {
- total_size += 1 + 8;
- }
- // optional double y_min = 3 [default = 4500];
- if (has_y_min()) {
- total_size += 1 + 8;
- }
- // optional double y_max = 4 [default = 11000];
- if (has_y_max()) {
- total_size += 1 + 8;
- }
- // optional double z_min = 5 [default = 60];
- if (has_z_min()) {
- total_size += 1 + 8;
- }
- // optional double z_max = 6 [default = 3000];
- if (has_z_max()) {
- total_size += 1 + 8;
- }
- }
- 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 Area3d::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Measure.Area3d)
- GOOGLE_DCHECK_NE(&from, this);
- const Area3d* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Area3d>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.Area3d)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.Area3d)
- MergeFrom(*source);
- }
- }
- void Area3d::MergeFrom(const Area3d& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Measure.Area3d)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- x_min_ = from.x_min_;
- }
- if (cached_has_bits & 0x00000002u) {
- x_max_ = from.x_max_;
- }
- if (cached_has_bits & 0x00000004u) {
- y_min_ = from.y_min_;
- }
- if (cached_has_bits & 0x00000008u) {
- y_max_ = from.y_max_;
- }
- if (cached_has_bits & 0x00000010u) {
- z_min_ = from.z_min_;
- }
- if (cached_has_bits & 0x00000020u) {
- z_max_ = from.z_max_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Area3d::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Measure.Area3d)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Area3d::CopyFrom(const Area3d& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Measure.Area3d)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Area3d::IsInitialized() const {
- return true;
- }
- void Area3d::Swap(Area3d* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Area3d::InternalSwap(Area3d* other) {
- using std::swap;
- swap(x_min_, other->x_min_);
- swap(x_max_, other->x_max_);
- swap(y_min_, other->y_min_);
- swap(y_max_, other->y_max_);
- swap(z_min_, other->z_min_);
- swap(z_max_, other->z_max_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata Area3d::GetMetadata() const {
- protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void YoloParameter::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int YoloParameter::kCfgFieldNumber;
- const int YoloParameter::kWeightsFieldNumber;
- const int YoloParameter::kMinXFieldNumber;
- const int YoloParameter::kMaxXFieldNumber;
- const int YoloParameter::kMinYFieldNumber;
- const int YoloParameter::kMaxYFieldNumber;
- const int YoloParameter::kFreqFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- YoloParameter::YoloParameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_locate_5fparameter_2eproto::InitDefaultsYoloParameter();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Measure.YoloParameter)
- }
- YoloParameter::YoloParameter(const YoloParameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- cfg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_cfg()) {
- cfg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cfg_);
- }
- weights_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_weights()) {
- weights_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.weights_);
- }
- ::memcpy(&min_x_, &from.min_x_,
- static_cast<size_t>(reinterpret_cast<char*>(&freq_) -
- reinterpret_cast<char*>(&min_x_)) + sizeof(freq_));
- // @@protoc_insertion_point(copy_constructor:Measure.YoloParameter)
- }
- void YoloParameter::SharedCtor() {
- _cached_size_ = 0;
- cfg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- weights_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- min_x_ = 0;
- max_x_ = 12000;
- min_y_ = 4500;
- max_y_ = 11000;
- freq_ = 25;
- }
- YoloParameter::~YoloParameter() {
- // @@protoc_insertion_point(destructor:Measure.YoloParameter)
- SharedDtor();
- }
- void YoloParameter::SharedDtor() {
- cfg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- weights_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void YoloParameter::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* YoloParameter::descriptor() {
- ::protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const YoloParameter& YoloParameter::default_instance() {
- ::protobuf_locate_5fparameter_2eproto::InitDefaultsYoloParameter();
- return *internal_default_instance();
- }
- YoloParameter* YoloParameter::New(::google::protobuf::Arena* arena) const {
- YoloParameter* n = new YoloParameter;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void YoloParameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:Measure.YoloParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(!cfg_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*cfg_.UnsafeRawStringPointer())->clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(!weights_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*weights_.UnsafeRawStringPointer())->clear();
- }
- }
- if (cached_has_bits & 124u) {
- min_x_ = 0;
- max_x_ = 12000;
- min_y_ = 4500;
- max_y_ = 11000;
- freq_ = 25;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool YoloParameter::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:Measure.YoloParameter)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional string cfg = 1 [default = ""];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_cfg()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cfg().data(), static_cast<int>(this->cfg().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Measure.YoloParameter.cfg");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string weights = 2 [default = ""];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_weights()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights().data(), static_cast<int>(this->weights().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Measure.YoloParameter.weights");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double min_x = 3 [default = 0];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
- set_has_min_x();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &min_x_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double max_x = 4 [default = 12000];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
- set_has_max_x();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &max_x_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double min_y = 5 [default = 4500];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
- set_has_min_y();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &min_y_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double max_y = 6 [default = 11000];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
- set_has_max_y();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &max_y_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double freq = 7 [default = 25];
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
- set_has_freq();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &freq_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Measure.YoloParameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Measure.YoloParameter)
- return false;
- #undef DO_
- }
- void YoloParameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Measure.YoloParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string cfg = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cfg().data(), static_cast<int>(this->cfg().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.YoloParameter.cfg");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->cfg(), output);
- }
- // optional string weights = 2 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights().data(), static_cast<int>(this->weights().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.YoloParameter.weights");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 2, this->weights(), output);
- }
- // optional double min_x = 3 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->min_x(), output);
- }
- // optional double max_x = 4 [default = 12000];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->max_x(), output);
- }
- // optional double min_y = 5 [default = 4500];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->min_y(), output);
- }
- // optional double max_y = 6 [default = 11000];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->max_y(), output);
- }
- // optional double freq = 7 [default = 25];
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->freq(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Measure.YoloParameter)
- }
- ::google::protobuf::uint8* YoloParameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Measure.YoloParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string cfg = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cfg().data(), static_cast<int>(this->cfg().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.YoloParameter.cfg");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->cfg(), target);
- }
- // optional string weights = 2 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights().data(), static_cast<int>(this->weights().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.YoloParameter.weights");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 2, this->weights(), target);
- }
- // optional double min_x = 3 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->min_x(), target);
- }
- // optional double max_x = 4 [default = 12000];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->max_x(), target);
- }
- // optional double min_y = 5 [default = 4500];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->min_y(), target);
- }
- // optional double max_y = 6 [default = 11000];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->max_y(), target);
- }
- // optional double freq = 7 [default = 25];
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->freq(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Measure.YoloParameter)
- return target;
- }
- size_t YoloParameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Measure.YoloParameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 127u) {
- // optional string cfg = 1 [default = ""];
- if (has_cfg()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->cfg());
- }
- // optional string weights = 2 [default = ""];
- if (has_weights()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->weights());
- }
- // optional double min_x = 3 [default = 0];
- if (has_min_x()) {
- total_size += 1 + 8;
- }
- // optional double max_x = 4 [default = 12000];
- if (has_max_x()) {
- total_size += 1 + 8;
- }
- // optional double min_y = 5 [default = 4500];
- if (has_min_y()) {
- total_size += 1 + 8;
- }
- // optional double max_y = 6 [default = 11000];
- if (has_max_y()) {
- total_size += 1 + 8;
- }
- // optional double freq = 7 [default = 25];
- if (has_freq()) {
- total_size += 1 + 8;
- }
- }
- 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 YoloParameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Measure.YoloParameter)
- GOOGLE_DCHECK_NE(&from, this);
- const YoloParameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const YoloParameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.YoloParameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.YoloParameter)
- MergeFrom(*source);
- }
- }
- void YoloParameter::MergeFrom(const YoloParameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Measure.YoloParameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 127u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_cfg();
- cfg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cfg_);
- }
- if (cached_has_bits & 0x00000002u) {
- set_has_weights();
- weights_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.weights_);
- }
- if (cached_has_bits & 0x00000004u) {
- min_x_ = from.min_x_;
- }
- if (cached_has_bits & 0x00000008u) {
- max_x_ = from.max_x_;
- }
- if (cached_has_bits & 0x00000010u) {
- min_y_ = from.min_y_;
- }
- if (cached_has_bits & 0x00000020u) {
- max_y_ = from.max_y_;
- }
- if (cached_has_bits & 0x00000040u) {
- freq_ = from.freq_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void YoloParameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Measure.YoloParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void YoloParameter::CopyFrom(const YoloParameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Measure.YoloParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool YoloParameter::IsInitialized() const {
- return true;
- }
- void YoloParameter::Swap(YoloParameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void YoloParameter::InternalSwap(YoloParameter* other) {
- using std::swap;
- cfg_.Swap(&other->cfg_);
- weights_.Swap(&other->weights_);
- swap(min_x_, other->min_x_);
- swap(max_x_, other->max_x_);
- swap(min_y_, other->min_y_);
- swap(max_y_, other->max_y_);
- swap(freq_, other->freq_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata YoloParameter::GetMetadata() const {
- protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void PointSiftParameter::InitAsDefaultInstance() {
- ::Measure::_PointSiftParameter_default_instance_._instance.get_mutable()->area_ = const_cast< ::Measure::Area3d*>(
- ::Measure::Area3d::internal_default_instance());
- }
- ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> PointSiftParameter::_default_graph_;
- ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> PointSiftParameter::_default_cpkt_;
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int PointSiftParameter::kPointSizeFieldNumber;
- const int PointSiftParameter::kClsNumFieldNumber;
- const int PointSiftParameter::kFreqFieldNumber;
- const int PointSiftParameter::kAreaFieldNumber;
- const int PointSiftParameter::kGraphFieldNumber;
- const int PointSiftParameter::kCpktFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- PointSiftParameter::PointSiftParameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_locate_5fparameter_2eproto::InitDefaultsPointSiftParameter();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Measure.PointSiftParameter)
- }
- PointSiftParameter::PointSiftParameter(const PointSiftParameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- graph_.UnsafeSetDefault(&::Measure::PointSiftParameter::_default_graph_.get());
- if (from.has_graph()) {
- graph_.AssignWithDefault(&::Measure::PointSiftParameter::_default_graph_.get(), from.graph_);
- }
- cpkt_.UnsafeSetDefault(&::Measure::PointSiftParameter::_default_cpkt_.get());
- if (from.has_cpkt()) {
- cpkt_.AssignWithDefault(&::Measure::PointSiftParameter::_default_cpkt_.get(), from.cpkt_);
- }
- if (from.has_area()) {
- area_ = new ::Measure::Area3d(*from.area_);
- } else {
- area_ = NULL;
- }
- ::memcpy(&point_size_, &from.point_size_,
- static_cast<size_t>(reinterpret_cast<char*>(&freq_) -
- reinterpret_cast<char*>(&point_size_)) + sizeof(freq_));
- // @@protoc_insertion_point(copy_constructor:Measure.PointSiftParameter)
- }
- void PointSiftParameter::SharedCtor() {
- _cached_size_ = 0;
- graph_.UnsafeSetDefault(&::Measure::PointSiftParameter::_default_graph_.get());
- cpkt_.UnsafeSetDefault(&::Measure::PointSiftParameter::_default_cpkt_.get());
- area_ = NULL;
- point_size_ = GOOGLE_LONGLONG(8192);
- cls_num_ = GOOGLE_LONGLONG(3);
- freq_ = 50;
- }
- PointSiftParameter::~PointSiftParameter() {
- // @@protoc_insertion_point(destructor:Measure.PointSiftParameter)
- SharedDtor();
- }
- void PointSiftParameter::SharedDtor() {
- graph_.DestroyNoArena(&::Measure::PointSiftParameter::_default_graph_.get());
- cpkt_.DestroyNoArena(&::Measure::PointSiftParameter::_default_cpkt_.get());
- if (this != internal_default_instance()) delete area_;
- }
- void PointSiftParameter::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* PointSiftParameter::descriptor() {
- ::protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const PointSiftParameter& PointSiftParameter::default_instance() {
- ::protobuf_locate_5fparameter_2eproto::InitDefaultsPointSiftParameter();
- return *internal_default_instance();
- }
- PointSiftParameter* PointSiftParameter::New(::google::protobuf::Arena* arena) const {
- PointSiftParameter* n = new PointSiftParameter;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void PointSiftParameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:Measure.PointSiftParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(!graph_.IsDefault(&::Measure::PointSiftParameter::_default_graph_.get()));
- (*graph_.UnsafeRawStringPointer())->assign(*&::Measure::PointSiftParameter::_default_graph_.get());
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(!cpkt_.IsDefault(&::Measure::PointSiftParameter::_default_cpkt_.get()));
- (*cpkt_.UnsafeRawStringPointer())->assign(*&::Measure::PointSiftParameter::_default_cpkt_.get());
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(area_ != NULL);
- area_->Clear();
- }
- point_size_ = GOOGLE_LONGLONG(8192);
- cls_num_ = GOOGLE_LONGLONG(3);
- freq_ = 50;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool PointSiftParameter::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:Measure.PointSiftParameter)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int64 point_size = 1 [default = 8192];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_point_size();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &point_size_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int64 cls_num = 2 [default = 3];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_cls_num();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &cls_num_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double freq = 3 [default = 50];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
- set_has_freq();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &freq_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .Measure.Area3d area = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_area()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string graph = 5 [default = "seg_model_last.ckpt.meta"];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_graph()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->graph().data(), static_cast<int>(this->graph().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Measure.PointSiftParameter.graph");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string cpkt = 6 [default = "seg_model_last.ckpt"];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_cpkt()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cpkt().data(), static_cast<int>(this->cpkt().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Measure.PointSiftParameter.cpkt");
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Measure.PointSiftParameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Measure.PointSiftParameter)
- return false;
- #undef DO_
- }
- void PointSiftParameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Measure.PointSiftParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int64 point_size = 1 [default = 8192];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->point_size(), output);
- }
- // optional int64 cls_num = 2 [default = 3];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->cls_num(), output);
- }
- // optional double freq = 3 [default = 50];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->freq(), output);
- }
- // optional .Measure.Area3d area = 4;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, *this->area_, output);
- }
- // optional string graph = 5 [default = "seg_model_last.ckpt.meta"];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->graph().data(), static_cast<int>(this->graph().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.PointSiftParameter.graph");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 5, this->graph(), output);
- }
- // optional string cpkt = 6 [default = "seg_model_last.ckpt"];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cpkt().data(), static_cast<int>(this->cpkt().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.PointSiftParameter.cpkt");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 6, this->cpkt(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Measure.PointSiftParameter)
- }
- ::google::protobuf::uint8* PointSiftParameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Measure.PointSiftParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int64 point_size = 1 [default = 8192];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->point_size(), target);
- }
- // optional int64 cls_num = 2 [default = 3];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->cls_num(), target);
- }
- // optional double freq = 3 [default = 50];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->freq(), target);
- }
- // optional .Measure.Area3d area = 4;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, *this->area_, deterministic, target);
- }
- // optional string graph = 5 [default = "seg_model_last.ckpt.meta"];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->graph().data(), static_cast<int>(this->graph().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.PointSiftParameter.graph");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 5, this->graph(), target);
- }
- // optional string cpkt = 6 [default = "seg_model_last.ckpt"];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cpkt().data(), static_cast<int>(this->cpkt().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.PointSiftParameter.cpkt");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 6, this->cpkt(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Measure.PointSiftParameter)
- return target;
- }
- size_t PointSiftParameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Measure.PointSiftParameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 63u) {
- // optional string graph = 5 [default = "seg_model_last.ckpt.meta"];
- if (has_graph()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->graph());
- }
- // optional string cpkt = 6 [default = "seg_model_last.ckpt"];
- if (has_cpkt()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->cpkt());
- }
- // optional .Measure.Area3d area = 4;
- if (has_area()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->area_);
- }
- // optional int64 point_size = 1 [default = 8192];
- if (has_point_size()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->point_size());
- }
- // optional int64 cls_num = 2 [default = 3];
- if (has_cls_num()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->cls_num());
- }
- // optional double freq = 3 [default = 50];
- if (has_freq()) {
- total_size += 1 + 8;
- }
- }
- 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 PointSiftParameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Measure.PointSiftParameter)
- GOOGLE_DCHECK_NE(&from, this);
- const PointSiftParameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const PointSiftParameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.PointSiftParameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.PointSiftParameter)
- MergeFrom(*source);
- }
- }
- void PointSiftParameter::MergeFrom(const PointSiftParameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Measure.PointSiftParameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_graph();
- graph_.AssignWithDefault(&::Measure::PointSiftParameter::_default_graph_.get(), from.graph_);
- }
- if (cached_has_bits & 0x00000002u) {
- set_has_cpkt();
- cpkt_.AssignWithDefault(&::Measure::PointSiftParameter::_default_cpkt_.get(), from.cpkt_);
- }
- if (cached_has_bits & 0x00000004u) {
- mutable_area()->::Measure::Area3d::MergeFrom(from.area());
- }
- if (cached_has_bits & 0x00000008u) {
- point_size_ = from.point_size_;
- }
- if (cached_has_bits & 0x00000010u) {
- cls_num_ = from.cls_num_;
- }
- if (cached_has_bits & 0x00000020u) {
- freq_ = from.freq_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void PointSiftParameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Measure.PointSiftParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void PointSiftParameter::CopyFrom(const PointSiftParameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Measure.PointSiftParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool PointSiftParameter::IsInitialized() const {
- return true;
- }
- void PointSiftParameter::Swap(PointSiftParameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void PointSiftParameter::InternalSwap(PointSiftParameter* other) {
- using std::swap;
- graph_.Swap(&other->graph_);
- cpkt_.Swap(&other->cpkt_);
- swap(area_, other->area_);
- swap(point_size_, other->point_size_);
- swap(cls_num_, other->cls_num_);
- swap(freq_, other->freq_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata PointSiftParameter::GetMetadata() const {
- protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void cnnParameter::InitAsDefaultInstance() {
- }
- ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> cnnParameter::_default_weights_file_;
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int cnnParameter::kLengthFieldNumber;
- const int cnnParameter::kWidthFieldNumber;
- const int cnnParameter::kHeightFieldNumber;
- const int cnnParameter::kFreqFieldNumber;
- const int cnnParameter::kNclassFieldNumber;
- const int cnnParameter::kWeightsFileFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- cnnParameter::cnnParameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_locate_5fparameter_2eproto::InitDefaultscnnParameter();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Measure.cnnParameter)
- }
- cnnParameter::cnnParameter(const cnnParameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- weights_file_.UnsafeSetDefault(&::Measure::cnnParameter::_default_weights_file_.get());
- if (from.has_weights_file()) {
- weights_file_.AssignWithDefault(&::Measure::cnnParameter::_default_weights_file_.get(), from.weights_file_);
- }
- ::memcpy(&length_, &from.length_,
- static_cast<size_t>(reinterpret_cast<char*>(&nclass_) -
- reinterpret_cast<char*>(&length_)) + sizeof(nclass_));
- // @@protoc_insertion_point(copy_constructor:Measure.cnnParameter)
- }
- void cnnParameter::SharedCtor() {
- _cached_size_ = 0;
- weights_file_.UnsafeSetDefault(&::Measure::cnnParameter::_default_weights_file_.get());
- length_ = 224;
- width_ = 224;
- height_ = 96;
- freq_ = 25;
- nclass_ = 3;
- }
- cnnParameter::~cnnParameter() {
- // @@protoc_insertion_point(destructor:Measure.cnnParameter)
- SharedDtor();
- }
- void cnnParameter::SharedDtor() {
- weights_file_.DestroyNoArena(&::Measure::cnnParameter::_default_weights_file_.get());
- }
- void cnnParameter::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* cnnParameter::descriptor() {
- ::protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const cnnParameter& cnnParameter::default_instance() {
- ::protobuf_locate_5fparameter_2eproto::InitDefaultscnnParameter();
- return *internal_default_instance();
- }
- cnnParameter* cnnParameter::New(::google::protobuf::Arena* arena) const {
- cnnParameter* n = new cnnParameter;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void cnnParameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:Measure.cnnParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(!weights_file_.IsDefault(&::Measure::cnnParameter::_default_weights_file_.get()));
- (*weights_file_.UnsafeRawStringPointer())->assign(*&::Measure::cnnParameter::_default_weights_file_.get());
- }
- length_ = 224;
- width_ = 224;
- height_ = 96;
- freq_ = 25;
- nclass_ = 3;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool cnnParameter::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:Measure.cnnParameter)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional double length = 1 [default = 224];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
- set_has_length();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &length_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double width = 2 [default = 224];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
- set_has_width();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &width_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double height = 3 [default = 96];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
- set_has_height();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &height_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double freq = 4 [default = 25];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
- set_has_freq();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &freq_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double nclass = 5 [default = 3];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
- set_has_nclass();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &nclass_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string weights_file = 6 [default = "frozen_model.pb"];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_weights_file()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights_file().data(), static_cast<int>(this->weights_file().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Measure.cnnParameter.weights_file");
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Measure.cnnParameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Measure.cnnParameter)
- return false;
- #undef DO_
- }
- void cnnParameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Measure.cnnParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional double length = 1 [default = 224];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->length(), output);
- }
- // optional double width = 2 [default = 224];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->width(), output);
- }
- // optional double height = 3 [default = 96];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->height(), output);
- }
- // optional double freq = 4 [default = 25];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->freq(), output);
- }
- // optional double nclass = 5 [default = 3];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->nclass(), output);
- }
- // optional string weights_file = 6 [default = "frozen_model.pb"];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights_file().data(), static_cast<int>(this->weights_file().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.cnnParameter.weights_file");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 6, this->weights_file(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Measure.cnnParameter)
- }
- ::google::protobuf::uint8* cnnParameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Measure.cnnParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional double length = 1 [default = 224];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->length(), target);
- }
- // optional double width = 2 [default = 224];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->width(), target);
- }
- // optional double height = 3 [default = 96];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->height(), target);
- }
- // optional double freq = 4 [default = 25];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->freq(), target);
- }
- // optional double nclass = 5 [default = 3];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->nclass(), target);
- }
- // optional string weights_file = 6 [default = "frozen_model.pb"];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights_file().data(), static_cast<int>(this->weights_file().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.cnnParameter.weights_file");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 6, this->weights_file(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Measure.cnnParameter)
- return target;
- }
- size_t cnnParameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Measure.cnnParameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 63u) {
- // optional string weights_file = 6 [default = "frozen_model.pb"];
- if (has_weights_file()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->weights_file());
- }
- // optional double length = 1 [default = 224];
- if (has_length()) {
- total_size += 1 + 8;
- }
- // optional double width = 2 [default = 224];
- if (has_width()) {
- total_size += 1 + 8;
- }
- // optional double height = 3 [default = 96];
- if (has_height()) {
- total_size += 1 + 8;
- }
- // optional double freq = 4 [default = 25];
- if (has_freq()) {
- total_size += 1 + 8;
- }
- // optional double nclass = 5 [default = 3];
- if (has_nclass()) {
- total_size += 1 + 8;
- }
- }
- 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 cnnParameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Measure.cnnParameter)
- GOOGLE_DCHECK_NE(&from, this);
- const cnnParameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const cnnParameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.cnnParameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.cnnParameter)
- MergeFrom(*source);
- }
- }
- void cnnParameter::MergeFrom(const cnnParameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Measure.cnnParameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_weights_file();
- weights_file_.AssignWithDefault(&::Measure::cnnParameter::_default_weights_file_.get(), from.weights_file_);
- }
- if (cached_has_bits & 0x00000002u) {
- length_ = from.length_;
- }
- if (cached_has_bits & 0x00000004u) {
- width_ = from.width_;
- }
- if (cached_has_bits & 0x00000008u) {
- height_ = from.height_;
- }
- if (cached_has_bits & 0x00000010u) {
- freq_ = from.freq_;
- }
- if (cached_has_bits & 0x00000020u) {
- nclass_ = from.nclass_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void cnnParameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Measure.cnnParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void cnnParameter::CopyFrom(const cnnParameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Measure.cnnParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool cnnParameter::IsInitialized() const {
- return true;
- }
- void cnnParameter::Swap(cnnParameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void cnnParameter::InternalSwap(cnnParameter* other) {
- using std::swap;
- weights_file_.Swap(&other->weights_file_);
- swap(length_, other->length_);
- swap(width_, other->width_);
- swap(height_, other->height_);
- swap(freq_, other->freq_);
- swap(nclass_, other->nclass_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata cnnParameter::GetMetadata() const {
- protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void LocateParameter::InitAsDefaultInstance() {
- ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->area_ = const_cast< ::Measure::Area3d*>(
- ::Measure::Area3d::internal_default_instance());
- ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->net_3dcnn_parameter_ = const_cast< ::Measure::cnnParameter*>(
- ::Measure::cnnParameter::internal_default_instance());
- ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->seg_parameter_ = const_cast< ::Measure::PointSiftParameter*>(
- ::Measure::PointSiftParameter::internal_default_instance());
- ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->yolo_parameter_ = const_cast< ::Measure::YoloParameter*>(
- ::Measure::YoloParameter::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int LocateParameter::kAreaFieldNumber;
- const int LocateParameter::kNet3DcnnParameterFieldNumber;
- const int LocateParameter::kSegParameterFieldNumber;
- const int LocateParameter::kYoloParameterFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- LocateParameter::LocateParameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_locate_5fparameter_2eproto::InitDefaultsLocateParameter();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Measure.LocateParameter)
- }
- LocateParameter::LocateParameter(const LocateParameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_area()) {
- area_ = new ::Measure::Area3d(*from.area_);
- } else {
- area_ = NULL;
- }
- if (from.has_net_3dcnn_parameter()) {
- net_3dcnn_parameter_ = new ::Measure::cnnParameter(*from.net_3dcnn_parameter_);
- } else {
- net_3dcnn_parameter_ = NULL;
- }
- if (from.has_seg_parameter()) {
- seg_parameter_ = new ::Measure::PointSiftParameter(*from.seg_parameter_);
- } else {
- seg_parameter_ = NULL;
- }
- if (from.has_yolo_parameter()) {
- yolo_parameter_ = new ::Measure::YoloParameter(*from.yolo_parameter_);
- } else {
- yolo_parameter_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:Measure.LocateParameter)
- }
- void LocateParameter::SharedCtor() {
- _cached_size_ = 0;
- ::memset(&area_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&yolo_parameter_) -
- reinterpret_cast<char*>(&area_)) + sizeof(yolo_parameter_));
- }
- LocateParameter::~LocateParameter() {
- // @@protoc_insertion_point(destructor:Measure.LocateParameter)
- SharedDtor();
- }
- void LocateParameter::SharedDtor() {
- if (this != internal_default_instance()) delete area_;
- if (this != internal_default_instance()) delete net_3dcnn_parameter_;
- if (this != internal_default_instance()) delete seg_parameter_;
- if (this != internal_default_instance()) delete yolo_parameter_;
- }
- void LocateParameter::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* LocateParameter::descriptor() {
- ::protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const LocateParameter& LocateParameter::default_instance() {
- ::protobuf_locate_5fparameter_2eproto::InitDefaultsLocateParameter();
- return *internal_default_instance();
- }
- LocateParameter* LocateParameter::New(::google::protobuf::Arena* arena) const {
- LocateParameter* n = new LocateParameter;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void LocateParameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:Measure.LocateParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(area_ != NULL);
- area_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(net_3dcnn_parameter_ != NULL);
- net_3dcnn_parameter_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(seg_parameter_ != NULL);
- seg_parameter_->Clear();
- }
- if (cached_has_bits & 0x00000008u) {
- GOOGLE_DCHECK(yolo_parameter_ != NULL);
- yolo_parameter_->Clear();
- }
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool LocateParameter::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:Measure.LocateParameter)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional .Measure.Area3d area = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_area()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_net_3dcnn_parameter()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .Measure.PointSiftParameter seg_parameter = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_seg_parameter()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .Measure.YoloParameter yolo_parameter = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_yolo_parameter()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Measure.LocateParameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Measure.LocateParameter)
- return false;
- #undef DO_
- }
- void LocateParameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Measure.LocateParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional .Measure.Area3d area = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *this->area_, output);
- }
- // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *this->net_3dcnn_parameter_, output);
- }
- // optional .Measure.PointSiftParameter seg_parameter = 3;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, *this->seg_parameter_, output);
- }
- // optional .Measure.YoloParameter yolo_parameter = 4;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, *this->yolo_parameter_, output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Measure.LocateParameter)
- }
- ::google::protobuf::uint8* LocateParameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Measure.LocateParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional .Measure.Area3d area = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, *this->area_, deterministic, target);
- }
- // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, *this->net_3dcnn_parameter_, deterministic, target);
- }
- // optional .Measure.PointSiftParameter seg_parameter = 3;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, *this->seg_parameter_, deterministic, target);
- }
- // optional .Measure.YoloParameter yolo_parameter = 4;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, *this->yolo_parameter_, deterministic, target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Measure.LocateParameter)
- return target;
- }
- size_t LocateParameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Measure.LocateParameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 15u) {
- // optional .Measure.Area3d area = 1;
- if (has_area()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->area_);
- }
- // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
- if (has_net_3dcnn_parameter()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->net_3dcnn_parameter_);
- }
- // optional .Measure.PointSiftParameter seg_parameter = 3;
- if (has_seg_parameter()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->seg_parameter_);
- }
- // optional .Measure.YoloParameter yolo_parameter = 4;
- if (has_yolo_parameter()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->yolo_parameter_);
- }
- }
- 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 LocateParameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Measure.LocateParameter)
- GOOGLE_DCHECK_NE(&from, this);
- const LocateParameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const LocateParameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.LocateParameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.LocateParameter)
- MergeFrom(*source);
- }
- }
- void LocateParameter::MergeFrom(const LocateParameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Measure.LocateParameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- mutable_area()->::Measure::Area3d::MergeFrom(from.area());
- }
- if (cached_has_bits & 0x00000002u) {
- mutable_net_3dcnn_parameter()->::Measure::cnnParameter::MergeFrom(from.net_3dcnn_parameter());
- }
- if (cached_has_bits & 0x00000004u) {
- mutable_seg_parameter()->::Measure::PointSiftParameter::MergeFrom(from.seg_parameter());
- }
- if (cached_has_bits & 0x00000008u) {
- mutable_yolo_parameter()->::Measure::YoloParameter::MergeFrom(from.yolo_parameter());
- }
- }
- }
- void LocateParameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Measure.LocateParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void LocateParameter::CopyFrom(const LocateParameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Measure.LocateParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool LocateParameter::IsInitialized() const {
- return true;
- }
- void LocateParameter::Swap(LocateParameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void LocateParameter::InternalSwap(LocateParameter* other) {
- using std::swap;
- swap(area_, other->area_);
- swap(net_3dcnn_parameter_, other->net_3dcnn_parameter_);
- swap(seg_parameter_, other->seg_parameter_);
- swap(yolo_parameter_, other->yolo_parameter_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata LocateParameter::GetMetadata() const {
- protobuf_locate_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locate_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace Measure
- // @@protoc_insertion_point(global_scope)
|