Redian新闻
>
请问大家一个图形的问题:
avatar
请问大家一个图形的问题:# Programming - 葵花宝典
m*s
1
如果我有一个bmp文件,里面有很多随机图形(黑底色,图形颜色固定),我如何把那
些图形的位置,中心给确定住呢?先谢谢大家了。
avatar
m*t
2
what you mean position? all the vertices coordinates?
avatar
m*s
3

well,i think just height, width and center point. That is good enough.
Thank you.

【在 m***t 的大作中提到】
: what you mean position? all the vertices coordinates?
avatar
m*t
4
I am not good at graphics, but here is my suggestion:
there are two steps of solving this problem, first identify all the
distinct shapes in the picture, second calculate the center.
second step is easy, since once you have the shape, you just get mean for
height/width of all pixels in the shape.
first step is basically constructing trees in forest. mark the visited
tree to a third color, say red, and keep going until done.
avatar
w*p
5
First step is to segment the foreground shape from background. Considering
your case (color fixed), the easiest way is region growing.
Second step of computing the center, do you have prior knowledge about what
shapes are in?

【在 m**s 的大作中提到】
: 如果我有一个bmp文件,里面有很多随机图形(黑底色,图形颜色固定),我如何把那
: 些图形的位置,中心给确定住呢?先谢谢大家了。

avatar
m*s
6
thanks guys.
By the way, could you guys suggest some intro books about dealing with
graphics like that?
avatar
m*s
7

what
Thank you whkylp, i think most of them are round, or ellipses, but my
problem is that i don't have any backgroud about graphic programming. So,
could you suggest me some books to read? Thank you very much!

【在 w****p 的大作中提到】
: First step is to segment the foreground shape from background. Considering
: your case (color fixed), the easiest way is region growing.
: Second step of computing the center, do you have prior knowledge about what
: shapes are in?

avatar
w*p
8
This book is like a image processing bible to me: Digital Image Processing,
2nd Edition. See the link of this book: http://www.imageprocessingplace.com/
Hope this helps.

【在 m**s 的大作中提到】
:
: what
: Thank you whkylp, i think most of them are round, or ellipses, but my
: problem is that i don't have any backgroud about graphic programming. So,
: could you suggest me some books to read? Thank you very much!

avatar
o*r
9
厚脸皮吱一声,
其实我是搞image processing地,
以前。
而且我还做过你的这个问题。
就如前楼所说,
你要先作segmentation,
方法一把一把的,
那个digital image processing是bible,
很多image segmentation paper也可以参考
然后捏是ellipses recognition
就是拿ellipses方程往你的segmentation结果上套
本来我还想攒个conference paper,
没啥新意才作罢。

【在 m**s 的大作中提到】
:
: what
: Thank you whkylp, i think most of them are round, or ellipses, but my
: problem is that i don't have any backgroud about graphic programming. So,
: could you suggest me some books to read? Thank you very much!

avatar
m*s
10

,
O, thank you very much!

【在 w****p 的大作中提到】
: This book is like a image processing bible to me: Digital Image Processing,
: 2nd Edition. See the link of this book: http://www.imageprocessingplace.com/
: Hope this helps.

avatar
m*s
11

非常感谢,mitbbs果然大牛多!

【在 o******r 的大作中提到】
: 厚脸皮吱一声,
: 其实我是搞image processing地,
: 以前。
: 而且我还做过你的这个问题。
: 就如前楼所说,
: 你要先作segmentation,
: 方法一把一把的,
: 那个digital image processing是bible,
: 很多image segmentation paper也可以参考
: 然后捏是ellipses recognition

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。