[vtkusers] Overlay Contour on vtkImageViewer2

S, Navneeth (GE, Research) navneeth.s at ge.com
Tue Feb 24 23:47:12 EST 2009


I've put together a tcl script to show what I mean (see attached). 

This script:
1) Generates a synthetic image composed of spheres
2) Uses either vtkContourer or vtkDiscreteMarchingCubes to extract the
contour.
3) Renders the result of 2 independently & also inside a vtkImageViewer

Notice that though the contour (in this case 3D) shows up on the vanilla
renderer it does not show up on the vtkImageViewer !.

What could be happening ?

Thanks for your help,
navneeth 

________________________________

From: Karthik Krishnan [mailto:karthik.krishnan at kitware.com] 
Sent: Wednesday, February 25, 2009 12:10 AM
To: S, Navneeth (GE, Research)
Cc: Mark Gooding; VTK users group
Subject: Re: [vtkusers] Overlay Contour on vtkImageViewer2


Perhaps your mask and input images have different locations in physical
space. (origin,/ extent etc).

--
k


On Tue, Feb 24, 2009 at 4:35 AM, S, Navneeth (GE, Research)
<navneeth.s at ge.com> wrote:


	It shows up, but in the wrong place.
	Oddly the contour is at the correct iso-curve on the original
image (in vtkImageViewer2).
	
	Eg. If I set
	myVtkImageViewer2->SetInput( orig );
	
	contourer->SetInput( mask )
	contourer->SetValue(0, 2);
	
	The iso-contour shows up corresponding to intensity=2 on the
image=orig. Though, the contourer should generate the same for
image=mask !
	
	Thanks !
	

	-----Original Message-----
	From: Mark Gooding [mailto:mark.gooding at gmail.com]
	Sent: Tuesday, February 24, 2009 2:42 PM
	To: S, Navneeth (GE, Research); VTK users group
	Subject: Re: [vtkusers] Overlay Contour on vtkImageViewer2
	
	could you elaborate on the problem - is the contour showing up,
but in the wrong place? or is it just not showing up at all?
	
	mark
	
	2009/2/24 S, Navneeth (GE, Research) <navneeth.s at ge.com>:
	> Hello,
	>   I'm  trying to overlay a contour corresponding to a
segmentation
	> mask on an image displayed using vtkImageViewer2.
	> However, the iso contour lines do not show up correctly
(corresponding
	> to the actual boundary)
	...
	_______________________________________________
	Powered by www.kitware.com
	
	Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
	
	Please keep messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
	
	Follow this link to subscribe/unsubscribe:
	http://www.vtk.org/mailman/listinfo/vtkusers
	




-- 
Karthik Krishnan
R&D Engineer,
Kitware Inc.
Ph: 518 371 3971 x119
Fax: 518 371 3971

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestContourOverlay.tcl
Type: application/octet-stream
Size: 2540 bytes
Desc: TestContourOverlay.tcl
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090225/cf66437e/attachment.obj>


More information about the vtkusers mailing list