Search found 42 matches

by dfelder
2017-09-05T11:49:48-07:00
Forum: Users
Topic: Determining if All Pixels Fall Within a Color Range
Replies: 22
Views: 35974

Re: Determining if All Pixels Fall Within a Color Range

Well, I solved it, but it's a little cumbersome. Since I wasn't getting any response from the function, I took a different approach that you guys kind of touched on. Here's my solution: 1) Convert to grayscale 2) Convert back to RGB 3) Run a histogram export (since R=G=B), there is a max of 256 data ...
by dfelder
2017-08-29T11:05:53-07:00
Forum: Users
Topic: Determining if All Pixels Fall Within a Color Range
Replies: 22
Views: 35974

Re: Determining if All Pixels Fall Within a Color Range

Thanks. I'm still not getting a response, but I'll keep working on it and let you know if it ever works.

Just figured there was an easier way to just find the "maxbright" pixel (or max R, max G, max B).

News to follow...
by dfelder
2017-08-28T13:14:02-07:00
Forum: Users
Topic: Determining if All Pixels Fall Within a Color Range
Replies: 22
Views: 35974

Re: Determining if All Pixels Fall Within a Color Range

Thanks. I tried it and didn't get any result like I anticipated. In the VB world, I typically compose like this: objMi.Convert "-profile", "C:\ColorMatchRGB.icc", myimagename, "-sample", "800x", "PNG32:C:\newimage.png" or imagedata = objMi.Identify("-units", "PixelsPerInch", "-format", "%x %y %w %h ...
by dfelder
2017-08-25T16:10:55-07:00
Forum: Users
Topic: Determining if All Pixels Fall Within a Color Range
Replies: 22
Views: 35974

Re: Determining if All Pixels Fall Within a Color Range

Yes, as long as the grays are within the RGB range (0-255,0-255,0-255)). Let me explain this a little further. I print full-color designs on shirts. Shirts print with CMYK inks (for all intents and purposes, it could be RGB inks). Since white is the absence of all colors in CMYK colorspace (0,0,0,0 ...
by dfelder
2017-08-25T15:33:01-07:00
Forum: Users
Topic: Determining if All Pixels Fall Within a Color Range
Replies: 22
Views: 35974

Re: Determining if All Pixels Fall Within a Color Range

No. I care:

1) ANY white (within 2%). ANY white at all.
2) ALL Black (within 2%). Completely black.
3) not conditions 1 or 2.
by dfelder
2017-08-25T15:16:31-07:00
Forum: Users
Topic: Determining if All Pixels Fall Within a Color Range
Replies: 22
Views: 35974

Re: Determining if All Pixels Fall Within a Color Range

My source images will never be in grayscale. They'll always be RGB PNGs, even if they're all white or all black.
by dfelder
2017-08-25T13:39:55-07:00
Forum: Users
Topic: Determining if All Pixels Fall Within a Color Range
Replies: 22
Views: 35974

Re: Determining if All Pixels Fall Within a Color Range

Thanks so much for the response. Your concept checks out, but admittedly don't know the IM commands (even without Visual Basic). Basically, I need: If MaxBright <0.02 then All Black (and exit routine) else if MaxBright >0.98 then Contains White (and exit routine) else If MaxBright >=0.02 and ...
by dfelder
2017-08-25T09:44:00-07:00
Forum: Users
Topic: Determining if All Pixels Fall Within a Color Range
Replies: 22
Views: 35974

Re: Determining if All Pixels Fall Within a Color Range

First, let me apologize for dropping this conversation...6 years ago. I got pulled off the project and had not been reassigned until now. I'm sorry to re-open this thread, but in response to Fred's response, if I understand the theory correctly, if 100% of pixels are black, the mean is 0. ALL BLACK ...
by dfelder
2014-04-10T13:28:18-07:00
Forum: Users
Topic: Wraping around a Cylinder in Windows
Replies: 10
Views: 18534

Re: Wraping around a Cylinder in Windows

Well, the good thing is that thanks to snibgo, I got some of this working in Windows. THANK YOU. However, what I'm trying to do is recreate what snibgo does here http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=18497 THIS image: https://dl.dropboxusercontent.com/s/5a88lfz0s6z1gfv ...
by dfelder
2014-04-09T17:29:56-07:00
Forum: Users
Topic: Wraping around a Cylinder in Windows
Replies: 10
Views: 18534

Re: Wraping around a Cylinder in Windows

Thanks for the adjustment, but it's just not working. I copied & pasted your code exactly and it's still throwing all kinds of errors. I think I need to find another path unless you see something obvious. Otherwise, I truly appreciate your input, but I don't want you to waste your time on it ...
by dfelder
2014-04-09T16:35:49-07:00
Forum: Users
Topic: Wraping around a Cylinder in Windows
Replies: 10
Views: 18534

Re: Wraping around a Cylinder in Windows

I'm using 6.8.8-10 Q8 64. I couldn't get this to work in the Windows cmd console. I'm going to have to find a different path...maybe a crop/wave or some other mix. It's kicking out a ton of errors and I've already spent 2 full days trying to get it to work. Oh well. Thanks, though! convert mug.png ...
by dfelder
2014-04-09T13:56:59-07:00
Forum: Users
Topic: Wraping around a Cylinder in Windows
Replies: 10
Views: 18534

Re: Wraping around a Cylinder in Windows

I am unable to install the Cygwin package, unfortunately (not allowed). In the meantime, though, if I follow that example script, I'm still having a little problem encoding it with VB. convert rose: -background black -gravity south -splice 0x8 \ \( +clone -sparse-color barycentric '0,0 black 69,0 ...
by dfelder
2014-04-08T19:10:32-07:00
Forum: Users
Topic: Wraping around a Cylinder in Windows
Replies: 10
Views: 18534

Wraping around a Cylinder in Windows

Hello all. I need to wrap an image (roughly 8" x 4") around a image of a mug. Of course, Fred's Cylinderize function would work great; however, I don't work with UNIX/MAC/LINUX, and cylinderize is not a valid argument in a standard IM deployment. I am leveraging IM in Windows 7 through MSAccess ...
by dfelder
2011-10-25T16:16:45-07:00
Forum: Users
Topic: Determining if All Pixels Fall Within a Color Range
Replies: 22
Views: 35974

Re: Determining if All Pixels Fall Within a Color Range

Guys, thank you so much for your reply. Admittedly, this is way above my head, so let me ask if I'm interpreting this correctly: 1) There is a command within IM that will compare every pixel within an image to, say, black CMYK(0,0,0,100)/RGB(0,0,0). 2) I can extract from said analysis the maximum ...
by dfelder
2011-10-20T09:03:53-07:00
Forum: Users
Topic: Determining if All Pixels Fall Within a Color Range
Replies: 22
Views: 35974

Determining if All Pixels Fall Within a Color Range

Hello, I am trying to determine if EVERY pixel within an artpiece is within, say, 1% of solid black (in RGB and CMYK). Conversely, if all pixels are within 1% of solid white. Ultimately, I'd like to analyze an image to know if the creator intended for it to be solid black or solid white. What does ...