[英]I want to represent the location of pixel in image by a single number(either double or integer). Is there any possible way?
I'm looking for Way to represent coordinates of two dimensional space in a single unique number. 我正在寻找用单个唯一数字表示二维空间坐标的方法。 I hope you understand problem.
我希望你能理解问题。 I want to represent location of pixels in image.
我想代表图像中像素的位置。 Any relevant suggestion will be appreciated..
任何相关建议将不胜感激。
For example, for 1920x1080 sized image, you can express your x and y coordinates in 4 digit format. 例如,对于1920x1080尺寸的图像,您可以4位数格式表示x和y坐标。 If x is 150 and y is 950 then unique number will be 01500950.
如果x为150,y为950,则唯一数将为01500950。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.