Skip to content
Snippets Groups Projects
Commit 66a08042 authored by Christian Tischer's avatar Christian Tischer
Browse files

Update compute-registration-quality.R

parent f9ddd09b
No related branches found
No related tags found
No related merge requests found
# Command to produce the output points (example) # Commands to produce the output points on the terminal (examples)
# /Applications/elastix_macosx64_v4.8/run_transformix.sh -def /Users/tischer/Desktop/n.n.n/quality-assessment/em-fixed-points.txt -out /Users/tischer/Desktop/n.n.n/quality-assessment -tp /Users/tischer/Desktop/n.n.n/transformations/TransformParameters.BSpline10.9.9.9.txt # 1. change dir into the folder with the transformation files; this is important because there are relative paths within the transformation files that rely on this.
# cd /Users/tischer/Desktop/0.6.3/transformations/
# 2. run transformix to compute the transformed points
# Rotation: /Applications/elastix_macosx64_v4.8/run_transformix.sh -def /Users/tischer/Desktop/0.6.3/quality-assessment/em-fixed-points.txt -out /Users/tischer/Desktop/0.6.3/quality-assessment -tp /Users/tischer/Desktop/0.6.3/transformations/TransformParameters.RotationPreAlign.0.0.0.txt
# Similarity: /Applications/elastix_macosx64_v4.8/run_transformix.sh -def /Users/tischer/Desktop/0.6.3/quality-assessment/em-fixed-points.txt -out /Users/tischer/Desktop/0.6.3/quality-assessment -tp /Users/tischer/Desktop/0.6.3/transformations/TransformParameters.Similarity.9.9.9.txt
# BSpline100: /Applications/elastix_macosx64_v4.8/run_transformix.sh -def /Users/tischer/Desktop/0.6.3/quality-assessment/em-fixed-points.txt -out /Users/tischer/Desktop/0.6.3/quality-assessment -tp /Users/tischer/Desktop/0.6.3/transformations/TransformParameters.BSpline100.9.9.9.txt
# BSpline30: /Applications/elastix_macosx64_v4.8/run_transformix.sh -def /Users/tischer/Desktop/0.6.3/quality-assessment/em-fixed-points.txt -out /Users/tischer/Desktop/0.6.3/quality-assessment -tp /Users/tischer/Desktop/0.6.3/transformations/TransformParameters.BSpline30.9.9.9.txt
# BSpline10: /Applications/elastix_macosx64_v4.8/run_transformix.sh -def /Users/tischer/Desktop/0.6.3/quality-assessment/em-fixed-points.txt -out /Users/tischer/Desktop/0.6.3/quality-assessment -tp /Users/tischer/Desktop/0.6.3/transformations/TransformParameters.BSpline10.9.9.9.txt
input_folder = "/Users/tischer/Desktop/0.6.3/quality-assessment"
file <- "/Users/tischer/Desktop/n.n.n/quality-assessment/outputpoints.txt" file <- paste(input_folder,"outputpoints.txt",sep="/")
data <- read.table(file, sep = "" , header = F , nrows = 100, data <- read.table(file, sep = "" , header = F , nrows = 100,
na.strings ="", stringsAsFactors= F) na.strings ="", stringsAsFactors= F)
...@@ -13,7 +21,7 @@ tz <- data[33] * 1000 ...@@ -13,7 +21,7 @@ tz <- data[33] * 1000
# manually assigned ProSPr # manually assigned ProSPr
library("readxl") library("readxl")
file <- "/Users/tischer/Desktop/n.n.n/quality-assessment/manually_matched_points.xlsx" file <- paste(input_folder,"manually_matched_points.xlsx",sep="/")
data <- read_excel( file ) data <- read_excel( file )
mx = data[1] mx = data[1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment