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
image->GetPixel(pixelIndex); image->SetPixel(pixelIndex, pixelValue);
I want to know a way of accessing the pixel value of a point and set it to a new value.