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
5 changes: 0 additions & 5 deletions src/Bridge/VtkGlue/ConvertAnRGBitkImageTovtkImageData/Code.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import itk
import argparse

if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (5, 2, 0):
print("ITK 5.2.0 is required.")
sys.exit(1)

parser = argparse.ArgumentParser(
description="Convert An RBG itk Image to vtk Image Data."
)
Expand Down
5 changes: 0 additions & 5 deletions src/Bridge/VtkGlue/ConvertAnitkImageTovtkImageData/Code.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import itk
import argparse

if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (5, 2, 0):
print("ITK 5.2.0 is required.")
sys.exit(1)

parser = argparse.ArgumentParser(description="Convert An itk Image to vtk Image Data.")
parser.add_argument("input_image")
args = parser.parse_args()
Expand Down
5 changes: 0 additions & 5 deletions src/Core/Common/AddOffsetToIndex/Code.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import itk

if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (4, 9, 0):
print("ITK 4.9.0 is required.")
sys.exit(1)

Dimension = 2

index = itk.Index[Dimension]()
Expand Down
5 changes: 0 additions & 5 deletions src/Core/Common/StreamAPipeline/Code.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import itk
import argparse

if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (4, 10, 0):
print("ITK 4.10.0 is required.")
sys.exit(1)

parser = argparse.ArgumentParser(description="Stream A Pipeline.")
parser.add_argument("number_of_splits", type=int)
args = parser.parse_args()
Expand Down
5 changes: 0 additions & 5 deletions src/Filtering/Colormap/CreateACustomColormap/Code.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import itk
import argparse

if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (4, 8, 0):
print("ITK 4.8.0 is required (see example documentation).")
sys.exit(1)

parser = argparse.ArgumentParser(description="Create A Custom Colormap.")
parser.add_argument("input_image")
parser.add_argument("output_image")
Expand Down
5 changes: 0 additions & 5 deletions src/Filtering/ImageFeature/SegmentBloodVessels/Code.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@

import argparse

import sys
import itk

if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (5, 0, 0):
print("ITK 5.0.0 or newer is required.")
sys.exit(1)

parser = argparse.ArgumentParser(description="Segment blood vessels.")
parser.add_argument("input_image")
parser.add_argument("output_image")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import itk
import argparse

if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (4, 7, 0):
print("ITK 4.7.0 is required (see example documentation).")
sys.exit(1)

parser = argparse.ArgumentParser(description="Apply Gradient Recursive Gaussian.")
parser.add_argument("input_image")
parser.add_argument("output_image_x")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import itk
import argparse

if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (4, 8, 0):
print("ITK 4.8.0 is required (see example documentation).")
sys.exit(1)

parser = argparse.ArgumentParser(
description="Apply Gradient Recursive Gaussian With Vector Input."
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@

import argparse

import sys
import itk

if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (5, 0, 0):
print("ITK 5.0.0 or newer is required.")
sys.exit(1)

parser = argparse.ArgumentParser(
description="Segment blood vessels with multi-scale Hessian-based measure."
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import itk
import argparse

if tuple(int(v) for v in itk.Version.GetITKVersion().split(".")) < (4, 9, 0):
print("ITK 4.9.0 is required.")
sys.exit(1)

parser = argparse.ArgumentParser(
description="Perform 2D Translation Registration With Mean Squares."
)
Expand Down
Loading