I transformed the image from the index to the physical point.
Now I want to apply a certain condition to the pointset and set the corresponding pixel value to a new value.
I know that we can access or set pixel value through
One thing to note, the returned index may be outside the image bounds, so SetPixel may throw an exception. It all depends on the parameter value myPoint, as long as it is inside the image bounds you are ok.