function dpixcreate

Creates a dead pixel list of X using a magic threshold. Boxsize defaults to 3 and gives the radius of the running boxcar used. NPASS defaults to 3 and gives the number of passes used.

Syntax
result = dpixcreate(X, THRESHOLD [, BOXSIZE [, NPASS]])

Arguments
X:   On this array the dead pixel list will be created
THRESHOLD:   Sensitivity of the algorithm (use 5 for a start)
BOXSIZE:   Optional, the size of the square box for comparing pixel values (default: 3)
NPASS:   Optional, number of iterations