Archive

Archive for July, 2011

OpenCV: Equivalent to Matlab’s conv2() function

July 5th, 2011 21 comments

The numerical computing environment Matlab (or e.g. its free alternative GNU Octave) provides a function called conv2 for the two-dimensional convolution of a given matrix with a convolution kernel. While writing some C++ code based upon the free image processing library OpenCV, I found that OpenCV currently offers no equivalent method. Read more…

JSF2: Finding and re-rendering deeply nested components in different NamingContainers

July 5th, 2011 No comments

In complex JSF web applications, you sometimes need to re-render (i.e. update via AJAX) a component located outside of the current form (note that forms should not be nested). While you can access a composite’s parent in EL using the #{cc.parent} attribute, this is not of much help if your component is deeply nested in a different sub-tree of the component hierarchy. Read more…