Landmarks and measurements in the shoulder (Mimics 22.0)

In this tutorial some basic segmentation, landmarking and measurements operations are illustrated on the project Shoulder.mcs from C:\MedData\DemoFiles .

# Tutorial: Landmarking the shoulder and perform measurements
# Open the project
# Create an empty mask        
mask_a = mimics.segment.create_mask()
# Perform thresholding with selected min and max values
mimics.segment.threshold(mask=mask_a, threshold_min=1250, threshold_max=2800)  # thresholds are set in gray values = "Shoulder"
# Create a point that will be used fot the region growing operation
point_1 = mimics.analyze.indicate_point(title="Region growing point",
										message="Please indicate a point on the part of interest")
# Region growing. The original mask is preserved
mask_b = mimics.segment.region_grow(point=point_1, input_mask=mask_a, target_mask=None, slice_type="Axial",
									keep_original_mask=True) = "Segmented shoulder"
# Calculation of the 3D part
part = mimics.segment.calculate_part("Segmented shoulder"), quality="High")
# Set the anatomical landmarks of the shoulder        
anatomical_landmarks = ["Acromion", "Coracoid process", "Humerus"]
for point in anatomical_landmarks:
	p = mimics.analyze.indicate_point(title=point, message="Please indicate a point on the {}".format(point)) = point
# Create distance measurement between coracoid & acromion and humerus
m = mimics.measure.create_distance_measurement("Acromion").coordinates,
				"Humerus").coordinates) = "Acromion-Humerus"
m = mimics.measure.create_distance_measurement("Coracoid process").coordinates,
				"Humerus").coordinates) = "Coracoid process-Humerus"
# Create Angle measurement between  the three landmarks in the shoulder area
"Coracoid process").coordinates)
# Save the project