tomdoel / pulmonarytoolkit

Lung medical image analysis and visualisation software for Matlab.
GNU General Public License v3.0
84 stars 57 forks source link

An error when use "Segment the segments". Thanks! #22

Open guyucowboy opened 6 years ago

guyucowboy commented 6 years ago

Hi, tomdeol. Thanks for your great work! When I use the "Segment the segments" in toolkit. Two errors when I deal with different dicom sequences.

  1. The plugin PTKPulmonarySegments failed with the following error: Error in function SeparateSmallestBranchByRadius: Could not subdivide the tree into exactly the desired number of branches.
  2. The plugin PTKPulmonarySegments failed with the following error: Attempt to access sample_image(16,18,29);As size(sample_image)=[2,2,2], is out of range。 Thanks Gu Yu.
tomdoel commented 6 years ago

Hi, thanks for posting the issues. The pulmonary segment algorithms are quite experimental and don't always work. They are based heuristically on analysis of the branching airway tree, and error 1 is really saying that the heuristic isn't clever enough to work out what's going on in this particular tree.

The second error might be a bug — I'll look into this and update here if I find anything that can be improved. Thanks!

guyucowboy commented 6 years ago

Hi, tomdeol. Thanks for your great reply! If you decide to update this excellent toolkit, I suggest that you can add the function of lung boundary repairing if there are the juxta-pleural lung nodules appeared in lung boundary. You can see the paper “Automated detection of lung nodules in CT scans: Preliminary results” . I would trouble you when I have other questions. Thanks for your help!