GithubHelp home page GithubHelp logo

size of the image about imageclipper HOT 3 OPEN

vojtechabraham avatar vojtechabraham commented on June 12, 2024
size of the image

from imageclipper.

Comments (3)

JoakimSoderberg avatar JoakimSoderberg commented on June 12, 2024

Hello,

It's quite a bit of time since I used this program myself. So I don't even remember if I've even tried such a highres image. Especially at the time this tool was written I guess working with such highres images in relation to object detection was not even something considered.

However looking at the code:

cvShowCroppedImage(param->miniw_name, param->img_src, cvRect32fFromRect(cvScaleRect(param->rect, 1 / param->scale_factor), param->rotate), cvPointTo32f(param->shear), param->cap_scale_factor);

To show the image this OpenCV function is used:

CVAPI(void) cvShowCroppedImage(const char* w_name, IplImage* img, CvRect32f rect32f, CvPoint2D32f shear, float cap_scale_factor)
{
CvRect rect = cvRectFromRect32f(rect32f);
if (rect.width <= 0 || rect.height <= 0) return;
IplImage* crop = cvCreateImage(cvSize(rect.width, rect.height), img->depth, img->nChannels);
cvCropImageROI(img, crop, rect32f, shear);
if (cap_scale_factor != 1.0f)
{
IplImage* crop_resize = cvCreateImage(cvSize(rect.width * cap_scale_factor, rect.height * cap_scale_factor), img->depth, img->nChannels);
cvResize(crop, crop_resize);
cvShowImage(w_name, crop);
cvReleaseImage(&crop_resize);
}
else
cvShowImage(w_name, crop);
cvReleaseImage(&crop);
}

This crops the image to the scale factor as you see... so maybe fiddling with that might help?

The instructions for the tool written by the original author can be found here:
https://code.google.com/archive/p/imageclipper/

from imageclipper.

JoakimSoderberg avatar JoakimSoderberg commented on June 12, 2024

@vojt-a Anything to add?

from imageclipper.

vojtechabraham avatar vojtechabraham commented on June 12, 2024

Dear Joakim,
thank you for the answer, SOLVED! I found another application: XnView MP - https://www.xnview.com/en/ . It has a very nice button "CLIP & SAVE & NEXT" , so you just open the first picture of the folder and then it goes fast.

from imageclipper.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.