|
@@ -738,7 +738,7 @@ class cardiacSPECTLogic(ScriptedLoadableModuleLogic):
|
|
|
self.storeNodeRemote(relativePath,segNodeName)
|
|
|
|
|
|
def storeInputFunction(self,patientId):
|
|
|
- self.calculateInputFunction()
|
|
|
+ self.calculateInputFunction(patientId)
|
|
|
project="dinamic_spect/Patients"
|
|
|
relativePath=project+'/@files/'+patientId
|
|
|
doubleArrayNodeName=patientId+'_Ventricle'
|
|
@@ -793,7 +793,7 @@ class cardiacSPECTLogic(ScriptedLoadableModuleLogic):
|
|
|
|
|
|
|
|
|
|
|
|
- def calculateInputFunction(self):
|
|
|
+ def calculateInputFunction(self,patientId):
|
|
|
n=self.frame_data.shape[3]
|
|
|
|
|
|
dns = slicer.mrmlScene.GetNodesByClassByName('vtkMRMLDoubleArrayNode','Ventricle')
|
|
@@ -831,7 +831,7 @@ class cardiacSPECTLogic(ScriptedLoadableModuleLogic):
|
|
|
t0=0;
|
|
|
ft=self.frame_time
|
|
|
for i in range(0,n):
|
|
|
- vol="testVolume"+str(i)
|
|
|
+ vol=patientId+"Volume"+str(i)
|
|
|
fx=ft[i]
|
|
|
fy=self.meanROI(vol,juse)
|
|
|
dt=2*ft[i]-t0
|