iplocallab.cc: further cleanups

This commit is contained in:
Ingo Weyrich 2020-06-11 17:28:40 +02:00
parent 67bbba5605
commit 933fee8c73
3 changed files with 474 additions and 729 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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));

View File

@ -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();