Difference between revisions of "Function:FocusStack"
From CUVI Wiki
m (→Example) |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
===Function=== | ===Function=== | ||
{| | {| | ||
|style="font-size:100%;"| | |||
<syntaxhighlight lang="C"> | |||
CuviStatus focusStack(const CuviImage* ImgArr, const int numImages, CuviImage& sharpImage, CuviFilter denoiseFilter, const CuviStream& stream = CuviStream()); | CuviStatus focusStack(const CuviImage* ImgArr, const int numImages, CuviImage& sharpImage, CuviFilter denoiseFilter, const CuviStream& stream = CuviStream()); | ||
</ | </syntaxhighlight> | ||
|} | |} | ||
===Parameters=== | ===Parameters=== | ||
{| | |||
|style="font-size:75%;"| | |||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
Line 35: | Line 37: | ||
| const CuviStream& | | const CuviStream& | ||
| GPU stream ID for execution | | GPU stream ID for execution | ||
|} | |||
|} | |} | ||
===Image Type Support=== | ====Image Type Support==== | ||
{| | |||
{| class="wikitable" | |style="font-size:75%;"| | ||
{|class="wikitable" | |||
|- | |- | ||
! Input | ! Input | ||
Line 50: | Line 53: | ||
| 16uC3 x N | | 16uC3 x N | ||
| 16uC3 | | 16uC3 | ||
|} | |||
|} | |} | ||
===Samples=== | ====Samples==== | ||
[[File:Fs-in-1.jpg|none|frame| Input image with foreground focused]] | |||
<br/> | |||
[[File:Fs-in-2.jpg|none|frame| Input image with background focused]] | |||
<br/> | |||
[[File:Focused.jpg|none|frame| Focus-Stacked Image]] | |||
<br/> | |||
===Example=== | ====Code Example==== | ||
{| | {| | ||
|style="font-size:100%;"| | |||
<syntaxhighlight lang="C"> | |||
std::string path = "D:/dataset/fs/imageFolder/"; | std::string path = "D:/dataset/fs/imageFolder/"; | ||
Line 94: | Line 98: | ||
cuvi::io::saveImage(focusImage, result); | cuvi::io::saveImage(focusImage, result); | ||
</ | </syntaxhighlight> | ||
|} | |} |
Latest revision as of 22:23, 18 October 2022
Stacks multiple images into a single image. Images need to be aligned.
Function
|
Parameters
|
Image Type Support
|
Samples
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Code Example
|