iplocallab.cc: further cleanups
This commit is contained in:
parent
67bbba5605
commit
933fee8c73
File diff suppressed because it is too large
Load Diff
@ -37,10 +37,10 @@ LabImage::~LabImage ()
|
||||
deleteLab();
|
||||
}
|
||||
|
||||
void LabImage::CopyFrom(LabImage *Img)
|
||||
void LabImage::CopyFrom(LabImage *Img, bool multiThread)
|
||||
{
|
||||
#ifdef _OPENMP
|
||||
#pragma omp parallel sections
|
||||
#pragma omp parallel sections if(multiThread)
|
||||
{
|
||||
#pragma omp section
|
||||
memcpy(L[0], Img->L[0], static_cast<std::size_t>(W) * H * sizeof(float));
|
||||
|
@ -39,7 +39,7 @@ public:
|
||||
~LabImage ();
|
||||
|
||||
//Copies image data in Img into this instance.
|
||||
void CopyFrom(LabImage *Img);
|
||||
void CopyFrom(LabImage *Img, bool multiThread = true);
|
||||
void getPipetteData (float &L, float &a, float &b, int posX, int posY, int squareSize);
|
||||
void deleteLab();
|
||||
void reallocLab();
|
||||
|
Loading…
x
Reference in New Issue
Block a user