Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/Segmentation/run_Segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
from opentps.core.data.images import CTImage
from opentps.core.processing.segmentation.segmentation3D import applyThreshold
from opentps.core.processing.segmentation.segmentationCT import SegmentationCT
from opentps.core.examples.syntheticData import *
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from syntheticData import *

logger = logging.getLogger(__name__)

Expand Down
4 changes: 3 additions & 1 deletion examples/dynamicData/exampleInterFractionChanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
from opentps.core.processing.deformableDataAugmentationToolBox.modelManipFunctions import *
from opentps.core.processing.imageProcessing.imageTransform3D import rotateData, translateData, applyTransform3D
from opentps.core.processing.imageProcessing.resampler3D import resampleImage3DOnImage3D
from opentps.core.examples.syntheticData import createSynthetic4DCT
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from syntheticData import createSynthetic4DCT

logger = logging.getLogger(__name__)

Expand Down
4 changes: 3 additions & 1 deletion examples/dynamicData/run_exampleApplyBaselineShiftToModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
from opentps.core.processing.imageProcessing.syntheticDeformation import applyBaselineShift
from opentps.core.data.dynamicData._dynamic3DModel import Dynamic3DModel
from opentps.core.data.dynamicData._dynamic3DSequence import Dynamic3DSequence
from opentps.core.examples.syntheticData import *
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from syntheticData import *

logger = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
from opentps.core.processing.deformableDataAugmentationToolBox.generateDynamicSequencesFromModel import generateDynSeqFromBreathingSignalsAndModel
from opentps.core.processing.imageProcessing.imageTransform3D import getVoxelIndexFromPosition
from opentps.core.processing.imageProcessing.resampler3D import resample
from opentps.core.examples.syntheticData import*
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from syntheticData import*

logger = logging.getLogger(__name__)

Expand Down
4 changes: 3 additions & 1 deletion examples/dynamicData/run_exampleDeformationFromWeightMaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@

from opentps.core.processing.imageProcessing import resampler3D
from opentps.core.data.dynamicData._dynamic3DModel import Dynamic3DModel
from opentps.core.examples.syntheticData import createSynthetic4DCT
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from syntheticData import createSynthetic4DCT
from opentps.core.processing.deformableDataAugmentationToolBox.weightMaps import generateDeformationFromTrackers, generateDeformationFromTrackersAndWeightMaps

logger = logging.getLogger(__name__)
Expand Down
4 changes: 3 additions & 1 deletion examples/dynamicData/run_exampleMidP.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
from opentps.core.data.dynamicData._dynamic3DModel import Dynamic3DModel
from opentps.core.data.dynamicData._dynamic3DSequence import Dynamic3DSequence
from opentps.core.data.images import CTImage
from opentps.core.examples.syntheticData import *
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from syntheticData import *

logger = logging.getLogger(__name__)
#%%
Expand Down
6 changes: 4 additions & 2 deletions examples/imageProcessing/cupyVSsitkTransforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
from opentps.core.data.images import VectorField3D
from opentps.core.data.dynamicData._dynamic3DModel import Dynamic3DModel
from opentps.core.data._transform3D import Transform3D
from opentps.core.examples.showStuff import showModelWithAnimatedFields
from opentps.core.examples.syntheticData import *
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from showStuff import showModelWithAnimatedFields
from syntheticData import *
from opentps.core.processing.imageProcessing.resampler3D import resampleImage3DOnImage3D
from opentps.core.processing.imageProcessing.imageTransform3D import rotateData, translateData
from opentps.core.processing.imageProcessing.resampler3D import resample
Expand Down
6 changes: 4 additions & 2 deletions examples/imageProcessing/exampleTransform3DCupy.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@
from opentps.core.data.images import VectorField3D
from opentps.core.data.dynamicData._dynamic3DModel import Dynamic3DModel
from opentps.core.data._transform3D import Transform3D
from opentps.core.examples.showStuff import showModelWithAnimatedFields
from opentps.core.examples.syntheticData import *
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from showStuff import showModelWithAnimatedFields
from syntheticData import *
from opentps.core.processing.imageProcessing.resampler3D import resampleImage3DOnImage3D
from opentps.core.processing.imageProcessing.imageTransform3D import rotateData, translateData
from opentps.core.processing.imageProcessing.resampler3D import resample
Expand Down
4 changes: 3 additions & 1 deletion examples/imageProcessing/run_exampleApplyBaselineShift.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
from opentps.core.data.images import CTImage
from opentps.core.data.images import ROIMask
from opentps.core.processing.imageProcessing.syntheticDeformation import applyBaselineShift
from opentps.core.examples.syntheticData import *
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from syntheticData import *

logger = logging.getLogger(__name__)

Expand Down
6 changes: 4 additions & 2 deletions examples/imageProcessing/run_exampleTransform3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@
from opentps.core.data.images import VectorField3D
from opentps.core.data.dynamicData._dynamic3DModel import Dynamic3DModel
from opentps.core.data._transform3D import Transform3D
from opentps.core.examples.showStuff import showModelWithAnimatedFields
from opentps.core.examples.syntheticData import *
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from showStuff import showModelWithAnimatedFields
from syntheticData import *
from opentps.core.processing.imageProcessing.resampler3D import resampleImage3DOnImage3D
from opentps.core.processing.imageProcessing.imageTransform3D import rotateData, translateData
from opentps.core.processing.imageProcessing.resampler3D import resample
Expand Down
5 changes: 3 additions & 2 deletions examples/multiplePythonEnv/run_backAndForthParent.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
from subprocess import Popen, PIPE
from pathlib import Path
import subprocess

from opentps.core.examples.syntheticData import createSynthetic3DCT
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from syntheticData import createSynthetic3DCT

#%%
# Set the child script environnement path and child scrip file path
Expand Down
5 changes: 3 additions & 2 deletions examples/multiplePythonEnv/run_sharedMemoryParent.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@
import subprocess
from multiprocessing import shared_memory
from pathlib import Path

from opentps.core.examples.syntheticData import createSynthetic3DCT
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from syntheticData import createSynthetic3DCT

#%%
# set the child script environnement path and child scrip file path
Expand Down
4 changes: 3 additions & 1 deletion examples/registration/run_exampleMorphons.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@

from opentps.core.data.images import CTImage
from opentps.core.processing.registration.registrationMorphons import RegistrationMorphons
from opentps.core.examples.syntheticData import *
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from syntheticData import *

logger = logging.getLogger(__name__)

Expand Down
4 changes: 3 additions & 1 deletion examples/registration/run_exampleRigid.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
#import the needed opentps.core packages

from opentps.core.processing.registration.registrationRigid import RegistrationRigid
from opentps.core.examples.syntheticData import *
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
from syntheticData import *
from opentps.core.processing.imageProcessing.resampler3D import resampleImage3DOnImage3D
from opentps.core.processing.imageProcessing.imageTransform3D import rotateData, translateData

Expand Down
Loading