Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c146796

Browse files
authored
Update README.md
1 parent bce34b2 commit c146796

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ Here is the simple example of filter usage with opencv Mat images:
3636

3737
int main()
3838
{
39-
cv::Mat matImage = cv::imread("your_input_file_name", cv::IMREAD_COLOR); //read image using opencv from file into Mat type
39+
cv::Mat img = cv::imread("your_input_file_name", cv::IMREAD_COLOR); //read image using opencv from file into Mat type
4040

4141
int kernelSize = 3; //set kernelSize = 3 for filtering with 3x3 kernel
4242
Filter<float, uint8_t> filter; //create the instance of filter
43-
cv::Mat matOutput = filter(matImage, kernelSize); //filter image
43+
cv::Mat output = filter(img, kernelSize); //filter image
4444

45-
cv::imwrite("your_output_file_name", matOutput); //write the result
45+
cv::imwrite("your_output_file_name", output); //write the result
4646
return 0;
4747
}
4848
```
@@ -53,6 +53,6 @@ import cv2
5353

5454
img = cv2.imread('your_input_file_name', cv2.IMREAD_COLOR) #read images using opencv from file
5555
kernel_size = 3 #set kernelSize = 3 for filtering with 3x3 kernel
56-
filter_(img, kernel_size) #filter image
57-
cv2.imwrite('your_output_file_name', img) #write the result
56+
output =filter_(img, kernel_size) #filter image
57+
cv2.imwrite('your_output_file_name', output) #write the result
5858
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /