MATLAB Answers

0

sampling of pixel point and find out the distance between them

Asked by praveen rai on 4 Aug 2019
Latest activity Commented on by praveen rai on 5 Aug 2019
i plot a curve line from an image
now what i want is to sample each points(pixel) lets say on line no 1 there are m pixels(m1,m2,m3,m,4and so on) and same as for line no 2 there are n pixels(n1,n2,n3,n4 and so on) after that i want the distance between 2 correspondence like for eg in line m1 is pixel and correspondence to dat n1 is in second line
so how many white pixels are present between (m1 and n1),(m2 n2) and so on den plot a graph
how to that
ignore first and last line
curvelines.jpg
curve_water.jpg

  0 Comments

Sign in to comment.

1 Answer

Answer by Image Analyst
on 4 Aug 2019
 Accepted Answer

I suggest youi first correct your image capture conditions so that your book is pressed flat. Once you have done that the lines of text will be easier to find, like with my attached demo.

  2 Comments

@image analyst thnx for giving your suggestion I will apply dis.. but lets assume that is my input image and whatever curve line I obtained shown in graph I just want to find the distance/no of pixel between two lines of ther respective pixel points like I mentioned (m1 and n1),(m2 n2) and so on den plot a graph
can u suggest me how to find that because I am doing something in that I want my line to be curve not staright which I got but now want the distance between of each point on lines
i re-run the code it is useful for me but right now I dont want that

Sign in to comment.