Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, October 31, 2010 8:24:11 PM(UTC)
samit1984

Groups: Registered
Posts: 33


Hello sir
I am using evaluation version of leadtool
Sir when i use
Demo (image processing) to convert raw dicom to jpeg dicom it set all tag with default value not the orignal values of raw dicom eg patients name ....etc...
c:\program files (x86)\lead technologies\leadtools 17\shortcuts\c++ class library\03 medical\06 image processing

I have one doubt
When i convert raw dicom image to jpeg dicom or any format the mata detail is set to some default.
I mean original tag value like patient name date of birth etc.... will be change ..
Why?
1)because i am using evaluation version
or
2) i am loading dicom image it will be then converted to normal bitmap(it wont store dicom detail ) and again u are converting it to dicom so all tag is lost
So tell me what to do i want to preserve my patent detail and everything.....
And my evaluation period got over is there any way i can extend it i have some more work left before i buy.

Thanks samit
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, November 1, 2010 7:02:45 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

How exactly do you load the RAW DICOM file and how do you convert it as JPEG DICOM. I just tried to load a DICOM file from our sample files, and saved it as DICOM Lossy JPEG Grayscale and it was saved with tags. When I loaded the image into our DICOM Dataset demo, it had some default tags values stored in it..

You should be able to do the same using the Eval edition.

If you save the image as JPEG or any bitmap file format, the demo will only save the pixel data from the DICOM file.

Can you please send me a sample RAW DICOM file that you are facing the problem with?
 
#3 Posted : Monday, November 1, 2010 7:26:16 PM(UTC)
samit1984

Groups: Registered
Posts: 33


sir i have use dicom data set to view detail and image processing to convert the image

i have use leadtool sample image
for example
sample image ( IMAGE2.DCM) HAVE following detail
patient's name - sam goodfellow
patient id 999-123-99912
etc
modailty -px
but when i use (image processing demo) to convert it to lossless jepeg dicom

first i go to tab and click open and load IMAGE2.DCM
then i use save as filename xyz
save as type- Dicom Gray (.dcm)
sub type -lossless jpeg grayscale
and then save
but when i again open it with dicom data set demo to see all detail
i find is
patients name- john^doe
patients id - 123-45-6789
etc
modality - OT
where only image pixel is correct .
thanks
samit
 
#4 Posted : Tuesday, November 2, 2010 6:17:57 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

Samit,

The imaging Raster demos, such as the Main C DLL and Main .NET demos, only loads the pixel data from the DICOM file. So when you save the image as DICOM it gets tag default values, which are not to be used as correct for any particular patient or study.

If you would like to convert the pixel data, you can use our Transfer syntax demo:
C:\Program Files\LEAD Technologies\LEADTOOLS 17\Shortcuts\C++ Class Library\03 Medical\02 DICOM\04 Transfer Syntax
 
#5 Posted : Tuesday, November 2, 2010 7:53:35 AM(UTC)
samit1984

Groups: Registered
Posts: 33


so sir i have one dought i develop one application have same prob i tell u what i have done

1)if i load dicom (uncompress or any dicom format)image using dicom datase dsload(...)

2) find first element pixel element
3)get image
4)then i use bitmapbase save function to save the dicom file to what ever format i want and when i save it in dicom jpeg or dicom j2000 i have saame problem my converted dicom file is having defoult value
now)
it mean bitmapbase save function dose not load tag detail or i have to load some variable or set handel some thing so that bitmapbase save will save the file with orignal dicom value .
or tell me any function which will convert dicom to any(jpeg or jpeg 2000 etc...) or dicom format . with orignal tag value
thanks samit
 
#6 Posted : Wednesday, November 3, 2010 7:15:59 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

If you want to change the pixel data compression only, do can use LDicomDS::LoadDS to load DICOM file, LDicomDS::ChangeTransferSyntax and then LDicomDS::SaveDS to save the DICOM file. For more information, please refer to our C++ DICOM help file.

 
#7 Posted : Wednesday, November 3, 2010 9:26:48 AM(UTC)
samit1984

Groups: Registered
Posts: 33


sir I am developing one application which can convert dicom image to any dicom (dicom jpeg ,dicom rle ,dicom jpeg2000) or raw jpeg or jpeg2000 or any other format.

so transfer synatax dose not support dicom to pure jpeg
so I am using raster save function like
bitmapbase.save which support all the file format but problem with that is when u use it to save as dicom rle or any dicom format it wont store defoult dicom tag
so I want to use any raster save function which stores dicom image with orignal tag if possible with the raster save image. If it's there then how to do it?
 
#8 Posted : Thursday, November 4, 2010 7:51:28 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

If you want to save DICOM datasets with correct tag values (such as patient data), you must use LDicomDS::Save(). This allows you to save any type of DICOM data set using any image compression supported by DICOM.

If you want to save other formats (non-DICOM), such as TIFF, BMP, GIF and PNG, you will have to extract the pixel data from the DICOM dataset and use LBitmapBase::Save() function.
 
#9 Posted : Saturday, November 6, 2010 9:00:46 AM(UTC)
samit1984

Groups: Registered
Posts: 33


ok sir i tried and it works

can u just give more detail about uid which is support by leadtool whis is given below what all source bit is supported for lossy and not
example
UID_EXPLICIT_VR_BIG_ENDIAN 1.2.840.10008.1.2.2 All including palette color
UID_JPEG_BASELINE_1 1.2.840.10008.1.2.4.50 8-bit grayscale and 24-bit color (lossy compression)
UID_JPEG_EXTENDED_2_4 1.2.840.10008.1.2.4.51 12 bit grayscale only (lossy compression)



