皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
[R05] Run length encoding results in compression by describing the data in the form of runs. 3.[R05] 行程编码通过以行程的形式描述数据而导致压缩。 • Does it always lead to compression? When would it not lead to compression? Is such cases, does the message have high entropy or low entropy? •它总是导致压缩吗 ? 何种情况下它不会导致压缩 ? 在这种情况下,消息具有高熵还是低熵 ? • Which image will result in better run length encoding among the ones shown in Figure 6-18? Assume all images are of the same size and list them in the order of best achieved compression using RLE. •如图 6-18 中所示,哪一幅图像将会有更好的行程编码 ? 假设所有图片具有相同的大小并将他们按照使用 RLE 压缩取得最佳压缩的顺序进行排序。 Figure 6 – 18 图 6 - 18 • Suppose you had a color image with each pixel represented as 24 bits— there are 2^24 possible symbols. You write a program that takes each pixel as a symbol and performs RLE to compress the sequence. Is there a more efficient way to use RLE in this case? •假设读者有一幅彩色图像每个像素表示为 24 位 --- 有 2的24次方 种可能的符号。请读者编写一个程序,将每个像素作为一个符号读取出并执行 RLE 来压缩序列。在这种情况下是否有一种使用 RLE 更有效的方式吗 ? • How does quantization affect RLE? If you were to quantize the images in Figure 6-18 before you perform RLE, would quantization help or hurt? • 量化是如何影响 RLE 的 ? 如果在执行 RLE 之前量化图 6–18 中的图像,将有助于量化还是无益于量化 ? • RLE is known to perform poorly when there is no repetition as suggested in the text. So while AAABBBCCCDDD compresses, ABCDEFGH does exactly the opposite, and AABBCDEF is the same. Suggest a scheme that would ensure a better performance irrespective of how the symbols occur. •正如课文中所述当没有重复内容时, RLE 表现不佳。所以尽管 AAABBBCCCDDD 会压缩, ABCDEFGH 则恰恰相反, AABBCDEF 同样也是如此。提出一项方案来保证更好的性能而与符号如何出现无关。 • How does your scheme perform in the best-case and worst-case scenarios? •你的方案如何在最好的和最坏的场景下运行的 ? 参考答案 1. Runlength Encoding Question · No it does not always lead to compression, if the signal is completely random where there are no runs but every symbol differs from the other, then it will not lead to compression · Assuming that you are scanning in row order for run length analysis, the order of compression from best to worst is as follows – · Yes there is, you can de-correlate the color channels RGB and treat each channel differently for runs. Normally, the variation in each channel is less than taking RGB values together. · Yes quantization does indeed help RLE – when signal samples are quantized to a fixed number of intervals (the number of intervals is almost always less than the number of input symbols), more input symbols map to the same value, reducing the entropy and thus increasing the chances of runs. This helps RLE · To ensure better performance, assume that whenever there is a run, you insert a specific symbol to show that a run exists, else if there is no run then the input remains the same. If we use a special symbol + to indicate that a run exists then ABCDEFGH -> ABCDEFGH AABBCDEF -> +2A+2BCDEF AAAAAACCCCCC -> +5A+5C · When no runs are present, input is same as output. Every run thus has three chars – a + to indicate there is a run, a number to represent length of run, and the run char. This will not be efficient if there are a lot of consecutive runs of length 2. But in general for the best and worst case of the general working of RLE, it performs much better.
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】为实现“十三五”时期的发展目标,全面建成小康社会,必须坚持党总揽全局、协调各方,发挥各级党委(党组)领导核心作用,加强制度化建设,改进工作体制机制和方式方法,强化全委会决策和监督作用。( )
A.
正确
B.
错误
【判断题】坚持党总揽全局、协调各方就是各个领域、各个方面都必须自觉坚持党的领导,突出党的核心领导地位,发挥好领导核心作用
A.
正确
B.
错误
【简答题】某工程施工过程中因某种规格的钢筋临时缺货,施工单位提出采用替代规格钢筋的要求,专业监理工程师组织施工单位和设计单位现场代表研究协商后同意,各方签字并形成了纪要。该变更应经( )批准后才能实施。 A.建设单位现场代表 B.总监理工程师 C.设计单位现场代表 D.施工单位技术负责人 12.监理工程师进行隐蔽工程质量验收的前提是( ),并对施工单位的《_______报验申请表》及相关资料进行审查。 A....
【单选题】我们必须坚持党总揽全局、协调各方的领导核心作用,通过(),保证党的路线方针政策和决策部署在国家工作中得到全面贯彻和有效执行。
A.
人民代表大会制度
B.
中国共产党领导的多党合作和政治协商制度
C.
民族区域自治制度
D.
基层群众自治制度
【简答题】写出与下列各角始、终边相同角的集合。 (1) (2)
【多选题】坚持党总揽全局,必须( )
A.
坚持党的民主集中制原则
B.
坚持和完善党的领导体制机制
C.
增强政治意识、大局意识、核心意识和看齐意识
D.
坚持重拳反腐
【单选题】汇总记账凭证账务处理程序的适用范围是
A.
规模较小,业务量较少的单位
B.
规模较小,业务较多的单位
C.
规模较大.业务较多的单位
D.
规模较大,业务较少的单位
【简答题】已知角α的顶点与直角坐标系的原点重合,始边与x的非负半轴重合,α=-510° (1)在如图直角坐标系中画出角α的终边,并指出α是第几象限角; (2)在0°~360°内找出与α终边相同的角,并写出所有与α终边相同的角(包括α)构成的集合.
【单选题】在外币存款中,属于按存款客户类型分类的是()。
A.
活期存款
B.
单位外汇存款
C.
单位通知存款
D.
定期存款
【简答题】如图,在平面直角坐标系xoy中,角α的始边与x轴的非负半轴重合且与单位圆相交于A点,它的终边与单位圆相交于x轴上方一点B,始边不动,终边在运动. (1)若点B的横坐标为 ,求tanα的值; (2)若△AOB为等边三角形,写出与角α终边相同的角β的集合; (3)若 ,请写出弓形AB的面积S与α的函数关系式,并指出函数的值域.
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题