Masking burned-in pixel data with the Orthanc Pixels Masker

The Orthanc Pixels Masker blanks identifying text that DICOM tag removal cannot reach. This page explains when to use it, how to configure routes, regions and filters, and how to verify masked studies before release.

On this page

Why burned-in text survives anonymization and how the Orthanc Pixels Masker addresses it

Tag-level anonymization removes patient names, dates and accession numbers from DICOM headers, but it does not touch the pixel data. A team that has configured tag removal and still releases studies may be sharing images with identifying text printed directly on the picture. This is most common on ultrasound, where the device overlays patient name, date of birth and examination details on the image, and on screen captures and secondary captures, where a technologist or a PACS user has photographed or exported a window that already showed identifiers. The header can be clean while the image is not.

The Pixels Masker is a separate Orthanc plugin aimed at that gap. Rather than editing headers, it is meant to cover regions of pixel data so the burned-in text is no longer readable in the exported or shared instance. Before this is planned into a build, confirm three things against the plugin documentation for the Orthanc version you run: whether the plugin is available for your platform and packaging, its license terms, and whether it fits your release workflow. The routes it exposes, how regions are defined, and which filter types it supports were not part of the sources used for this page, so do not design around specific names until you have read them in the official documentation or tested them on a non-clinical copy.

Treat the masker as one control in a release check, not as a guarantee. Ask who decides which modalities, series or sources need masking, how masked output is reviewed before it leaves your environment, and how the original and masked instances are kept apart so that a clinical archive is never overwritten. Those decisions usually matter more to an auditor or privacy reviewer than the masking tool itself. The sections below cover how to scope which series get masked and how to verify the result before release.

Pixels Masker configuration options and when each fits

This table compares the main configuration decisions for the Orthanc Pixels Masker: how masks are triggered, how regions are defined, which filters apply, and how far the masks reach. Read each row as a question to settle before the plugin touches production images, and confirm every option name against the plugin documentation for your installed version.

DecisionOptions to evaluateWhen it fitsMain risk and what to confirm
Trigger pointRoute applied on demand, or automatic application when instances are receivedOn-demand routes fit a controlled release step after review. Automatic application fits a steady research feed where every batch goes through the same masking.An automatic trigger can mask data you did not intend to change, and a missed trigger can release unmasked pixels. Confirm which routes the installed version exposes and which events fire them.
Region definition by fixed coordinatesPixel rectangles defined in absolute image coordinatesFits a modality or device whose burned-in text sits in the same place across every image, such as a fixed ultrasound header.Images with different resolutions, cropping or orientation will be missed. Confirm how coordinates are interpreted when image size varies.
Region definition by relative positionRegions expressed as proportions of the image width and heightFits mixed sources where image size varies but the overlay sits in a consistent place relative to the frame.Text that shifts with cropping or scaling may fall outside the box. Confirm how the plugin handles rounding and whether it clips regions at image edges.
Region definition by detected areaAutomatic detection of text or overlay areas, if the installed version provides itFits heterogeneous archives where layouts are unknown, with a manual review step before release.Detection can miss text or mask clinical content. Confirm whether detection exists in your version, its accuracy limits and how false negatives are found.
Filter typeFilters that select which instances receive a mask, by DICOM attributes such as modality, manufacturer or modelFilters fit cases where only some devices or modalities burn in identifiers, so other images are not altered.A filter that is too narrow leaves images unmasked, and one that is too broad alters images without need. Confirm the exact attribute names and matching rules in the plugin reference.
Scope across seriesApply to all series in a study, or only to selected seriesSelected series fit studies where only secondary captures or screenshots carry overlays. All series fits uniform archives from one source.Series-level selection depends on correct series descriptions and UIDs. Confirm how the masker identifies series and what happens when a study has new series after masking.
Mask appearanceSolid fill or other mask style offered by the pluginA solid fill fits release copies where the removed text must not be recoverable from the image.Some styles may leave residual outlines or allow partial recovery. Confirm the style options and test the output on a sample image.
Interaction with anonymizationMask before or after tag anonymization in the same workflowOrdering matters when a workflow both edits tags and masks pixels, so the audit trail matches the actual output.Wrong order can leave identifiers in tags or pixels. Confirm the sequence your scripts and jobs use and record it in the release procedure.

How a study moves through masking before release

The path starts when a study is selected for release from the internal Orthanc archive, which holds identified images. A script or REST API call then triggers the Pixels Masker on the chosen series, and the masked result is written as an anonymized copy to a separate release area. A person reviews that copy before anything leaves the release area. The trust boundary sits between the archive and the release area, so the review must check the release copy, not the source.

