I refered the cudaMemcpy2D function in camera_gsml_raw/main.cpp and want to get the pixel data.
dwImageCUDA* rgbaImage = nullptr;
.
.
.
vector<uint32_t> cpuData;
cpuData.resize(rgbaImage->prop.width * rgbaImage->prop.height);
CHECK_CUDA_ERROR(cudaMemcpy2D(&cpuData(0), rgbaImage->prop.width * 4, rgbaImage->dptr[0],
rgbaImage->pitch[0], rgbaImage->prop.width * 4, rgbaImage->prop.height,
cudaMemcpyDeviceToHost));
I printed out the cpuData vector and the data looks like below:
...,4281742395,4281742395,4281742395,4281742395,4281742395,4281742395,4281611323,4281611323,4281611323,4281611323,4281611323,4281611323,4281611323,4281677116,4281677116,4281677116,4281808445,4281808445,4281808445,4281808445,4281808445,4281808445,4281808445,4281808445,4281808445,4281808445,4281808445,4281808445,4281808445,4281808445,4280624428,4280163877,4279769119,4279637533,4279637533,4279637533,4279637533,4279637533,4279702810,4279702810,4279702810,4279702810,4279702810,4279702810,4279702810,4279702810,4279637271,4279637271,4279637271,4279637271,4279637271,4279637271,...
What does it means?