Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Sep 20, 2023. It is now read-only.
SCUT-CS
/
STC-RNAM
Public archive
Notifications
You must be signed in to change notification settings
Fork
0
Star
8
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Files
Expand file tree
main
Breadcrumbs
STC-RNAM
/
README.md
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
93 lines (51 loc) · 3.33 KB
main
Breadcrumbs
STC-RNAM
/
README.md
Copy path
Top
File metadata and controls
Preview
Code
Blame
93 lines (51 loc) · 3.33 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# 灰度图像压缩STC和RNAM算法
传统的图像表示方法主要是二维数组(矩阵)表示方法。但由于图像处理在各方面的广泛应用和其它学科的飞速发展,对图像处理的研究提出了处理速度和存贮空间的更高要求。这样,二维数组的空间效率及其“样点—样点”的运算方式已不能适应发展的需要,取而代之的应该是既紧凑又便于做各种图像处理运算的表示方法。本项目提供灰度图像压缩的STC和RNAM算法,RNAM算法采用的是对角线优先的策略。RNAM算法和STC算法编码时间复杂度为 O(nlogn),解码时间复杂度为 O(n)。
## 内容列表
- [安装](#安装)
- [使用说明](#使用说明)
- [项目结构](#项目结构)
- [维护者](#维护者)
- [贡献者](#贡献者)
- [如何贡献](#如何贡献)
- [使用许可](#使用许可)
- [参考文献](#参考文献)
## 安装
[Github Release](https://github.com/SCUT-CS/Project-1/releases)
## 使用说明
<img src="https://github.com/SCUT-CS/Project-1/blob/main/Image/%E7%A8%8B%E5%BA%8F%E8%BF%90%E8%A1%8C%E7%A4%BA%E6%84%8F%E5%9B%BE.png?raw=true" alt="程序运行示意图" style="zoom: 50%;" />
1. 打开图片:菜单栏—打开图片或在点击界面上半部分的打开图像按钮。
2. 编辑参数:在程序界面上半部分输入算法需要的参数。
3. 点击主界面上的Start按钮,算法即开始执行。
4. 算法执行完毕后在主界面的下半部分查看结果。
5. 保存图片:菜单栏—保存图片或点击界面下半部分的保存按钮。
## 项目结构
- 图形化界面采用Qt开发,算法实现采用C++和OpenCV 4,测试采用Google Test。
- 项目文件采用Visual Studio 2022
- 类结构:
1. Class TreeNode:树的节点,存储树的数据结构。
2. Class Tree:内部包含树的数据结构类TreeNode,存储树的数据结构。Tree类主要提供树的方法,例如addChild、levelOrder等。
3. Class TreeIterator: 树的迭代器。
4. Class Algo:实现算法流程。
5. Class Calculate:计算算法执行结果。
6. Class DPInterface:RNAM的算法接口,图形化界面通过调用此类下面的静态函数来调用RNAM算法。
7. Class STCInterface:STC算法接口,使用方法同上。
8. Class Segment:存储分割有关数据,提供区域分割方法。
9. Class Variables:存储STC算法执行时需要的输入信息,提供一部分内联函数。
10. Class AlgoThread:创建新线程,执行算法。
11. Class Window:图形化界面。
- 程序流程:

## 维护者
[@liukanshan1](https://github.com/liukanshan1)
## 贡献者
感谢以下参与项目的人:
[@Palettone](https://github.com/Palettone)
[@kkxx0v0](https://github.com/kkxx0v0)
[@haohao1103](https://github.com/haohao1103)
## 如何贡献
非常欢迎你的加入 或者提交一个 Pull Request。
本项目遵循 [Contributor Covenant](http://contributor-covenant.org/version/1/3/0/) 行为规范。
## 使用许可
[MIT License](licence) © SCUT-CS/team-11
## 参考文献
郑运平, 陈传波. 一种新的灰度图像表示算法研究[J]. 计算机学报, 2010(12):10.
You can’t perform that action at this time.