how to load Enhanced Multiframe Object with dcmtk?
Moderator: Moderator Team
-
- Posts: 29
- Joined: Mon, 2010-08-16, 10:01
- Location: CHINA
how to load Enhanced Multiframe Object with dcmtk?
Hi,
When I load a Enhanced Information Object Multiframe ,the computer was so slow? how to deal with this problem?
I use the loadfile() to load the Enhanced Multiframe Object ,and I want to know if there is other ways to load a large object.
The object's size was 234 M,and have 400 frames.
I would appreciate any help!
When I load a Enhanced Information Object Multiframe ,the computer was so slow? how to deal with this problem?
I use the loadfile() to load the Enhanced Multiframe Object ,and I want to know if there is other ways to load a large object.
The object's size was 234 M,and have 400 frames.
I would appreciate any help!
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
What do you mean by "slow"? By default, large element values are not loaded, so the pixel data usually remains in file until it is accessed. See "maxReadLength" parameter of the loadFile() method.
In case you want to access (and possibly decompress) individual frames of the image, you might be interested in the following Howto.
In case you want to access (and possibly decompress) individual frames of the image, you might be interested in the following Howto.
-
- Posts: 29
- Joined: Mon, 2010-08-16, 10:01
- Location: CHINA
First, thanks for you help.
I have a short time to contact with dcmtk and I hope you can forgive my ignorant to it.
if I get DcmDataset and E_TransferSyntax, I can display the DICOM file.
if i use DicomImage("mf_image.dcm", CIF_UsePartialAccessToPixelData, 0, 10 /* fcount */),i don't know how to display it .
thanks!!
I have a short time to contact with dcmtk and I hope you can forgive my ignorant to it.
if I get DcmDataset and E_TransferSyntax, I can display the DICOM file.
if i use DicomImage("mf_image.dcm", CIF_UsePartialAccessToPixelData, 0, 10 /* fcount */),i don't know how to display it .
thanks!!
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
In the documentation, there is an example on how to render the image to a pixel array.
-
- Posts: 29
- Joined: Mon, 2010-08-16, 10:01
- Location: CHINA
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
-
- Posts: 29
- Joined: Mon, 2010-08-16, 10:01
- Location: CHINA
-
- Posts: 29
- Joined: Mon, 2010-08-16, 10:01
- Location: CHINA
Thanks for you help in thoes days ,With you help ,my work get a great progress,
But I want to ask you a question,When I display Enhanced Multiframe Objects ,if the number of frame less 100,It works well, but if the number>200 ,it can't work well.
So I want to know if the dcmtk can separate the Enhanced Multiframe Objects, or there is other ways to solve the problem.
I use the DicomImage("",CIF_UsePartialAccessToPixelData,count,count)
with the count change the screen changed;
thank you !!
But I want to ask you a question,When I display Enhanced Multiframe Objects ,if the number of frame less 100,It works well, but if the number>200 ,it can't work well.
So I want to know if the dcmtk can separate the Enhanced Multiframe Objects, or there is other ways to solve the problem.
I use the DicomImage("",CIF_UsePartialAccessToPixelData,count,count)
with the count change the screen changed;
thank you !!
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
What is "count" in your sample code? Why don't you just follow what the referenced Howto shows?
-
- Posts: 29
- Joined: Mon, 2010-08-16, 10:01
- Location: CHINA
First ,forgive my long time didn't reply.
if I'm a doctor,and I want to look the designated frame,for example the twentieth, so the count is 20, and I use the DicomImage("mf_image.dcm", CIF_UsePartialAccessToPixelData, count,count) can solve this problem.
In some atricle,I know the large Enhanced Information Objects can be divided in to some parts , and I want to know how to?
thanks!!
if I'm a doctor,and I want to look the designated frame,for example the twentieth, so the count is 20, and I use the DicomImage("mf_image.dcm", CIF_UsePartialAccessToPixelData, count,count) can solve this problem.
In some atricle,I know the large Enhanced Information Objects can be divided in to some parts , and I want to know how to?
thanks!!
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
I was was asking what "count" is because you probably understood the API documentation wrong:
So, in your example case the following would be correct:
Code: Select all
fstart first frame to be processed (optional, 0 = 1st frame), all subsequent use of parameters labeled 'frame' in this class refers to this start frame.
fcount number of frames (optional, 0 = all frames)
Code: Select all
DicomImage("mf_image.dcm", CIF_UsePartialAccessToPixelData, count - 1 /*fstart*/, 1 /*fcount*/);
You should probably read about "Concatenations" in the DICOM standard ...In some atricle,I know the large Enhanced Information Objects can be divided in to some parts , and I want to know how to?
-
- Posts: 29
- Joined: Mon, 2010-08-16, 10:01
- Location: CHINA
That is my mistake to set the parameter a wrong value , I'm so sorry!
DicomImage("", CIF_UsePartialAccessToPixelData, count, 1);
So this you may understand,the count is I want to display,everytime I just display 1 frame.
In this situation,if the amount of the frame > 200, to display the picture frame by frame was so slow,
I'm so sorry for my mistake!
DicomImage("", CIF_UsePartialAccessToPixelData, count, 1);
So this you may understand,the count is I want to display,everytime I just display 1 frame.
In this situation,if the amount of the frame > 200, to display the picture frame by frame was so slow,
I'm so sorry for my mistake!
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 1 guest