我用数字填充此数组:
Image<Gray, Byte> imgHue = channels[0];
我需要某种方式来获取数组中数量在100-105之间的数量。
知道如何实现吗?
最佳答案
someArray.Count(x => x >= 100 && x <= 105)
关于c# - 如何获取数组中处于一定范围内的数字数量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12783858/