Skip to content
This repository was archived by the owner on Feb 18, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions example/volume.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
using GLPlot, GLVisualize, GLAbstraction, Colors, GeometryTypes, FileIO
using Reactive, GLWindow, NIfTI
using GLPlot, GLVisualize, GLAbstraction, Colors, GeometryTypes
using Reactive, GLWindow

if !isdefined(:vol)
using TestImages
vol = testimage("mri-stack")
end

window = GLPlot.init()
Copy link
Copy Markdown

@AShedko AShedko Jun 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is currently no such method. Shouldn't it be
window = createdisplay()?

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're probably on an old version. Try Pkg.checkout("GLPlot")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that helped. although i still does not display the projections, just the 3d view

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What projections?


layout = [
Expand All @@ -8,8 +14,6 @@ layout = [
]

screens = GLVisualize.layoutscreens(window, layout)
vol = niread(joinpath(homedir(), "Desktop", "brain.nii")).raw;
vol = vol ./ maximum(vol)
const If0 = GLVisualize.Intensity{1, Float32}

# to change color_map use the interactive edit menu or pass an array of color
Expand Down