Xmipp  v3.23.11-Nereus
Macros
sampling.cpp File Reference
#include <fstream>
#include "sampling.h"
#include "core/geometry.h"
#include "core/xmipp_image_macros.h"
#include "core/metadata_vec.h"
Include dependency graph for sampling.cpp:

Go to the source code of this file.

Macros

#define CLEAR_VECTORS()
 
#define CREATE_INDEXES()
 
#define FN_SAMPLING_NEI(base)   formatString("neighbors@%s_sampling.xmd", base.c_str())
 
#define FN_SAMPLING_PROJ(base)   formatString("projectionDirections@%s_sampling.xmd", base.c_str())
 
#define FN_SAMPLING_EXTRA(base)   formatString("extra@%s_sampling.xmd", base.c_str())
 
#define FN_SAMPLING_SPHERE(base)   formatString("projectionDirectionsSphere@%s_sampling.xmd", base.c_str())
 
#define REMOVE_LAST(vector)   vector[i] = vector[my_end]; vector.pop_back();
 

Macro Definition Documentation

◆ CLEAR_VECTORS

#define CLEAR_VECTORS ( )
Value:
no_redundant_sampling_points_vector.clear();\
no_redundant_sampling_points_angles.clear();\
no_redundant_sampling_points_index.clear()

Definition at line 679 of file sampling.cpp.

◆ CREATE_INDEXES

#define CREATE_INDEXES ( )
Value:
size_t __size = no_redundant_sampling_points_angles.size();\
no_redundant_sampling_points_index.resize(__size, 0);\
size_t * __ptrIndex = &(no_redundant_sampling_points_index[0]);\
for (size_t i = 1; i < __size; ++i)\
__ptrIndex[i] = i
#define i

Definition at line 684 of file sampling.cpp.

◆ FN_SAMPLING_EXTRA

#define FN_SAMPLING_EXTRA (   base)    formatString("extra@%s_sampling.xmd", base.c_str())

Definition at line 1492 of file sampling.cpp.

◆ FN_SAMPLING_NEI

#define FN_SAMPLING_NEI (   base)    formatString("neighbors@%s_sampling.xmd", base.c_str())

Definition at line 1490 of file sampling.cpp.

◆ FN_SAMPLING_PROJ

#define FN_SAMPLING_PROJ (   base)    formatString("projectionDirections@%s_sampling.xmd", base.c_str())

Definition at line 1491 of file sampling.cpp.

◆ FN_SAMPLING_SPHERE

#define FN_SAMPLING_SPHERE (   base)    formatString("projectionDirectionsSphere@%s_sampling.xmd", base.c_str())

Definition at line 1493 of file sampling.cpp.

◆ REMOVE_LAST

#define REMOVE_LAST (   vector)    vector[i] = vector[my_end]; vector.pop_back();

Remove all those points no closer than neighborhood_radius_rad

Definition at line 1926 of file sampling.cpp.