How to crop images with description file in opencv - opencv

I used imagemaker tool to select targets for positive library, and generated a description file, i want to know how i can get the images cropped with the file?
Thanks.

Do you possibly mean the ImageClipper tool? If so, there is no implemented solution to save your cropped positives.

Related

what is the best to way to get the vector image for asset catalog

I am aware xcode has introduced an option to provide a vector image(.pdf) so that we don't have to give a image for each dimension such as 1x,2x,3x
This saves lots of time and its really a good feature
But how to go about making an vector image in .pdf format.
As far as I know any png image can be saved as .pdf image does it mean it has been vectorized ?
or else we have to do it in the harder way .. by installing adobe illustrator and making an vector image through that
or else it there any web app that does it for us
basically I want to do the right way so the when image is displayed in 3x devices also there is no image distortion
This is a supplement to the excellent answer by #Senseful.
How to make vector images in .pdf format
I will tell how to do this in Inkscape since it is free and open source but other programs should be similar.
In Inkscape:
Create a new project.
Go to File > Document Properties and set the custom page size to whatever your #1x size is (44x44, 100x100, etc) with the units in px.
Make your artwork.
Go to File > Save As... > Printable Document Format (*.pdf) > Save > OK. (Alternatively, you could go to Print > Print to File > Output format: PDF > Print but there are not as many options.)
Notes:
As is mentioned in the accepted answer, you cannot resize your image because Xcode still produces the rasterized images at build time. If you need to resize your image you should make a new .pdf file with a different size.
If you already have an .svg image that is the wrong page size, do the following:
Change the page size (Inkscape > File > Document Properties)
Select all objects (Ctrl+A) on the work space and resize them to fit in the new page size. (Hold down Ctrl to keep aspect size.)
To convert an .svg file into a .pdf you can also find online utilities to do the job for you. Here is one example from this answer. This has the benefit of allowing you to set the .pdf size easily.
Further reading
Using Vector Images in Xcode 6
Original 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 to make it zoomable? (like format, size, etc.) If a normal .jpg image is converted to DZI, it seems like the image will not be zoomable. Is this correct?
My question is, does the original image used to create DZI files need to meet specific requirements to make it zoomable?
No, except to have a resolution higher than the screen resolution (in that case, the original image can be displayed directly).

GeoTIFF files in ImageJ

I am trying to open GeoTIFF file in ImageJ. It is opened as blank black image. But I want the view as its JPEG converted image. Please If anyone can help me. I want to process that image for Oil Spill Detection.
I would recommend using the Fiji distribution of ImageJ. It includes the Bio-Formats importer which supports a huge number of image formats. It looks like it has support for GeoTIFF tags, as well.
Also, sometimes images "look" black but aren't truly. See this FAQ entry.

imagemagick increases size of image on conversion

I am using ImageMagick version (6.8.9). On converting the image from one format to another the file size seems to increase. I am not able to find out the exact treason for this. I used quality as well. Still i am not able to find a solution for this problem
Thanks in advance

Tool for creating resizable images

I'm working with a designer generated photoshop psd that contains various UI elements for an iOS app, and I'm slicing their backgrounds into smaller images and using resizableImageWithCapInsets for efficiency. There are a lot of them, and it's quite tedious work.
What I'm looking for is a tool that will help with this process, something like Draw NinePatch that will take a .png file, and a list of cap insets, and then spit out a smaller .png.
Anyone heard of such a thing?
I couldn't find anything, so I wrote a simple tool. If anyone else has this problem, here ya go:
https://github.com/kcoop/CapInsetImageGenerator

Resources