Finished the DFT tutorial for the core section.
This commit is contained in:
@@ -28,7 +28,7 @@ int main(int argc, char ** argv)
|
||||
|
||||
Mat padded; //expand input image to optimal size
|
||||
int m = getOptimalDFTSize( I.rows );
|
||||
int n = getOptimalDFTSize( I.cols ); // on the border keep the values
|
||||
int n = getOptimalDFTSize( I.cols ); // on the border add zero values
|
||||
copyMakeBorder(I, padded, 0, m - I.rows, 0, n - I.cols, BORDER_CONSTANT, Scalar::all(0));
|
||||
|
||||
Mat planes[] = {Mat_<float>(padded), Mat::zeros(padded.size(), CV_32F)};
|
||||
|
BIN
samples/cpp/tutorial_code/images/imageTextN.png
Normal file
BIN
samples/cpp/tutorial_code/images/imageTextN.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
BIN
samples/cpp/tutorial_code/images/imageTextR.png
Normal file
BIN
samples/cpp/tutorial_code/images/imageTextR.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 60 KiB |
Reference in New Issue
Block a user