/// <summary> /// Initializes a new instance of the DrawImageAnalysis class. /// </summary> /// <param name="game">the game associated with the calss</param> /// <param name="screenWidth">ScreenWidth</param> /// <param name="screenHeight">ScreenHeight</param> /// <param name="updateSquareDimForDrawing">How fast to update drawing. Obsolete</param> /// <param name="updateSquareDimForAnalysis">How fast to update analysis. This is used mostly for hough</param> /// <param name="numberofLinesToFind">How many lines to find in the picture</param> /// <param name="thetaIncrement">Quantitization of angle size, in degrees</param> /// <param name="rhoIncrement">Quantitization of rho size</param> /// <param name="viewPortList">A list of view ports</param> /// <param name="imageAnalysis">Associated imageAnalysis object.</param> public DrawImageAnalysis(Game game, int screenWidth, int screenHeight, int updateSquareDimForDrawing, int updateSquareDimForAnalysis, int numberofLinesToFind, int thetaIncrement, int rhoIncrement, List <Viewport> viewPortList, ImageAnalysis imageAnalysis) : base(game) { this.screenWidth = screenWidth; this.screenHeight = screenHeight; this.updateSquareDimForDrawing = updateSquareDimForDrawing; this.updateSquareDimForAnalysis = updateSquareDimForAnalysis; this.numberofLinesToFind = numberofLinesToFind; this.thetaIncrement = thetaIncrement; this.rhoIncrement = rhoIncrement; this.viewPortList = viewPortList; this.imageAnalysis = imageAnalysis; }
protected override void Initialize() { IsMouseVisible = true; graphics.PreferredBackBufferWidth = 1000; graphics.PreferredBackBufferHeight = 700; graphics.IsFullScreen = false; graphics.ApplyChanges(); CreateViewPorts(); imageAnalysis = new ImageAnalysis(this, screenSize, viewPortList); this.Components.Add(imageAnalysis); base.Initialize(); }
/// <summary> /// Initializes a new instance of the DrawImageAnalysis class. /// </summary> /// <param name="game">the game associated with the calss</param> /// <param name="screenWidth">ScreenWidth</param> /// <param name="screenHeight">ScreenHeight</param> /// <param name="updateSquareDimForDrawing">How fast to update drawing. Obsolete</param> /// <param name="updateSquareDimForAnalysis">How fast to update analysis. This is used mostly for hough</param> /// <param name="numberofLinesToFind">How many lines to find in the picture</param> /// <param name="thetaIncrement">Quantitization of angle size, in degrees</param> /// <param name="rhoIncrement">Quantitization of rho size</param> /// <param name="viewPortList">A list of view ports</param> /// <param name="imageAnalysis">Associated imageAnalysis object.</param> public DrawImageAnalysis(Game game, int screenWidth, int screenHeight, int updateSquareDimForDrawing, int updateSquareDimForAnalysis, int numberofLinesToFind, int thetaIncrement, int rhoIncrement, List<Viewport> viewPortList, ImageAnalysis imageAnalysis) : base(game) { this.screenWidth = screenWidth; this.screenHeight = screenHeight; this.updateSquareDimForDrawing = updateSquareDimForDrawing; this.updateSquareDimForAnalysis = updateSquareDimForAnalysis; this.numberofLinesToFind = numberofLinesToFind; this.thetaIncrement = thetaIncrement; this.rhoIncrement = rhoIncrement; this.viewPortList = viewPortList; this.imageAnalysis = imageAnalysis; }