MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getLut

Method getLut

ij/src/main/java/ij/plugin/DICOM.java:448–458  ·  view source on GitHub ↗
(int length)

Source from the content-addressed store, hash-verified

446 }
447
448 byte[] getLut(int length) throws IOException {
449 if ((length&1)!=0) { // odd
450 String dummy = getString(length);
451 return null;
452 }
453 length /= 2;
454 byte[] lut = new byte[length];
455 for (int i=0; i<length; i++)
456 lut[i] = (byte)(getShort()>>>8);
457 return lut;
458 }
459
460 int getLength() throws IOException {
461 int b0 = getByte();

Callers 1

getFileInfoMethod · 0.95

Calls 2

getStringMethod · 0.95
getShortMethod · 0.95

Tested by

no test coverage detected