Study flow from the identified archive through masking, review and export.

When burned-in text needs masking before release

Pixel masking is needed only when identifying text or marks are actually present in the image pixels, and the first step is to find out whether they are. Burned-in text is most common in ultrasound, where patient name, date of birth, hospital and device details are often overlaid on the image, and in secondary capture images, scanned documents, screenshots and some images exported from vendor workstations. Structured DICOM tags are a separate matter and are handled by anonymization. A team should pull a representative sample of images from each modality, source and device model it plans to release, and have someone review them visually at full resolution. Record which series carry text, where it sits, and whether it is identifying or only technical (such as a dose readout or a scale bar). Confirm the modalities and sources that apply to your own archive, since sample review is the only reliable basis for the decision.

Research sharing, teaching files and external transfers raise the stakes because the recipient is outside your control. Once an image leaves the archive, you cannot retrieve it, and a single overlay with a name or medical record number can turn an otherwise de-identified dataset into a disclosure. Teaching collections are reused for years and copied into slide decks, so the risk outlasts the original project. The same review applies to images that are re-released after a secondary use, because the original source may not have been checked.

Masking involves a trade-off. Masking too little leaves identifiers visible. Masking too broadly can cover diagnostic content such as annotations, measurement values, region labels or part of the anatomy, which makes the image less useful for the purpose it was shared for. Tighter regions are harder to verify and wider regions are harder to justify to a reviewer. The decision on where to draw that line belongs to the data owner and the privacy lead, who understand the purpose of release and the obligations that apply to it. Engineering work should then implement that decision: document the approved regions and filters per source, route series through the masking step only where the review requires it, and keep the sign-off record with the batch.

Setting up the Orthanc Pixels Masker on a test archive

This sequence gives you a verified masking setup on a non-production Orthanc instance, so you can confirm that only the intended pixel region changes before any real study is processed. It produces a documented test route, a before-and-after comparison, and an audit trail you can review.

  1. Confirm the plugin build and Orthanc version

    Before installing anything, record the Orthanc core version and the Pixels Masker build you intend to use, and confirm the two are compatible according to the plugin documentation for that release. Orthanc 1.13.0 was released on 2026-08-15, and the NEWS file lists the changes in each release, so check it when you select the core version. Your team or the implementation partner should save the version strings in the change record. The step is done when both versions are written down and match the plugin's stated requirements.

  2. Harden the test instance before installing the plugin

    Start from a non-production instance that is not reachable from the Internet. Keep RemoteAccessAllowed off unless you need remote access, and if you enable it, set AuthenticationEnabled to true with users defined in RegisteredUsers, as the security FAQ recommends. Confirm that the /tools/execute-script route and the export route are disabled, because the security FAQ warns that the first can run system commands and the second can overwrite files. Check the configuration file and then query those routes to confirm they are refused. The step is done when the configuration review is recorded and both routes return a refusal.

  3. Install the Pixels Masker plugin on the test instance

    Install the plugin build confirmed in the first step into the test instance's plugin directory and restart Orthanc. Then check the startup log for the plugin's load message and confirm that the Orthanc Explorer or REST API reports the plugin as loaded. Keep the production instance untouched during this step. The step is done when the plugin appears as loaded in the logs and the instance starts cleanly with the same configuration as before.

  4. Define one test route with a fixed region

    Create a single Pixels Masker route that targets one sample series and applies a fixed rectangular region, so the rule is easy to reason about. Document the route's filter type, the region coordinates, and the series it applies to in the route definition file, keeping the file under version control. Use a sample series whose burned-in text location you have already measured. The step is done when the route definition is saved and reviewed by a second person who can explain what it will change.

  5. Run the masker on the sample series

    Load a copy of the sample study into the test instance, then trigger the masker for the series through the REST API or the configured route. Track the job until it reports completion, and note the new instance identifiers it creates. Confirm the output is a new series or set of instances rather than a change to the originals. The step is done when the job reports success and the output identifiers are recorded.

  6. Compare original and masked pixels

    Download the original and the masked instances and compare their pixel data frame by frame. Confirm that differences fall only inside the defined region and that all other pixels match the original, using a DICOM viewer or a short script that reports the bounding box of changed pixels. Check that metadata tags you did not intend to change are the same. The step is done when the changed bounding box sits inside the defined region and the report is saved with the test record.

  7. Confirm the audit trail and the original copy

    Review the Orthanc log for the masking job and confirm it records the source series, the route used, and the output identifiers. Then verify that the original instances in the archive still have their original hashes and pixel data, so the masking did not overwrite the source. Store the log excerpt and the hash comparison with the test record. The step is done when the log entry is found, the originals match their recorded hashes, and the results are signed off before any wider rollout.

