简体   繁体   English

我想用一个数字(双精度或整数)表示图像中像素的位置。 有什么办法吗?

[英]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.

相关问题 有没有办法将任何数字表示为4个方格的总和? - Is there any way to represent any number as sum of 4 squares? 有没有简单的方法可以返回整数值或双精度值? - Is there a simple way to return either a integer value and or double value? 我想从 double 生成一个 integer - I want to generate a integer from a double 为什么可以实例化String而不可能为Number(Long,Double,Integer ...)? - Why it's possible to instantiate String and not possible for Number(Long,Double,Integer…)? 有什么递归方法可以从开始或结束时删除最大数量吗? - is there any recursive way that I can remove the max number either from start or at the end? 如何确定表示给定整数所需的字节数? - How do I determine number of bytes needed to represent a given integer? 一种将bufferedImage设置为单个彩色像素而不放置图像的简单方法? - A simple way to setting a bufferedImage into a single colored pixel without placing a image into it? Java:我想获得双数据类型的整数输出 - Java: I want to get an Integer output in double datatype 是否有可能通过任何方式覆盖 Integer 和 String 类的方法的 equals/compare? - Is it possible by any way I can override the equals/compare to method of Integer and String classes? 具有双值像素的Java图像 - Java image with double value pixel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM