This file contains 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
\crefname{equation}{式}{式} | |
\crefname{figure}{图}{图} | |
\crefname{table}{表}{表} | |
\crefname{page}{页}{页} | |
\crefname{chapter}{章}{章} | |
\crefname{section}{节}{节} | |
\crefname{appendix}{附录}{附录} | |
\crefname{theorem}{定理}{定理} | |
\crefname{lemma}{引理}{引理} | |
\crefname{corollary}{推论}{推论} |
This file contains 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
// 1. 一些基本定义 | |
typedef cv::Vec3b Color; | |
typedef cv::Mat_<Color> Image; | |
Image img; // 要处理的那张图 | |
struct MouseArgs // 用于和回调函数交互,至于为什么要特意攒一个struct后面会讲~ | |
{ | |
Image &img; // 显示在窗口中的那张图 | |
std::vector<std::vector<int>> &mask; // 用户绘制的选区(删除/保留) |
This file contains 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
#!/usr/bin/env python3 | |
import sys | |
import os | |
import os.path as p | |
import argparse | |
import re | |
import time | |
try: |