Applying Orthanc Pixels Masker masks per series

When one modality writes the same text in the same place on every image, the mask is a stable, reviewable definition. You identify the series that come from that modality and apply one set of regions to them. The main risk is not the region itself but scope: a region that is correct for one acquisition mode can cut into content on another mode from the same scanner.

  • Select by series attributes: Match on modality and series-level DICOM attributes that your team has confirmed in your own data. The exact selection mechanism available in your Pixels Masker version should be confirmed against the plugin documentation.
  • Keep one region set per layout: Store the coordinates with the rule that uses them, so a reviewer can see exactly what is covered.
  • Check acquisition modes: Sample each mode, zoom, or field of view the modality produces, since fixed coordinates can shift between them.
  • Verify on representative series: Review a sample of masked outputs for complete coverage and for any clinical content that was clipped.
  • Re-test after changes: Re-check the rule whenever the scanner software or the text overlay template changes.

Before release, confirm that every series matched by the rule is one you intended to mask.

Choosing regions and filters without hiding diagnostic content

A mask that is too small leaves patient identifiers readable, and a mask that is too large can cover the findings a radiologist needs. The six risks below connect region geometry, image format and filter behavior, and each one needs a specific test before a masked series is released.

Regions too small for the text

The most common symptom is a region drawn from a single sample image that misses part of the burned-in name, date or accession number on other images. Text often sits at different offsets, and characters near a region edge can remain partly legible. Check every distinct layout in the batch, not only the first series, and compare the masked output against the original at full resolution. Ask whether a margin is applied around each region before you accept it.

Regions too large for findings

Oversized regions can cover anatomy, annotations or measurement overlays that carry clinical meaning. This risk is easy to miss because the output looks clean. Review a sample of masked images from each modality and body region with a clinical reviewer, and confirm that the masked area sits over the text only. Keep the region definition tied to the layout of each source system, not to a generous rectangle applied everywhere.

Layouts that shift between machines

Scanner software, console versions and export settings can move burned-in text by a few pixels or change its font, so a region that worked on one machine misses on another. Symptoms appear only in data from a newly added device or after a software update at a source site. Keep a per-source inventory of layouts, record which region set applies to which device, and rerun the layout check whenever a new source or firmware version appears.

Multi-frame and video instances

In multi-frame instances and video, text can move or appear only on some frames, and a region that holds on frame one may not hold across the sequence. Testing needs to sample frames across the full duration, including the start, the middle and the end, and any frames where the display changes. Confirm with your Pixels Masker configuration whether a region applies to every frame of a multi-frame object, and treat any gap as a release blocker.

Compression and transcoding at region edges

Lossy compression and transcoding can smear the edges of burned-in text and change the pixel values a region is expected to cover. Text that was clear in the source may leave faint residue just outside the mask after the image is re-encoded. Compare the transfer syntax of the original and the output, check edges at high zoom, and decide whether masking runs before or after any transcoding so that the tested pixels are the released pixels.

Filters that vary by bit depth

A filter tuned on 8-bit images can behave differently on 16-bit grayscale or on images with a different photometric interpretation, changing contrast, brightness or the visibility of residual text. The same filter setting may hide text on one bit depth and leave it readable on another. Build a test set that includes each bit depth and photometric interpretation in your data, and verify the masked output of each group separately before approving a filter for batch use.

Checking Orthanc Pixels Masker results before release

Before any masked study leaves the archive, a trained reviewer should check a sample of the output against a written checklist, and the release should carry a named approval that records who checked what. Masking is a rule applied by software, so a review is the only point where someone confirms that the rule matched what the data owner intended. The checklist should cover the image region that was masked, the tags that were cleared or replaced, and the rule version used for that batch of series.

For each sampled instance, the reviewer should compare the masked image with its original and confirm that only the intended pixels changed. Any difference outside the defined region means the mask definition is wrong or the wrong filter was applied. The reviewer also needs to confirm that tag-level anonymization and pixel masking were both applied, since a study can pass one check and fail the other. Access to originals must follow the data owner's rules, so confirm in advance who may view unmasked images, where the comparison happens, and whether copies of originals may exist on the reviewer's workstation.

