Accord.Imaging.Filters.WolfJolionThreshold.Min C# (CSharp) Method

Min() private static method

private static Min ( int width, int height, byte src, int offset ) : int
width int
height int
src byte
offset int
return int
        unsafe private static int Min(int width, int height, byte* src, int offset)
        {
            int max = 255;
            for (int y = 0; y < height; y++)
            {
                for (int x = 0; x < width; x++, src++)
                {
                    if (*src > max)
                        max = *src;
                }

                src += offset;
            }

            return max;
        }
    }