kujason / ip_basic

Image Processing for Basic Depth Completion
MIT License
556 stars 87 forks source link

How to set the background color? #5

Closed lhyfst closed 5 years ago

lhyfst commented 5 years ago

Now my background color is black. However, the further the object is, the whiter the pixels should be. So, it more makes sense if the background color is white.

On the other hand, how to change the relationship between depth and color shade? It also makes sense if the further the object is, the blacker the pixels are.

depth_000001

kujason commented 5 years ago

The black pixels in the background are empty, as in there are no values associated with them since there are no LiDAR values to use for depth completion in those areas. If you want them to be filled in with extrapolated values, you can change extrapolate to True. Or use an empty mask to set those pixels to whichever value you want.

lhyfst commented 5 years ago

got it. Thanks!