Search found 48 matches
- 2016-08-15T14:08:54-07:00
- Forum: Users
- Topic: [Solved] Demosaicing with superpixels
- Replies: 14
- Views: 9842
[Solved] Demosaicing with superpixels
Hello, I want to composite an image with a checkerboard, letting only the set pixels "shine through" from the image. The rest of the image should be black. I've almost got it, except the pixels are coming out white. I can think of ways to fix this up after, but I'd like to learn how to do ...
- 2015-11-09T18:59:38-07:00
- Forum: Users
- Topic: Depth Splitting
- Replies: 4
- Views: 3621
Re: Depth Splitting
convert stacked (high/low) to 16bit: convert stacked.png -depth 16 -crop 100%x50% ( +clone -evaluate divide 256 ) -delete 1 -compose Add -composite -define png:bit-depth=16 16bit1.png convert 16bit to stacked (high/low): convert 16bit.png -depth 16 ( +clone -evaluate and 255 -evaluate multiply 256 )...
- 2015-10-30T00:45:22-07:00
- Forum: Bugs
- Topic: composite bug; random lines in image
- Replies: 1
- Views: 2551
composite bug; random lines in image
I found a bug! convert -size 400x400 canvas:white ( +clone -evaluate set 32768 ) ( +clone -evaluate set 16384 ) -delete 0 -append stacked.png convert stacked.png -crop100%x50% -depth 16 ( -clone 0 -evaluate multiply 2 ) ( -clone 1 -evaluate multiply 256 ) -delete 0-1 -compose Add -composite -define ...
- 2015-10-30T00:42:42-07:00
- Forum: Users
- Topic: Depth Splitting
- Replies: 4
- Views: 3621
Re: Depth Splitting
I found a bug! convert -size 400x400 canvas:white ( +clone -evaluate set 32768 ) ( +clone -evaluate set 16384 ) -delete 0 -append stacked.png convert stacked.png -crop100%x50% -depth 16 ( -clone 0 -evaluate multiply 2 ) ( -clone 1 -evaluate multiply 256 ) -delete 0-1 -compose Add -composite -define ...
- 2015-10-29T20:38:59-07:00
- Forum: Users
- Topic: Depth Splitting
- Replies: 4
- Views: 3621
Re: Depth Splitting
Thanks for your reply, you gave me some hints. I've made progress, but this still isn't right: convert test.png -depth 16 -crop 100%x50% ( -clone 0 ) ( -clone 1 -evaluate multiply 256 ) -delete 0-1 -compose Add -composite -define png:bit-depth=16 test1.png One thing I've noticed, is the endian seems...
- 2015-10-29T03:06:01-07:00
- Forum: Users
- Topic: Match Rotations
- Replies: 1
- Views: 2008
Match Rotations
Hi, I've read about an upcoming feature for image registration, but it's not ready yet. I'm desperate to match two images by rotation. Would there be a way to rotate one image +-15 degrees and then do a correlation and pick which version matches best, as a simple way to find the rotation? The images...
- 2015-10-29T02:59:15-07:00
- Forum: Users
- Topic: Automatically Overlay Similar Images
- Replies: 1
- Views: 2247
Automatically Overlay Similar Images
Hi, Say I have two versions of an image in different sizes and crops. I want to resize the smaller image and overlay it on top of the larger image in the best match, but have it opaque only in the places they differ. So imagine I have a large cartoon character with a text bubble, and a smaller versi...
- 2015-10-29T02:52:08-07:00
- Forum: Users
- Topic: Depth Splitting
- Replies: 4
- Views: 3621
Depth Splitting
Hi, I want to convert a 16bit image to a stacked 8 bit image. I can do it like this: convert IMG_7853.png ( +clone -evaluate and 255 -evaluate multiply 256 ) -evaluate and 65280 -append -depth 8 test.png This puts the high bits at the top and low bits at the bottom. Now I want to do the opposite. I ...
- 2014-08-08T22:13:57-07:00
- Forum: Users
- Topic: Plotting a histogram (not what you think)
- Replies: 10
- Views: 7568
Re: Plotting a histogram (not what you think)
Hello, I've decided that there won't be a quick solution along the lines of using either imagemagick or gnuplot for my needs. I was hoping to whip up a quick graph to investigate if a certain idea I had would work, but now it seems that I'll just have to do it the hard way. It's still too bad though...
- 2014-08-08T18:54:57-07:00
- Forum: Users
- Topic: Plotting a histogram (not what you think)
- Replies: 10
- Views: 7568
Re: Plotting a histogram (not what you think)
Hi, The platform is windows, and the version would be the latest. As far as scaling, I could crop or scale my image, or else have the heatmap scaled from the minimum count to the maximum count. I have a usb stick with Linux, but I can't do a lot of things while in Linux so I don't like to spend a lo...
- 2014-08-08T18:16:12-07:00
- Forum: Users
- Topic: Plotting a histogram (not what you think)
- Replies: 10
- Views: 7568
Re: Plotting a histogram (not what you think)
Thanks for the reply Fred! Yes, I messed up my example. If my image were 200x1 and dark grey (64,64,64), then the result I want is 255x1 (oops 256x1) and (0,0,0) except at x=64 where it would be (200,200,200). Another example, a perfect linear ramp would be a solid line of (1,1,1) from x=0 to x=199....
- 2014-08-08T08:59:09-07:00
- Forum: Users
- Topic: Plotting a histogram (not what you think)
- Replies: 10
- Views: 7568
Re: Plotting a histogram (not what you think)
I have an idea that might work, if you use -histogram and then -format %c you can get the text table of unique colours, then use the .txt format import of an image, only problem is I can't find documentation of the txt format or how to use it. There's also the pbm with no compression which uses ASCI...
- 2014-08-08T06:03:14-07:00
- Forum: Users
- Topic: Plotting a histogram (not what you think)
- Replies: 10
- Views: 7568
Plotting a histogram (not what you think)
Hello, I've been told that ImageMagick "does everything" but I'm stuck on one small point. I want to plot a histogram as brightnesses rather than a graph, for example a pure grey image would result in one point at x=128 with a value of (255,255,255), in an image 255x1 in size. I'll be conc...
- 2013-12-20T06:19:51-07:00
- Forum: Users
- Topic: Text to Images [Almost Solved]
- Replies: 9
- Views: 7041
Re: Text to Images
Amazing! That worked. Only -resize 25% worked, not -resample 120 or -resize 1920x1080. Also -density 480 is sufficient. I can also select pages with short.pdf[0-30]. One more question: can I have the output files named with 3 digits so they sort in order? eg short-000.jpg, short-001.jpg instead of s...
- 2013-12-20T05:50:11-07:00
- Forum: Users
- Topic: Text to Images [Almost Solved]
- Replies: 9
- Views: 7041
Re: Text to Images
Ok, I installed ghostscript (32bit) and there's no errors now. I also made a new page type of 16"x9" and 0" margins in LibreOffice, and was able to paste the ebook from it's HTML format. Then I ran convert -density 120 short.pdf short.jpg And it produced 1920x1080 images. The problem ...