Comments (5)
What if in itk::CudaImage::SetPixelContainer
, besides passing the pixel container, also pass the cuda data manager and retain the CPU/GPU dirty flags of the manager? Maybe this works for the case of itk::ChangeInformationImageFilter
but I don't know if it is generic for all cases that calls itk::CudaImage::SetPixelContainer
.
from rtk.
Well, this seems more complicated than what I thought... it needs a method to obtain the data manager from the pixel container...
from rtk.
I see two solutions at this stage:
- modifying itk::ChangeInformationImageFilter to make sure that the CPU buffer is up-to-date. I think the same problem will occur with itk::GPUImage (for OpenCL) so it's worth posting a patch to ITK.
- create a CudaImage specific ChangeInformationImageFilter.
from rtk.
I've done a little bit more investigation and the previous thought may be wrong.
itk::ChangeInformationImageFilter::GenerateData()
calls nonConstInput->GetPixelContainer()
to get the pixel container of the input, which does a force update of CPU buffer.
I am thinking if it is because although itk::ChangeInformationImageFilter
does update the input CPU buffer but it doesn't point the CudaDataManager::m_CPUBuffer
of the output to the updated CPU buffer of the input (or, this may be done by SetPixelContainer of CudaImage, like once the pixel container has been reassigned, take care of the m_CPUBuffer as well).
from rtk.
Problem fixed by commit 82ba699.
from rtk.
Related Issues (20)
- how to use "DisplacedDetectorForOffsetFieldOfViewImageFilter"? HOT 1
- how itk.CudaImage convert to itk.Image? HOT 1
- Python Wrapping fails for missing dimensions HOT 15
- Why use SetTruncationCorrection in RTK has no performance? HOT 1
- Why SetTruncationCorrection(0.4) is not useful? HOT 3
- "Please, is there any source code available for this function?" HOT 1
- How to output the image after truncation correction and ramp filtering? HOT 1
- reconstruction by cuda occur problem: ITK ERROR: CUDA ERROR: out of memory HOT 1
- “itkRTK-5.2.lib” is not created HOT 1
- Unable to successfully build the rtk library HOT 2
- Reconstructed slices are returning as zeros and NaN HOT 1
- Unable to successfully build the rtk library HOT 2
- Error C1001 An internal error has occurred in the compiler. HOT 3
- Cuda memory error when using Cuda forward projector HOT 11
- Unable to debug hxx files and h files HOT 8
- Unable to compile simpleRTK HOT 1
- Installation issue with pip HOT 1
- why rtk::CudaFDKConeBeamReconstructionFilter's GetRampFilter()->SetTruncationCorrection() failed!
- why rtk::CudaFDKConeBeamReconstructionFilter's GetRampFilter()->SetTruncationCorrection() failed! HOT 4
- Get an error in First Reconstruction.cxx HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtk.