<div dir="ltr"><div><div><div><div><div><div><div>Hello guys,<br><br></div>I'm developing a really complicated pipeline and to avoid repetitions and unreadeble code I thought of writing the different pieces of code as functions, each with a single specific purpose. <br>
</div>Since I'm not really a C++ master I started with a very simple pipeline (reader -> rescale intensity filter -> writer), where the rescale intensity filter is in a separate function, outside the main(). <br>
</div>The code compiles and it even runs but the output is not what it would have to be.<br><br></div>Can someone help me find where is the error? <br><br></div>Attached you can find my code, a test image and the respective output.<br>
<br></div>Thanks in advance<br><br></div>Elena <br></div>