Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 0623c39

Browse files
committed
Add braces for readability
1 parent ca8ecfe commit 0623c39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SolARKeypointDetectorOpencv.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,9 @@ void SolARKeypointDetectorOpencv::detect(const SRef<Image> image, std::vector<Ke
225225
float px = keypoint.pt.x;
226226
float py = keypoint.pt.y;
227227
cv::Vec3b bgr{ 0, 0, 0 };
228-
if (opencvImage.channels() == 3)
228+
if (opencvImage.channels() == 3) {
229229
bgr = image->getPixel<cv::Vec3b>((int)py, (int)px);
230+
}
230231
else {
231232
uint8_t value = image->getPixel<uint8_t>((int)py, (int)px);
232233
bgr = cv::Vec3b(value, value, value);

0 commit comments

Comments
 (0)