void GCamera::LatterInitialization() { m_IsOpened = OpenCamera(); if(!m_IsOpened) return; if(ImageProcessor()) { disconnect(ImageProcessor(), SIGNAL(OutputImageDouble(GImageDouble)), this, SLOT(NotifyImageSent())); disconnect(ImageProcessor(), SIGNAL(ProcessorFailed()), this, SLOT(NotifyImageFailed())); connect(ImageProcessor(), SIGNAL(OutputImageDouble(GImageDouble)), this, SLOT(NotifyImageSent()), Qt::QueuedConnection); connect(ImageProcessor(), SIGNAL(ProcessorFailed()), this, SLOT(NotifyImageFailed()), Qt::QueuedConnection); } ChangeExposureTime(m_Expo_ms); ChangeGainFactor(m_Gain); emit CapabilitiesMayHaveChanged(); GDevice::LatterInitialization(); }
void GImageStacker::run() { GImageDouble computedImage = StackUp(m_DisplayRailDown, m_DisplayRailUp); // emitting the signal emit OutputImageDouble(computedImage); }