flaviu2
(Flaviu)
1
Hello. I saw here a little python code: https://itk.org/SimpleITKDoxygen/html/Python_2BoarderSegmentation_8py-example.html
And I want to try it, in C++. How can convert this code:
image = image * ~boundary
image = image + ( boundary * replaceValue )
in C++ from Python ?
dzenanz
(Dženan Zukić)
2
You can look at this example for two ways to change pixel intensities. You need to change it.Set(std::log(1 + it.Get()));
to suit your needs.
flaviu2
(Flaviu)
3
I expected that SimpleITK library to know this operation … or doesn’t ?
blowekamp
(Bradley Lowekamp)
4
The SimpleITK Image operators are located in the sitkImageOperators.h file for C++.
1 Like