Image Processing and Stroke filter - image-processing

I am new into Image Processing, and I have started simple project for recognizing text on images with complex background. I want to use stroke filter as first step, but I cannot find enough data about stroke filters to implement this.
I have only managed to find pure definition of Stroke Filters. So does anyone know something about Stroke filters that can be helpfull to me for my implementation.
I found one interesting article here, but it doesnt explain Stroke Filters in depth
http://www.google.com/url?sa=t&source=web&ct=res&cd=4&ved=0CBoQFjAD&url=http%3A%2F%2Fwww-video.eecs.berkeley.edu%2FProceedings%2FICIP2006%2Fpdfs%2F0001473.pdf&ei=qtxaS5ubEtHB4gbFj8HqBA&usg=AFQjCNEnXQCMAFnqPRHe2kNZ6JEidR1sQg&sig2=wpaIDIQmNn739aF0cYWbsg

"Stroke Filters" are not a standard idea in image-processing. Instead, this is a term created for the paper that you linked to, where they define what they mean by a stroke filter (sect. 2) and how you can implement one computationally (sect. 4).
Because of this, you are unlikely to find an implementation in a standard toolkit; though you might want to look around for someone who's posted an implementation, or contact the authors.
Basically, though, they are saying that you can identify text in an image based on typical properties of text, in particular, that text has many stroke-like structures with a specific spatial distribution.

Related

Is it possible to change texture hue programatically in Spritekit project?

I am interested in to how change hue of the texture in efficient way ? I am experimenting to create space dust which will change it's color every few seconds with nice, smooth transition from one color to another.
I find this possible in few ways:
Using core image like in this example. But I don't know how will this work in combination with Spritekit...
Using particle emitters to create space dust and change color of particles over time using particleColorSequnece property.
And easy one that came up on my mind , while playing with Photoshop, which is using two same, but differently colored images, one over another, and changing the opacity of the topmost one.
This gives me the effect I want, and actually looks fabulous, but is there any better way ? Maybe using SKTexture? In this particular case, I just need to change from one color to another , but what would be an efficient way to do this when multiple changes are required one after another ? This way, my third example requires additional images...
Here is the link which most closely describe what I am trying to accomplish. Just look how space dust changes its color overtime(from dark blue to purple and later to green or orange). I suppose this is done programatically... I would like to ask moderators to remove a link if it is not suitable to post it here. Thanks!
It is kind of a hard questions to answer and is rather subjective, however...
I personally would do the Emitter Node approach, because it seems like it is built for the type of use you are looking for and could have some cool effects trailing behind.
With that being said you specifically asked about changing the hue and colorBlendFactor might be what you are really looking for. I don't have a great link for it, but this might get you pointed in the right direction. You can see how they are blending colors to get the desired result.
Your solution with changing the alpha of two separate colors doesn't sound like a bad approach either.
Hopefully that helps and good luck =)

Project ideation using image processing

I am in my final year of BS Computer Science. I have chosen a project in the image processing domain. But I really don't know where to start from! Here is a rough draft of my project idea:
Project Description:
Often people are faced with the problem of deciding which colors to choose to paint their walls, doors and ceilings. They want to know how their rooms will look like after applying a certain color. We want to design a mobile application that can give people the opportunity to preview their rooms/walls/ceilings, etc, with a certain color before applying the color. Through our application the user can take photos of their rooms/walls/ceilings, etc, and change their colors virtually and preview them. This will give them a good estimate about the final look of their house.
Development will be in java using open CV libraries.
Can anyone provide some help?
For starting OpenCV with android you can follow the tutorial here.
And as your above description, I think you need to do the following...
Filter out the color of room's wall or ceiling color.
Replace with your preview color.
But as your room's color is not unique, you may need to mark the color manually and segment it. Here watershed algorithm might be helpful.
And one more thing is that there might be a chance of lighting variation, so you should use HSV color space instead of RGB.
And finally this is not the full solution, but you will get some idea about how to start with your project.
ImageMagick as a famous image processing library.You may look that one too.It can perform numerous operations with images
Thanks

Image proccessing and Compositing

I am trying to composite the following images to produce an image that would demonstrate how the following swimwear would look in the attached patter material such that realism is key. While a strong java programmer with a CS background, and i have experience in other languages, like python, I have no idea where to start, I looked at JavaCV but it is just so complex and has so many functions i would not know which are relevant here.
Any guidance, or examples here would be greatly appreciated.
Anyway, i'm afraid there's no straightforward solution you can use since this can be a quite large project:
Extract the normal map of the swimsuit. This is needed to stick the pattern to the swimsuit, for example, the pattern should look bulged in the bra compared to other flatter areas.
You need to do texture synthesis (http://en.wikipedia.org/wiki/Texture_synthesis) since you need to resize the pattern to be larger.
Apply the synthesized pattern
For the realism, you also need to extract the shadow from the white swimsuit (if the swimsuits are white this will be easier). After applying the pattern, put back the shadow to the composite image.
You can refer to these papers:
http://maverick.inria.fr/Publications/2009/WOBT09/TextureDraping_EGSR_2009.pdf
and
http://graphics.cs.cmu.edu/projects/nrt/

Is there a way to curve text/labels in Cocos2d?

Here is an example of what I would like to achieve.
Is there a way to "transform" a label in Cocos2d and obtain a curved text? I do not find any property in the CCLabelBMFont class that seem to allow this.
Any suggestion wellcome.
Rason for asking: I would prefer not to use pre-generated (with Photoshop or GIMP) text images. Hence I am looking for an answer to this problem and not to an alternative method.
One of the moderators of the Cocos2D forum has replied to me in their forum and it doesn't seem possible. Here is the link to the discussion on the forum, but as far as I can tell there is no solution (In my opinion it would require having implemented a draw call in the labels that blends the pixtures according to the new image matrix resulting from bending the original label image and as far as I can understand CCLabelBMFont does not seem to support this - and I am not sure that is easily possible to do so as the class does not derive from CCSprite but it may be in some other way that I do not know at the moment).

Image Processing method for "spiky" selection

I have an input as a 3D binary image and the preferred output below:
Input:
Preferred Output:
What image processing methods should I look for if I am to have only the spiky object(s) remain, just like the preferred output above?
Well, first of all i'd try to remove zall those white line and get only the pattern.
You image seem way to erratic for me to work with.
If your pattern is quite regular (as it seems here), you can search for a template and use a correlation to extract interesting parts of the image.
After this, only the 4 big patterns should be left. I would perform some calculations (mainly shape based), some examples here :
http://opencv.willowgarage.com/documentation/cpp/imgproc_structural_analysis_and_shape_descriptors.html)
I'm sure there are some simple descriptors for this. I think of energy, perimeter, these kind of things.

Resources