Go to the source code of this file.
|
double | getScale (ImageInfo imgInf, size_t &xdim, size_t &ydim) |
|
void | createEmptyFile (const FileName &filename, int xdim, int ydim, int Zdim, size_t select_img, bool isStack, int mode, int _swapWrite, const MDRowVec *md) |
|
◆ ADD
◆ CONVERTTYPE
#define CONVERTTYPE |
( |
|
type | ) |
|
Value: newImage = imT;\
MultidimArray<type>* pMAG;\
newMAG->getMultidimArrayPointer(pMAG);\
data->getImage(*pMAG);\
else\
{\
pMAG->resize(aDim);\
data->computeDoubleMinMax(min, max);\
((
Image<double>*) image)->getCastConvertPageFromT(0, (
char*)pMAG->data, _datatype, aDim.nzyxdim, min, max, castMode);\
}\
void min(Image< double > &op1, const Image< double > &op2)
void max(Image< double > &op1, const Image< double > &op2)
◆ COPY
◆ DIVIDE
◆ DIVIDEIMG
#define DIVIDEIMG |
( |
|
type | ) |
|
◆ MINUS
◆ MULTIPLY
◆ MULTIPLYIMG
#define MULTIPLYIMG |
( |
|
type | ) |
|
◆ SET_DATATYPE
#define SET_DATATYPE |
( |
|
name | ) |
ImageInfo imgInf; setDatatype(name, imgInf); |
◆ createEmptyFile()
void createEmptyFile |
( |
const FileName & |
_filename, |
|
|
int |
Xdim, |
|
|
int |
Ydim, |
|
|
int |
Zdim = 1 , |
|
|
size_t |
select_img = APPEND_IMAGE , |
|
|
bool |
isStack = false , |
|
|
int |
mode = WRITE_OVERWRITE , |
|
|
int |
_swapWrite = 0 , |
|
|
const MDRowVec * |
md = nullptr |
|
) |
| |
Create an empty image file
An image file, which name and format are given by filename, is created. Only the header info is written, and if image number is given, then disk space is reserved until select_img . Swap the endianness of the image header is also possible.
Definition at line 617 of file xmipp_image_generic.cpp.
621 size_t found = filename.find_first_of(
"%");
624 if (found == String::npos)
628 strType = filename.substr(found+1).c_str();
636 image.
mapFile2Write(xdim, ydim, Zdim, filename,
false, select_img, isStack,
mode, _swapWrite);
void mapFile2Write(int Xdim, int Ydim, int Zdim, const FileName &_filename, bool createTempFile=false, size_t select_img=APPEND_IMAGE, bool isStack=false, int mode=WRITE_OVERWRITE, int _swapWrite=0)
DataType str2Datatype(const std::string &str)
void setDatatype(DataType _datatype)
◆ getScale()
double getScale |
( |
ImageInfo |
imgInf, |
|
|
size_t & |
xdim, |
|
|
size_t & |
ydim |
|
) |
| |