#include <stdlib.h>
#include <core/xmipp_image.h>
#include <core/xmipp_image_extension.h>
#include <iostream>
#include <gtest/gtest.h>
#include <data/phantom.h>
#include <core/xmipp_program.h>
#include <cstdio>
#include <unistd.h>
Go to the source code of this file.
◆ DEBUG
◆ TEST_F()
Definition at line 117 of file test_transform_window.cpp.
120 char filename[] =
"/tmp/mytemp.XXXXXX";
121 int fd = mkstemp(filename);
125 std::cerr <<
"filename: " << filename << std::endl;
128 std::cerr <<
" cannot open temporary file" << std::endl;
136 const char inFn[] =
"/tmp/inTransformWindowTest.mrc";
137 const char outFn[] =
"/tmp/outTransformWindowTest.mrc";
138 phantom.
read(filename);
140 vol().addNoise(0,0.1,
"gaussian");
144 char commandBuff[180];
146 snprintf(commandBuff,
sizeof(commandBuff),
147 "xmipp_transform_window -i %s -o %s --unitcell i2 80 140 .25 0",
151 std::cerr <<
"commandBuff: " << commandBuff << std::endl;
void write(std::ostream &os, const datablock &db)
void write(const FileName &name="", size_t select_img=ALL_IMAGES, bool isStack=false, int mode=WRITE_OVERWRITE, CastWriteMode castMode=CW_CAST, int _swapWrite=0)
#define ASSERT_EQ(val1, val2)
#define ASSERT_TRUE(condition)
void draw_in(MultidimArray< double > &V)
void read(const FileName &fn_phantom, bool apply_scale=true)
◆ ico_i2