Try doing this:-
This works for a mosaic dataset, so kindly test if this can resolve your concern.
- In the Catalog pane, right-click the mosaic dataset > Modify > Build Footprints
- In the Build Footprints tool, leave the Query Definition blank and select Radiometry under Computation Method
- Change the Minimum and Maximum Data Value settings so that they exclude the border values. For example, if there are black borders with pixel values of 1, change the Minimum Data Value to 2; if there are white borders with pixel values of 255, change the Maximum Data Value to 254
- Leave the rest of the settings at the default and click OK
- Right-click the mosaic dataset in Catalog > Optimize > Build Overviews. Leave the defaults and click OK
Related Links:-
Build Overviews (Data Management)
Build Footprints (Data Management)