Redian新闻
>
包子问题-什么软件能统计一张图里线条个数和计算线条和水平线的夹角
avatar
包子问题-什么软件能统计一张图里线条个数和计算线条和水平线的夹角# ChemEng - 化学工程
c*n
1
I want to catch all calls to HibernateTemplate.save(Obj)
so I want to use Aspects to define pointcuts around them
but the problem is
Spring AOP only catches calls on beans, if the object is not a bean, but
created instead through a new() , then it won't catch these calls.
in our existing project, the HibernateTemplate instances could be a bean
handed in or it could be created through new() somewhere.
so I have to use aspectj compiler directly now, right?
avatar
d*a
2
请教:用什么软件能统计一张图里线条个数和计算线条和水平线的夹角。
打个比喻,就像丢一把铁针在盒子里,再把磁铁放在盒子外面附近。受磁场影响,一些
铁针会指向磁铁,一些铁针会指向不同的方向(90度角,10度角,40度角等等),然后
给不同的区域照相。用什么软件能计算图片里针的个数和针的指向(和水平线的夹角)

诚心请教,请回复到我bbs信箱。大包子奉上。
多谢。
avatar
g*g
3
Check if you can refactor a little bit. Spring AOP is much
simpler than AspectJ.

【在 c******n 的大作中提到】
: I want to catch all calls to HibernateTemplate.save(Obj)
: so I want to use Aspects to define pointcuts around them
: but the problem is
: Spring AOP only catches calls on beans, if the object is not a bean, but
: created instead through a new() , then it won't catch these calls.
: in our existing project, the HibernateTemplate instances could be a bean
: handed in or it could be created through new() somewhere.
: so I have to use aspectj compiler directly now, right?

avatar
j*j
4
这个不知道有啥软件可以弄
但是用matlab编程肯定可以
load image -> contour -> calculate number of lines and angles
contour那一步需要用不同的参数调整一下,你可以得到一个矩阵
然后得到一个重建的图像,这个重建的图像里含有线条的坐标
有了坐标,你想干啥都行了
具体怎么用contour参见matlab的帮助
一个思路,你可以试试
行的话,记得包子。good luck!

【在 d*******a 的大作中提到】
: 请教:用什么软件能统计一张图里线条个数和计算线条和水平线的夹角。
: 打个比喻,就像丢一把铁针在盒子里,再把磁铁放在盒子外面附近。受磁场影响,一些
: 铁针会指向磁铁,一些铁针会指向不同的方向(90度角,10度角,40度角等等),然后
: 给不同的区域照相。用什么软件能计算图片里针的个数和针的指向(和水平线的夹角)
: ?
: 诚心请教,请回复到我bbs信箱。大包子奉上。
: 多谢。

avatar
n*n
5
You will need to declare the AspectJ aspect as a spring bean with the
factory-method="aspectOf", so that its properties can be injected by spring.

【在 c******n 的大作中提到】
: I want to catch all calls to HibernateTemplate.save(Obj)
: so I want to use Aspects to define pointcuts around them
: but the problem is
: Spring AOP only catches calls on beans, if the object is not a bean, but
: created instead through a new() , then it won't catch these calls.
: in our existing project, the HibernateTemplate instances could be a bean
: handed in or it could be created through new() somewhere.
: so I have to use aspectj compiler directly now, right?

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