binarybottle / roygbiv

Roy G. Brain Image Viewer for browser-based visualization of Mindboggle cortical surface label/shape data
http://roygbiv.mindboggle.info
Other
9 stars 11 forks source link

Downsample vertices when creating vtks #6

Closed bcipolli closed 9 years ago

bcipolli commented 9 years ago

Currently, performance isn't great:

It would be great to have simple downsampling of vertices when creating VTKs for visualizations, and to manually test which downsamplings would still look good in the demo.

@binarybottle any suggestions on downsampling schemes? Perhaps sequential elimination: every N vertices, eliminate the last M of them (50% would be N=2, M=1).

bcipolli commented 9 years ago

Eliminating some % of faces was a bad idea lol:
image

binarybottle commented 9 years ago

Please try mindboggle.guts.mesh.py's decimate() or decimate_file().

bcipolli commented 9 years ago

Fixed in https://github.com/binarybottle/roygbiv/commit/49157b300cfcaf209b639d063706ab419f940baa