Fix Gray to BGR conversion in CameraServer (#1665)

This commit is contained in:
Thad House
2019-04-27 20:17:17 -07:00
committed by Peter Johnson
parent 6cd1c73efe
commit 3b06313243

View File

@@ -361,7 +361,7 @@ Image* Frame::ConvertBGRToGray(Image* image) {
}
Image* Frame::ConvertGrayToBGR(Image* image) {
if (!image || image->pixelFormat != VideoMode::kBGR) return nullptr;
if (!image || image->pixelFormat != VideoMode::kGray) return nullptr;
// Allocate a BGR image
auto newImage =