本文整理了Java中ij.gui.Line.getRawLength()
方法的一些代码示例,展示了Line.getRawLength()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Line.getRawLength()
方法的具体详情如下:
包路径:ij.gui.Line
类名称:Line
方法名:getRawLength
[英]Returns the length of this line in pixels.
[中]返回此行的长度(以像素为单位)。
代码示例来源:origin: net.imagej/ij
void saveLineInfo(Roi roi) {
Line line = (Line)roi;
gx1 = line.x1;
gy1 = line.y1;
gx2 = line.x2;
gy2 = line.y2;
gLength = line.getRawLength();
}
代码示例来源:origin: imagej/ImageJA
void saveLineInfo(Roi roi) {
Line line = (Line)roi;
gx1 = line.x1;
gy1 = line.y1;
gx2 = line.x2;
gy2 = line.y2;
gLength = line.getRawLength();
}
代码示例来源:origin: net.imagej/ij
/** Returns the length of this line. */
public double getLength() {
if (imp==null || IJ.altKeyDown())
return getRawLength();
else {
Calibration cal = imp.getCalibration();
return Math.sqrt((x2d-x1d)*cal.pixelWidth*(x2d-x1d)*cal.pixelWidth
+ (y2d-y1d)*cal.pixelHeight*(y2d-y1d)*cal.pixelHeight);
}
}
代码示例来源:origin: imagej/ImageJA
/** Returns the length of this line. */
public double getLength() {
if (imp==null || IJ.altKeyDown())
return getRawLength();
else {
Calibration cal = imp.getCalibration();
return Math.sqrt((x2d-x1d)*cal.pixelWidth*(x2d-x1d)*cal.pixelWidth
+ (y2d-y1d)*cal.pixelHeight*(y2d-y1d)*cal.pixelHeight);
}
}
代码示例来源:origin: sc.fiji/Fiji_Plugins
Y2 = Math.round(line.y2);
r = line.getRawLength();
代码示例来源:origin: net.imagej/ij
measured = ((Line)roi).getRawLength();
length = IJ.d2s(measured, 2);
代码示例来源:origin: imagej/ImageJA
measured = ((Line)roi).getRawLength();
length = IJ.d2s(measured, 2);
代码示例来源:origin: ca.mcgill/Sholl_Analysis
x = chord.x1;
y = chord.y1;
endRadius = vxSize * chord.getRawLength();
chordAngle = Math.abs(chord.getAngle(x, y, chord.x2, chord.y2));
primaryFromPointRoi = false;
内容来源于网络,如有侵权,请联系作者删除!