Modern Algorithms for Image Processing by Vladimir Kovalevsky

Modern Algorithms for Image Processing by Vladimir Kovalevsky

Author:Vladimir Kovalevsky
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


// Computing minimum and maximum of the color channels:

int[] Min = { 256, 256, 256 }, Max = { 0, 0, 0 };

fm1.progressBar1.Visible = true;

fm1.progressBar1.Step = 1;

if (Img.width * Img.height > 300) jump = Img.width * Img.height / 20;

else jump = 3;

for (i = 0; i < Img.width * Img.height; i++) //=======================

{

if (i % jump == jump - 1) fm1.progressBar1.PerformStep();

for (c = 0; c < 3; c++)

{

if (Img.Grid[3 * i + c] < Min[c]) Min[c] = Img.Grid[3 * i + c];

if (Img.Grid[3 * i + c] > Max[c]) Max[c] = Img.Grid[3 * i + c];

}

} //=============================== end for (i... =============



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.