Search found 67 matches

by pablobhz
2017-03-16T05:42:20-07:00
Forum: Magick.NET
Topic: Combine 4 grayscale images into a final CMYK image
Replies: 13
Views: 14531

Combine 4 grayscale images into a final CMYK image

Hello Everyone. Lemme explain my scenario. I have an old software, that takes 4 tiff images (grayscale), and combine them into a final CMYK colored image. I already know that each one of those images, corresponds to one color channel ex: image 1 - foo(c).TIFF image 2 - foo(m).TIFF and so goes on. I ...
by pablobhz
2017-02-20T08:21:52-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 23269

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

Just tried IvanShuvin solution. private static decimal inkGrayLevel(MagickImage img, bool inPercent = true) { decimal totalPixelValue = 0; decimal totalPixelValues = (img.Width * img.Height) * 255; int[] color = new int[3]; for(int y=0; y < img.Height; y++) { PixelCollection pc = img.GetPixels(); in...
by pablobhz
2017-02-17T04:10:47-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 23269

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

I need to scan each pixel of the image in order to get the BitMap Gray level. In the end, i created a function to do the job: private static decimal GetGrayLevel(Bitmap input, bool inPercent = true) { decimal totalPixelValue = 0; decimal totalPixelValues = (input.Width * input.Height) * 255; for (in...
by pablobhz
2017-02-16T17:24:01-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 23269

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

Image Width: 461 Image Height: 7370 Yeah, i just noted that i declared the array with the wrong size. But this wouldn't affect my issue, i think. What i want is a fast way to scan all image pixels using ImageMagick. The traditional way using System.Bitmap takes a minute or more for every image(and i...
by pablobhz
2017-02-16T16:14:20-07:00
Forum: Magick.NET
Topic: How to process each pixel of the image maximally quickly?
Replies: 15
Views: 23269

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

Sorry to revive this topic, but , any of you implemented this on the latest MagickNET release ? I'm getting a outofmemory exception. Here's what i tried to do - i tried to adapt his original solution: private static decimal inkGrayLevel(MagickImage img, bool inPercent = true) { decimal totalPixelVal...
by pablobhz
2016-12-27T22:02:46-07:00
Forum: Magick.NET
Topic: clone a magickimage to a bigger one
Replies: 1
Views: 10382

clone a magickimage to a bigger one

ello everyone. I've searched a bit around the discussions\forums, but i couldn't find much information about how to achieve what i'm trying. Also, i don't see much Magick.NET documentation - where i could obtain it :) What i'm trying to do is: I have an very large MagickImage object (9920 width , 70...
by pablobhz
2016-05-07T06:52:40-07:00
Forum: Users
Topic: Convert from PNG to TIFF
Replies: 2
Views: 2020

Convert from PNG to TIFF

Hello. It will be better if i explain my process from the beginning. I'm reading a file, that contains TIFF data. TIFF Header is 240 bytes - the header is like an default for any file, but some bytes (width, height, stripbytecounts) are replaced with its respective data on the process of the TIFF cr...