i am looking for a technique or a known method to search a part of similar segments in a handwritten text.
its a kind of image retrieval, but rather than searching for an entire word or character, i want to search similar parts of strokes given a pattern as input image.
the figure below illustrate this process, where the red segments are input images and red rectangles represent part of text similar to the input.
by "similar", i mean "approximately", not exact matching
thanks in advance