A clean sample does not prove every instance is clean. Burned-in text often differs by modality, scanner model, acquisition setting or series, so the scope of review should be written down: which series were sampled, how they were selected, how many instances were reviewed per series, and which series were not reviewed and why. Record the reviewer, the date, the Orthanc version and the mask definitions in the approval record. Ask the data owner to confirm whether an unreviewed series with a new device or layout needs its own sample before release.

Security and operational considerations for masking workflows

Masking is only as trustworthy as the system that triggers it. The cards below cover the access paths, service accounts, original image storage, audit records and downstream exports that surround a Pixels Masker workflow. Each one is a decision to make and verify before masked studies leave the archive.

Authenticate the masking trigger

Any route that starts a masking job should sit behind authenticated REST access. Orthanc accepts HTTP connections only from localhost by default, and when remote access is enabled, AuthenticationEnabled should be true with users defined in RegisteredUsers. Confirm that HTTPS and a reverse proxy protect any path reachable from another network, and test that an unauthenticated request to the masking route is refused.

Orthanc security FAQ

Keep script and export routes disabled

The security FAQ warns that the /tools/execute-script route can let a malicious user run any system command, and that the export route can overwrite files. Both should stay disabled on a masking server. Check the effective configuration on every node, not only the one you tested, because a masking workflow that relies on helper routes can quietly reopen these paths when someone edits settings.

Scope service accounts to masking

Automated masking jobs should run under a dedicated account that can read the source study, write the masked copy and nothing more. Avoid reusing an administrator login in scripts. Ask whether your identity setup can issue short-lived or scoped credentials for automation, and document who owns the account, when its password or token rotates and how it is revoked.

Store originals outside the release area

Masking is irreversible for the burned-in pixels, so the unmasked originals must be kept in a controlled location with restricted access. Keep them out of any area that partners, research users or export jobs can reach. Define who may retrieve an original, how long it is retained and how it is deleted, and confirm that the masked and original copies are not mixed in the same query results or share folder.

Log who masked what and when

Record the requesting user or service account, the study and series identifiers, the masking route and filter applied, the job outcome and the timestamp. Keep these records in a location that the archive administrators cannot silently edit. Review them periodically against the list of released studies so that an unexpected masking or release can be traced to a person or a job.

Control re-export of masked outputs

A masked series is only protected if it stays masked. Before enabling C-STORE forwarding, peer transfers or DICOMweb export of masked data, confirm which destinations receive it, whether the original can be re-sent by a stored job or peer configuration, and whether the receiving system keeps its own copy. Test each outbound path with a sample study and check the pixels on the receiving side.

Limits to confirm in your environment before planning the work

Before you estimate effort or choose an approach, confirm the Pixels Masker limits for the exact plugin build and Orthanc version you plan to run. Start with the license and maintenance status of the plugin, since an unmaintained component changes the risk of depending on it in a clinical archive. Next, confirm which Orthanc versions it supports. Orthanc itself moves quickly (1.13.0 was released on 2026-08-15, following 1.12.11 and 1.12.10), so a plugin that works on your current release may not be documented for the upgrade you have scheduled. The answers come from the plugin documentation and project for that version, not from general guidance about Orthanc.

Next, confirm the image types and transfer syntaxes the masker handles. Ask specifically how it treats compressed pixel data, whether it decodes and re-encodes, and whether the output keeps the original transfer syntax. Confirm the same for multi-frame images, such as ultrasound cine loops and enhanced multi-frame objects, where a region defined on one frame may not apply to every frame, and for color images, where the pixel format and the bit depth of the masked region can differ from grayscale. Each of these behaves differently, so list the modalities your archive actually receives before assuming coverage.

Finally, confirm whether the masker writes new instances or modifies the stored instances in place, and how that interacts with your anonymization workflow and the overwrite behavior of your Orthanc configuration. A masked copy with a new SOP Instance UID and an in-place change have very different audit and rollback consequences. The only reliable way to settle these points is a test on representative sample images from each modality and transfer syntax you will handle, run against the exact versions you plan to deploy. Record the results, and treat any undocumented behavior as a blocker until your team has reviewed it.

Questions teams ask before masking burned-in text

Can our own team mask burned-in text in Orthanc without a partner?

Yes, a team with Orthanc experience and access to its own sample images can build and test masking rules in-house, and the work is well suited to an engineer who already runs the server. The harder part is rarely the configuration itself. It is deciding which regions to cover for each device and software version, proving that every affected series was handled, and keeping a record of that decision. Ask whether your team has a privacy lead who can sign off on the masking rules, a way to review rendered images at volume, and time to retest after each change. If any of those are missing, a partner can take on part of the work under a written scope.

What drives the effort of masking burned-in pixel data?

