i have a class that among other things holds the X and Y position of a pixel. because of the number of these pixels i have an array made up of this class.
i need to count all pixels in the array where the x and y values meat a preset value. I have done this by looping through the array but this causes large overheads and slows my program to a crawl.
Is there a way using "array.exists" or something similer where i can make this check. since all the help i have found does not take into acount arrays made from classes
i need to count all pixels in the array where the x and y values meat a preset value. I have done this by looping through the array but this causes large overheads and slows my program to a crawl.
Is there a way using "array.exists" or something similer where i can make this check. since all the help i have found does not take into acount arrays made from classes