41 addParamsLine(
" [--extractParticlesMD] : If we want to process a MetaData that comes from ExtractParticles protocol and some of the particles have been rejected");
42 addExampleLine(
"Produce XML file from a metadata for benchmark",
false);
43 addExampleLine(
"xmipp_metadata_XML -i DefaultFamily_extract_list.xmd -o XMLFile.xml");
50 extracPart =
checkParam(
"--extractParticlesMD");
60 fhOut.open(fnOut.c_str());
61 fhOut<<
"<particlepicking>"<<std::endl;
68 for (
size_t i=0;
i<blockList.size();
i++)
70 MD.
read(blockList[
i]+
"@"+fnIn);
73 fhOut<<
"<micrograph id=\""<<micName<<
"\">"<<std::endl;
74 for (
size_t objId : MD.
ids())
78 fhOut<<
"<coordinate x=\""<<x<<
"\" y=\""<<y<<
"\"/>"<<std::endl;
80 fhOut<<
"</micrograph>"<<std::endl;
89 std::cout << fnIn << std::endl;
95 fhOut<<
"<micrograph id=\""<<nodirName<<
"\">"<<std::endl;
99 fhOut<<
"<coordinate x=\""<<x<<
"\" y=\""<<y<<
"\"/>"<<std::endl;
101 for (
auto idIt = sortedMD.
ids().begin(); idIt != sortedMD.
ids().end(); ++idIt)
106 size_t objId = *idIt;
114 fhOut<<
"<coordinate x=\""<<x<<
"\" y=\""<<y<<
"\"/>"<<std::endl;
118 fhOut<<
"</micrograph>"<<std::endl;
122 fhOut<<
"<micrograph id=\""<<nodirName<<
"\">"<<std::endl;
125 fhOut<<
"<coordinate x=\""<<x<<
"\" y=\""<<y<<
"\"/>"<<std::endl;
130 fhOut<<
"</micrograph>"<<std::endl;
131 fhOut<<
"</particlepicking>"<<std::endl;
FileName removeDirectories(int keep=0) const
FileName removeAllExtensions() const
std::vector< String > StringVector
const char * getParam(const char *param, int arg=0)
void addExampleLine(const char *example, bool verbatim=true)
FileName removeUntilPrefix(const String &prefix) const
const char * name() const
bool checkParam(const char *param)
void addUsageLine(const char *line, bool verbatim=false)
void addParamsLine(const String &line)