Difference between revisions of "Function:FocusStack"
From CUVI Wiki
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
Stacks multiple images into a single image. | Stacks multiple images into a single, all focused image. The input images need to be aligned and in order. The function also returns a depth_info image that contains the information against each pixel where it was picked from the stack. | ||
===Function=== | ===Function=== | ||
{| | {| | ||
|style="font-size:100%;"| | |style="font-size:100%;"| | ||
<syntaxhighlight lang="C"> | <syntaxhighlight lang="C"> | ||
CuviStatus focusStack( | CUVI_EXPORTS CuviStatus focusStack(CuviImage* images, const int numImages, CuviImage& stack, CuviImage& depth_info, const CuviFilter denoiseFilter, const CuviStream& stream); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
| Line 18: | Line 18: | ||
! Description | ! Description | ||
|- | |- | ||
| | | images | ||
| const CuviImage* | | const CuviImage* | ||
| Input images array | | Input images array | ||
| Line 26: | Line 26: | ||
| Number of images | | Number of images | ||
|- | |- | ||
| | | stack | ||
| CuviImage& | | CuviImage& | ||
| Resultant image | | Resultant image | ||
|- | |||
| depth_info | |||
| CuviImage& | |||
| Slice/Depth information against stacked image | |||
|- | |- | ||
| denoiseFilter | | denoiseFilter | ||
| Line 91: | Line 95: | ||
CuviImage focusImage; | CuviImage focusImage, slice_info; | ||
CuviFilter denoiseFilter = CuviSpecialFilters::gaussian(CuviSize(11, 11), 15.0f); | CuviFilter denoiseFilter = CuviSpecialFilters::gaussian(CuviSize(11, 11), 15.0f); | ||
cuvi::computerVision::focusStack(ImgArr.data(), numImages, focusImage, denoiseFilter); | cuvi::computerVision::focusStack(ImgArr.data(), numImages, focusImage, slice_info, denoiseFilter); | ||
printf("\nSaving to disk.."); | printf("\nSaving to disk.."); | ||
Latest revision as of 08:53, 18 November 2024
Stacks multiple images into a single, all focused image. The input images need to be aligned and in order. The function also returns a depth_info image that contains the information against each pixel where it was picked from the stack.
Function
|
Parameters
|
Image Type Support
|
Samples
Code Example
|


