Skip to content

Commit

Permalink
Call color correction function from debayering examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter committed Jun 26, 2023
1 parent fec6d55 commit 639d280
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Examples/MAX78000/CameraIF_Debayer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ void process_img(void)
bayer_passthrough(raw, w, h, (uint16_t *)image_data);
break;
case (BAYER_FUNCTION_BILINEAR):
color_correct(raw, w, h);
bayer_bilinear_demosaicing(raw, w, h, (uint16_t *)image_data);
break;
}
Expand Down
1 change: 1 addition & 0 deletions Examples/MAX78000/ImgCapture/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ void service_console()
if (g_app_settings.bayer_function == BAYER_FUNCTION_PASSTHROUGH) {
bayer_passthrough(img_data.raw, img_data.w, img_data.h, (uint16_t *)bayer_data);
} else if (g_app_settings.bayer_function == BAYER_FUNCTION_BILINEAR) {
color_correct(img_data.raw, img_data.w, img_data.h);
bayer_bilinear_demosaicing(img_data.raw, img_data.w, img_data.h,
(uint16_t *)bayer_data);
}
Expand Down
1 change: 1 addition & 0 deletions Examples/MAX78002/CameraIF_Debayer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ void process_img(void)
bayer_passthrough(raw, w, h, (uint16_t *)debayered);
break;
case (BAYER_FUNCTION_BILINEAR):
color_correct(raw, w, h);
bayer_bilinear_demosaicing(raw, w, h, (uint16_t *)debayered);
break;
}
Expand Down
1 change: 1 addition & 0 deletions Examples/MAX78002/ImgCapture/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ void service_console()
if (g_app_settings.bayer_function == BAYER_FUNCTION_PASSTHROUGH) {
bayer_passthrough(img_data.raw, img_data.w, img_data.h, (uint16_t *)bayer_data);
} else if (g_app_settings.bayer_function == BAYER_FUNCTION_BILINEAR) {
color_correct(img_data.raw, img_data.w, img_data.h);
bayer_bilinear_demosaicing(img_data.raw, img_data.w, img_data.h,
(uint16_t *)bayer_data);
}
Expand Down

0 comments on commit 639d280

Please sign in to comment.