Beispiel #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();
        }
Beispiel #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);
 }
Beispiel #3
0
 public virtual void DebugCurrentImagePaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
 }
Beispiel #4
0
 public virtual void DebugBackgroundPaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
 }
 public override void DebugCurrentImagePaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
     e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, 0, 0, 255)), this.kernelArea);
 }
 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);
 }
Beispiel #7
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();
        }
Beispiel #8
0
 public virtual void DebugCurrentImagePaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
 }
Beispiel #9
0
 public virtual void DebugBackgroundPaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
 }
Beispiel #10
0
 public override void DebugCurrentImagePaint(CorrelationDebugForm debugForm, PaintEventArgs e)
 {
     e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(100, 0, 0, 255)), this.kernelArea);
 }