Skip to content

Commit 8618c71

Browse files
author
deseilligny
committed
Some bug
1 parent 4d1db44 commit 8618c71

File tree

10 files changed

+20
-21
lines changed

10 files changed

+20
-21
lines changed

MMVII/MMVII-UseCaseDataSet/Circ-Code-Target/Info.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ MMVII CodedTargetCircExtract ".*_Scaled.tif" CERN_Nbb14_Freq14_Hamm1_Run1000_10
3636

3737

3838
# make a copy a GCP at write placecp Data-Aux/MesGCP-AICON-CERN-Pannel.xml MMVII-PhgrProj/PointsMeasure/Test/
39-
MMVII ImportGCP Data-Aux/Positions-3D-14bit_lookup.txt NXYZ OutPointsMeasure=Test NbDigName=3
39+
MMVII ImportGCP Data-Aux/Positions-3D-14bit_lookup.txt NXYZ Test NbDigName=3
4040

4141

4242
# Now it works

MMVII/MMVII-UseCaseDataSet/DevlopImage/Info.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mm3d TiPunch C3DC_BigMac.ply Filter=0
4040
# ========== MMVII part =======
4141
# ===================================================
4242

43-
MMVII OriConvV1V2 Ori-Basc/ Basc
43+
MMVII V1OriConv Ori-Basc/ Basc
4444

4545

4646
MMVII MeshCheck C3DC_BigMac_mesh.ply Out=Correc-C3DC_BigMac_mesh.ply Bin=1

MMVII/include/MMVII_Sensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ class cPhotogrammetricProject
328328
void SaveCamPC(const cSensorCamPC &) const; ///< Save camera using OutPut-orientation
329329
void SaveCalibPC(const cPerspCamIntrCalib & aCalib) const; ///< Save calibration using OutPut-orientation
330330

331-
cSensorCamPC * ReadCamPC(const std::string &,bool ToDelete,bool SVP=false) const; ///< Create Camera using Input orientation
331+
cSensorCamPC * ReadCamPC(const std::string &,bool ToDeleteAutom,bool SVP=false) const; ///< Create Camera using Input orientation
332332

333333

334334
/// Load a sensor, try different type (will add RPC , and others ?)

