| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0003111 | VTK | (No Category) | public | 2006-04-07 20:55 | 2016-08-12 09:54 | ||||
| Reporter | Rolf Mueller | ||||||||
| Assigned To | Will Schroeder | ||||||||
| Priority | low | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | moved | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0003111: vtkImageIslandRemoval2D & vtkImageDataStreamer don't work together | ||||||||
| Description | I am trying to use vtkImageIslandRemoval2D in a pipeline with streaming image data. An example code snippet of what I am trying to do is given below. If I do not call the Update-method of vtkImageDataStreamer, I get a segmentation fault (in vtkImageDataCastExecute ultimately called by vtkPNGWriter::Write()). If I do call it, I get a set of output images, but they are mostly black. This happens for different numbers of stream divisions. I am using the cvs version of vtk (April 7th, 2006) and g++ (GCC) 4.0.3 (Debian 4.0.3-1). example code snippet: vtkImageData *idata = vtkImageData::New(); idata->SetScalarTypeToUnsignedChar(); idata->SetExtent(0, nx-1, 0, ny-1, 0, nz-1); unsigned char *pt = (unsigned char*)(idata->GetScalarPointer()); for (k=0; k<(nx*ny*nz); k++) *(pt++)=255; vtkImageIslandRemoval2D *ir = vtkImageIslandRemoval2D::New(); ir->SetInput(idata); ir->SetAreaThreshold(2); ir->SquareNeighborhoodOn(); ir->SetIslandValue(0); ir->SetReplaceValue(255); vtkImageDataStreamer *ids = vtkImageDataStreamer::New(); ids->SetInputConnection(ir->GetOutputPort()); ids->SetNumberOfStreamDivisions(nblk); ids->UpdateInformation(); ids->GetExtentTranslator()->SetSplitModeToBlock(); ids->Update(); vtkPNGWriter *wrt = vtkPNGWriter::New(); wrt->SetInputConnection(ids->GetOutputPort()); wrt->SetFileDimensionality(2); wrt->SetFilePrefix("islndstrmtst"); wrt->SetFilePattern("%s_%02u.png"); wrt->Write(); | ||||||||
| Tags | No tags attached. | ||||||||
| Project | |||||||||
| Type | |||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0036854) Kitware Robot (administrator) 2016-08-12 09:54 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
| 2016-08-12 09:54 | Kitware Robot | Note Added: 0036854 | |
| 2016-08-12 09:54 | Kitware Robot | Status | expired => closed |
| 2016-08-12 09:54 | Kitware Robot | Resolution | open => moved |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |