Skip to content

Commit

Permalink
Remove graphical function for calibration [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
bisnow33 committed Aug 26, 2020
1 parent 26b8c9e commit c7446d5
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/main/java/gred/nucleus/core/NucleusSegmentation.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,24 +212,25 @@ public void findOTSUmaximisingSephericity() throws Exception {
tempSeg = ConnectedComponents.computeLabels(tempSeg,
26,
32);
Calibration cal = this._imgRaw.getCalibration();
if(this.m_semgemtationParameters.getManualParameter()) {
IJ.run(tempSeg, "Properties...",
" unit=µm pixel_width="
+ this.m_semgemtationParameters.getXCal()
+ " pixel_height="
+ this.m_semgemtationParameters.getYCal()
+ " voxel_depth="
+ this.m_semgemtationParameters.getZCal());
//TODO AJOUTER LES UNITES
cal.setXUnit("µm");
cal.pixelWidth = this.m_semgemtationParameters.getXCal();
cal.setYUnit("µm");
cal.pixelHeight = this.m_semgemtationParameters.getYCal();
cal.setZUnit("µm");
cal.pixelDepth = this.m_semgemtationParameters.getZCal();
}
else{
IJ.run(tempSeg, "Properties...",
" unit=µm pixel_width="
+ this._imgRaw.getCalibration().pixelWidth
+ " pixel_height="
+ this._imgRaw.getCalibration().pixelHeight
+ " voxel_depth="
+ this._imgRaw.getCalibration().pixelDepth);
cal.setXUnit("µm");
cal.pixelWidth = this._imgRaw.getCalibration().pixelWidth;
cal.setYUnit("µm");
cal.pixelHeight = this._imgRaw.getCalibration().pixelHeight;
cal.setZUnit("µm");
cal.pixelDepth = this._imgRaw.getCalibration().pixelDepth;
}
tempSeg.setCalibration(cal);
ImagePlus[] tempSegPlus=new ImagePlus[1];
tempSegPlus[0]=tempSeg;
Measure3D measure3D = new Measure3D(tempSegPlus,
Expand Down

0 comments on commit c7446d5

Please sign in to comment.