only store valid pixels

This commit is contained in:
nuknal
2024-05-28 22:35:55 +08:00
parent 357b62422e
commit 02c042d8c4
5 changed files with 98 additions and 47 deletions

View File

@@ -95,6 +95,9 @@ func (p *Extractor) ExtractOriginalImageData(aosDataFile string) ([]string, erro
}
log.Println("null transfer frame cnt:", nullFrmCnt)
if len(snRange) == 0 {
log.Errorf("no valid transfer frame found in %s", aosDataFile)
}
for k, v := range snRange {
vv := slice.Unique(v)