This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
jvs:fscan:manual:chapter2:expression:censor [2017/06/02 20:06] voyvodic |
jvs:fscan:manual:chapter2:expression:censor [2017/06/02 21:23] voyvodic |
||
---|---|---|---|
Line 7: | Line 7: | ||
Usually the reference series should have at least as many values as their are images, in which case the images to be censored are those for which the corresponding reference value is less than or equal to zero (any positive reference value means keep that image). | Usually the reference series should have at least as many values as their are images, in which case the images to be censored are those for which the corresponding reference value is less than or equal to zero (any positive reference value means keep that image). | ||
- | Alternatively, | + | Alternatively, |
- | + | ||
- | What happens to censored images depends on the values of the FLAG and FILLOPTION arguments. | + | |
- | + | ||
- | FILLOPTION can be a number, indicating wwhich image volume to use as fill images, or it can be the name of a 3D image data set (with the same XYZ dimensions as the data being censored). | + | |
+ | What happens to censored images depends on the values of the FLAG and FILLOPTION arguments. FILLOPTION can be a number, indicating which image volume of the data being censored to use as fill images, or it can be the name of a 3D image data set (with the same XYZ dimensions as the data being censored). | ||
FLAG - censoring operation: | FLAG - censoring operation: | ||
- | /* val: 0 - replace with linear interpolation (unless FILLOPTION specified) | + | * 0 - replace with linear interpolation (unless FILLOPTION specified) |
- | 1 - replace with spline interpolation | + | * 1 - replace with spline interpolation |
- | 2 - replace with 0's | + | * 2 - replace with zeros (blank image) |
- | 3 - excise | + | * 3 - remove image entirely making shorter image series (blank images added at end) |
- | 4 - match post-mean to pre-mean | + | * 4 - match post-mean to pre-mean |
- | 8 - reference | + | * 8 - reference is list of image numbers |
- | 16 - replace with value at 1st censored | + | * 16 - replace with value at 1st censored |
- | 17 - replace with value at 1st uncensored | + | * 17 - replace with value at 1st uncensored |
- | 18 - replace with value at timept VAL2 | + | * 18 - replace with value at time point FILLOPTION |
- | 32 - replace with FILLOPTION data set images | + | * 32 - replace with FILLOPTION data set images |
- | Default FLAG is: | + | |
- | 0 if FILLOPTION is 0 or not specified, or | + | |
- | 32 if FILLOPTION is data set name, or | + | |
- | 16 if FILLOPTION is a number | + | |
- | + | ||
- | * 0 - (default) | + | |
- | ** if FILLIMAGES | + | |
- | * 1 - replace with spline interpolation of surrounding time points | + | |
- | * 2 - replace with zeros | + | |
- | * 3 - excise the value (result is fewer time points) | + | |
- | + | ||
- | Other FLAG values can be combined with the above byb addition: | + | |
- | * 4 - adjust values after 0 reference values to have similar means to earlier values (matches means of 3 values before and after) | + | |
- | * 8 - The TIMEREF is a list of time point indices to censor (default is TIMEREF is 0/1 flag for every timepoint) | + | |
- | * | + | |
- | + | ||
- | /* val: 0 - (default) replace with linear interpolation; | + | |
- | same as VAL=8 if VAL2 is non-zero | + | |
- | 1 - replace with spline interpolation | + | |
- | 2 - replace with 0's | + | |
- | 3 - excise | + | |
- | 4 - match post-mean to pre-mean | + | |
- | 8 - replace with value at 1st censored timept at or after timept VAL2 | + | |
- | 9 - replace with value at 1st uncensored timept at or after VAL2 | + | |
- | 10 - replace with value at timept VAL2 | + | |
- | 16 - active is t-index; otherwise is 0/1 flag | + | |
+ | Default FLAG is:\\ | ||
+ | * 0 if FILLOPTION is 0 or not specified, or | ||
+ | * 16 if FILLOPTION is a number | ||
+ | * 32 if FILLOPTION is data set name, or | ||
**See Also:**\\ | **See Also:**\\ |