Jump to content

Arctic Eddie

Newbies
  • Posts

    3
  • Joined

  • Last visited

Arctic Eddie's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. I've not been able to get any of the suggestions working due to lack of knowledge of this particular coding scheme. I've used nine other languages in my total career but have not used C# or Code Labs before. However, I did find that Irfanview has a numeric readout in the histogram feature that will do exactly what I need. I just ran the test on a Panasonic FZ50 camera and got some very confusing results in RAW versus JPG. The later behaves as expected versus ISO but the former is nearly flat above ISO 100. My measuring problem is solved but now I have a camera phenomena to tackle. Thank you all for your time and effort to help me in this endeavor. Ed
  2. I'm going to do some dark frame noise measurements of several cameras as a function of temperature and ISO setting. I've been looking for a simple software program to display the sum of all pixel counts. However, nothing was located so it appears I'll have to learn how to write a PDN plugin. Using Code Lab, I've got the calculations performed but cannot find a way of displaying the results. Suggestions are appreciated. My code is shown below. #region UICode // Maybe something to trigger a data window #endregion void Render(Surface dst, Surface src, Rectangle rect) { Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor; int BrushWidth = (int)EnvironmentParameters.BrushWidth; // ??????????????? Is this needed long redsum = 0; long grnsum = 0; long blusum = 0; ColorBgra CurrentPixel; for (int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = src[x,y]; // Add up the data redsum = redsum + (long)CurrentPixel.R; grnsum = redsum + (long)CurrentPixel.G; blusum = redsum + (long)CurrentPixel.B; } } // Print the result someplace }
×
×
  • Create New...