3D Livewire
Instructions
MATLAB 7.1 or higher required
Setup:
File -> Set paths -> include .p and .m script directory
Instructions:
- Set workspace to path that contains .hdr file
- > view3d_lw
- "Load from file" + filename string - Load image
- Enter .hdr file; or if need to switch order of slice directions...
- Permute instructions:
- Permute to switch order of slice direction:
> img = readanalyze('filename.hdr'); -- analyze -> 3d matrix
> img = permute(a,[2 1 3]) -- switch slice #1 and #2 order
- "Load var" + variable string - enter variable name
- "Select slice" - Select contour on model #1 and #2 by manual livewire
- Dots shows contour from other view
- Up/down arrows adjust brightness, left/right arrows adjust contrast (if can't increase brightness any more, decrease contrast and increase brightness again)
- If program stalls, click out of window and click back in
- When done, hover around region, press space bar
- "XZ 3D Livewire" - View progress
- Shows rotatable 3D frame figure
- Set marker size = 2
- "Mask Gen" - to generate mask
- "Output" + filename - outputs to .hdr file
- If permuted initially, permute again
- > writeanalyze(b,'new filename.hdr', [dimensions])... get this mm from MRIcro (x y z)
- New LW code: use surface_points_gen.m to extract seed (surface) points into .hdr file