# Set out of the disk region to white?

The image is generated by the code below:

img = ExampleData[{"TestImage", "House"}];
ImageTransformation[img, If[Norm[# - 0.5] < 0.5, #, {-0.1, -0.1}] &]


How can I set the background from black to white, and it will only be applied on the region out of the disk?

• add the option Padding -> 1? – kglr Dec 18 '18 at 2:46
• That works! thanks! – leon365 Dec 18 '18 at 2:47

ImageTransformation[img, If[Norm[# - 0.5] < 0.5, #, {-0.1, -0.1}] &,

ImageTransformation[img, If[Norm[# - 0.5] < 0.5, #, {-0.1, -0.1}] &, Padding-> 1]