Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds


Browsing this Thread:   1 Anonymous Users




« 1 (2)


Re: VHTK or H3D
#11
Quite a regular
Quite a regular


See User information
May i know does VHTK has the similar VTK Medical examples( VTK/Examples/Medical)
I would like to give a try with VHTK to visualise the stack of CT images(headsq).

Posted on: 2007/9/21 9:13
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK or H3D
#12
Guru
Guru


See User information
The toolkit is not distributed with any example data, but you can use your own medical data or download it from volviz.org. There is an example x3d/setup_sphere.x3d which you can use as template. You will need to manually customize the transfer functions, since there are no semi-/automatic way of setting them in VHTK.

Posted on: 2007/9/21 19:24
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK or H3D
#13
Quite a regular
Quite a regular


See User information
Hi ya..
The following is some Tcl codes from VTK
#The following reader is used to read a series of 2D slices # that compose the volume. The slice dimensions are set, and the
# pixel spacing. The data Endianness must also be specified. The reader
# usese the FilePrefix in combination with the slice number to construct
# filenames using the format FilePrefix.%d. (In this case the FilePrefix
# is the root name of the file: quarter.)
vtkVolume16Reader v16
v16 SetDataDimensions 64 64
v16 SetDataByteOrderToLittleEndian
v16 SetFilePrefix "$VTK_DATA_ROOT/Data/headsq/quarter"
v16 SetImageRange 1 93
v16 SetDataSpacing 3.2 3.2 1.5
# An isosurface, or contour value of 500 is known to correspond to the
# skin of the patient. Once generated, a vtkPolyDataNormals filter is
# is used to create normals for smooth surface shading during rendering.
# The triangle stripper is used to create triangle strips from the
# isosurface these render much faster on may systems.
vtkContourFilter skinExtractor
skinExtractor SetInputConnection [v16 GetOutputPort]
skinExtractor SetValue 0 500
vtkPolyDataNormals skinNormals
skinNormals SetInputConnection [skinExtractor GetOutputPort]
skinNormals SetFeatureAngle 60.0
vtkPolyDataMapper skinMapper
skinMapper SetInputConnection [skinNormals GetOutputPort]
skinMapper ScalarVisibilityOff
vtkActor skin
skin SetMapper skinMapper

May i know how can i specify the ScalarVolume to read 93 image slices?

Does VHTK provide the similiar vtkContourFilter function to extract some scalar value in the loaded images?

Posted on: 2007/9/24 10:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK or H3D
#14
Guru
Guru


See User information
VHTK does not provide reading multiple files as one data set, but if you have no header in the files you can simply put them together into one file using the cat command.

The contour filter creates an iso surface, does it not? In that case you can use the IsoSurface node of VHTK.

Posted on: 2007/9/24 16:16
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK or H3D
#15
Quite a regular
Quite a regular


See User information
I'm new to h3d and x3d. May i know how can i passing data from ScalarVolume to IsoSurface node?

Posted on: 2007/9/26 16:21
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK or H3D
#16
Guru
Guru


See User information
Just put the scalar volume inside a iso surface node, like this:
<Shape>
  <
Appearance><Material/></Appearance>
  <
IsoSurface isoValue="0.5">
    <
ScalarVolume ...>
      ...
    </
ScalarVolume>
  </
IsoSurface>
</
Shape>
where [...] represents part of the code which you can find examples of in the setup files provided by the VHTK package.

Posted on: 2007/9/26 17:17
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK or H3D
#17
Quite a regular
Quite a regular


See User information
Quote:

karlu wrote:
Just put the scalar volume inside a iso surface node, like this:[code]



...




May i know that will create an IsoSurface or a volume pixel with the specific isoValue?

What i understand from VTK is we will first read in all the images into a volume data and subsequently filter the volume data with the filter value specific by counter filter. The result of the filtering will then be rendered. Is this the same way happening in VHTK?


Posted on: 2007/9/26 18:31
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK or H3D
#18
Guru
Guru


See User information
It will create an iso surface geometry using the Marching Cubes algorithm. This geometry is then rendered by the parent shape node.

Posted on: 2007/9/27 11:00
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK or H3D
#19
Quite a regular
Quite a regular


See User information
Quote:

karlu wrote:
Just put the scalar volume inside a iso surface node, like this:[code]



...





The result geometry is store in ScalarVolume?

Posted on: 2007/9/27 11:43
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: VHTK or H3D
#20
Guru
Guru


See User information
No, the X3D contents are transformed into a scene graph where the root of the XML file is becomes the root of the X3D graph. Thus, in this case, the Shape has an appearance (specifying the material) and an iso surface as children. The iso surface node represents the geometry.

Posted on: 2007/9/28 15:38
KJ Lundin Palmerius
C Research
Linköping University, Sweden
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top




« 1 (2)



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]





(C) 2012 SenseGraphics AB    ---    Powered by XOOPS