Update test scripts for adjacent class
Closed this issue · 3 comments
- The current test script uses the image of six shapes, which are not adjacent. Need to simulate a new image with adjacent pieces.
- Also the
testAdj
function in theboard
needs to be updated.
Remember to note that adjacency is based on a threshold. That means it is possible to have an image of separated objects get treated as adjacent by having a slightly higher threshold for adjacency.
It also shouldn't be too hard to make a puzzle with just nine squares that have different colors and are close to each other but not touching. Makes it easy to calibrate and then to solve.
Remember to note that adjacency is based on a threshold. That means it is possible to have an image of separated objects get treated as adjacent by having a slightly higher threshold for adjacency.
It also shouldn't be too hard to make a puzzle with just nine squares that have different colors and are close to each other but not touching. Makes it easy to calibrate and then to solve.
Yep, I understand. I just thought the previous visualization was not that good so I created a new one for the adjacent case.