如何到达C#的具体位置? [英] How to reach specific location in C#?
问题描述
我有一张包含一些多项选择题的扫描图片。所以,首先我如何计算特定圆圈内大多数像素的平均颜色(我已经知道如何获得一个像素的颜色我只需要算法帮助)
请注意我已经处理了这些扫描图像,并使每张扫描的照片与另一张完全相似。 (唯一的区别是dpi)
其次,我怎么能到达一个恒定的位置,起初我想到达像素但是如果我的扫描图像有150dpi怎么办,使用300dpi扫描相同的图像,因为这会改变该像素的x和y值吗?
我尝试了什么:
我已经解释过了。很抱歉给您带来不便
Hi, I have a scanned image which contains some multiple-choice questions. So, first of all how could I calculate the average color for most pixels inside a specific circle (I already know how to get the color of one individual pixel I only need help with the algorithm)
Please Note I already worked on those scanned images and made every scanned photo 100% similar to the other. (the only difference is dpi)
Secondly, how could I reach an constant location, at first I thought of reaching pixels but what if my scanned image has 150dpi, and the same image was scanned with 300dpi since this will change the x and y values for that pixel?
What I have tried:
I already explained that. Sorry for the inconvenience
推荐答案
您需要一个与c#最近的c ++相同的低级语言,您可以轻松地在c ++中将其导入项目,否则请阅读OPEN CV文档中的文章都以c ++的方式展示,你可以从中学习并为c#设计方法。
You need a low level language same as c++ nearest to c# you can do it in c++ easily then importing those to your project otherwise go and read articles in OPEN CV docs all shown ways in c++ may you can learn from them and devise ways for c#.
这篇关于如何到达C#的具体位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!