140 reputation
6
bio website medium.com/@rold2007
location New Zealand
age 35
visits member for 2 years, 8 months
seen Dec 14 '13 at 7:26

Freelance software developer and digital nomad. Working in image processing (computer vision), mainly on custom OCR code.


Apr
6
awarded  Popular Question
Dec
6
awarded  Autobiographer
Jan
7
comment Is it necessary to add the default case while using switch cases?
You should not leave an empty case. If your switch doesn't cover all possible conditions you should assert the other conditions in your default case for the same reason you suggested to add an assert in the default case in your second paragraph.
Oct
1
comment How to unit test image processing code?
@Birgit P.: Interesting solution. As you say it is still integration testing. Having a framework like yours would help setting up these tests faster but they won't run faster...
Oct
1
comment How to unit test image processing code?
@martiert: I'm not testing rotation, scaling, etc as I calling these from a 3rd library which I believe is well-tested. The OCR algorithm is composed of many of these operation. But as you say, testing something where an output evolves is hard. Maybe it's a good warning we don't have the choice but to depend on integration tests...
Sep
30
comment How to unit test image processing code?
@DXM: I understand your solution but I think we might not have the same constraints. My input/output data changes a lot while the algorithm is developed. How do you cope with these regular changes ? In OCR I can have over 99% accuracy so testing on only a couple of images can give me a false feeling of success while the integration tests might tell me later that I actually worsened the algorithm...
Sep
30
revised How to unit test image processing code?
Added example of function to test
Sep
28
awarded  Student
Sep
28
asked How to unit test image processing code?
Aug
14
awarded  Supporter
Feb
25
awarded  Editor
Feb
25
revised What is the point of the string.Empty property
Completed my link-only answer.
Jan
24
awarded  Teacher
Jan
24
answered What is the point of the string.Empty property