Commit 139e4bd2 authored by kirov's avatar kirov
Browse files

Added default constructor of the FrameBuilder calss.



git-svn-id: https://scm.blissgarden.org/svn/lima/trunk@23 45c4679d-1946-429d-baad-37912b19538b
parent bde0b463
......@@ -20,8 +20,8 @@ class FrameBuilder {
int width, height, depth;
std::vector<struct GaussPeak> peaks;
double inc;
FrameBuilder();
FrameBuilder( int bin_X, int bin_Y, int width, int height, int depth,
std::vector<struct GaussPeak> &peaks );
~FrameBuilder();
......
......@@ -9,6 +9,19 @@ using namespace lima;
using namespace std;
FrameBuilder::FrameBuilder()
{
bin_X = 1;
bin_Y = 1;
width = height = 1024;
depth = 2;
GaussPeak p={512, 512, 100, 1};
peaks.push_back(p);
this->_frame_nr = 0;
}
FrameBuilder::FrameBuilder( int bin_X, int bin_Y,
int width, int height, int depth,
std::vector<struct GaussPeak> &peaks ):
......
......@@ -9,7 +9,7 @@ int main( void )
{
GaussPeak p[2]={{333, 512, 50, 1}, {666, 512, 100, 1}};
vector<GaussPeak> pv( p, p + sizeof(p)/sizeof(*p) );
FrameBuilder fb(1, 1, 1024, 1024, 2, pv);
FrameBuilder fb, fb2(1, 1, 1024, 1024, 2, pv);
BufferSave bs("boza", FMT_EDF);
FrameInfoType finfo;
unsigned char *_buffer;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment