DFT 带阻滤波器
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
"gocv.io/x/gocv"
|
||||
"starwiz.cn/sjy01/image-proc/pkg/utils"
|
||||
)
|
||||
|
||||
// Relative Radiation Correction
|
||||
@@ -49,7 +50,7 @@ func (rrc *RRC) Close() {}
|
||||
|
||||
// 统计探元灰度的累积概率密度
|
||||
func (rrc *RRC) StatisticalPAN(dsfile string) error {
|
||||
printMemStats()
|
||||
utils.PrintMemStats()
|
||||
f, err := os.Open(dsfile)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -100,7 +101,7 @@ func (rrc *RRC) StatisticalPAN(dsfile string) error {
|
||||
rrc.Histograms[0].sum([]*ProbeHistogram{&hist})
|
||||
hist.free()
|
||||
runtime.GC()
|
||||
printMemStats()
|
||||
utils.PrintMemStats()
|
||||
|
||||
mutex.Unlock()
|
||||
|
||||
@@ -118,7 +119,7 @@ func (rrc *RRC) StatisticalPAN(dsfile string) error {
|
||||
}
|
||||
|
||||
func (rrc *RRC) StatisticalMSS(dsfile string) error {
|
||||
printMemStats()
|
||||
utils.PrintMemStats()
|
||||
f, err := os.Open(dsfile)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -179,7 +180,7 @@ func (rrc *RRC) StatisticalMSS(dsfile string) error {
|
||||
rrc.Histograms[i+1].sum([]*ProbeHistogram{&hist})
|
||||
hist.free()
|
||||
runtime.GC()
|
||||
printMemStats()
|
||||
utils.PrintMemStats()
|
||||
|
||||
mutex.Unlock()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user