MMVII/include/TreeDist.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -723,18 +723,19 @@ void cOneBenchFastTreeDist::MakeOneTest(bool Show,bool CheckDist)
723723
// ---- 1.2 generate the graph -------------
724724
std::vector<int> aV1;
725725
std::vector<int> aV2;
726+
// will be used to order randomly the CC
727+
std::vector<double> aVR;
728+
for (int aK=0 ; aK<mNbSom ; aK++)
729+
{
730+
aVR.push_back(TREEDIST_RandUnif_0_1());
731+
}
726732
for (auto & aCC : aVCC) // For each CC
727733
{
728-
// order randomly the CC
729-
std::vector<double> aVR;
730-
for (int aK=0 ; aK<int(aCC.size()) ; aK++)
731-
{
732-
aVR.push_back(TREEDIST_RandUnif_0_1());
733-
}
734734
std::sort
735735
(
736736
aCC.begin(),aCC.end(),
737-
[aVR](int i1,int i2) {return aVR[i1]<aVR[i2];}
737+
// [aVR](int i1,int i2) {return aVR[i1]<aVR[i2];}
738+
[aVR](int i1,int i2) {return aVR.at(i1)<aVR.at(i2);}
738739
);
739740
for (int aK1=1 ; aK1<int(aCC.size()) ; aK1++)
740741
{

MMVII/include/cMMVII_Appli.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class cMMVII_Ap_CPU
303303
The full command line can be retreive by the .Com() method.
304304
305305
Ex:
306-
cParamCallSys aCom(cMMVII_Apli::FullBin(),"Bench",1);
306+
cParamCallSys aCom(cMMVII_Apli::FullBin(),"Bench","1");
307307
or
308308
cParamCallSys aCom;
309309
aCom.AddArgs(cMMVII_Apli::FullBin());

MMVII/src/ConvertFormat/ImportGCP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ tMMVII_UnikPApli Alloc_ImportGCP(const std::vector<std::string> & aVArgs,const c
136136

137137
cSpecMMVII_Appli TheSpec_ImportGCP
138138
(
139-
"V1ImportGCP",
139+
"ImportGCP",
140140
Alloc_ImportGCP,
141141
"Import/Convert basic GCP file in MMVII format",
142142
{eApF::GCP},

MMVII/src/ConvertFormat/V1ImportGCP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ tMMVII_UnikPApli Alloc_ConvertV1V2_GCPIM(const std::vector<std::string> & aVArgs
118118

119119
cSpecMMVII_Appli TheSpec_ConvertV1V2_GCPIM
120120
(
121-
"ConvertGCPIm",
121+
"V1ConvertGCPIm",
122122
Alloc_ConvertV1V2_GCPIM,
123123
"Convert Im&GCP measure from V1 to VII format",
124124
{eApF::GCP},

MMVII/src/Radiom/cModelRadioms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ cCalRadIm_Pol::cCalRadIm_Pol(cCalibRadiomSensor * aCalSens,int aDegree,const st
270270
// mImaEqual = EqRadiomEqualisation(mCalibSens->NbParamRad(),mDegree,true,1);
271271
PostInit();
272272

273-
StdOut() << "CPPP=" << mCoeffPol << " D=" << mDegree << std::endl;
273+
// StdOut() << "CPPP=" << mCoeffPol << " D=" << mDegree << std::endl;
274274
}
275275
}
276276

MMVII/src/Radiom/cRadiomCreateModel.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ int cAppliCreateModelRadiom::Exe()
8181
StdOut() << "ZZZZ= " << aCRI->NameIm() << std::endl;
8282
delete aCRI;
8383
}
84-
8584
}
8685

8786
return EXIT_SUCCESS;

MMVII/src/Sensors/cPhotogrammetricProject.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,6 @@ void cPhotogrammetricProject::FinishInit()
284284
// Create an example file if none exist
285285
GenerateSampleCalcMTD();
286286

287-
// StdOut() << "MTD=" << mDPMetaData.FullDirOut() << std::endl;
288-
// StdOut() << "MTD=" << mDPMetaData.FullDirOut() << std::endl; getchar();
289287
}
290288

291289
cPhotogrammetricProject::~cPhotogrammetricProject()
@@ -410,7 +408,7 @@ void cPhotogrammetricProject::SaveCalibPC(const cPerspCamIntrCalib & aCalib) co
410408
}
411409

412410

413-
cSensorCamPC * cPhotogrammetricProject::ReadCamPC(const std::string & aNameIm,bool ToDelete,bool SVP) const
411+
cSensorCamPC * cPhotogrammetricProject::ReadCamPC(const std::string & aNameIm,bool ToDeleteAutom,bool SVP) const
414412
{
415413
mDPOrient.AssertDirInIsInit();
416414

@@ -420,9 +418,11 @@ cSensorCamPC * cPhotogrammetricProject::ReadCamPC(const std::string & aNameIm,bo
420418
{
421419
return nullptr;
422420
}
423-
cSensorCamPC * aCamPC = cSensorCamPC::FromFile(aNameCam,!ToDelete);
421+
// Modif MPD : if we want to delete it ourseff (ToDeleteAuto=false) it must not be a remanent object
422+
// cSensorCamPC * aCamPC = cSensorCamPC::FromFile(aNameCam,!ToDelete);
423+
cSensorCamPC * aCamPC = cSensorCamPC::FromFile(aNameCam,ToDeleteAutom);
424424

425-
if (ToDelete)
425+
if (ToDeleteAutom)
426426
cMMVII_Appli::AddObj2DelAtEnd(aCamPC);
427427

428428

@@ -468,7 +468,6 @@ cPerspCamIntrCalib * cPhotogrammetricProject::InternalCalibFromImage(const std:
468468
// * case where calib exist but not pose
469469
// * case where nor calib nor pose exist, and must be created from xif
470470
mDPOrient.AssertDirInIsInit();
471-
472471
cSensorCamPC * aPC = ReadCamPC(aNameIm,false);
473472
cPerspCamIntrCalib * aCalib = aPC->InternalCalib();
474473
delete aPC;

0 commit comments

Comments
 (0)