Effort grows with the number of distinct sources of images, because each modality, scanner model, ultrasound vendor or software release can place identifying text in a different location. Layout variation is the main multiplier: one template per device is manageable, while free-form overlays that move between studies require more regions, more filters and more checks. Review volume matters too, since every new layout or unexpected series adds a round of inspection. The number of series in your archive and how many of them are in scope for release also set how much sampling and verification is needed before you can trust the result.

What does the client need to provide for a masking project?

The client provides the material that defines the masks, and the work cannot be accurate without it. Expect to supply representative sample images from every modality and device model in scope, including the cases with unusual overlays. The privacy lead must decide what counts as identifying text and which series may be released, because that decision is not a technical one. The team also needs access to the original images so that masks are tested against real data, and a separate test archive where rules can be applied and reviewed without touching production studies. Agree on who approves the final output before the work starts.

Does pixel masking replace DICOM tag anonymization?

No. Pixel masking only covers identifying content drawn into the image data, while DICOM tag anonymization handles patient identifiers, dates, institution names and other values stored in the header. A study can be clean in its tags and still show a patient name in a screenshot-style overlay, and the reverse is also true. Both steps are needed when you prepare data for research or sharing, and each has its own checks. Plan them together so that the anonymization profile and the masking rules are reviewed against the same release criteria. Your privacy lead should confirm that neither step is treated as a substitute for the other.

How long does a burned-in text masking project usually take?

Duration depends mainly on the same factors that drive effort: the number of modalities, the amount of layout variation and how many series must be verified. A small set of stable templates can be handled in a short cycle, while a mixed archive with many vendors needs several rounds of sample review and retesting. Time is also spent waiting for decisions from the privacy lead and for access to representative images, which often lengthens the schedule more than the technical work does. Ask any provider for a timeline that is tied to a written scope, with the sample review and approval steps listed as separate milestones.

What recurring work follows when a device or software layout changes?

Masking rules are tied to the layouts they were written for, so any change in a scanner's software, a new ultrasound model or a firmware update can move or add text that the existing regions no longer cover. Recurring work therefore includes monitoring newly arriving series, sampling outputs from new sources, updating region definitions and retesting affected series before release. Orthanc itself also changes: its release notes describe internal changes in storage access and DICOM parsing, so it is sensible to rerun the masking checks after a core upgrade. Ask whether a support arrangement covers these reviews and who is responsible for approving updated rules.

What should we ask a partner to include in a written quote?

Ask for a quote that is built from a written scope, so you can see exactly what is included. The main items to request are the list of modalities and device models covered, the number of sample sets and review rounds, the deliverables (masking rules, test results, a verification record and documentation for the privacy lead), and the retest approach after changes. Clarify who performs each step, what access the partner needs to your sample and test archives, and how the client approves releases. Also ask what is one-time work and what recurs under ongoing support, and how changes to scope are priced. DeployOpen does not publish a price list, and its quotes follow from the agreed scope.

How DeployOpen scopes and delivers Orthanc pixel masking

DeployOpen treats burned-in pixel masking as a scoped piece of work inside your Orthanc deployment, not a one-off script. We agree the modalities, routes, regions and review steps in writing before any build starts, then test and hand over the result in infrastructure you control.

How we scope

  • Inventory which modalities, series types and sending sites carry burned-in text that needs masking before release.
  • Define the Pixels Masker routes, region definitions and filter types for each series group in the written scope.
  • Agree which datasets are in scope for masking and which pass-through rules apply to images that must stay unchanged.
  • Confirm the release checks, sign-off owners and evidence the reviewing team expects before fixed-scope work begins.

How we build

  • Configure Pixels Masker routes and region definitions against sample images from your own modalities and sites.
  • Apply masks per series and check the filter types against each device model used in your environment.
  • Script the masking step into your anonymization or release workflow so the same rules run on every export.
  • Record configuration changes in version control so each masking rule can be traced to a reviewed decision.

How we hand over

  • Test masked output on representative studies and document residual risks, such as text that sits outside defined regions.
  • Deliver the route and region configuration, the release checklist and a runbook for adding new modalities or devices.
  • Train the team that reviews released images to spot remaining burned-in text and to log exceptions.
  • Hand over the written results so your privacy and compliance reviewers can assess the masking step independently.

How we support

  • Ongoing support, upgrades and retesting after Orthanc version changes are available as a retainer.
  • Plan retests when new modalities, ultrasound models or Orthanc releases change how burned-in text appears.
  • Confirm with your team which support hours, response expectations and upgrade windows the retainer should include.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.