Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to add a new member function to the existing LDA class and recompile it?

Hi,

I am new to OpenCV. The version I use is OpenCV 3.1 My question has two parts.

  1. How to add a new member function to the existing LDA class?

I am trying to modify the lda.cpp source file in /modules/core/src/ My objective is to create a new member function in order to execute additional functions to the Sw and Sb matrices.

  1. How to recompile OpenCV after source file modification?

In order to confirm the procedure for recompiling, I added 'cout' command inside the source file for one of the matrices. What are the steps to recompile successfully, so that when I run my code (which uses the LDA class) I will get the prints of the matrix as specified?

Thank you in advance.

Sree