Questions tagged [vips]

`libvips` is a fast image processing library with low memory needs. `vips` is the command-line tool for that library.

libvips is a fast image processing library with low memory needs.

vips is the command-line tool for that library.

179 questions
0
votes
2 answers

Subtract 2 identical images (B&W and colorful) to get color difference

I have mostly black and white image, with some parts in color (let's say it's yellow and green). I would like to find out those colors. For that, I suppose I might convert image to black & white, and then compare b & w image with original one to…
nattfodd
  • 1,790
  • 1
  • 17
  • 35
0
votes
1 answer

vips and pyvips physical memory usage

I read 100 jpeg images in a loop and extract different areas from them. Loop contents: VImage in = VImage::new_from_file(impath.c_str(), VImage::option()-> set( "access", VIPS_ACCESS_SEQUENTIAL ) ); VImage out =…
sbond
  • 168
  • 1
  • 8
0
votes
2 answers

How do I implement maxfilter (with a given radius) in ruby-vips?

I want to do a thing like this: http://reference.wolfram.com/language/ref/MaxFilter.html Lets say my image has one channel (is grayscale).
Nakilon
  • 34,866
  • 14
  • 107
  • 142
0
votes
1 answer

Start lad web process failed with sharp.node requires libvips-cpp.42.dylib 49.0.0

I am following this basic installation guide here https://github.com/ladjs/lad#installation My versions are below: crocodile version: 1.0.4 node version: v8.2.1 platform: Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017;…
HP.
  • 19,226
  • 53
  • 154
  • 253
0
votes
1 answer

Fast Way to Use VIPS Image as a QImage

I need to work with tiled images in Qt. What would would be a fast way of converting between the two Objects, or otherwise using the VIPS Image in QImage methods? One solution would be to save the VIPS image as a TIFF file, or any other image format…
CrippledTable
  • 784
  • 5
  • 20
0
votes
1 answer

Powershell Integration with ImageMagick / VIPS

I am trying to iterate through a list of files on disk, run a command for each file using VIPS / ImageMagick, then output a file and move it to to a different directory. I can't seem to get the commands to work together. Why are the variables…
Eris
  • 15
  • 3
0
votes
2 answers

How do I get HSV values of an average pixel of an image?

In this code im = Vips::Image.new_from_file "some.jpg" r = (im * [1,0,0]).avg g = (im * [0,1,0]).avg b = (im * [0,0,1]).avg p [r,g,b] # => [57.1024, 53.818933333333334, 51.9258] p Vips::Image.sRGB2HSV [r,g,b] the last line…
Nakilon
  • 34,866
  • 14
  • 107
  • 142
0
votes
0 answers

Read region of a Large Width X Height Image

I have a 1gb image, I want to open this image into 90,000 and 70,000(width X height) at level 0. I even tried with python openslide but didn't work for me. Is there a way to do this ?
Anup Panwar
  • 293
  • 4
  • 11
0
votes
1 answer

Shrinking image by pixel-binning using VIPS

I need to shrink some images by factor of 2 or 3 using VIPS. This has to be achieved through simple pixel binning (pixel averaging), with no additional smoothing or interpolation. VIPS offers several functions at different levels of abstraction for…
retrography
  • 6,302
  • 3
  • 22
  • 32
0
votes
1 answer

JNA pointer to pointer mapping

I am working on a Java binding for the excellent libvips Using this function all is fine: VipsImage *in; in = vips_image_new_from_file( test.jpg, NULL ) vips_image_write_to_file( in, "out.jpg", NULL ) So mapped in Java: Pointer…
0
votes
1 answer

Deepzoom images: starting image quality

I am working on implementing a zoomable image viewer using OpenSeadragon and deep zoom images. I used the VIPS command line tool to create DZI files. My question is, does the original image used to create DZI files need to meet specific requirements…
0
votes
1 answer

Finding transformation using VIPS

I am trying to compare two images where one of them is rotated and shifted. I need to find the transformation from one to another so that I can resample and compare/subtract using VIPS to see the difference. Is there a way to do this?
JoeD
  • 47
  • 2
  • 7
0
votes
2 answers

Python site-packages and corresponding interpreter

I used brew to install python 2.7 and 3.5 on Mac. SOMEHOW I have this site-packages directory /usr/local/lib/python2.7/site-packages. But every python interpreter on the system points to every other site-packages directory EXCEPT this one. How do…
user5161995
0
votes
1 answer

How to translate ImageMagick's unsharpMask settings to VIPS's vips_sharpen() settings

I'm currently using ImageMagick to resize and sharpen images. I'm now moving to VIPS due to performance reasons. I use imageMagick's unsharpMask (http://php.net/manual/en/imagick.unsharpmaskimage.php) feature to sharpen a photo after resizing it.…
David
  • 16,246
  • 34
  • 103
  • 162
0
votes
1 answer

Why is vipsCC converting 16bits(float)/band TIFF image to 8bits(byte)/band TIFF after cropping?

I tried to crop 16bits(float)/band TIFF image, but the resulting image is 8bits(byte)/band. Are there anything I should have done? from vipsCC import * input_file_path = 'input.tiff' output_file_path = 'output.tiff' bands = 4 bg =…
Izumi Kawashima
  • 1,197
  • 11
  • 25
1 2 3
11
12