One more try on vtkImageReslice crashes

Sathya Krishnamurthy ksathya at omirf.iusd.iupui.edu
Mon Oct 18 11:49:02 EDT 1999


Hello All

Sorry my mailer sent it before I could complete it.

Anyways, the crash occurs exactly after I have done two rotations ..i.e
used ImageReslice twice and the crash occurs at

vtkImageReslice::GetMTime ()

Kindly someone help me with this issue.

Thanks

Sincerely

Cheers
~sathya


On Mon, 18 Oct 1999, Sathya Krishnamurthy wrote:

> Hello All
> 
> As again.. I am working with MFC/VC++ 6.0. I am using vtkImageReslice on a
> CT data.
> 
> The only operation I perform is RotateZ and I display axial coronal and
> sagittal..
> 
> my pipeline reads as
> 
> vtkImageReader
> vtkImageReslice
> 
> now we have three of the following
> 
> vtkImageClip
> vtkImageTexture
> vtkPlaneSource
> vtkPolyDataMapper
> vtkActor --- vtkActor->SetTexture (vtkImageTexture)
> 
> I change the angles and the code for it goes like this
> 
> 
> BOOL CSampleDoc::UpdateActors (int x, int y , int z , int angle)
> {
>    if ( m_X != x ) // this is to change the coronal slice position..
>     {
>         this->cstruct->SetOutputWholeExtent (x,x,0,Y,Zmin,Zmax);
>         m_X = x;
>      }
>         
>      if (m_Y != y ) // this is to change the sagittal
>      {
>         this->sstruct->SetOutputWholeExtent (0,X,y,y,Zmin,Zmax);
>         m_Y = y;
> 	}     
>      if (m_Z !=z )// this is for axial
>       {
>         this->astruct->SetOutputWholeExtent (0,X,0,Y,z,z);
> 	     m_Z = z;
>        }
> 		
>       if (m_Angle !=angle) // and this is when i rotate the volume
>        {
> 	        vtkTransform *transform = cslice->GetResliceTransform ();
>             transform->RotateZ (angle-m_Angle);
> 
>             this->cslice->SetResliceTransform (transform); 
>             this->cslice->UpdateWholeExtent ();
> 
>             m_Angle = angle;
>             transform->Delete ();
>         }
> 
>     return TRUE;
> }
> 
> 



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list