首页 | 本学科首页   官方微博 | 高级检索  
     

利用栈计算屏幕上某一区域的面积
引用本文:王永玲. 利用栈计算屏幕上某一区域的面积[J]. 陕西师范大学学报(自然科学版), 1998, 0(3)
作者姓名:王永玲
作者单位:西安公路交通大学计算机系
摘    要:介绍利用栈这一特殊的数据结构来计算屏幕上某一区域面积的方法.通过判断某一像素点是否在该区域中,若在则将其压栈,然后判断该像素点的相邻点是否也在该区域中,若某一像素点的相邻点均已处理过,则将其出栈,由累计压栈次数便可统计出该区域的面积.

关 键 词:像素点;栈;压栈;出栈

With stack to calculate the area of certain region on screen
Wang Yongling. With stack to calculate the area of certain region on screen[J]. Journal of Shaanxi Normal University: Nat Sci Ed, 1998, 0(3)
Authors:Wang Yongling
Abstract:The paper mainly introduces a method to calculate the area of a certain region on a screen by stack, one of special data structure. It can be decided whether a pixel is in the region. If it is, it can be made push stack. Then it may be decided whether the consecutive point of the pixel is also in the region. If the consecutive point of certain pixel has already been processed, it can be made pop stack. The total number of the push stack can help calculate the area of the region.
Keywords:pixel  stack  push stack  pop stack
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号