Documentation ¶
Overview ¶
Allows outputting (in PIXLISE protobuf dataset format) of in-memory representation of PIXL data that importer has read. Also outputs summary JSON files for the dataset.
Example (ConvertTiffToPNG) ¶
pngFile, err := ioutil.TempFile("", "png") pngPath := pngFile.Name() err = convertTiffToPNG("./test-files/PCW_D141T0654328732_000RCM_N001000022000045301600LUJ01.TIF", pngPath) fileInfo, err2 := os.Stat(pngPath) //fmt.Println(pngPath) fmt.Printf("%v\n", err) fmt.Printf("%v\n", err2) fmt.Printf("%v\n", fileInfo.Size() > 234000 && fileInfo.Size() < 334000)
Output: <nil> <nil> true
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SummaryDiff ¶
func SummaryDiff(currentSummary datasetModel.SummaryFileData, previousSummary datasetModel.SummaryFileData) (datasetModel.SummaryFileData, error)
Types ¶
type PIXLISEDataSaver ¶
type PIXLISEDataSaver struct {
// contains filtered or unexported fields
}
func (*PIXLISEDataSaver) Save ¶
func (s *PIXLISEDataSaver) Save( data dataConvertModels.OutputData, contextImageSrcPath string, outPath string, creationUnixTimeSec int64, jobLog logger.ILogger) error
Save - saves internal representation of dataset (outputData)
Click to show internal directories.
Click to hide internal directories.