We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
println!("initial cloud size: {}", cloud.len());
cloud = (0..cloud.len())
.filter(|&idx| {
is_point_in_transformed_sphere(
cloud.position(idx),
)
})
.map(|idx| cloud.gaussian(idx))
.collect();
println!("filtered position cloud size: {}", cloud.len());
bevy_gaussian_splatting/tools/ply_to_gcloud.rs
Line 48 in 507a28d
let file = std::fs::File::open(&filename).expect("failed to open file"); let mut reader = std::io::BufReader::new(file); let mut cloud = GaussianCloud::from_gaussians( parse_ply(&mut reader).expect("failed to parse ply file"), ); // TODO: prioritize mesh selection over export filter // println!("initial cloud size: {}", cloud.len()); // cloud = (0..cloud.len()) // .filter(|&idx| { // is_point_in_transformed_sphere( // cloud.position(idx), // ) // }) // .map(|idx| cloud.gaussian(idx)) // .collect(); // println!("filtered position cloud size: {}", cloud.len()); #[cfg(feature = "query_sparse")] { let sparse_selection = SparseSelect::default().select(&cloud).invert(cloud.len()); cloud = sparse_selection.indicies.iter() .map(|idx| cloud.gaussian(*idx)) .collect(); println!("sparsity filtered cloud size: {}", cloud.len()); } let base_filename = filename.split('.').next().expect("no extension").to_string(); let gcloud_filename = base_filename + ".gcloud"; write_gaussian_cloud_to_file(&cloud, &gcloud_filename); let post_encode_bytes = Byte::from_u64(std::fs::metadata(&gcloud_filename).expect("failed to get metadata").len()); println!("output file size: {}", post_encode_bytes.get_appropriate_unit(UnitType::Decimal)); }
The text was updated successfully, but these errors were encountered:
mosure
No branches or pull requests
println!("initial cloud size: {}", cloud.len());
cloud = (0..cloud.len())
.filter(|&idx| {
is_point_in_transformed_sphere(
cloud.position(idx),
)
})
.map(|idx| cloud.gaussian(idx))
.collect();
println!("filtered position cloud size: {}", cloud.len());
bevy_gaussian_splatting/tools/ply_to_gcloud.rs
Line 48 in 507a28d
The text was updated successfully, but these errors were encountered: