MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0011193 | VTK | (No Category) | public | 2010-08-31 08:46 | 2016-08-12 09:55 |
Reporter | Gerald Lodron | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Project | |||||
Type | |||||
Summary | 0011193: Wrong origin in vtkImageCast on vtkImageData | ||||
Description | When i have a 3D vtkImageData with origin not equal to 0,0,0 the vtkImageCast returns an output with origin 0,0,0! Here my code: std::cout << "Input 1" << std::endl; std::cout << " Origin: " << oInput1->GetOrigin()[0] << " " << oInput1->GetOrigin()[1] << " " << oInput1->GetOrigin()[2] << std::endl; //Original Origin which is not 0,0,0 vtkSmartPointer<vtkImageCast> oInputCaster1 = vtkImageCast::New(); oInputCaster1->ReleaseDataFlagOn(); oInputCaster1->SetInput(oInput1); oInputCaster1->SetOutputScalarTypeToShort(); oInputCaster1->Update(); std::cout << "Input caster 1" << std::endl; std::cout << " Origin: " << oInputCaster1->GetOutput()->GetOrigin()[0] << " " << oInputCaster1->GetOutput()->GetOrigin()[1] << " " << oInputCaster1->GetOutput()->GetOrigin()[2] << std::endl; //Origin is 0,0,0! vtkSmartPointer<vtkImageChangeInformation> oOrigin1 = vtkImageChangeInformation::New(); oOrigin1->SetInput(oInputCaster1->GetOutput()); oOrigin1->ReleaseDataFlagOn(); oOrigin1->SetOutputOrigin(oInput1->GetOrigin()); oOrigin1->Update(); std::cout << "Origin changer 1" << std::endl; std::cout << " Origin: " << oOrigin1->GetOutput()->GetOrigin()[0] << " " << oOrigin1->GetOutput()->GetOrigin()[1] << " " << oOrigin1->GetOutput()->GetOrigin()[2] << std::endl; //Origin is correct | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2010-08-31 08:46 | Gerald Lodron | New Issue | |||
2010-10-13 00:44 | Gerald Lodron | Note Added: 0022488 | |||
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
2016-08-12 09:55 | Kitware Robot | Note Added: 0037199 | |||
2016-08-12 09:55 | Kitware Robot | Status | expired => closed | ||
2016-08-12 09:55 | Kitware Robot | Resolution | open => moved | ||
2016-08-12 09:55 | Kitware Robot | Assigned To | => Kitware Robot |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|