矩阵翻译 [英] Matrix translation

查看:124
本文介绍了矩阵翻译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个512x512的矩阵。

我需要一个rutine给我一个转换矩阵来自一个转换矩阵,在矩阵中间给定点为
a,我的意思是256x256。


有什么想法吗?


Crirus

解决方案

" Crirus" <铬**** @ datagroup.ro> scripsit:

我有一个512x512矩阵。
我需要一个rutine给我一个转换矩阵来自一个转换矩阵,
给定点在矩阵的中间,我的意思是256x256。




您是否使用''System.Drawing.Drawing2D.Matrix''课程?


- -

Herfried K. Wagner

MVP·VB Classic,VB.NET

< http://www.mvps.org/dotnet> ;


不,我的意思是一个256 x 256数组的数值......不是那样的矩阵

" Herfried K. Wagner [MVP ]" <喜*************** @ gmx.at>在消息中写道

news:bl ************ @ ID-208219.news.uni-berlin.de ...

" ; Crirus" <铬**** @ datagroup.ro> scripsit:

我有一个512x512矩阵。
我需要一个rutine给我一个转换矩阵来自一个,
,矩阵中间给定一个点,我的意思是256x256。



你是否使用''System.Drawing.Drawing2D.Matrix''课程?

-
Herfried K. Wagner
MVP·VB Classic,VB.NET
< http://www.mvps.org/dotnet>



好的,请让我正确理解你。


你开始用


Dim yourArray(512,512)作为Point

''并最终获得


Dim transformedArray(256,256)作为Point


你说你想要一个点在中心?


我的问题


1.)正在进行/应该进行哪些转变?你问为什么

来实现这个目标?


2.)使用偶数编号的x,y长度你无法获得真正的中心,你
需要257或255(中心为229或228)。


请澄清

OHM


Crirus写道:

不,我的意思是一个256 x 256数组的数值......不是那样的矩阵

" Herfried K 。瓦格纳[MVP]" <喜*************** @ gmx.at>在消息中写道
新闻:bl ************ @ ID-208219.news.uni-berlin.de ...

" Crirus" <铬**** @ datagroup.ro> scripsit:

我有一个512x512矩阵。
我需要一个rutine给我一个转换矩阵来自curent
一个,给定点在矩阵的中间,我的意思是256x256。



你是否使用''System.Drawing.Drawing2D.Matrix''课程?

-
Herfried K. Wagner
MVP·VB Classic,VB.NET
< http://www.mvps.org/dotnet>


I have a 512x512 matrix.
I need a rutine that give me a transformed matrix from the curent one, with
a given point in the middle of the matrix, I mean 256x256.

Any thoughts?

Crirus

解决方案

"Crirus" <Cr****@datagroup.ro> scripsit:

I have a 512x512 matrix.
I need a rutine that give me a transformed matrix from the curent one, with
a given point in the middle of the matrix, I mean 256x256.



Do you use the ''System.Drawing.Drawing2D.Matrix'' class?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>


Nope, I mean a 256 x 256 array of values..not a matrix like that
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bl************@ID-208219.news.uni-berlin.de...

"Crirus" <Cr****@datagroup.ro> scripsit:

I have a 512x512 matrix.
I need a rutine that give me a transformed matrix from the curent one, with a given point in the middle of the matrix, I mean 256x256.



Do you use the ''System.Drawing.Drawing2D.Matrix'' class?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>



OK, let me understand you correctly please.

You start with

Dim yourArray( 512,512) as Point

''and end up with

Dim transformedArray( 256,256) as Point

And you say that you want a point at the centre ?

My Questions

1.) What transformation is taking/supposed to place? and are you asking how
to acheive this ?

2.) With an even numbered x,y lengths you cannot acheive true centre, you
would need 257 or 255 ( with a centre of 229 or 228 ).

Please clarify
OHM


Crirus wrote:

Nope, I mean a 256 x 256 array of values..not a matrix like that
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bl************@ID-208219.news.uni-berlin.de...

"Crirus" <Cr****@datagroup.ro> scripsit:

I have a 512x512 matrix.
I need a rutine that give me a transformed matrix from the curent
one, with a given point in the middle of the matrix, I mean 256x256.



Do you use the ''System.Drawing.Drawing2D.Matrix'' class?

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>



这篇关于矩阵翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