You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

120 lines
2.6 KiB

#ifndef BIPINPUT_H
#define BIPINPUT_H
#include <QObject>
#include "model/backendImageProcessor/dto/BipProbeProperties.h"
#include "model/backendImageProcessor/dtoInternal/BipScanConversionConfig.h"
struct BipInput_t
{
//scan conv
QList<BipScanConversionConfig_t> scanConversionConfig;
uint outputWidth;
uint outputHeight;
//reject
int rejectBThreshold;
int rejectMThreshold;
//enhance
int enhanceBSelector;
int enhanceMSelector;
//dynamic contrast
int dynamicContrastBSelector;
int dynamicContrastMSelector;
int dynamicContrastBGain;
int dynamicContrastMGain;
//sri
int sri;
//cri
int cri;
int criFilterMode;
//grayMap
QList<int> grayMapB;
QList<int> grayMapM;
//tintmap
int tintMapBSelector;
int tintMapMSelector;
//persist
int persist;
//frame filter
int frameFilterMode;
BipInput_t()
{
}
BipInput_t(ScenGenSoftwareOutput_t scenParams)
{
for(auto i = 0; i < scenParams.scanConversionProps.length(); i++)
{
scanConversionConfig.append(BipScanConversionConfig_t(scenParams.scanConversionProps[i]));
}
outputWidth = scenParams.outputWidth;
outputHeight = scenParams.outputHeight;
//reject
rejectBThreshold = scenParams.rejectB;
//sri
sri = scenParams.sri;
//enhance
enhanceBSelector = scenParams.enhanceB;
//dynamic contrast
dynamicContrastBSelector = scenParams.dynamicContrastBSelector;
dynamicContrastBGain = scenParams.gainB;
//graymap
grayMapB = scenParams.grayMapB;
grayMapM = scenParams.grayMapM;
//tintmap
tintMapBSelector = scenParams.tintMapBSelector;
tintMapMSelector = scenParams.tintMapMSelector;
cri = scenParams.cri;
criFilterMode = scenParams.criFilterMode;
persist = scenParams.persist;
frameFilterMode = scenParams.frameFilterMode;
}
void operator= (const BipInput_t& b)
{
scanConversionConfig.append(b.scanConversionConfig);
for(auto i = 0; i < b.grayMapB.length(); i++)
{
grayMapB.push_back(b.grayMapB[i]);
}
grayMapM.append(b.grayMapM);
outputWidth = b.outputWidth;
outputHeight = b.outputHeight;
rejectBThreshold = b.rejectBThreshold;
rejectMThreshold = b.rejectMThreshold;
enhanceBSelector = b.enhanceBSelector;
enhanceMSelector = b.enhanceMSelector;
dynamicContrastBSelector = b.dynamicContrastBSelector;
dynamicContrastMSelector = b.dynamicContrastMSelector;
dynamicContrastBGain = b.dynamicContrastBGain;
dynamicContrastMGain = b.dynamicContrastMGain;
sri = b.sri;
cri = b.cri;
criFilterMode = b.criFilterMode;
tintMapBSelector = b.tintMapBSelector;
tintMapMSelector = b.tintMapMSelector;
persist = b.persist;
frameFilterMode = b.frameFilterMode;
}
};
#endif //BIPINPUT_H