从点值重建图像 [英] Image reconstruction from points value
问题描述
嗨
什么是图像重建的解决方案
我有大约20个(从图像中的某处 - 几乎公平分布)点并想要创建灰度图像(600 * 600)来自他们的。喜欢热图像。
那么这个解决方案是什么?
tnx all
Hi
what is the solution for an image reconstruction
I have about 20 (from somewhere in image - almost fair distribution) points and want to create a grayscale image (600*600) from their. like thermal image.
so what is the solution for this?
tnx all
推荐答案
从一个开始矩阵,就像这个,但大小与您的输入范围相符。选择原产地。
Start with a matrix, like this one, but sized to the range of your inputs. Pick an origin.
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
0000000000
假设每个点的重量相同,请增加每个数据点的相应坐标一个单位:
[5,4] [2,7] [0,9] [2,7]
Assuming each point carries the same weight, increment the member at the corresponding coordinates for each data point by one unit:
[ 5,4 ] [ 2, 7] [ 0,9 ] [ 2, 7]
0000000001
0000000000
0000000000
0000000000
0000000000
0000010000
0000000000
0020000000
0000000000
0000000000
当所有数据点都应用于矩阵,按3维度进行缩放:宽度,高度,颜色深度,你可能得到类似的东西。
When all data points are applied to the matrix, scale it in 3 dimensions: width, height, colour depth, and you might get something like.
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░█████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
如果您希望每个数据点代表一个圆形区域,当你推断到最终分辨率时,你需要做一些数学运算来确定每个的值。
If you want each data point to represent a round area, you will need to do some math to determine the values of each when you extrapolate to final resolution.
这篇关于从点值重建图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!