-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #696 from robbietuk/RDP_grad_fix
Fix an issue with the gradient of the relative difference prior (also change default values)
- Loading branch information
Showing
3 changed files
with
80 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
OSMAPOSLParameters := | ||
; example file for using a relative difference prior (with One Step Late and subsets) | ||
; this is a minimal file. check other sample files and doc for more options | ||
|
||
objective function type:= PoissonLogLikelihoodWithLinearModelForMeanAndProjData | ||
PoissonLogLikelihoodWithLinearModelForMeanAndProjData Parameters:= | ||
|
||
input file := test.hs | ||
; if disabled, defaults to maximum segment number in the file | ||
maximum absolute segment number to process := 4 | ||
; see User's Guide to see when you need this | ||
zero end planes of segment 0:= 1 | ||
|
||
; if the next parameter is disabled, | ||
; the sensitivity will be computed | ||
; use %d where you want the subset-number (a la printf) | ||
subset sensitivity filenames:= sens_%d.hv | ||
; specify additive projection data to handle randoms or so | ||
; see User's Guide for more info | ||
additive sinogram := 0 | ||
|
||
|
||
; here comes the prior stuff | ||
|
||
|
||
prior type := Relative Difference Prior | ||
Relative Difference Prior Parameters:= | ||
penalisation factor := 1.0 | ||
; next can be used to set weights explicitly. Needs to be a 3D array (of floats). value of only_2D is ignored | ||
; following example uses 2D 'nearest neighbour' penalty | ||
; weights:={{{0,1,0},{1,0,1},{0,1,0}}} | ||
; use next parameter to specify an image with penalisation factors (a la Fessler) | ||
; see class documentation for more info | ||
; kappa filename:= | ||
; gamma value is a RDP specific parameter and controls the edge preservation. Default value is 2 | ||
; gamma value := | ||
; epsilon value - a small non-negative float to smooth the prior at very small values. Default value is 0 | ||
; epsilon value := | ||
END Relative Difference Prior Parameters:= | ||
|
||
end PoissonLogLikelihoodWithLinearModelForMeanAndProjData Parameters:= | ||
|
||
initial estimate:= some_image | ||
; enable this when you read an initial estimate with negative data | ||
enforce initial positivity condition:=0 | ||
|
||
output filename prefix := test_RDP | ||
number of subsets:= 12 | ||
number of subiterations:= 24 | ||
save estimates at subiteration intervals:= 12 | ||
|
||
; This is the default verbosity, just putting it here as an example | ||
; lower value means less output, 0 being the minimum | ||
verbosity := 2 | ||
|
||
; enable this for multiplicative form of OSMAPOSL (see User's Guide) | ||
;MAP model := multiplicative | ||
|
||
END := |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters