SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2601.18555 · 2026

A CROSS-MODALITY VALIDATION OF MRI VERSUS X-RAY

Francesca Odone, Irina Voiculescu, Vito Pastore, Roberto Di Via, Siôn Glyn-Jones

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 6 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2601.18555.json · badge: /api/ran/2601.18555.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Malga-Vision/Landmarks-Hip-Conditions canonical (classifier label)
classifier basis: census
9 ran · 1 no recorded run
FunctionStatusWhere it lives
calculate_ere Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Malga-Vision/Landmarks-Hip-Conditions/metrics.py
code served (permissive licence) · get_code("df012d7e9ef7f193")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small heatmap (2D array)
heatmap = np.array([
    [0.1, 0.3, 0.2],
    [0.5, 0.8, 0.4],
    [0.2, 0.6, 0.1]
], dtype=np.float32)

# Create a predicted point in scaled coordinates (2D point)
predicted_point_scaled = np.array([1.5, 2.0], dtype=np.float32)

# Pixel size for scaling
pixel_size = 0.5

# Significant pixel cutoff threshold
significant_pixel_cutoff = 0.05

ARGS = {
    "heatmap": heatmap,
    "predicted_point_scaled": predicted_point_scaled,
    "pixel_size": pixel_size,
    "significant_pixel_cutoff": significant_pixel_cutoff
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_euclidean_distance Ran
ran, honoured the contract we drafted
Malga-Vision/Landmarks-Hip-Conditions/metrics.py
code served (permissive licence) · get_code("aeb0beb5fe891357")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create two distinct points for comparison
predicted_point = np.array([1.0, 2.0, 3.0, 4.0])
target_point = np.array([5.0, 6.0, 7.0, 8.0])

ARGS = {
    "predicted_point": predicted_point,
    "target_point": target_point,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_sdr Ran
ran; our contract draft was wrong, not the code
Malga-Vision/Landmarks-Hip-Conditions/metrics.py
code served (permissive licence) · get_code("61515504f8c7d317")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# compute_sdr takes distance_list and optional thresholds parameter
# distance_list is converted to numpy array and compared against threshold values
# thresholds is a list of numeric values used for comparisons

# Create a small distance list with various values
distance_list = [1.2, 2.5, 3.1, 1.8, 4.5, 2.2, 5.0, 1.5, 3.8, 2.9]

# Define thresholds - can use default or custom
thresholds = [2, 2.5, 3, 4, 6, 9, 10]

ARGS = {
    "distance_list": distance_list,
    "thresholds": thresholds
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_dataloaders Ran
ran; our contract draft was wrong, not the code
Malga-Vision/Landmarks-Hip-Conditions/aligned_datasets.py
code served (permissive licence) · get_code("50fed4d45b1ff37a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch.utils.data import Dataset

torch.manual_seed(0)

class SimpleDataset(Dataset):
    def __init__(self, num_samples=10):
        self.num_samples = num_samples
        self.indexes = list(range(num_samples))
        self.data = torch.randn(num_samples, 4)
        self.labels = torch.randint(0, 2, (num_samples,))
    
    def __len__(self):
        return len(self.indexes)
    
    def __getitem__(self, idx):
        actual_idx = self.indexes[idx]
        return self.data[actual_idx], self.labels[actual_idx]

train_dataset = SimpleDataset(num_samples=20)
val_dataset = SimpleDataset(num_samples=10)
test_dataset = SimpleDataset(num_samples=10)

ARGS = {
    'train_dataset': train_dataset,
    'val_dataset': val_dataset,
    'test_dataset': test_dataset,
    'batch_size': 2,
    'pin_memory': False,
    'num_workers': 0,
    'training_samples': 'all'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_patient_visit Ran
ran; our contract draft was wrong, not the code
Malga-Vision/Landmarks-Hip-Conditions/deep_learning.py
code served (permissive licence) · get_code("e94b2582176630b3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os

def extract_patient_visit(name):
    """Extract patient ID and visit from filename."""
    base = os.path.basename(str(name))
    parts = base.replace('.', '_').split('_')
    if len(parts) >= 2:
        return f'{parts[0]}_{parts[1]}'
    else:
        return base

ARGS = {
    'name': 'patient_001.visit_02.txt'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fuse_heatmaps Ran
ran, violated the contract we drafted
Malga-Vision/Landmarks-Hip-Conditions/heatmaps_utils.py
code served (permissive licence) · get_code("01f71f2458336a10")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create sample heatmaps for the function
# The function uses np.maximum.reduce, which requires a sequence of arrays
# Each heatmap should be a 2D array (typical for heatmaps in computer vision)

heatmap1 = np.array([
    [0.1, 0.2, 0.3, 0.4],
    [0.5, 0.6, 0.7, 0.8]
], dtype=np.float32)

heatmap2 = np.array([
    [0.15, 0.25, 0.35, 0.45],
    [0.55, 0.65, 0.75, 0.85]
], dtype=np.float32)

heatmap3 = np.array([
    [0.05, 0.15, 0.25, 0.35],
    [0.45, 0.55, 0.65, 0.75]
], dtype=np.float32)

# Create a list of heatmaps to pass to the function
heatmaps_list = [heatmap1, heatmap2, heatmap3]

ARGS = {
    "heatmaps": heatmaps_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_scale_factor Ran
ran, violated the contract we drafted
Malga-Vision/Landmarks-Hip-Conditions/heatmaps_utils.py
code served (permissive licence) · get_code("b1520f05e8f09dd4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# original_image_shape and downsampled_image_shape are tuples representing (height, width)
# The function accesses indices [0] and [1], so we need tuples with at least 2 elements

original_image_shape = (480, 640)  # height=480, width=640
downsampled_image_shape = (120, 160)  # height=120, width=160

ARGS = {
    "original_image_shape": original_image_shape,
    "downsampled_image_shape": downsampled_image_shape,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
keypoints2heatmaps Ran
ran; our contract draft was wrong, not the code
Malga-Vision/Landmarks-Hip-Conditions/heatmaps_utils.py
code served (permissive licence) · get_code("777048806f1c9f8b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (3, 64, 64) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create landmarks as a list of coordinate pairs
landmarks = np.array([
    [10, 15],
    [25, 30],
    [40, 20]
], dtype=np.float32)

# Create a small image size (height, width)
img_size = (64, 64)

# Create the ARGS dictionary with all parameters
ARGS = {
    'landmarks': landmarks,
    'img_size': img_size,
    'fuse': False,
    'sigma': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (3, 64, 64) — shape (3, 64, 64) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
visualise_grid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Malga-Vision/Landmarks-Hip-Conditions/deep_learning.py
code served (permissive licence) · get_code("22838d72d2fc9525")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Figure. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import matplotlib.pyplot as plt

# Set random seed for reproducibility
np.random.seed(0)

# Define small test data
batch_size = 2
num_landmarks = 5
height = 4
width = 3
cols = 2

# Create mock images (N, C, H, W) - grayscale so C=1
images = np.random.rand(batch_size, 1, height, width).astype(np.float32)

# Create mock heatmap_stack (N, num_landmarks, H, W)
heatmap_stack = np.random.rand(batch_size, num_landmarks, height, width).astype(np.float32)

# Create mock predicted landmarks (N, num_landmarks, 2) in pixel space
predicted_landmarks = np.random.rand(batch_size, num_landmarks, 2).astype(np.float32) * np.array([width, height])

# Create mock ground truth landmarks (N, num_landmarks, 2) in pixel space
ground_truth_landmarks = np.random.rand(batch_size, num_landmarks, 2).astype(np.float32) * np.array([width, height])

# Create mock grid_distances - list of lists, each inner list has num_landmarks distances in mm
grid_distances = [
    [0.5, 1.2, 3.5, 2.1, 0.8],  # distances for sample 0
    [1.5, 2.5, 0.3, 4.2, 1.9]   # distances for sample 1
]

# Create optional column titles
column_titles = ["Sample 1", "Sample 2"]

ARGS = {
    "images": images,
    "heatmap_stack": heatmap_stack,
    "predicted_landmarks": predicted_landmarks,
    "ground_truth_landmarks": ground_truth_landmarks,
    "grid_distances": grid_distances,
    "num_samples": 2,
    "cols": cols,
    "column_titles": column_titles
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Figure — a Figure output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Figure output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_model Not yet run
unverified (harvested, no recorded run)
Malga-Vision/Landmarks-Hip-Conditions/deep_learning.py
code served (permissive licence) · get_code("4675b09039b1e3f2")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Many clinical screening decisions are based on angle measurements. In particular, FemoroAcetabular Impingement (FAI) screening relies on angles traditionally measured on X-rays. However, assessing the height and span of the impingement area requires also a 3D view through an MRI scan. The two modalities inform the surgeon on different aspects of the condition. In this work, we conduct a matched-cohort validation study (89 patients, paired MRI/X-ray) using standard heatmap regression architectures to assess cross-modality clinical equivalence. Seen that landmark detection has been proven effective on X-rays, we show that MRI also achieves equivalent localisation and diagnostic accuracy for cam-type impingement. Our method demonstrates clinical feasibility for FAI assessment in coronal views of 3D MRI volumes, opening the possibility for volumetric analysis through placing further landmarks. These results support integrating automated FAI assessment into routine MRI workflows. Code is released at https://github.com/Malga-Vision/Landmarks-Hip-Conditions.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2601.18555")
get_code_for_paper("2601.18555")
have("2601.18555")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2601.18555.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2601.18555.svg)](https://syntology.ai/paper/2601.18555)

Connect an agent — have() is free.