<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">You could flush out simple logic errors, syntax errors and so on by presenting test images, but checking that things were done and not the output images.<br>
<br>
You could also create minimal test images of 4 pixels by 4 pixels (or some similar tiny block), and a result image of the same size - at that size, a simple comparison would work. This may only be appropriate for some image processing. The theory is that for
 most processes, the result of a given input is deterministic - so go for the simplest possible way to ensure this.<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF167861"><font color="#000000" face="Tahoma" size="2"><b>From:</b> testing-in-python-bounces@lists.idyll.org [testing-in-python-bounces@lists.idyll.org] on behalf of Puntis Jifroodian-Haghighi [p_j_haghighi@yahoo.com]<br>
<b>Sent:</b> 08 October 2013 17:01<br>
<b>To:</b> testing-in-python@lists.idyll.org<br>
<b>Subject:</b> [TIP] unittest or tdd in image processing<br>
</font><br>
</div>
<div></div>
<div>
<div style="color:#000; background-color:#fff; font-family:garamond,new york,times,serif; font-size:14pt">
<div><span>Hi, <br>
</span></div>
<div style="color:rgb(0,0,0); font-size:18.6667px; font-family:garamond,new york,times,serif; background-color:transparent; font-style:normal">
<br>
<span></span></div>
<div style="color:rgb(0,0,0); font-size:18.6667px; font-family:garamond,new york,times,serif; background-color:transparent; font-style:normal">
<span>I'm learning unit testing in python and I need to try it in image processing. But I can't think of any test case which is applicable in image processing domain. I work with images in my application and it's very different from checking the result of adding
 two values. Does anyone have any suggestion or knows of a reference which can help me to design unit tests in image processing domain?</span></div>
<div style="color:rgb(0,0,0); font-size:18.6667px; font-family:garamond,new
 york,times,serif; background-color:transparent; font-style:normal">
<br>
<span></span></div>
<div style="color:rgb(0,0,0); font-size:18.6667px; font-family:garamond,new york,times,serif; background-color:transparent; font-style:normal">
<span>Thanks in Advance,</span></div>
<div style="color:rgb(0,0,0); font-size:18.6667px; font-family:garamond,new york,times,serif; background-color:transparent; font-style:normal">
<span>Puntis<br>
</span></div>
<span style="font-weight:bold; font-family:garamond,new york,times,serif; color:rgb(0,0,191)"><br>
</span><span style="font-style:italic; font-family:garamond,new york,times,serif"></span><span style="font-style:italic; font-family:garamond,new york,times,serif"></span></div>
</div>
</div>
</div>
</body>
</html>