public ucSpectroscopy(VideoSpectroscopyOperation videoOperation, VideoController videoContoller, SpectroscopyController spectroscopyController, IFramePlayer framePlayer) : this() { m_VideoOperation = videoOperation; m_FramePlayer = framePlayer; m_VideoContoller = videoContoller; m_SpectroscopyController = spectroscopyController; }
public frmRunMultiFrameSpectroscopy(IFramePlayer framePlayer, VideoSpectroscopyOperation videoOperation, AstroImage astroImage) : this() { m_VideoOperation = videoOperation; m_AstroImage = astroImage; nudNumberMeasurements.Maximum = framePlayer.Video.LastFrame - framePlayer.CurrentFrameIndex; nudNumberMeasurements.SetNUDValue(Math.Min(200, nudNumberMeasurements.Maximum)); nudAreaWing.SetNUDValue(Math.Min(videoOperation.MeasurementAreaWing, nudAreaWing.Maximum)); nudBackgroundWing.SetNUDValue(Math.Min(videoOperation.BackgroundAreaWing, nudBackgroundWing.Maximum)); cbxBackgroundMethod.SelectedIndex = 1; /* Median */ cbxCombineMethod.SelectedIndex = 1; /* Median */ nudExposureSec.SetNUDValue(astroImage.Pixelmap.FrameState.ExposureInMilliseconds / 1000.0f); m_Initialised = true; }