tomdoel / pulmonarytoolkit

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

Undefined variable "obj" or class "obj.Reporting.Error" #23

Closed rickysax closed 6 years ago

rickysax commented 6 years ago

The plugin PTKLobes failed with the following error: Undefined function or variable 'PTKLobeMapForMRI'. The plugin PTKLobes failed with the following error: Undefined function or variable 'PTKLobeMapForMRI'. The plugin PTKSaveLobarAnalysisResults failed with the following error: Undefined variable "obj" or class "obj.Reporting.Error". The plugin PTKSaveLungAnalysisResults failed with the following error: Undefined variable "obj" or class "obj.Reporting.Error". The plugin PTKSaveADCAnalysisResults failed with the following error: Undefined variable "obj" or class "obj.Reporting.Error". The plugin PTKSaveCoronalAnalysisResults failed with the following error: Undefined variable "obj" or class "obj.Reporting.Error". The plugin PTKSaveLungAnalysisResults failed with the following error: Undefined variable "obj" or class "obj.Reporting.Error". The plugin PTKAirwayDistanceTransform failed with the following error: Undefined variable "obj" or class "obj.Reporting.Error". The plugin PTKCarina failed with the following error: Undefined variable "obj" or class "obj.Reporting.Error". The plugin PTKAirwayDistanceTransform failed with the following error: Undefined variable "obj" or class "obj.Reporting.Error".

How can I solve this issue? In every class I have this same problem Undefined variable "obj" or class "obj.Reporting.Error"

tomdoel commented 6 years ago

Hi. Thanks for reporting the errors!

It looks like you are using an MRI dataset. Unfortunately the analysis plugins (lobar analysis, lung analysis etc.) only work on CT datasets, because the algorithms are CT-based.

In future the analysis buttons will be hidden when an MRI is loaded, to avoid confusion.

There is a bug in the error reporting which you have helped me to find. This caused the above errors and I will fix this in the next release. It still won't work with MRI, but the errors should be more helpful.

rickysax commented 6 years ago

Anyway great job, do you know a script or program for lungs mri segmet (matlab or others), or a function to use with t1 vibe sequences? regards

Riccardo

Il 18/09/17 13:04, Tom Doel notifications@github.com ha scritto:

Hi. Thanks for reporting the errors! It looks like you are using an MRI dataset. Unfortunately the analysis plugins (lobar analysis, lung analysis etc.) only work on CT datasets, because the algorithms are CT-based. In future the analysis buttons will be hidden when an MRI is loaded, to avoid confusion. There is a bug in the error reporting which you have helped me to find. This caused the above errors and I will fix this in the next release. It still won't work with MRI, but the errors should be more helpful.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub(https://github.com/tomdoel/pulmonarytoolkit/issues/23#issuecomment-330188167), or mute the thread(https://github.com/notifications/unsubscribe-auth/AeDjqmCWXkRK6ZhBCOetQj3ac2dAr0ucks5sjk4zgaJpZM4PKmPw).

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tomdoel/pulmonarytoolkit","title":"tomdoel/pulmonarytoolkit","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/tomdoel/pulmonarytoolkit"}},"updates":{"snippets":[{"icon":"PERSON","message":"@tomdoel in #23: Hi. Thanks for reporting the errors!\r\n\r\nIt looks like you are using an MRI dataset. Unfortunately the analysis plugins (lobar analysis, lung analysis etc.) only work on CT datasets, because the algorithms are CT-based.\r\n\r\nIn future the analysis buttons will be hidden when an MRI is loaded, to avoid confusion.\r\n\r\nThere is a bug in the error reporting which you have helped me to find. This caused the above errors and I will fix this in the next release. It still won't work with MRI, but the errors should be more helpful.\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/tomdoel/pulmonarytoolkit/issues/23#issuecomment-330188167"}}}

tomdoel commented 6 years ago

I don't know, but have look on Matlab Central. You could also check out some of the popular free software packages to see if there are any plugins to help with segmenting and analysing MRI images

PatrickSousa93 commented 6 years ago

Hi,

I'm having a similar problem, but with CT scans for every plugin I try.

The plugin PTKLeftAndRightLungs failed with the following error: Undefined function or variable 'reporting'. The plugin PTKLobes failed with the following error: Undefined function or variable 'reporting'. The plugin PTKAirways failed with the following error: Undefined function or variable 'reporting'. The plugin PTKAirwaysLabelledByLobe failed with the following error: Undefined function or variable 'reporting'. The plugin PTKLeftAndRightLungs failed with the following error: Undefined function or variable 'reporting'.

I tried it in my own CT scans and in LOLA11 too and it gave me always this message error.

How can I solve it?

Thanks, Patrick Sousa

tomdoel commented 6 years ago

Hi @PatrickSousa93. A recent bug fix in v0.7.9 might fix your problem, or if not, it might give you more information on your error.

tomdoel commented 6 years ago

The original issue has now been resolved so I am closing this issue. The actual cause was that CT segmentation plugins cannot be used with MR data. In version 0.8 the CT segmentation plugins are now disabled for MR datasets to reduce confusion. The error messages reported above were due to a bug in the way the error messages were reported to the user, which has now been fixed.

rickysax commented 6 years ago

Many thanks for this work Best regards 

Il 10/01/18 05:47, Tom Doel notifications@github.com ha scritto:

The original issue has now been resolved so I am closing this issue. The actual cause was that CT segmentation plugins cannot be used with MR data. In version 0.8 the CT segmentation plugins are now disabled for MR datasets to reduce confusion. The error messages reported above were due to a bug in the way the error messages were reported to the user, which has now been fixed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub(https://github.com/tomdoel/pulmonarytoolkit/issues/23#issuecomment-356498746), or mute the thread(https://github.com/notifications/unsubscribe-auth/AeDjqn16K0UpzM_GBS9ykPfropcCnOv-ks5tJEDMgaJpZM4PKmPw).

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/tomdoel/pulmonarytoolkit","title":"tomdoel/pulmonarytoolkit","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/tomdoel/pulmonarytoolkit"}},"updates":{"snippets":[{"icon":"PERSON","message":"@tomdoel in #23: The original issue has now been resolved so I am closing this issue. The actual cause was that CT segmentation plugins cannot be used with MR data. In version 0.8 the CT segmentation plugins are now disabled for MR datasets to reduce confusion. The error messages reported above were due to a bug in the way the error messages were reported to the user, which has now been fixed."}],"action":{"name":"View Issue","url":"https://github.com/tomdoel/pulmonarytoolkit/issues/23#issuecomment-356498746"}}}