I have an binarized image
and a center
cvx = Import@"https://i.stack.imgur.com/1QoEo.png";
center = {258.19137417775005`, 150.8459811782782`};
HighlightImage[cvx, center]
gives
I want to rotate this white triangle by 180 degree around this center point and keep the original image dimension.
If I run
rotCvx =
ImageTransformation[cvx, RotationTransform[\[Pi], center],
PlotRange -> All, Background -> White]
which gives
But this is not the correct rotated one. You can see from
ImageAdd[cvx, rotCvx]
gives
The correct one should give
So how to rotate components on image around a fixed point?