Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A penny saved is a penny to squander. -- Ambrose Bierce


devel / comp.protocols.dicom / Overlays with device pre 2004

SubjectAuthor
* Overlays with device pre 2004Patrick Ndanga
`* Re: Overlays with device pre 2004Thomas Freier
 `* Re: Overlays with device pre 2004Patrick Ndanga
  `* Re: Overlays with device pre 2004Thomas Freier
   `* Re: Overlays with device pre 2004Jason Klotzer
    `* Re: Overlays with device pre 2004Patrick Ndanga
     `* Re: Overlays with device pre 2004Jason Klotzer
      `- Re: Overlays with device pre 2004Patrick Ndanga

1
Overlays with device pre 2004

<28b36176-0ee8-4513-8275-018aaded80f6n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=271&group=comp.protocols.dicom#271

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:a0c:8031:: with SMTP id 46mr2955694qva.126.1640188501837;
Wed, 22 Dec 2021 07:55:01 -0800 (PST)
X-Received: by 2002:ac8:6b47:: with SMTP id x7mr2623138qts.184.1640188501631;
Wed, 22 Dec 2021 07:55:01 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Wed, 22 Dec 2021 07:55:01 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=178.9.81.195; posting-account=ZsAtEgoAAAAf4O9UgjLKPj01M25MasUI
NNTP-Posting-Host: 178.9.81.195
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <28b36176-0ee8-4513-8275-018aaded80f6n@googlegroups.com>
Subject: Overlays with device pre 2004
From: patrickndanga2@gmail.com (Patrick Ndanga)
Injection-Date: Wed, 22 Dec 2021 15:55:01 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 5
 by: Patrick Ndanga - Wed, 22 Dec 2021 15:55 UTC

Hello everyone,
I have a Dataset of mri und i want to read Overlays on the respective DICOM pictures in Python, but the Overlays are stored in Pixel Data(7FE0, 0010). Is it possible to do it and how please.
I try to surch about it, but i could not find anything.

Thanks in advance.
Astride

Re: Overlays with device pre 2004

<a02ddd61-d147-4192-be96-7c47ebeaaa31n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=289&group=comp.protocols.dicom#289

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:a37:dc85:: with SMTP id v127mr2769802qki.93.1642773621559;
Fri, 21 Jan 2022 06:00:21 -0800 (PST)
X-Received: by 2002:a37:9ecc:: with SMTP id h195mr2669083qke.763.1642773621199;
Fri, 21 Jan 2022 06:00:21 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Fri, 21 Jan 2022 06:00:21 -0800 (PST)
In-Reply-To: <28b36176-0ee8-4513-8275-018aaded80f6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=46.142.183.217; posting-account=6ksO_woAAABuoPrA50nzzcpphnSbofar
NNTP-Posting-Host: 46.142.183.217
References: <28b36176-0ee8-4513-8275-018aaded80f6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a02ddd61-d147-4192-be96-7c47ebeaaa31n@googlegroups.com>
Subject: Re: Overlays with device pre 2004
From: thomas.freier@medavis.de (Thomas Freier)
Injection-Date: Fri, 21 Jan 2022 14:00:21 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 9
 by: Thomas Freier - Fri, 21 Jan 2022 14:00 UTC

Patrick Ndanga schrieb am Mittwoch, 22. Dezember 2021 um 16:55:03 UTC+1:
> Hello everyone,
> I have a Dataset of mri und i want to read Overlays on the respective DICOM pictures in Python, but the Overlays are stored in Pixel Data(7FE0, 0010). Is it possible to do it and how please.
> I try to surch about it, but i could not find anything.
>
> Thanks in advance.
> Astride
You need to evaluate Overlay Bit Position (60xx,0102) it will tell you which of the unused bits in pixel data represents the overlay. The overlay itself is always 1 bit representation.
There must be a difference between Bits Allocated (0028,0100) eg. 16 to Bits Stored (0028,0101) eg. 12 to have such unused bits in pixel data available.
Embedded overlays are retired long time ago 2005 or so. I was unable to find such old version of PS3.5.

Re: Overlays with device pre 2004

<ec66dada-63df-45da-a3a7-f6903d2ca31an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=295&group=comp.protocols.dicom#295

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:a05:620a:4043:: with SMTP id i3mr4284195qko.14.1643321811383;
Thu, 27 Jan 2022 14:16:51 -0800 (PST)
X-Received: by 2002:ac8:5c4b:: with SMTP id j11mr4254474qtj.96.1643321811106;
Thu, 27 Jan 2022 14:16:51 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Thu, 27 Jan 2022 14:16:50 -0800 (PST)
In-Reply-To: <a02ddd61-d147-4192-be96-7c47ebeaaa31n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=178.9.81.195; posting-account=ZsAtEgoAAAAf4O9UgjLKPj01M25MasUI
NNTP-Posting-Host: 178.9.81.195
References: <28b36176-0ee8-4513-8275-018aaded80f6n@googlegroups.com> <a02ddd61-d147-4192-be96-7c47ebeaaa31n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ec66dada-63df-45da-a3a7-f6903d2ca31an@googlegroups.com>
Subject: Re: Overlays with device pre 2004
From: patrickndanga2@gmail.com (Patrick Ndanga)
Injection-Date: Thu, 27 Jan 2022 22:16:51 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 14
 by: Patrick Ndanga - Thu, 27 Jan 2022 22:16 UTC

On Friday, 21 January 2022 at 15:00:23 UTC+1, Thomas Freier wrote:
> Patrick Ndanga schrieb am Mittwoch, 22. Dezember 2021 um 16:55:03 UTC+1:
> > Hello everyone,
> > I have a Dataset of mri und i want to read Overlays on the respective DICOM pictures in Python, but the Overlays are stored in Pixel Data(7FE0, 0010). Is it possible to do it and how please.
> > I try to surch about it, but i could not find anything.
> >
> > Thanks in advance.
> > Astride
> You need to evaluate Overlay Bit Position (60xx,0102) it will tell you which of the unused bits in pixel data represents the overlay. The overlay itself is always 1 bit representation.
> There must be a difference between Bits Allocated (0028,0100) eg. 16 to Bits Stored (0028,0101) eg. 12 to have such unused bits in pixel data available.
> Embedded overlays are retired long time ago 2005 or so. I was unable to find such old version of PS3.5.

Hello,
thank you for your answer.
Bits Allocated (0028,0100) and Bits Stored (0028,0101) are really 16 Bits and 12 Bits, but when i try to evaluate the Overlay Bit Position (60xx,0102). I receive a Key Error from Python.

Re: Overlays with device pre 2004

<38984b01-e787-46f3-abea-7c6283698848n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=296&group=comp.protocols.dicom#296

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:ad4:5962:: with SMTP id eq2mr7041759qvb.24.1643365344131;
Fri, 28 Jan 2022 02:22:24 -0800 (PST)
X-Received: by 2002:ac8:5317:: with SMTP id t23mr5502362qtn.508.1643365343666;
Fri, 28 Jan 2022 02:22:23 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Fri, 28 Jan 2022 02:22:23 -0800 (PST)
In-Reply-To: <ec66dada-63df-45da-a3a7-f6903d2ca31an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=46.142.183.217; posting-account=6ksO_woAAABuoPrA50nzzcpphnSbofar
NNTP-Posting-Host: 46.142.183.217
References: <28b36176-0ee8-4513-8275-018aaded80f6n@googlegroups.com>
<a02ddd61-d147-4192-be96-7c47ebeaaa31n@googlegroups.com> <ec66dada-63df-45da-a3a7-f6903d2ca31an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <38984b01-e787-46f3-abea-7c6283698848n@googlegroups.com>
Subject: Re: Overlays with device pre 2004
From: thomas.freier@medavis.de (Thomas Freier)
Injection-Date: Fri, 28 Jan 2022 10:22:24 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 15
 by: Thomas Freier - Fri, 28 Jan 2022 10:22 UTC

Patrick Ndanga schrieb am Donnerstag, 27. Januar 2022 um 23:16:52 UTC+1:
> On Friday, 21 January 2022 at 15:00:23 UTC+1, Thomas Freier wrote:
> > Patrick Ndanga schrieb am Mittwoch, 22. Dezember 2021 um 16:55:03 UTC+1:
> > > Hello everyone,
> > > I have a Dataset of mri und i want to read Overlays on the respective DICOM pictures in Python, but the Overlays are stored in Pixel Data(7FE0, 0010). Is it possible to do it and how please.
> > > I try to surch about it, but i could not find anything.
> > >
> > > Thanks in advance.
> > > Astride
> > You need to evaluate Overlay Bit Position (60xx,0102) it will tell you which of the unused bits in pixel data represents the overlay. The overlay itself is always 1 bit representation.
> > There must be a difference between Bits Allocated (0028,0100) eg. 16 to Bits Stored (0028,0101) eg. 12 to have such unused bits in pixel data available.
> > Embedded overlays are retired long time ago 2005 or so. I was unable to find such old version of PS3.5.
> Hello,
> thank you for your answer.
> Bits Allocated (0028,0100) and Bits Stored (0028,0101) are really 16 Bits and 12 Bits, but when i try to evaluate the Overlay Bit Position (60xx,0102). I receive a Key Error from Python.
Hi, just to be sure. You need to replace the xx with the number of overlay. E.g. 6000,0102. If you did this correctly I am afraid I cannot help you further as I am not so fit in Python ;)

Re: Overlays with device pre 2004

<6bb6ed43-dfff-4998-bbfd-71154ca1e42cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=298&group=comp.protocols.dicom#298

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:ac8:5a54:: with SMTP id o20mr6406986qta.670.1643382030408;
Fri, 28 Jan 2022 07:00:30 -0800 (PST)
X-Received: by 2002:ad4:5b8a:: with SMTP id 10mr7325492qvp.18.1643382029696;
Fri, 28 Jan 2022 07:00:29 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Fri, 28 Jan 2022 07:00:29 -0800 (PST)
In-Reply-To: <38984b01-e787-46f3-abea-7c6283698848n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=184.92.216.84; posting-account=k8utbAoAAAAEs9YabP8ZONqImFyM9nCd
NNTP-Posting-Host: 184.92.216.84
References: <28b36176-0ee8-4513-8275-018aaded80f6n@googlegroups.com>
<a02ddd61-d147-4192-be96-7c47ebeaaa31n@googlegroups.com> <ec66dada-63df-45da-a3a7-f6903d2ca31an@googlegroups.com>
<38984b01-e787-46f3-abea-7c6283698848n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6bb6ed43-dfff-4998-bbfd-71154ca1e42cn@googlegroups.com>
Subject: Re: Overlays with device pre 2004
From: jklotzer@google.com (Jason Klotzer)
Injection-Date: Fri, 28 Jan 2022 15:00:30 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 23
 by: Jason Klotzer - Fri, 28 Jan 2022 15:00 UTC

On Friday, January 28, 2022 at 4:22:25 AM UTC-6, Thomas Freier wrote:
> Patrick Ndanga schrieb am Donnerstag, 27. Januar 2022 um 23:16:52 UTC+1:
> > On Friday, 21 January 2022 at 15:00:23 UTC+1, Thomas Freier wrote:
> > > Patrick Ndanga schrieb am Mittwoch, 22. Dezember 2021 um 16:55:03 UTC+1:
> > > > Hello everyone,
> > > > I have a Dataset of mri und i want to read Overlays on the respective DICOM pictures in Python, but the Overlays are stored in Pixel Data(7FE0, 0010). Is it possible to do it and how please.
> > > > I try to surch about it, but i could not find anything.
> > > >
> > > > Thanks in advance.
> > > > Astride
> > > You need to evaluate Overlay Bit Position (60xx,0102) it will tell you which of the unused bits in pixel data represents the overlay. The overlay itself is always 1 bit representation.
> > > There must be a difference between Bits Allocated (0028,0100) eg. 16 to Bits Stored (0028,0101) eg. 12 to have such unused bits in pixel data available.
> > > Embedded overlays are retired long time ago 2005 or so. I was unable to find such old version of PS3.5.
> > Hello,
> > thank you for your answer.
> > Bits Allocated (0028,0100) and Bits Stored (0028,0101) are really 16 Bits and 12 Bits, but when i try to evaluate the Overlay Bit Position (60xx,0102). I receive a Key Error from Python.
> Hi, just to be sure. You need to replace the xx with the number of overlay. E.g. 6000,0102. If you did this correctly I am afraid I cannot help you further as I am not so fit in Python ;)

As Thomas stated, you must use the values in group 60xx to determine the structure of the overlay, which can be embedded in the upper pixel bits or as a separate tag in overlay data (60xx,3000).

While retired, the details are explained here:
https://dicom.nema.org/dicom/2013/output/chtml/part03/sect_C.9.html

If you're having trouble parsing the file in your Python library, I suggest using an OSS `dcmdump` tool (dcmtk, dcm4che, etc) to do some analysis on the metadata before trying to extract the values in your code, verifying the structure meets the spec.

Re: Overlays with device pre 2004

<f699c883-73c0-4909-ada5-f23b12a2b9d4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=299&group=comp.protocols.dicom#299

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:a05:622a:64f:: with SMTP id a15mr10139864qtb.94.1643494286602;
Sat, 29 Jan 2022 14:11:26 -0800 (PST)
X-Received: by 2002:a05:6214:e68:: with SMTP id jz8mr12441195qvb.124.1643494286427;
Sat, 29 Jan 2022 14:11:26 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Sat, 29 Jan 2022 14:11:26 -0800 (PST)
In-Reply-To: <6bb6ed43-dfff-4998-bbfd-71154ca1e42cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=178.9.81.195; posting-account=ZsAtEgoAAAAf4O9UgjLKPj01M25MasUI
NNTP-Posting-Host: 178.9.81.195
References: <28b36176-0ee8-4513-8275-018aaded80f6n@googlegroups.com>
<a02ddd61-d147-4192-be96-7c47ebeaaa31n@googlegroups.com> <ec66dada-63df-45da-a3a7-f6903d2ca31an@googlegroups.com>
<38984b01-e787-46f3-abea-7c6283698848n@googlegroups.com> <6bb6ed43-dfff-4998-bbfd-71154ca1e42cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f699c883-73c0-4909-ada5-f23b12a2b9d4n@googlegroups.com>
Subject: Re: Overlays with device pre 2004
From: patrickndanga2@gmail.com (Patrick Ndanga)
Injection-Date: Sat, 29 Jan 2022 22:11:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 49
 by: Patrick Ndanga - Sat, 29 Jan 2022 22:11 UTC

On Friday, 28 January 2022 at 16:00:32 UTC+1, Jason Klotzer wrote:
> On Friday, January 28, 2022 at 4:22:25 AM UTC-6, Thomas Freier wrote:
> > Patrick Ndanga schrieb am Donnerstag, 27. Januar 2022 um 23:16:52 UTC+1:
> > > On Friday, 21 January 2022 at 15:00:23 UTC+1, Thomas Freier wrote:
> > > > Patrick Ndanga schrieb am Mittwoch, 22. Dezember 2021 um 16:55:03 UTC+1:
> > > > > Hello everyone,
> > > > > I have a Dataset of mri und i want to read Overlays on the respective DICOM pictures in Python, but the Overlays are stored in Pixel Data(7FE0, 0010). Is it possible to do it and how please.
> > > > > I try to surch about it, but i could not find anything.
> > > > >
> > > > > Thanks in advance.
> > > > > Astride
> > > > You need to evaluate Overlay Bit Position (60xx,0102) it will tell you which of the unused bits in pixel data represents the overlay. The overlay itself is always 1 bit representation.
> > > > There must be a difference between Bits Allocated (0028,0100) eg. 16 to Bits Stored (0028,0101) eg. 12 to have such unused bits in pixel data available.
> > > > Embedded overlays are retired long time ago 2005 or so. I was unable to find such old version of PS3.5.
> > > Hello,
> > > thank you for your answer.
> > > Bits Allocated (0028,0100) and Bits Stored (0028,0101) are really 16 Bits and 12 Bits, but when i try to evaluate the Overlay Bit Position (60xx,0102). I receive a Key Error from Python.
> > Hi, just to be sure. You need to replace the xx with the number of overlay. E.g. 6000,0102. If you did this correctly I am afraid I cannot help you further as I am not so fit in Python ;)
> As Thomas stated, you must use the values in group 60xx to determine the structure of the overlay, which can be embedded in the upper pixel bits or as a separate tag in overlay data (60xx,3000).
>
> While retired, the details are explained here:
> https://dicom.nema.org/dicom/2013/output/chtml/part03/sect_C.9.html
>
> If you're having trouble parsing the file in your Python library, I suggest using an OSS `dcmdump` tool (dcmtk, dcm4che, etc) to do some analysis on the metadata before trying to extract the values in your code, verifying the structure meets the spec.
Bits Allocated (0028,0100) and Bits Stored (0028,0101) are 16 Bits and 12 for the image but for the Overlay, Bits Allocated (0028,0100) and Bits Stored (0028,0101) are equal ( 8 Bits ) and the High Bit of the overlay is 7. It doesn't work when i call the element of group 6000. The row and the columb of the Overlay dataset are 0. I receive the following error now:
"Unable to convert the overlay data as the following required elements are missing from the dataset: OverlayData, OverlayBitsAllocated, OverlayRows, OverlayColumns"

Re: Overlays with device pre 2004

<f35f0bbf-91eb-43f8-8a50-ca4c565f8f37n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=301&group=comp.protocols.dicom#301

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:a05:620a:d51:: with SMTP id o17mr13217962qkl.633.1643646637648;
Mon, 31 Jan 2022 08:30:37 -0800 (PST)
X-Received: by 2002:a05:622a:251:: with SMTP id c17mr15178086qtx.15.1643646637065;
Mon, 31 Jan 2022 08:30:37 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Mon, 31 Jan 2022 08:30:36 -0800 (PST)
In-Reply-To: <f699c883-73c0-4909-ada5-f23b12a2b9d4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=184.92.216.84; posting-account=k8utbAoAAAAEs9YabP8ZONqImFyM9nCd
NNTP-Posting-Host: 184.92.216.84
References: <28b36176-0ee8-4513-8275-018aaded80f6n@googlegroups.com>
<a02ddd61-d147-4192-be96-7c47ebeaaa31n@googlegroups.com> <ec66dada-63df-45da-a3a7-f6903d2ca31an@googlegroups.com>
<38984b01-e787-46f3-abea-7c6283698848n@googlegroups.com> <6bb6ed43-dfff-4998-bbfd-71154ca1e42cn@googlegroups.com>
<f699c883-73c0-4909-ada5-f23b12a2b9d4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f35f0bbf-91eb-43f8-8a50-ca4c565f8f37n@googlegroups.com>
Subject: Re: Overlays with device pre 2004
From: jklotzer@google.com (Jason Klotzer)
Injection-Date: Mon, 31 Jan 2022 16:30:37 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 73
 by: Jason Klotzer - Mon, 31 Jan 2022 16:30 UTC

On Saturday, January 29, 2022 at 4:11:27 PM UTC-6, Patrick Ndanga wrote:
> On Friday, 28 January 2022 at 16:00:32 UTC+1, Jason Klotzer wrote:
> > On Friday, January 28, 2022 at 4:22:25 AM UTC-6, Thomas Freier wrote:
> > > Patrick Ndanga schrieb am Donnerstag, 27. Januar 2022 um 23:16:52 UTC+1:
> > > > On Friday, 21 January 2022 at 15:00:23 UTC+1, Thomas Freier wrote:
> > > > > Patrick Ndanga schrieb am Mittwoch, 22. Dezember 2021 um 16:55:03 UTC+1:
> > > > > > Hello everyone,
> > > > > > I have a Dataset of mri und i want to read Overlays on the respective DICOM pictures in Python, but the Overlays are stored in Pixel Data(7FE0, 0010). Is it possible to do it and how please.
> > > > > > I try to surch about it, but i could not find anything.
> > > > > >
> > > > > > Thanks in advance.
> > > > > > Astride
> > > > > You need to evaluate Overlay Bit Position (60xx,0102) it will tell you which of the unused bits in pixel data represents the overlay. The overlay itself is always 1 bit representation.
> > > > > There must be a difference between Bits Allocated (0028,0100) eg. 16 to Bits Stored (0028,0101) eg. 12 to have such unused bits in pixel data available.
> > > > > Embedded overlays are retired long time ago 2005 or so. I was unable to find such old version of PS3.5.
> > > > Hello,
> > > > thank you for your answer.
> > > > Bits Allocated (0028,0100) and Bits Stored (0028,0101) are really 16 Bits and 12 Bits, but when i try to evaluate the Overlay Bit Position (60xx,0102). I receive a Key Error from Python.
> > > Hi, just to be sure. You need to replace the xx with the number of overlay. E.g. 6000,0102. If you did this correctly I am afraid I cannot help you further as I am not so fit in Python ;)
> > As Thomas stated, you must use the values in group 60xx to determine the structure of the overlay, which can be embedded in the upper pixel bits or as a separate tag in overlay data (60xx,3000).
> >
> > While retired, the details are explained here:
> > https://dicom.nema.org/dicom/2013/output/chtml/part03/sect_C.9.html
> >
> > If you're having trouble parsing the file in your Python library, I suggest using an OSS `dcmdump` tool (dcmtk, dcm4che, etc) to do some analysis on the metadata before trying to extract the values in your code, verifying the structure meets the spec.
> Bits Allocated (0028,0100) and Bits Stored (0028,0101) are 16 Bits and 12 for the image but for the Overlay, Bits Allocated (0028,0100) and Bits Stored (0028,0101) are equal ( 8 Bits ) and the High Bit of the overlay is 7. It doesn't work when i call the element of group 6000. The row and the columb of the Overlay dataset are 0. I receive the following error now:
> "Unable to convert the overlay data as the following required elements are missing from the dataset: OverlayData, OverlayBitsAllocated, OverlayRows, OverlayColumns"

It definitely seems like something is messed up with this overlay definition. Did this instance go through de-id or some other processing?

1) You normally shouldn't have an 8-bit overlay (overlay bits stored), unless the creator was trying to indicate color? Most I've seen are 1-bit -- basically indicating pixel on/off.
2) If you don't have OverlayData (60xx,3000) defined, then the overlay data is typically represented in the upper bits of the PixelData (7FE0,0010), but BitsStored = 8 doesn't make sense in this case, since you only have 4 bits remaining (16-12).

If you're really interested in rendering this overlay, I'd check what's in the bits in the bits allocated - bits stored region. If they are anything but 0, then there's a chance you have data there.

Any chance you can provide a `dcmdump` of the data (with PHI removed)? Knowing the vendor might also help understand the definition (DICOM conformance statement for the vendor might give details on how the overlay is defined)..

Re: Overlays with device pre 2004

<b1d53fad-9364-4f99-96bf-ef672060b5e1n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=304&group=comp.protocols.dicom#304

  copy link   Newsgroups: comp.protocols.dicom
X-Received: by 2002:ad4:5f89:: with SMTP id jp9mr24196972qvb.130.1643753680254;
Tue, 01 Feb 2022 14:14:40 -0800 (PST)
X-Received: by 2002:ac8:758d:: with SMTP id s13mr20590987qtq.414.1643753680086;
Tue, 01 Feb 2022 14:14:40 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!nntp.club.cc.cmu.edu!5.161.45.24.MISMATCH!2.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.dicom
Date: Tue, 1 Feb 2022 14:14:39 -0800 (PST)
In-Reply-To: <f35f0bbf-91eb-43f8-8a50-ca4c565f8f37n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=178.9.81.195; posting-account=ZsAtEgoAAAAf4O9UgjLKPj01M25MasUI
NNTP-Posting-Host: 178.9.81.195
References: <28b36176-0ee8-4513-8275-018aaded80f6n@googlegroups.com>
<a02ddd61-d147-4192-be96-7c47ebeaaa31n@googlegroups.com> <ec66dada-63df-45da-a3a7-f6903d2ca31an@googlegroups.com>
<38984b01-e787-46f3-abea-7c6283698848n@googlegroups.com> <6bb6ed43-dfff-4998-bbfd-71154ca1e42cn@googlegroups.com>
<f699c883-73c0-4909-ada5-f23b12a2b9d4n@googlegroups.com> <f35f0bbf-91eb-43f8-8a50-ca4c565f8f37n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b1d53fad-9364-4f99-96bf-ef672060b5e1n@googlegroups.com>
Subject: Re: Overlays with device pre 2004
From: patrickndanga2@gmail.com (Patrick Ndanga)
Injection-Date: Tue, 01 Feb 2022 22:14:40 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 78
 by: Patrick Ndanga - Tue, 1 Feb 2022 22:14 UTC

On Monday, 31 January 2022 at 17:30:39 UTC+1, Jason Klotzer wrote:
> On Saturday, January 29, 2022 at 4:11:27 PM UTC-6, Patrick Ndanga wrote:
> > On Friday, 28 January 2022 at 16:00:32 UTC+1, Jason Klotzer wrote:
> > > On Friday, January 28, 2022 at 4:22:25 AM UTC-6, Thomas Freier wrote:
> > > > Patrick Ndanga schrieb am Donnerstag, 27. Januar 2022 um 23:16:52 UTC+1:
> > > > > On Friday, 21 January 2022 at 15:00:23 UTC+1, Thomas Freier wrote:
> > > > > > Patrick Ndanga schrieb am Mittwoch, 22. Dezember 2021 um 16:55:03 UTC+1:
> > > > > > > Hello everyone,
> > > > > > > I have a Dataset of mri und i want to read Overlays on the respective DICOM pictures in Python, but the Overlays are stored in Pixel Data(7FE0, 0010). Is it possible to do it and how please.
> > > > > > > I try to surch about it, but i could not find anything.
> > > > > > >
> > > > > > > Thanks in advance.
> > > > > > > Astride
> > > > > > You need to evaluate Overlay Bit Position (60xx,0102) it will tell you which of the unused bits in pixel data represents the overlay. The overlay itself is always 1 bit representation.
> > > > > > There must be a difference between Bits Allocated (0028,0100) eg. 16 to Bits Stored (0028,0101) eg. 12 to have such unused bits in pixel data available.
> > > > > > Embedded overlays are retired long time ago 2005 or so. I was unable to find such old version of PS3.5.
> > > > > Hello,
> > > > > thank you for your answer.
> > > > > Bits Allocated (0028,0100) and Bits Stored (0028,0101) are really 16 Bits and 12 Bits, but when i try to evaluate the Overlay Bit Position (60xx,0102). I receive a Key Error from Python.
> > > > Hi, just to be sure. You need to replace the xx with the number of overlay. E.g. 6000,0102. If you did this correctly I am afraid I cannot help you further as I am not so fit in Python ;)
> > > As Thomas stated, you must use the values in group 60xx to determine the structure of the overlay, which can be embedded in the upper pixel bits or as a separate tag in overlay data (60xx,3000).
> > >
> > > While retired, the details are explained here:
> > > https://dicom.nema.org/dicom/2013/output/chtml/part03/sect_C.9.html
> > >
> > > If you're having trouble parsing the file in your Python library, I suggest using an OSS `dcmdump` tool (dcmtk, dcm4che, etc) to do some analysis on the metadata before trying to extract the values in your code, verifying the structure meets the spec.
> > Bits Allocated (0028,0100) and Bits Stored (0028,0101) are 16 Bits and 12 for the image but for the Overlay, Bits Allocated (0028,0100) and Bits Stored (0028,0101) are equal ( 8 Bits ) and the High Bit of the overlay is 7.. It doesn't work when i call the element of group 6000. The row and the columb of the Overlay dataset are 0. I receive the following error now:
> > "Unable to convert the overlay data as the following required elements are missing from the dataset: OverlayData, OverlayBitsAllocated, OverlayRows, OverlayColumns"
> It definitely seems like something is messed up with this overlay definition. Did this instance go through de-id or some other processing?
>
> 1) You normally shouldn't have an 8-bit overlay (overlay bits stored), unless the creator was trying to indicate color? Most I've seen are 1-bit -- basically indicating pixel on/off.
> 2) If you don't have OverlayData (60xx,3000) defined, then the overlay data is typically represented in the upper bits of the PixelData (7FE0,0010), but BitsStored = 8 doesn't make sense in this case, since you only have 4 bits remaining (16-12).
>
> If you're really interested in rendering this overlay, I'd check what's in the bits in the bits allocated - bits stored region. If they are anything but 0, then there's a chance you have data there.
>
> Any chance you can provide a `dcmdump` of the data (with PHI removed)? Knowing the vendor might also help understand the definition (DICOM conformance statement for the vendor might give details on how the overlay is defined).
thank you, i don't have enough Information about the definition of the Overlay.. I personally think that the Overlays do not have the necessary Informations (because Pixel Data OB: b'\x00\x00\x00\x00'). If i receive more Information I will come back again. :-)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor