4Quant / COPD-staging

Package of tools to quantify lung disease (COPD) using any number of popular medical quantifiers (PD15, LAA-x...)
1 stars 0 forks source link

blocking on #72

Closed drtjre closed 8 years ago

drtjre commented 8 years ago

Sending PACS fetched images to "Segment Lung Tissue" plugin causes a popup "This

Working for File images

Loading images from local filesystem appears to work fine:

select name,mean(run2(image,"Segment Lung Tissue","")) from demotable;
+--------------------------------------+---------------------+--+
|                 name                 |         _c1         |
+--------------------------------------+---------------------+--+
| 00SquareLung10by10.tif               | 2709.1330645161293  |
| 01SquareLung10k.tif                  | 1882.0313530871406  |
| 02TwoSquare9522.tif                  | 1836.6011049723757  |
+--------------------------------------+---------------------+--+
3 rows selected (1.482 seconds)

Loading Images from PACS produces "Plugin requires a Stack" Error

  1. Load Images from CSVfedPACS to Table and confirm data loaded successfully
CREATE TEMPORARY TABLE Stolz3 USING fourquant.pacs
OPTIONS (bind "YETI", username "OSIRIX", server "localhost", port "11112", path "Stolz3.csv");

select PatientID,SeriesDescription,success from Stolz3 where success=true;
+----------------+--------------------------+----------+--+
|   PatientID    |    SeriesDescription     | success  |
+----------------+--------------------------+----------+--+
| USB0003152149  | Thorax 1.0 I26f 3        | true     |
| USB0002342759  | Thorax nativ 1.0 I26f 3  | true     |
| USB0002387773  | Thorax 3.0 I31f 3        | true     |
| USB0003138461  | Monitoring 10.0 B31f     | true     |
+----------------+--------------------------+----------+--+
4 rows selected (0.21 seconds)
  1. Test CSVfedPACS Table with simple image fetching and simple calculation
select patientID,seriesDescription,
mean(run2(fetch_dicom_imagej(studyInstanceUID,seriesInstanceUID),"Median...","radius=3")) 
from Stolz3  WHERE success=true;
+----------------+--------------------------+----------------------+--+
|   patientID    |    seriesDescription     |         _c2          |
+----------------+--------------------------+----------------------+--+
| USB000xxx49  | Thorax 1.0 I26f 3        | -514.5741386413574   |
| USB00xxxd59  | Thorax nativ 1.0 I26f 3  | -581.5818977355957   |
| USB000xxx73  | Thorax 3.0 I31f 3        | -551.8430023193359   |
| USB00xxx461  | Monitoring 10.0 B31f     | -400.28540420532227  |
+----------------+--------------------------+----------------------+--+
4 rows selected (3.858 seconds)
  1. Now Substitute Measure with Segment Lung Tissue
select patientID,seriesDescription,
mean(run2(fetch_dicom_imagej(studyInstanceUID,seriesInstanceUID),"Segment Lung Tissue","")) 
from Stolz3  WHERE success=true;```

-> Popup "This Command requires a Stack"

While, I could modify the plugin to not require a stack, the data should actually be a stack.
recommendations?

kmader commented 8 years ago

I will take a look, it must be related to how the stacks you have are formatted, I'll try to make a better test for it

drtjre commented 8 years ago

OK. Let me know. TJ

On Wed, Apr 27, 2016 at 11:52 AM, Kevin Mader notifications@github.com wrote:

I will take a look, it must be related to how the stacks you have are formatted, I'll try to make a better test for it

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/4Quant/COPD-staging/issues/72#issuecomment-215033842