Xmipp  v3.23.11-Nereus
Macros | Functions
metadata_extension.h File Reference
#include "xmipp_filename.h"
#include "xmipp_image.h"
#include "metadata_vec.h"
#include "metadata_db.h"
#include <stdlib.h>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
Include dependency graph for metadata_extension.h:

Go to the source code of this file.

Macros

#define BLOCKROW   1
 
#define BLOCKCOLUNM   2
 
#define BLOCKMIXED   3
 
#define BLOCKDIFFERENCE   30
 

Functions

void getStatistics (const MetaData &md, Image< double > &_ave, Image< double > &_sd, bool apply_geo, bool wrap, MDLabel image_label=MDL_IMAGE)
 
void writeMdToStack (const MetaData &md, const FileName &fnStack, bool apply_geo, bool wrap, MDLabel image_label=MDL_IMAGE)
 
void getAverageApplyGeo (const MetaData &md, MultidimArray< double > &_ave, MDLabel image_label=MDL_IMAGE)
 
void getStatistics (const MetaData &md, double &_ave, double &_sd, double &_min, double &_max, bool apply_geo, MDLabel image_label=MDL_IMAGE)
 
void getFourierStatistics (MetaDataDb &MDin, double sam, MetaData &Mdout, bool do_dpr, double max_sam, MDLabel image_label=MDL_IMAGE)
 
void getImageSize (const MetaData &md, size_t &Xdim, size_t &Ydim, size_t &Zdim, size_t &Ndim, MDLabel image_label=MDL_IMAGE)
 
void getImageInfo (const MetaData &md, size_t &Xdim, size_t &Ydim, size_t &Zdim, size_t &Ndim, DataType &datatype, MDLabel image_label=MDL_IMAGE)
 
void getImageInfo (const MetaData &md, ImageInfo &imgInfo, MDLabel image_label=MDL_IMAGE)
 
void getImageSizeFromFilename (const FileName &filename, size_t &Xdim, size_t &Ydim, size_t &Zdim, size_t &Ndim, MDLabel image_label=MDL_IMAGE)
 
bool compareImage (const FileName &filename1, const FileName &filename2)
 compare two image files More...
 
bool compareImageSize (const FileName &filename1, const FileName &filename2)
 compare if same dimensions More...
 
bool compareTwoMetadataFiles (const FileName &fn1, const FileName &fn2)
 
int maxFileNameLength (const MetaData &md, MDLabel image_label=MDL_IMAGE)
 
void mpiSelectPart (MetaDataDb &md, int rank, int size, int &num_img_tot)
 
void readMetaDataWithTwoPossibleImages (const FileName &fn, MetaData &md)
 
void substituteOriginalImages (const FileName &fn, const FileName &fnOrig, const FileName &fnOut, MDLabel label, bool skipFirstBlock)
 
void bsoftRemoveLoopBlock (const FileName &_inFile, const FileName &block)
 
void bsoftRestoreLoopBlock (const FileName &_inFile, const FileName &block)
 
Matrix2D< double > getMatrix (char *matrix)
 
MDRowVec firstRow (const FileName &fnMetadata)
 

Macro Definition Documentation

◆ BLOCKCOLUNM

#define BLOCKCOLUNM   2

Definition at line 22 of file metadata_extension.h.

◆ BLOCKDIFFERENCE

#define BLOCKDIFFERENCE   30

Definition at line 24 of file metadata_extension.h.

◆ BLOCKMIXED

#define BLOCKMIXED   3

Definition at line 23 of file metadata_extension.h.

◆ BLOCKROW

#define BLOCKROW   1

Definition at line 21 of file metadata_extension.h.