Skip to content

Conversation

@fangq
Copy link

@fangq fangq commented Apr 18, 2022

hi @neurolabusc, this PR includes the following additions:

  1. re-implemented save_jmsh with plain C instead of cJSON, cutting down the binary size
  2. added binary JMesh (.bmsh) output
  3. added -d 0/1 to control output precision, allow double-precision output for jmsh/bmsh/json output formats
  4. using make JSON=1, it can mesh JNIfTI (.jnii) based volumes, including those output by dcm2niix -e j enabled with this patch. a compact example .jnii file is added.

the nii2mesh binary generated by make is 152.7kB, and that by make JSON=1 is 180.8kB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants