Separation of Overlapping and Touching Lines - matlab

Can anyone suggest an approach or method for the separation of overlapping and touching lines within handwritten documents?
I can segment text lines. Now i want to separate the connected lines.
Here it is my image:
Thanks

You try using the watershed over the distance function of the connected component set to separate them like here and here. Though its possible it could oversegment the result based on the shapes.

Related

How to remove multiple ROIs in the same general area on Fiji

I am wondering if anyone knows how to delete multiple ROIs in the same general area of an image. I'm using Fiji.
I am looking for an easy way to delete all ROIs in a given area. For example, the multi-point selection tool has the ability to delete all points within a given selection. I would like to find a function like this but for ROIs.
I have many images like the one below (>100) with ROIs labelling cells. I only want ROIs to label cells in a certain region of the image (the barrel cortex) and would like to get rid of all other ROIs.
Would someone have an idea of how to write a macro to perform this function?
Any help would be greatly appreciation.
Thanks!

Strange straight line in flutter fl_chart

I have a line chart that builds by a combination of several data. But the curve draws some strange straight lines on some areas.
How can i delete this line?
The problem is i think not related to the data because icannot touch with cursor to this straight line. I think curve automatically draws something like regression line, but icouldn't remove it.
Thank you.
Another example
if i chose dot data as true, you can see that there is no data point on these straight lines.
I solved my problem. For those who has the same issue, the data of the curve should be sorted. If your data is map, just turn the map to sorted with collection package with the following code;
data = SplayTreeMap();
That's it.

Paraview glyphs too packed issues

I was visualizing my vorticity vector field and notice that I am not able to see the pattern without zooming in as there are too many glyphs and are too packed.
Currently, I am using a calculator to combine X,Y,Z vorticity field into a single vector field using the calculator. Take a slice of it and do a glyph filter visualizing all points on the plane.
I notice that one possible way is to visualize a curved glyphs and scale up a little bit to make it more noticeable, but not sure how to do that. Does anyone know whats the steps to do that? Or any other suggestions?
TIA
Have you tried reducing the Maximum Number of Sample Points property in the Properties Panel when the Glyph filter is selected in the Pipeline Browser? You may also want to change the Scale Factor property to change the length of the glyphs.

iOS-Charts: How to include a gap between data points & lines

I'm using iOS-Charts with Swift to draw line charts, and I'm looking for a way to place a gap between the data points (circles) and the lines themselves.
Something like this: example
I've tried playing around with some values under the drawLinear section of LineChartRenderer.swift, but I don't know enough about Core Graphics to do anything useful.
Having a white outline for the circles is unfortunately not an option, since I'm displaying multiple datasets with images containing transparent layers, and the datasets need to be able to overlap (as in the example image)
Any help would be greatly appreciated - thanks :)

Is it possible to bridge more than one pixel in MATLAB?

I have several lines in a binary image. I know the code bridgeBW = bwmorph(closeBW, 'bridge'); will connect the lines if they are close enough, but so far I've only seen it do that in a one pixel range. Is there a way to increase the distance and bridge lines that are farther away?
I ended up using a line based strel method instead of one defined by a shape.