.base00 { color: #2b303b; } background
.base01 { color: #343d46; }
.base02 { color: #4f5b66; } selection
.base03 { color: #65737e; } comment, invisible
.base04 { color: #a7adba; } cursor
.base05 { color: #c0c5ce; } plain text
.base06 { color: #dfe1e8; } constants
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // RGB to CMYK conversion | |
| void rgb2cmyk(cv::Mat& img, std::vector<cv::Mat>& cmyk) { | |
| // Allocate cmyk to store 4 componets | |
| for (int i = 0; i < 4; i++) { | |
| cmyk.push_back(cv::Mat(img.size(), CV_8UC1)); | |
| } | |
| // Get rgb | |
| std::vector<cv::Mat> rgb; | |
| cv::split(img, rgb); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Example of cv::split | |
| cv::Mat img = cv::imread("C:\\color wheel.jpg"); | |
| std::vector<cv::Mat> rgb; | |
| cv::split(img, rgb); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| num = '123456789'; | |
| str = num2str(num); | |
| val = str - '0'; % val = [1,2,3,4,5,6,7,8,9] |
The following debugging information was generated by Atom Beautify on Thu Mar 10 2016 12:57:10 GMT+0800 (CST).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>DVTConsoleDebuggerInputTextColor</key> | |
| <string>0 0 0 1</string> | |
| <key>DVTConsoleDebuggerInputTextFont</key> | |
| <string>Menlo-Bold - 11.0</string> | |
| <key>DVTConsoleDebuggerOutputTextColor</key> | |
| <string>0 0 0 1</string> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var values = { | |
| friction: 0.8, | |
| timeStep: 0.01, | |
| amount: 15, | |
| mass: 2, | |
| count: 0 | |
| }; | |
| values.invMass = 1 / values.mass; | |
| var path, springs; | |
| var size = view.size * [1.2, 1]; |
OlderNewer