Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Ryan2

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2011
10:21 AM

38 Views

Convolution Scaling

Using ippiConvFull_32f_C3R yeilds very large luminance values. Using a softclip algorithm gives me aesthetic results, but I'd like to inquire about proper post scaling methods for ippiConvFull.

Any thoughts?

Best,

Ryan

Link Copied

3 Replies

Ryan2

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2011
02:13 PM

38 Views

Divided the Kernel by sqrt(Kernel_Width*Kernel_Height)

Chao_Y_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-24-2011
05:41 PM

38 Views

Hi,

If you want to normalize the data, is it to divided the kernel by sum of the all kernel value?

Thanks,

Chao

Ryan2

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

11-25-2011
08:43 AM

38 Views

I actually just worked that out. Thank you for replying.

Here's the code I used for anyone else who's wondering:

[cpp] //Calculate Sum of Kernel ippiSum_32f_C3R(Ipp_Ker, Ker_StepBytes, Ker_Size, KerScaled, ippAlgHintFast); // Clamp KerScale to 1. for (i=0; i<3; i++) { if (KerScaled> 1) KerScalef= float(1) / KerScaled[0]; else KerScalef= 1; } // Multipy Ker by Inverse of Sum ippiMulC_32f_C3IR(KerScalef, Ipp_Ker, Ker_StepBytes, Ker_Size);[/cpp]

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

For more complete information about compiler optimizations, see our Optimization Notice.