You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue when generating synthetic depth images using the below code in this repository.
DepthImage* ProjectiveSemanticIntegrator::get_synthetic_depth_image(
const Camera& camera, const Transform& T_L_C, const TsdfLayer& tsdf_layer) {
// Metric truncation distance for this layer
const float truncation_distance_m =
truncation_distance_vox_ *tsdf_layer.voxel_size();
// Get preallocated space for the synthetic depth image
const SphereTracer::SubsampledImageSize image_size =
sphere_tracer_.getSubsampledImageSize(
camera, sphere_tracing_ray_subsampling_factor_);
DepthImage* synthetic_depth_image = synthetic_depth_images_.get(
image_size.rows, image_size.cols, MemoryType::kDevice);
// Create a synthetic depth image
timing::Timer sphere_trace_timer("semantic/integrate/sphere_trace");
sphere_tracer_.renderImageOnGPU(
camera, T_L_C, tsdf_layer, truncation_distance_m, synthetic_depth_image,
MemoryType::kDevice, sphere_tracing_ray_subsampling_factor_);sphere_trace_timer.Stop();
return synthetic_depth_image;
}
Unlike the real depth image, the synthetic depth image contains noticeable noise. I have included two images for comparison below, one showing the real depth image (without noise) and the other showing the synthesized depth image (with noise).
The real depth pointcloud looks like,
And the synthesized depth looks like,
The synthetic depth image seems to include voxels in locations that should not logically exist based on the scene’s structure and the real depth image.
Could you give me advice for what could be causing this issue and potential solutions to address it?
Thank you for reading.
The text was updated successfully, but these errors were encountered:
I encountered an issue when generating synthetic depth images using the below code in this repository.
Unlike the real depth image, the synthetic depth image contains noticeable noise. I have included two images for comparison below, one showing the real depth image (without noise) and the other showing the synthesized depth image (with noise).
![depth](https://private-user-images.githubusercontent.com/48019048/381141933-926f3df2-9469-4aa2-a336-4e864af706c5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTIzNDksIm5iZiI6MTczOTI5MjA0OSwicGF0aCI6Ii80ODAxOTA0OC8zODExNDE5MzMtOTI2ZjNkZjItOTQ2OS00YWEyLWEzMzYtNGU4NjRhZjcwNmM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE2NDA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc3N2FkMmUzMGFhN2ZiMDhkMTI4NTEzZDkyMmJmYmMyNmY1NDkyZTc4OWRkYmUzMmJlYzY4ZmNmMWFmMmYwOTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UuQ5wPFnYe8h379Zaqez1TK3E0rou14a7Y8F43arvCw)
![renderGPU](https://private-user-images.githubusercontent.com/48019048/381142318-44d5d1af-570a-45ca-8c63-11a2879dc13a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTIzNDksIm5iZiI6MTczOTI5MjA0OSwicGF0aCI6Ii80ODAxOTA0OC8zODExNDIzMTgtNDRkNWQxYWYtNTcwYS00NWNhLThjNjMtMTFhMjg3OWRjMTNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE2NDA0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwYjZjNGU2MTIxYTcxMzAwMGNmMzZlYTdhYzgwMGQyMGYzZjEyMmRiZWRhYTQxYTc1YjgxMWMzNThhNjE4OGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0P8i0FLdfKXz_6tsKafjcuhu8njGwSgrF1aMcaoHKsY)
The real depth pointcloud looks like,
And the synthesized depth looks like,
The synthetic depth image seems to include voxels in locations that should not logically exist based on the scene’s structure and the real depth image.
Could you give me advice for what could be causing this issue and potential solutions to address it?
Thank you for reading.
The text was updated successfully, but these errors were encountered: