简体   繁体   中英

I want an algorithm to crop an image, where to start

I want to a content analysis of a jepg image. I wish to take a jpeg image say 251 x 261 and pass it through an algorithm to crop it to say 96 x 87. Like an intelligent cropping algorithm, with a prompt to resize the image.

Cropping and resizing are entirely different operations, and your question makes it sound like you don't know which you want.

I can't really tell where you're at with your process, but possibly you may benefit from obtaining and using ImageMagick .

If you are using .NET try using this.

System.Drawing.Image.GetThumbnailImage

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM