Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing burned-in data #153

Open
DanielHeath opened this issue Jul 30, 2020 · 2 comments
Open

Removing burned-in data #153

DanielHeath opened this issue Jul 30, 2020 · 2 comments

Comments

@DanielHeath
Copy link

I'm looking at adding support for blanking out regions from encapsulated image data. I'd like to upstream as much of that work as possible.

dicom-parser includes the following relevant methods:

  • getUncompressedImageFrame
  • readEncapsulatedImageFrame
  • createJPEGBasicOffsetTable
  • readEncapsulatedPixelDataFromFragments

These are used by the wadoURI functionality in the WADO loader.

To support blanking out parts of images, I'd like to extend these methods to tag the source location

I'd like to extend these by tagging the results with the offsets in the underlying byteArray.

Because images can be fragmented, every pixel would need its own offset specified. This would roughly double the memory used to load an image, so it needs to be off by default.

Assuming I can come up with a suitable API / design, would a PR adding this functionality be welcome?

@Neuroforge
Copy link

Did you make any progress with this?

@DanielHeath
Copy link
Author

Not yet, but I expect I'll need to do it in the next few months.

I've confirmed blanking-out is the right approach since it preserves registration between stacks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants