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

Method getHeader

ij/src/main/java/ij/plugin/FITS_Writer.java:656–658  ·  view source on GitHub ↗

Extracts the original FITS header from the Properties object of the ImagePlus image (or from the current slice label in the case of an ImageStack) and returns it as an array of String objects representing each card. Taken from the ImageJ astroj package (www.astro.physik.uni-goettingen.de/~hessman/I

(ImagePlus img)

Source from the content-addressed store, hash-verified

654 * @param img The ImagePlus image which has the FITS header in it's "Info" property.
655 */
656 public static String[] getHeader(ImagePlus img) {
657 return getHeader(img, img.getCurrentSlice());
658 }
659
660 /**
661 * Extracts the original FITS header from the Properties object of the

Callers 2

runMethod · 0.95
saveImageMethod · 0.95

Calls 10

getSliceLabelMethod · 0.95
getCurrentSliceMethod · 0.80
startsWithMethod · 0.80
getStackSizeMethod · 0.45
getPropertiesMethod · 0.45
getPropertyMethod · 0.45
getStackMethod · 0.45
splitMethod · 0.45
trimMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected