width is fixed = 1536 pixel
length is not defined yet. So in the code we should define
tablength = 7500 or 10000
If there is a big shape, then it is on the 768 and 769th pixel.
If 768 and 769 is empty, this means that there may be blob above the line or below the line or may be not exist.
So in this stage,
1- We are going to divide the search and match blob operation into 2 parts.
At first, make a loop and check in where there is a blob on 768th and 769th pixel. Then let the user to see and match, force match the big parts.
Second, at that time make a background worker so while user is trying to match the big part, the computer should compute and find rest of the blob data.
There should be 2 progress bar at the bottom of user window. First is for finding big part blobs. Second is for background worker..finding the rest of the blobs.
2- In our [url removed, login to view] , we have partnames, count of parts. In this stage now we are going to have additionally an edge length.
After matching, i need 2 columns in datagrid next to rotation angle.
Those columns are for defining a vector . one for x value , the other is for y value. The vector is going to be from centroid to the middle of the edge length (or perpendicular to the edge) that we define in [url removed, login to view]
3- For + and - tolerance in match tab, there should be a text box and let the user to enter the tolerance. This tolerance value can be at the settings tab if you are calculating them at the begining.
I will prepare new [url removed, login to view] file.
The total time for finding big blobs has to be less than 20 seconds. Total time for the background worker to find the rest of the blobs should be less than 150 seconds.
All the bugs , if exists, has to be repaired in this stage.