Skip to content

Commit

Permalink
Merge branch 'mpd'
Browse files Browse the repository at this point in the history
  • Loading branch information
deseilligny committed Oct 24, 2023
2 parents b1cff61 + 8618c71 commit 5a66e3f
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion MMVII/MMVII-UseCaseDataSet/Circ-Code-Target/Info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ MMVII CodedTargetCircExtract ".*_Scaled.tif" CERN_Nbb14_Freq14_Hamm1_Run1000_10


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


# Now it works
Expand Down
2 changes: 1 addition & 1 deletion MMVII/MMVII-UseCaseDataSet/DevlopImage/Info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ mm3d TiPunch C3DC_BigMac.ply Filter=0
# ========== MMVII part =======
# ===================================================

MMVII OriConvV1V2 Ori-Basc/ Basc
MMVII V1OriConv Ori-Basc/ Basc


MMVII MeshCheck C3DC_BigMac_mesh.ply Out=Correc-C3DC_BigMac_mesh.ply Bin=1
Expand Down
2 changes: 1 addition & 1 deletion MMVII/include/MMVII_Sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class cPhotogrammetricProject
void SaveCamPC(const cSensorCamPC &) const; ///< Save camera using OutPut-orientation
void SaveCalibPC(const cPerspCamIntrCalib & aCalib) const; ///< Save calibration using OutPut-orientation

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


/// Load a sensor, try different type (will add RPC , and others ?)
Expand Down
15 changes: 8 additions & 7 deletions MMVII/include/TreeDist.h
Original file line number Diff line number Diff line change
Expand Up @@ -723,18 +723,19 @@ void cOneBenchFastTreeDist::MakeOneTest(bool Show,bool CheckDist)
// ---- 1.2 generate the graph -------------
std::vector<int> aV1;
std::vector<int> aV2;
// will be used to order randomly the CC
std::vector<double> aVR;
for (int aK=0 ; aK<mNbSom ; aK++)
{
aVR.push_back(TREEDIST_RandUnif_0_1());
}
for (auto & aCC : aVCC) // For each CC
{
// order randomly the CC
std::vector<double> aVR;
for (int aK=0 ; aK<int(aCC.size()) ; aK++)
{
aVR.push_back(TREEDIST_RandUnif_0_1());
}
std::sort
(
aCC.begin(),aCC.end(),
[aVR](int i1,int i2) {return aVR[i1]<aVR[i2];}
// [aVR](int i1,int i2) {return aVR[i1]<aVR[i2];}
[aVR](int i1,int i2) {return aVR.at(i1)<aVR.at(i2);}
);
for (int aK1=1 ; aK1<int(aCC.size()) ; aK1++)
{
Expand Down
2 changes: 1 addition & 1 deletion MMVII/src/ConvertFormat/ImportGCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ tMMVII_UnikPApli Alloc_ImportGCP(const std::vector<std::string> & aVArgs,const c

cSpecMMVII_Appli TheSpec_ImportGCP
(
"V1ImportGCP",
"ImportGCP",
Alloc_ImportGCP,
"Import/Convert basic GCP file in MMVII format",
{eApF::GCP},
Expand Down
2 changes: 1 addition & 1 deletion MMVII/src/ConvertFormat/V1ImportGCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ tMMVII_UnikPApli Alloc_ConvertV1V2_GCPIM(const std::vector<std::string> & aVArgs

cSpecMMVII_Appli TheSpec_ConvertV1V2_GCPIM
(
"ConvertGCPIm",
"V1ConvertGCPIm",
Alloc_ConvertV1V2_GCPIM,
"Convert Im&GCP measure from V1 to VII format",
{eApF::GCP},
Expand Down
2 changes: 1 addition & 1 deletion MMVII/src/Radiom/cModelRadioms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ cCalRadIm_Pol::cCalRadIm_Pol(cCalibRadiomSensor * aCalSens,int aDegree,const st
// mImaEqual = EqRadiomEqualisation(mCalibSens->NbParamRad(),mDegree,true,1);
PostInit();

StdOut() << "CPPP=" << mCoeffPol << " D=" << mDegree << std::endl;
// StdOut() << "CPPP=" << mCoeffPol << " D=" << mDegree << std::endl;
}
}

Expand Down
1 change: 0 additions & 1 deletion MMVII/src/Radiom/cRadiomCreateModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ int cAppliCreateModelRadiom::Exe()
StdOut() << "ZZZZ= " << aCRI->NameIm() << std::endl;
delete aCRI;
}

}

return EXIT_SUCCESS;
Expand Down
11 changes: 5 additions & 6 deletions MMVII/src/Sensors/cPhotogrammetricProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,6 @@ void cPhotogrammetricProject::FinishInit()
// Create an example file if none exist
GenerateSampleCalcMTD();

// StdOut() << "MTD=" << mDPMetaData.FullDirOut() << std::endl;
// StdOut() << "MTD=" << mDPMetaData.FullDirOut() << std::endl; getchar();
}

cPhotogrammetricProject::~cPhotogrammetricProject()
Expand Down Expand Up @@ -410,7 +408,7 @@ void cPhotogrammetricProject::SaveCalibPC(const cPerspCamIntrCalib & aCalib) co
}


cSensorCamPC * cPhotogrammetricProject::ReadCamPC(const std::string & aNameIm,bool ToDelete,bool SVP) const
cSensorCamPC * cPhotogrammetricProject::ReadCamPC(const std::string & aNameIm,bool ToDeleteAutom,bool SVP) const
{
mDPOrient.AssertDirInIsInit();

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

if (ToDelete)
if (ToDeleteAutom)
cMMVII_Appli::AddObj2DelAtEnd(aCamPC);


Expand Down Expand Up @@ -468,7 +468,6 @@ cPerspCamIntrCalib * cPhotogrammetricProject::InternalCalibFromImage(const std:
// * case where calib exist but not pose
// * case where nor calib nor pose exist, and must be created from xif
mDPOrient.AssertDirInIsInit();

cSensorCamPC * aPC = ReadCamPC(aNameIm,false);
cPerspCamIntrCalib * aCalib = aPC->InternalCalib();
delete aPC;
Expand Down

0 comments on commit 5a66e3f

Please sign in to comment.