UID_JPEG_BASELINE_1 UID_JPEG_EXTENDED_2_4 UID_JPEG_EXTENDED_3_5
UID_JPEG_SPECTRAL_NONHIER_6_8 UID_JPEG_SPECTRAL_NONHIER_7_9 UID_JPEG_FULL_NONHIER_10_12 UID_JPEG_FULL_NONHIER_11_13
UID_JPEG_LOSSLESS_NONHIER_14 UID_JPEG_LOSSLESS_NONHIER_15 UID_JPEG_EXTENDED_HIER_16_18 UID_JPEG_EXTENDED_HIER_17_19 UID_JPEG_SPECTRAL_HIER_20_22 UID_JPEG_SPECTRAL_HIER_21_23 UID_JPEG_FULL_HIER_24_26 UID_JPEG_FULL_HIER_25_27 UID_JPEG_LOSSLESS_HIER_PROCESS_28 UID_JPEG_LOSSLESS_HIER_PROCESS_29 UID_JPEG_LOSSLESS_NONHIER_14B UID_JPEG_LS_LOSSLESS UID_JPEG_LS_LOSSY UID_JPEG2000_LOSSLESS_ONLY UID_JPEG2000 2) sir i have a problem converting 16 bit image to jpeg lossy it says source bit dose not match
what i should do to convert it
thanks
samit
 
#10 Posted : Saturday, November 6, 2010 9:03:23 AM(UTC)
samit1984

Groups: Registered
Posts: 33


ok sir i tried and it works

can u just give more detail about uid which is support by leadtool whis is given below what all source bit is supported for lossy and not
example
UID_EXPLICIT_VR_BIG_ENDIAN 1.2.840.10008.1.2.2 All including palette color
UID_JPEG_BASELINE_1 1.2.840.10008.1.2.4.50 8-bit grayscale and 24-bit color (lossy compression)
UID_JPEG_EXTENDED_2_4 1.2.840.10008.1.2.4.51 12 bit grayscale only (lossy compression)



UID_JPEG_BASELINE_1 ,
UID_JPEG_EXTENDED_2_4,
UID_JPEG_EXTENDED_3_5,

UID_JPEG_SPECTRAL_NONHIER_6_8 ,
UID_JPEG_SPECTRAL_NONHIER_7_9 ,
UID_JPEG_FULL_NONHIER_10_12 ,
UID_JPEG_FULL_NONHIER_11_13 ,

UID_JPEG_LOSSLESS_NONHIER_14,
UID_JPEG_LOSSLESS_NONHIER_15 ,
UID_JPEG_EXTENDED_HIER_16_18 ,
UID_JPEG_EXTENDED_HIER_17_19 ,
UID_JPEG_SPECTRAL_HIER_20_22 ,
UID_JPEG_SPECTRAL_HIER_21_23 ,
UID_JPEG_FULL_HIER_24_26 ,
UID_JPEG_FULL_HIER_25_27 ,
UID_JPEG_LOSSLESS_HIER_PROCESS_28 ,
UID_JPEG_LOSSLESS_HIER_PROCESS_29,
UID_JPEG_LOSSLESS_NONHIER_14B ,

UID_JPEG_LS_LOSSLESS ,
UID_JPEG_LS_LOSSY ,
UID_JPEG2000_LOSSLESS_ONLY ,
UID_JPEG2000 ,


2) sir i have a problem converting 16 bit image to jpeg lossy it says source bit dose not match
what i should do to convert it
thanks
samit
 
#11 Posted : Sunday, November 7, 2010 6:36:25 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,034

Was thanked: 2 time(s) in 2 post(s)

Please read about transfer syntax in the DICOM specification. If you find anything in LEADTOOLS that is not compliant to the specifications, please send an email to support@leadtools.com with full details.

In general, you can change the compression or image encoding in the DICOM file using LDicomDS::SetImage or LDicomDS::InsertImage. This will also require updates to other image related tags (only for advance user). Easy way to change the compression or encoding is to use LDicomDS::ChangeTransferSyntax method.

LEADTOOLS supports following encoding and bit depth:
UID_IMPLICIT_VR_LITTLE_ENDIAN ("1.2.840.10008.1.2") - 8, 12, 16 bit grayscale and 24-bit color plus 8, 12, 16 bit palette color
UID_EXPLICIT_VR_LITTLE_ENDIAN ("1.2.840.10008.1.2.1") - 8, 12, 16 bit grayscale and 24-bit color plus 8, 12, 16 bit palette color
UID_EXPLICIT_VR_BIG_ENDIAN ("1.2.840.10008.1.2.2") - 8, 12, 16 bit grayscale and 24-bit color plus 8, 12, 16 bit palette color
UID_JPEG_BASELINE_1 ("1.2.840.10008.1.2.4.50") - 8-bit gray and 24-bit color
UID_JPEG_EXTENDED_2_4 ("1.2.840.10008.1.2.4.51") - 8 and 12 bit grayscale
UID_JPEG_LOSSLESS_NONHIER_14 ("1.2.840.10008.1.2.4.57") - 8, 12, 16 bit grayscale and 24-bit color
UID_JPEG_LOSSLESS_NONHIER_14B ("1.2.840.10008.1.2.4.70") - 8, 12, 16 bit grayscale and 24-bit color
UID_JPEG2000_LOSSLESS_ONLY ("1.2.840.10008.1.2.4.90") - 8, 12, 16 bit grayscale and 24-bit color
UID_JPEG2000 ("1.2.840.10008.1.2.4.91") - 8, 12, 16 bit grayscale and 24-bit color
UID_RLE_LOSSLESS ("1.2.840.10008.1.2.5") - 8, 12, 16 bit grayscale and 24-bit color and 8-bit palette color

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.532 seconds.