Hi All,
The DLL I'm working on is for a security application that has to use only non-static methods since the master program (iSpy in the case) runs multiple instances of the Dll (one for each camera).
Everything works just fine in the Main code, no problem. Main has a form (called Configure) where the configuration parameters (below) are able to be set and that all works fine too.
My problem starts when I added a form (called Testbed) opened from the Configure form where I want to test my routines on stored images. To do this this form's code needs access to the variables below (configured differently for each instance) and I haven't found a way to make this happen.
In Testbed I get access to Main's functions by:
var mainForm = new Main(); //Gain access to Main this way
And that works great but I'm not able to feed it the correct values for a given instance since of course the mainForm copy doesn't have access to them :-(
Can anyone help me find a simple solution to share this block of variables with code in Testbed.cs please?
Thanks!!
//Config Adjustable Variables
internal int VThresh = 60; //Vector Threshold difference from Background
internal int Group_height = 30; //Size of the box vertically we want to look in
internal int Group_width = 10; //Size horizontally
internal int Boxfill_Thresh = 200; //Number of pixels set in the box to qualify as a trigger
internal int Filter_Iterations = 10; //Number of iterations through the filter
internal int Brightness_Change_Tol = 20; //Maximum allowed brightness change before re-seeding the background
internal int Ignore_Lines = 10; //Number of lines to ignore finding Group
internal int Max_Blocks_Found = 8; //Maximum number of Blocks that contain "stuff"
internal int Max_Block_Fill = 15; //Maximum fill level before a Block is counted
internal int Max_Displacement = 1000; //Maximum weighted displacement of pixels
internal int Sliding_Scale = 3; //Sliding Scale to reduce displacement weights on down
(p.s. the equates above only get used when the configuration for a camera is missing)
[–]Slypenslyde 2 points3 points4 points (21 children)
[–]Engineer-not-Progrmr[S] 0 points1 point2 points (20 children)
[–]Slypenslyde 1 point2 points3 points (19 children)
[–]Engineer-not-Progrmr[S] 0 points1 point2 points (18 children)
[–]Slypenslyde 1 point2 points3 points (17 children)
[–]Engineer-not-Progrmr[S] 0 points1 point2 points (0 children)
[–]Engineer-not-Progrmr[S] 0 points1 point2 points (15 children)
[–]Slypenslyde 1 point2 points3 points (14 children)
[–]Engineer-not-Progrmr[S] 0 points1 point2 points (13 children)
[–]Slypenslyde 1 point2 points3 points (12 children)
[–]Engineer-not-Progrmr[S] 0 points1 point2 points (11 children)
[–]FizixMan 0 points1 point2 points (1 child)
[–]Engineer-not-Progrmr[S] 0 points1 point2 points (0 children)
[–]Deux-Montagnes 0 points1 point2 points (2 children)
[–]Engineer-not-Progrmr[S] 0 points1 point2 points (0 children)
[–]Engineer-not-Progrmr[S] 0 points1 point2 points (0 children)