Comments (1)
Thanks for the info! Any more details you can share on your use case? Note that we have options to not read (or not parse) PixelData if that makes sense for your use case. #267 might also help, depending on what you're trying to do e.g if you're doing element by element processing you will never have to hold the whole dicom in memory at once. Also, what version of the library are you using?
See more performance discussion in #161 (in particular #161 (comment)), but there's a known situation where underlying native dicom integer data will be expanded from smaller ints (e.g. int8s) to int (usually int64, mostly in the name of having a consistent API for pixel data), but we might be able to hold the data as a Wrapper[T] where T is {int8, int16, int32, etc} at some point in the future. Also note the data is copied when generating an image.Image (here) for now (which for now takes only a uint16).
I'll take another pass at ways to reduce memory footprint for native images without compromising the API too much, esp now that we have generics.
If you're using the native pixel data, I'd love to know a little more about the use case as well! Are you working with the raw values at all?
from dicom.
Related Issues (20)
- dicom.Parse should not require the byteToRead parameter HOT 1
- De-identify DICOM tags HOT 3
- Can not load dicom HOT 2
- Delete branch `master` HOT 1
- Investigate and triage Fuzz based issues.
- Add option to not hold entire dataset in memory at once HOT 2
- If the passed in Reader is _also_ an io.Seeker, consider trying to use Seek() on Skip
- Consider a Read - Modify some Elements - Write Pipeline API
- Consider updating type system to use Go generics HOT 1
- Value representation "Application Entity" is not correclly serialized
- fatal exit without defer HOT 2
- Explore Lint based or reflection based tests for struct equality changes
- Add additional struct `Equals` test cases
- What's the right import statement to use this? HOT 2
- Write() fails for encapsulated pixel data unless ValueLength explicitly set to tag.VLUndefinedLength HOT 1
- Question: Is it possible to get to individual Pixels in dicom image? HOT 4
- Use this project in C# HOT 1
- Check for Signed Integers in Native Pixel Data HOT 2
- Support Negative Integers in Native Pixel Data
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 dicom.