DFT 带阻滤波器

This commit is contained in:
nuknal
2024-06-21 12:47:14 +08:00
parent e13038474a
commit d99b8a9740
16 changed files with 292 additions and 309 deletions

View File

@@ -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()
}