本文整理了Java中org.dcm4che3.data.Attributes.getDouble()
方法的一些代码示例,展示了Attributes.getDouble()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attributes.getDouble()
方法的具体详情如下:
包路径:org.dcm4che3.data.Attributes
类名称:Attributes
方法名:getDouble
暂无
代码示例来源:origin: dcm4che/dcm4che
@Override
Object toArg(Attributes attrs, int tag, int index) {
return attrs.getDouble(tag, index, 0.);
}
},
代码示例来源:origin: nroduit/Weasis
rtDose.setDoseSummationType(dcmItems.getString(Tag.DoseSummationType));
rtDose.setGridFrameOffsetVector(dcmItems.getDoubles(Tag.GridFrameOffsetVector));
rtDose.setDoseGridScaling(dcmItems.getDouble(Tag.DoseGridScaling, 0.0));
rtDvh.setDoseUnit(dvhAttributes.getString(Tag.DoseUnits));
rtDvh.setDoseType(dvhAttributes.getString(Tag.DoseType));
rtDvh.setDvhDoseScaling(dvhAttributes.getDouble(Tag.DVHDoseScaling, 1.0));
rtDvh.setDvhVolumeUnit(dvhAttributes.getString(Tag.DVHVolumeUnits));
rtDvh.setDvhMinimumDose(dvhAttributes.getDouble(Tag.DVHMinimumDose, -1.0));
rtDvh.setDvhMaximumDose(dvhAttributes.getDouble(Tag.DVHMaximumDose, -1.0));
rtDvh.setDvhMeanDose(dvhAttributes.getDouble(Tag.DVHMeanDose, -1.0));
代码示例来源:origin: dcm4che/dcm4che
@Override
Object toArg(Attributes attrs, int tag, int index) {
return attrs.getDouble(tag, index, 0.);
}
},
代码示例来源:origin: dcm4che/dcm4che
public double getDouble(int tag, int valueIndex, double defVal) {
return getDouble(null, tag, null, valueIndex, defVal);
}
代码示例来源:origin: dcm4che/dcm4che
public double getDouble(String privateCreator, int tag, VR vr, double defVal) {
return getDouble(privateCreator, tag, vr, 0, defVal);
}
代码示例来源:origin: dcm4che/dcm4che
public double getDouble(int tag, double defVal) {
return getDouble(null, tag, null, 0, defVal);
}
代码示例来源:origin: dcm4che/dcm4che
public double getDouble(String privateCreator, int tag, double defVal) {
return getDouble(privateCreator, tag, null, 0, defVal);
}
代码示例来源:origin: dcm4che/dcm4che
public double getDouble(String privateCreator, int tag, int valueIndex, double defVal) {
return getDouble(privateCreator, tag, null, valueIndex, defVal);
}
代码示例来源:origin: nroduit/Weasis
public static Double getDoubleFromDicomElement(Attributes dicom, int tag, String privateCreatorID,
Double defaultValue) {
if (dicom == null || !dicom.containsValue(tag)) {
return defaultValue;
}
try {
return dicom.getDouble(privateCreatorID, tag, defaultValue == null ? 0.0 : defaultValue);
} catch (NumberFormatException e) {
LOGGER.error("Cannot parse Double of {}: {} ", TagUtils.toString(tag), e.getMessage()); //$NON-NLS-1$
}
return defaultValue;
}
代码示例来源:origin: dcm4che/dcm4che
void setEchoTime(Attributes sf) {
double echoTime = sf.getDouble(Tag.EffectiveEchoTime, 0);
if (echoTime == 0)
sf.setNull(Tag.EchoTime, VR.DS);
else
sf.setDouble(Tag.EchoTime, VR.DS, echoTime);
}
代码示例来源:origin: org.dcm4che/dcm4che-emf
void setEchoTime(Attributes sf) {
double echoTime = sf.getDouble(Tag.EffectiveEchoTime, 0);
if (echoTime == 0)
sf.setNull(Tag.EchoTime, VR.DS);
else
sf.setDouble(Tag.EchoTime, VR.DS, echoTime);
}
代码示例来源:origin: nroduit/Weasis
try {
int numChannels = attributes.getInt(Tag.NumberOfWaveformChannels, 0);
double sampleRate = attributes.getDouble(Tag.SamplingFrequency, 0.0);
int bitsPerSample = attributes.getInt(Tag.WaveformBitsAllocated, 0);
String spInterpretation = attributes.getString(Tag.WaveformSampleInterpretation, 0);
代码示例来源:origin: nroduit/Weasis
double privateSUVFactor = dicomObject.getDouble(0x70531000, 0.0);
if ("Philips PET Private Group".equals(privateTagCreator) //$NON-NLS-1$
&& MathUtil.isDifferentFromZero(privateSUVFactor)) {
内容来源于网络,如有侵权,请联系作者删除!