Apply Non Linear VOILut
Moderator: Moderator Team
-
- Posts: 85
- Joined: Sun, 2010-12-26, 17:34
Apply Non Linear VOILut
Hi,
We're having a dicom file which contains a non linear VOI Lut , How to open it correctly & apply the nonLinear VoiLut using the DicomImage class..
Any help with sample code will be appreciated.
Thanks
We're having a dicom file which contains a non linear VOI Lut , How to open it correctly & apply the nonLinear VoiLut using the DicomImage class..
Any help with sample code will be appreciated.
Thanks
-
- Posts: 101
- Joined: Wed, 2009-07-08, 16:06
- Location: Oldenburg, Germany
In the case of non-linear VOI Lut, you might have multiple VOI items in the sequence (see PS 3.3 C.8.11.3.1.5). You can use the function setVoiLut which takes the index of the item you wish to apply. Although not tested, your code should look like
Code: Select all
DicomImage *image = new DicomImage("/* filename*/");
if ((image != NULL) && (image->getStatus() == EIS_Normal))
{
// Apply first image VOI lut data
image->setVoiLut(0);
}
-
- Posts: 85
- Joined: Sun, 2010-12-26, 17:34
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
-
- Posts: 85
- Joined: Sun, 2010-12-26, 17:34
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
-
- Posts: 85
- Joined: Sun, 2010-12-26, 17:34
I am not using software , I am rendering the image on UIImageView on iPad and it works fine with all images also with the image causing problem it works when uncompressed
but i noticed this in the Console when this file is compressed JPEGLossless
W: computed (3356700) and stored (772057) pixel count differ
do you have any idea what that means ?
i haven't yet tried the dcmpng ..
if you want me to send u the file it's ok .
but i noticed this in the Console when this file is compressed JPEGLossless
W: computed (3356700) and stored (772057) pixel count differ
do you have any idea what that means ?
i haven't yet tried the dcmpng ..
if you want me to send u the file it's ok .
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
So, you are definitely using software Probably software that is written by yourself based on the DCMTK, right?I am not using software, I am rendering the image on UIImageView on iPad ...
Yes, it means that something is probably wrong with the image file because the DCMTK routine processing the data expects more pixel data than actually stored in the PixelData element.W: computed (3356700) and stored (772057) pixel count differ
do you have any idea what that means ?
But that would be really helpful and that's the reason why I was asking for it (see my above postings).haven't yet tried the dcmpng ..
That would also be ok. So, please send the DICOM image file by email to dicom/at/offis/dot/de.if you want me to send u the file it's ok .
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
This is easy: The DICOM image file you've sent to us is corrupt (in many ways). The main issue is that the pixel data is not encoded in an encapsulated manner (sequence of pixel items) as it is required by the DICOM standard:
Code: Select all
(0002,0010) UI =JPEGLossless:Non-hierarchical-1stOrderPrediction # 22, 1 TransferSyntaxUID
[...]
(7fe0,0010) OW fffe\e000\0000\0000\fffe\e000\8fa2\0017\d8ff\e0ff\1000\464a\4649... # 1544114, 1 PixelData
-
- Posts: 85
- Joined: Sun, 2010-12-26, 17:34
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest