Scala library for image creation [closed] - scala

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Is there any good Scala or Java library for image manipulation? For simple tasks like composing an image with some others then generating a thumb?

Take a look at https://github.com/sksamuel/scrimage (Disclaimer: I am the author)
This is an open source Scala image library that essentially wraps java.awt Image operations in a nicer API.
You asked how to generate a thumbnail, you would do something like.
val in = ...// some input stream
val out = ... // some output stream
Image(in).scale(300,400).write(out, Png)
You can change the scaling method (Bicubic by default) and the output format.

they're all a bit old school, and maybe inconvenient, but java.awt, java.awt.image, and javax.imageio has everything you need to blend and rescale images. You can find some blending example code e.g. here
http://www.curious-creature.org/2006/09/20/new-blendings-modes-for-java2d/
you can find some examples of rescaling and generating image bytes e.g. here
https://sourceforge.net/projects/ssim/?source=directory
there are probably newer/easier solutions, but these do work.

It's not Scala-specific, but ImgLib2 is a full-powered Java image processing library. It's geared towards scientific/low level use, so it might not be as easy as you want for what you're looking for, but it can almost certainly manage anything you're likely to want.

There are also a lot of nice image filters in this Open Source library:
http://www.jhlabs.com/ip/filters/

Since the question is tag with java-2d you know you can use any Java library. A quick google revealed this SO answer:
open source image processing lib in java

Related

Real TIme Image Processing (OCR) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am planing to develop an app like Word Lens. Can any one suggest a good library that I can use? or any one explain technology behind the Word Lens App? is it reel time image matching or OCR? I know some image processing library like OpenCv, tesseract...Any help is greatly appreciated...
I'm one of the creators of Word Lens. Although there are some OCR libraries out there (like tesseract), we decided to make our own in order to get better results and performance. Our general algorithm goes like this:
copy the image from the camera and get its grayscale component
level out the image so the text stands out clearly against the background
draw boxes around things that look like characters & sentences
do OCR: match the pixels in each box against a database of characters -- this is actually pretty hard!
collect the characters into words, look up in a dictionary (this is hard too, because there will be mistakes in the OCR)
draw the results back onto the image
Image matching by itself is not good enough, because of the huge variety of fonts, words, and languages out there.
OpenCV is a great library to get up and running with, and to learn more about computer vision in general. I would recommend building off their examples, and playing around there. Have fun!

Are there any image effects libraries (e.g. lomo) for Android or iPhone? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
are there any image effects (e.g. lomo, watercolor, sketch ...etc) libries can be used on mobile device and suitable for mobile device?
There are libraries like JJIL, simple-iphone-image-processing, JH labs, imageMagick porting to iphone and opencv have been mentioned in various previous posts.
I want libraries that I don't need to care about the algorithm of effect, but lots of libraries mentioned above are this type of libraries.
What I need are libraries that already have done effects functions and I just call the functions to apply effects on photos (It is ok to set parameters and attributes by myself when I use it).
Are there any more suggestions?
Free is good, commercial would be fine.
Thank you.
You could try the effects API from Aviary. Here: http://developers.aviary.com/
I never used it though, so I can't say if that's exactly what you are looking for.
Potentially worth your while:
OpenCV
Simple iPhone Image Processing

Working with images in Scala [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am generating large PNG files from a Scala program. Currently, I am doing it the same way I would do it in java. I am creating a new BufferedImage and setting each pixel to the correct color. This works fine, but I am wondering if there are any good libraries for working with images in Scala? I am looking for something like Ruby's RMagick library.
Take a look at https://github.com/sksamuel/scrimage (Disclaimer: I am the author)
This is an open source Scala image library that essentially wraps java.awt Image operations in a nicer API as well as providing easy methods for operations like fitting to a given size, etc.
Maybe JMagick? Take a look here, it's a native interface between ImageMagick and Java exactly like RMagick..

Drawing Flame Fractals [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am looking for information on how to draw flame fractals from googling around I could not find much, either pages explain how to use third party tools or way too complicated for me to grasp. Anyone know how/why they work? or point me in the direction of not overly complicated implementations?
I have written a beamer presentation that covers the basics in flame fractals:
https://www.math.upenn.edu/~peal/files/Fractals[2009]Beamer[Eng]-PAXINUM.pdf
All images are done from my java implementation of the flame algorithm.
The source code can be found here:
http://sourceforge.net/projects/flamethyst/
I believe that the pdf http://flam3.com/flame_draves.pdf together with the implementation in java above should get you a long way.
You could read the original paper by Scott Draves, which details precisely how and why they work, as well as a guide to an implementation in pseudocode.
As long as you have some basic knowledge of maths, it should be relatively straightforward to understand (though it is rather long!). To be honest, you can probably ignore much of it and just read about the code, since much of the text is background info.
Fractal flames are basically a variant of an iterated function system (IFS). You have a series of functions through which you pass a single point over and over again. Each function is a combination of an affine transformation and one or more variations.
Each iteration, only one function is chosen (at random), and the resulting point is accumulated into a buffer and used as the starting point of the next iteration.
The buffer is then saved as an image, after having been post-processed and filtered, as described in the flame paper.
The best reference is still the original implementation, flam3.
I think fractals would be too computationally expensive to do in real time.
If I Google "simulating fire in computer graphics" I get a number of interesting things that suggest that it's not a trivial problem (surprise). SIGGRAPH is a conference whose proceedings you'll want to check out. But be warned - this is very mathematically challenging.
Have a look at http://formulas.ultrafractal.com/
There you can download the "Completed Formula Pack"
The file enr.ucl file should contain the formula for the flame fractal.
For more info:
http://www.ultrafractal.com/kb/flamefractals.html

Does anyone have a handy visulization widget that I can use for a web project? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
What I want is lots of nodes which can expand making a mind map.
I'd ideally like to expand and collapse nodes. I would like to be able to navigate by either dragging around the page, or by following expanded nodes.
I have a colleague who needed that kind of functionalities to graph Maven dependencies between projects. He ended up using FreeMind to do the visualization. He just had to write an XML file conforming to the FreeMind format. I even think you can just use OPML as the file format and find a ready to use XSLT to transform it to the FreeMind format. Maybe FreeMind actually supports OPML directly (I havent used it for a long time).
Once you have your data in FreeMind, you can either export them, or use the FreeMind applet to display an interactive MindMap on your website.
Suggest mxGraph.
Suggest protovis, lovely javascript cross-platform visualisation library.
I think you are asking for a component that does what Visio can do, except that it can be displayed on a web page. Most likely you would have to create one from scratch, because mind mapping tools are always released as products per se and not customizable components. I suggest looking for a basic drawing/illustration component, and then putting your mind-mapping logic in it.