mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-13 03:41:47 -05:00
ATV Modulator: transmit fixed image (1)
This commit is contained in:
parent
4056fd0f5c
commit
f20d522aa7
@ -250,6 +250,7 @@ bool ATVMod::handleMessage(const Message& cmd)
|
||||
else if (MsgConfigureImageFileName::match(cmd))
|
||||
{
|
||||
MsgConfigureImageFileName& conf = (MsgConfigureImageFileName&) cmd;
|
||||
openImage(conf.getFileName());
|
||||
// m_fileName = conf.getFileName(); // TODO
|
||||
// openFileStream();
|
||||
return true;
|
||||
@ -366,7 +367,7 @@ void ATVMod::applyStandard()
|
||||
}
|
||||
}
|
||||
|
||||
void ATVMod::openImage(QString& fileName)
|
||||
void ATVMod::openImage(const QString& fileName)
|
||||
{
|
||||
cv::Mat tmpImage = cv::imread(qPrintable(fileName), CV_LOAD_IMAGE_GRAYSCALE);
|
||||
m_imageOK = tmpImage.data != 0;
|
||||
|
@ -227,7 +227,7 @@ private:
|
||||
void calculateLevel(Real& sample);
|
||||
void modulateSample();
|
||||
void applyStandard();
|
||||
void openImage(QString& fileName);
|
||||
void openImage(const QString& fileName);
|
||||
|
||||
inline void pullImageLine(Real& sample)
|
||||
{
|
||||
|
@ -385,6 +385,11 @@
|
||||
<string>V Grad</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Image</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
Loading…
Reference in New Issue
Block a user