This HTML automatically generated with rman for NEMO
Table of Contents

Name

ccdflipd - patch up neighbors that are +/- of each other within a delta

Synopsis

ccdflipd [parameter=value]

Description

This peculiar program patches an image where neighbors that sum to something close to 0 (see delta= below) become proper positive neighors. It will iterate over the image until no more patches are needed or until the requested number of iterations (iter=) is exhausted.

In default mode each pixel looks at all 8 neighors and will flip the sign of those neighbors if within range. By increasing m= you can require a larger number of neighbors needed to flip them, favoring more interconnected regions.

Parameters

The following parameters are recognized in any order if the keyword is also given:
in=
Input image file [???]
out=
Output image file [???]
delta=
Allowed delta between sum of two neighboring pixels [20]
iter=
Number of iterations [50]
m=
Minimum number of neighbors needed to path the pixel. The default of 1 is rather aggressive, but yields reasonable results, but increasing this can make the flipping more conservative. Default: 1

Examples

The origin of this peculiar program is a double peak fit (see ccdmom(1NEMO) ) to a cube, where the two peaks are not always in the same order. A difference map between peak1 and peak2 will then have alternating signs, and this program nicely patches this up
    ccdmom cube1 peak1 mom=31 peak=1
    ccdmom cube1 peak2 mom=31 peak=2
    ccdmath peak1,peak2 peak12  %1-%2
    ccdflipd peak12 peak12a iter=20 delta=30

See Also

ccdmath(1NEMO) , image(5NEMO)

Files

src/image/trans/ccdflipd.c

Author

Peter Teuben

Update History


14-Mar-22    V0.1 Created        PJT


Table of Contents