Skip to content

Commit

Permalink
Merge pull request #4 from mdoube/testing
Browse files Browse the repository at this point in the history
Tidy-up
  • Loading branch information
tjrantal committed Oct 23, 2011
2 parents f51aa77 + a8b586b commit 79f523c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/org/doube/bonej/pqct/Distribution_Analysis.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void writeHeader(TextPanel textPanel){
headings+=parameterNames[i]+"\t";
}
if(cOn){
String[] coHeadings = {"CoD [mg/cm3]","CoA [mm2]","SSI [mm3]","ToD [mg/cm3]","ToA[mm2]","BSId[g2/cm4]"};
String[] coHeadings = {"CoD [mg/cm³]","CoA [mm²]","SSI [mm³]","ToD [mg/cm³]","ToA[mm²]","BSId[/cm4]"};
for (int i = 0;i<coHeadings.length;++i){
headings+=coHeadings[i]+"\t";
}
Expand All @@ -250,13 +250,13 @@ void writeHeader(TextPanel textPanel){
}
//Cortex BMD values
for (int i = 0;i<((int) 360/sectorWidth);++i){
headings+=i*sectorWidth+" - "+((i+1)*sectorWidth)+" endocortical vBMD [mg/cm3]\t";
headings+=i*sectorWidth+" - "+((i+1)*sectorWidth)+" endocortical vBMD [mg/cm³]\t";
}
for (int i = 0;i<((int) 360/sectorWidth);++i){
headings+=i*sectorWidth+" - "+((i+1)*sectorWidth)+" midcortical vBMD [mg/cm3]\t";
headings+=i*sectorWidth+" - "+((i+1)*sectorWidth)+" midcortical vBMD [mg/cm³]\t";
}
for (int i = 0;i<((int) 360/sectorWidth);++i){
headings+=i*sectorWidth+" - "+((i+1)*sectorWidth)+" pericortical vBMD [mg/cm3]\t";
headings+=i*sectorWidth+" - "+((i+1)*sectorWidth)+" pericortical vBMD [mg/cm³]\t";
}

}
Expand Down
8 changes: 5 additions & 3 deletions src/org/doube/bonej/pqct/Read_Stratec_File.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ public void read(String directory){
}
}
this.setDisplayRange( min, max);
Calibration tempCalib = this.getCalibration();
tempCalib.setSigned16BitCalibration();
this.setCalibration(tempCalib);
Calibration cal = this.getCalibration();
cal.setSigned16BitCalibration();
cal.setValueUnit("mg/cm³");
cal.setUnit("mm");
cal.pixelWidth = cal.pixelHeight = cal.pixelDepth = VoxelSize;
}catch (Exception e) {
IJ.error("Stratec file read failed ", e.getMessage());
return;
Expand Down

0 comments on commit 79f523c

Please sign in to comment.