MCPcopy Create free account
hub / github.com/NVlabs/flip / copyFloatToColor3

Method copyFloatToColor3

src/cpp/FLIP.h:1445–1458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1443 }
1444
1445 void copyFloatToColor3(tensor<float>& srcImage)
1446 {
1447 for (int z = 0; z < this->getDepth(); z++)
1448 {
1449#pragma omp parallel for
1450 for (int y = 0; y < this->getHeight(); y++)
1451 {
1452 for (int x = 0; x < this->getWidth(); x++)
1453 {
1454 this->set(x, y, z, color3(srcImage.get(x, y, z)));
1455 }
1456 }
1457 }
1458 }
1459#else // FLIP_ENABLE_CUDA
1460 void synchronizeHost(void)
1461 {

Callers 2

saveErrorAndExposureMapsFunction · 0.80

Calls 8

getDepthMethod · 0.95
getHeightMethod · 0.95
getWidthMethod · 0.95
setMethod · 0.95
color3Class · 0.85
synchronizeDeviceMethod · 0.80
getDeviceDataMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected