Search found 5 matches

by IvanShuvin
2015-06-17T10:15:07-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 38575

Re: How to process each pixel of the image maximally quickly?

What are you doing in '//SOME ACTIONS'? Nothing. Source code run as is. I found one the solve: MagickImage img = new MagickImage(@"d:\TEST\brightness\tiles\32-1-470-109-25.tif"); byte[] color = new byte[3]; for (int y = 0; y < img.Height; y++) { PixelCollection pc = img.GetReadOnlyPixels(...
by IvanShuvin
2015-06-16T06:49:18-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 38575

Re: How to process each pixel of the image maximally quickly?

Does that help? No, I modified my code: MagickImage img = new MagickImage(@"d:\TEST\brightness\tiles\32-1-470-109-25.tif"); for (int y = 0; y < img.Height; y++) { PixelCollection pc = img.GetReadOnlyPixels(0, y, img.Width, 1); for (int x = 0; x < pc.Width; x++) { byte[] color = pc.GetValu...
by IvanShuvin
2015-06-16T05:31:06-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 38575

Re: How to process each pixel of the image maximally quickly?

If the first loop by x, the second loop by y, I received next result: start load -> 14:51:34 start loop -> 14:51:46 end loop -> 14:58:53 If the first loop by y, the second loop by x, I received next result: start load -> 15:05:56 start loop -> 15:06:08 end loop -> 15:12:56 Improve absent. :( Anymore...
by IvanShuvin
2015-06-16T01:37:46-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 38575

How to process each pixel of the image maximally quickly?

I need to precess each pixel on image: MagickImage img = new MagickImage(@"d:\TEST\110706M01000509.jpg"); PixelCollection pc = img.GetReadOnlyPixels(0, 0, img.Width, img.Height); for (int x = 0; x < pc.Width; x++) for(int y = 0; y < pc.Height; y++) { byte[] color = pc.GetValue(x,y); //SOME...
by IvanShuvin
2015-06-05T01:57:20-07:00
Forum: Magick.NET
Topic: Change pixel color
Replies: 0
Views: 9287

Change pixel color

Please, help me. How to change pixel color on the image. I use the following code: MagickImage img = new MagickImage(@"d:\TEST\110706M01000509.jpg"); WritablePixelCollection pc = img.GetWritablePixels(100, 100, 50, 50); foreach (Pixel p in pc) { p.SetChannel(0, 255); p.SetChannel(1, 0); p....