# Engineering:Half flux diameter

The **half flux diameter** or **HFD** is a definition used by astronomers to define the star size in an astronomical image. Mainly due to the seeing, stars are not imaged as a dot but spread out like a Gaussian shape.^{[1]} The half flux diameter defines the diameter of a circle around the bright center in which half of the star flux or energy is contained. The other half of the flux is outside this circle. The half flux diameter unit is pixels.^{[2]}

The lower the half flux diameter value the better the seeing is and the sharper the image. It is a similar measurement to the Full-Width Half Maximum FWHM, but a more robust measurement especially for stars out of focus. For a perfect Gaussian shaped star image, both the FWHM and half flux diameter values are theoretically 2.3548 σ.

Half flux diameter calculation is an approximation but fast routine assuming that the half flux diameter line splits the star in equal portions of gravity:

Variables:

- Vi: brightness value of each pixel above the background, representing the star flux to that pixel
- di: distance from gravity centroid to each pixel.
- H : Half Flux Radius, HFR. This is half of the Half Flux Diameter

The center of gravity is zero at H:

- [math] \sum_{i=1}^N V_i(d_i - H)=0 [/math]

This can be rewritten as:

- [math] \sum_{i=1}^N V_i H=\sum_{i=1}^N V_i d_i [/math]

The H is then

- [math] H= \frac{\sum_{i=1}^N V_i d_i}{\sum_{i=1}^N V_i} [/math]

- [math]
HFD=2 H
[/math]
^{[3]}

Since normally the number of pixels illuminated is small and the calculated star center of star is not at the center of a pixel, above summation should be calculated on sub-pixel level or the image should be re-sampled to a higher resolution.

Using this approximation method, the half flux diameter of a perfect Gaussian shaped star, highly over sampled is 2.5066 σ. An offset of +6.4%

## References

- ↑ "Gaussian Function" (in en). http://mathworld.wolfram.com/GaussianFunction.html. Retrieved 6 September 2018.
- ↑ Carsten (12 June 2015). "Night sky image processing - Part 6: Measuring the Half Flux Diameter (HFD) of a star - A Simple C++ implementation - Lost infinity". https://www.lost-infinity.com/night-sky-image-processing-part-6-measuring-the-half-flux-diameter-hfd-of-a-star-a-simple-c-implementation/. Retrieved 6 September 2018.
- ↑ miyashita, kazuhisa. "Half Flux Diameter-Applicate to determination for faint star event-". http://www005.upp.so-net.ne.jp/k_miyash/occ02/halffluxdiameter/halffluxdiameter_en.html.

## External links

- http://www.ccdware.com/Files/ITS%20Paper.pdf
- https://sourceforge.net/p/astap-program/code/ci/default/tree/astap_main.pas

*https://en.wikipedia.org/wiki/Half flux diameter was the original source. Read more*.