コード例 #1
0
        private void Initialise()
        {
            #if DEBUG
            this.debugForm = new CorrelationDebugForm();
            this.debugForm.BackgroundImageView.ZoomToFit = true;
            this.debugForm.TileImageView.ZoomToFit       = true;
            this.debugForm.Show();
            #endif

            this.mosaicWindow.MosaicLoaded += new MosaicWindowHandler <MosaicWindow, MosaicWindowEventArgs>(OnMosaicLoaded);
            this.tiledImageViewer.TileImageViewMouseDownHandler += new TileImageViewMouseDelegate <TiledImageView, TiledImageViewMouseEventArgs>(OnTileImageViewMouseDownHandler);
            this.mosaicWindow.UsingCorrelationsChanged          += new MosaicWindowHandler <MosaicWindow, MosaicWindowEventArgs>(OnUsingCorrelationsChanged);

            this.useCorrelationCheckBox.Checked = MosaicWindow.MosaicInfo.IsCorrelated;

            this.tiledImageViewer.Initialise(MosaicWindow.MosaicInfo, new Rectangle(0, 0, MosaicWindow.MosaicInfo.TotalWidth, MosaicWindow.MosaicInfo.TotalHeight),
                                             new Size(1000, 1000), true);                     // forcing the tiledimageviewer to be grayscale here

            this.tiledImageViewer.Paint += new PaintEventHandler(OnImageViewPaint);

            #if DEBUG
            this.debugForm.BackgroundImageView.Paint += new PaintEventHandler(OnDebugBackgroundImageViewPaint);
            this.debugForm.TileImageView.Paint       += new PaintEventHandler(OnDebugTileImageImageViewPaint);
            #endif

            this.correlationTypeComboBox.SelectedIndex = 1;
            SetCorrelationForCombobox();
        }
コード例 #2
0
 public override void DebugBackgroundPaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
     e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, 255, 0, 255)), this.backgroundIntersectArea);
     e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, 0, 0, 255)), this.kernelAreaWithinBackground);
     //e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(200, 255, 255, 255)), this.searchPos);
     e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(200, 0, 255, 0)), this.searchArea);
 }
コード例 #3
0
 public virtual void DebugCurrentImagePaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
 }
コード例 #4
0
 public virtual void DebugBackgroundPaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
 }
コード例 #5
0
 public override void DebugCurrentImagePaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
     e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, 0, 0, 255)), this.kernelArea);
 }
コード例 #6
0
 public override void DebugBackgroundPaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
     e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, 255, 0, 255)), this.backgroundIntersectArea);
     e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, 0, 0, 255)), this.kernelAreaWithinBackground);
     //e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(200, 255, 255, 255)), this.searchPos);
     e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(200, 0, 255, 0)), this.searchArea);
 }
コード例 #7
0
ファイル: CorrelatorWindow.cs プロジェクト: atdgroup/Mosaic
        private void Initialise()
        {
            #if DEBUG
            this.debugForm = new CorrelationDebugForm();
            this.debugForm.BackgroundImageView.ZoomToFit = true;
            this.debugForm.TileImageView.ZoomToFit = true;
            this.debugForm.Show();
            #endif

            this.mosaicWindow.MosaicLoaded += new MosaicWindowHandler<MosaicWindow, MosaicWindowEventArgs>(OnMosaicLoaded);
            this.tiledImageViewer.TileImageViewMouseDownHandler += new TileImageViewMouseDelegate<TiledImageView, TiledImageViewMouseEventArgs>(OnTileImageViewMouseDownHandler);
            this.mosaicWindow.UsingCorrelationsChanged += new MosaicWindowHandler<MosaicWindow, MosaicWindowEventArgs>(OnUsingCorrelationsChanged);

            this.useCorrelationCheckBox.Checked = MosaicWindow.MosaicInfo.IsCorrelated;

            this.tiledImageViewer.Initialise(MosaicWindow.MosaicInfo, new Rectangle(0, 0, MosaicWindow.MosaicInfo.TotalWidth, MosaicWindow.MosaicInfo.TotalHeight),
                                                                new Size(1000, 1000), true);  // forcing the tiledimageviewer to be grayscale here

            this.tiledImageViewer.Paint += new PaintEventHandler(OnImageViewPaint);

            #if DEBUG
            this.debugForm.BackgroundImageView.Paint += new PaintEventHandler(OnDebugBackgroundImageViewPaint);
            this.debugForm.TileImageView.Paint += new PaintEventHandler(OnDebugTileImageImageViewPaint);
            #endif

            this.correlationTypeComboBox.SelectedIndex = 1;
            SetCorrelationForCombobox();
        }
コード例 #8
0
ファイル: Correlator.cs プロジェクト: atdgroup/Mosaic
 public virtual void DebugCurrentImagePaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
 }
コード例 #9
0
ファイル: Correlator.cs プロジェクト: atdgroup/Mosaic
 public virtual void DebugBackgroundPaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
 }
コード例 #10
0
 public override void DebugCurrentImagePaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
     e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, 0, 0, 255)), this.kernelArea);
 }