sampling of pixel point and find out the distance between them

조회 수: 1 (최근 30일)
praveen rai
praveen rai 2019년 8월 4일
댓글: praveen rai 2019년 8월 5일
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

채택된 답변

Image Analyst
Image Analyst 2019년 8월 4일
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
praveen rai
praveen rai 2019년 8월 5일
@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
praveen rai
praveen rai 2019년 8월 5일
i re-run the code it is useful for me but right now I dont want that

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by