Open anitakh1 opened 7 years ago
Hi. Thanks for reporting. Tutorial 3 is a bit out of date, so that command will no longer work.
The easiest thing to do is import the data using image_uids = ptk_main.ImportData(source_path);
.
This will group your data into one or more contiguous volumes. This returns a cell array of UIDs, where each cell array element is a UID for that contiguous volume. Normally a single image series will return a single volume, so image_uids
will contain just one UID.
To turn that volume into a Dataset object use
dataset = ptk_main.CreateDatasetFromUid(image_uids{1});
If image_uids
contains more than one UID it means the data have grouped into more than one volume (e.g. you have imported multiple images, or there are scout or other images mixed in with the volume). In this case you can examine the different volumes returned by creating a Dataset object for each, such as dataset_2 = ptk_main.CreateDatasetFromUid(image_uids{2});
for the second one, and so on.
I think the rest of the tutorial should work.
hello sir,
the commands you mentioned did work on the dicom set I gave but there are few error namely:
sir, I have written some codes for 2D airway segmentation for 2D image. is it possible for me to run this for dicom dataset i provide on this ptk toolkit. Actually I want to test my code on 3D images. My moto is to first remove airways then segment vessels. can i do this work with the PTK toolkit. please guide.
thanks a lot sir for your response. you have been very kind.
Anita Khanna PhD scholar, NIT Raipur Asst. Prof., Electrical Dept, Institute of technology, GGU, Bilaspur (C.G.) mob no: +919425280114
On Mon, Oct 23, 2017 at 3:17 AM, Tom Doel notifications@github.com wrote:
Hi. Thanks for reporting. Tutorial 3 is a bit out of date, so that command will no longer work.
The easiest thing to do is import the data using image_uids = ptk_main.ImportData(source_path);. This will group your data into one or more contiguous volumes. This returns a cell array of UIDs, where each cell array element is a UID for that contiguous volume. Normally a single image series will return a single volume, so image_uids will contain just one UID.
To turn that volume into a Dataset object use dataset = ptk_main.CreateDatasetFromUid(image_uids{1});
If image_uids contains more than one UID it means the data have grouped into more than one volume (e.g. you have imported multiple images, or there are scout or other images mixed in with the volume). In this case you can examine the different volumes returned by creating a Dataset object for each, such as dataset_2 = ptk_main.CreateDatasetFromUid(image_uids{2});
I think the rest of the tutorial should work.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tomdoel/pulmonarytoolkit/issues/25#issuecomment-338511788, or mute the thread https://github.com/notifications/unsubscribe-auth/AYBs91nwVojud3WOmAJKRZEa5u2gDR3Zks5su7fngaJpZM4P6cSN .
when i write ' file_infos = PTKDicomUtilities.GetListOfDicomFiles(source_path);', it says 'Undefined variable "PTKDicomUtilities" or class PTKDicomUtilities.GetListOfDicomFiles". i defined file path in source_path. please help