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

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