이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
how can i find the distance from the peak of one wave to another wave in a image?
조회 수: 1 (최근 30일)
이전 댓글 표시
basha Shaik
2020년 2월 19일
i need to find the distance of the wave. i refer to some questions & answers from that i get to know can solve canny's edge detection method.
but i don't know how to process it. can anyone help me...?
댓글 수: 4
채택된 답변
darova
2020년 2월 19일
I suggest next algorithm
- imcrop region of interest (since it's always at the same position
- imbinarize image
- maybe clear a bit with bwareaopen
- find pixels you are interested in
- use findpeaks
댓글 수: 17
darova
2020년 2월 19일
I tried to define distance in 00001.jpg image
Can you tell the difference between D1 and D2? Don't how to identify them
00003.jpg image
basha Shaik
2020년 2월 19일
it is just the wave before the breakup of the liquid sheet. i need to find the wave peak. in that d1 is occurs before the breakup. but d2 is already breakup into liquid droplets.
darova
2020년 2월 20일
I wrote a script
Some explanations:
- Experiment with number of removing pixels
I2 = bwareaopen(I1,2e2); % remove small objects
- Experiment with reducing of number of points
ii = 1:5:length(x); % reduce number of points
- Experiment with peakheight
[~,locs] = findpeaks(abs(kk),'MINPEAKDISTANCE',3,...
'MINPEAKHEIGHT', 0.05);
- Experiment with angle of liquid breakup
If angle is small - consider/measure 2d peak
If angle is big - consider/measure 1th peak
if atan2d(dy(end),dx(end)) > 110 % angle of breakup
Feel free to ask question. Let me know if something doesn't work
basha Shaik
2020년 2월 21일
thank you very much. but what the pixel length of that wave distance...? i didn't understand that. and this code can generate for all the images at once....?
basha Shaik
2020년 2월 22일
thank you. but i got some error while run the script.
Error using chckxy (line 30)
The first two inputs must have at least two elements.
Error in spline (line 72)
[x,y,sizey,endslopes] = chckxy(x,y);
Error in main>write_length (line 39)
x2 = spline(t1,x1,t2);
Error in main (line 4)
write_length(STR);
darova
2020년 2월 22일
Show your image. Remove it or replace from folder and change your main code as
function main
for i = 1:3
STR = sprintf('%05d.jpg',i);
if exist(STR,'file')
write_length(STR);
end
pause(1)
end
end
darova
2020년 2월 24일
Here is what got
I only commented these lines because of
% set(gca,'clim',[-1 1]/3)
% colormap default
See .zip file
darova
2020년 2월 24일
In case of other error try this:
function main
for i = 0:1
try
STR = sprintf('%05d.jpg',i);
write_length(STR);
pause(1)
catch ME
if ~exist(STR,'file')
disp(['File ' STR ' Does not exist'])
else
disp(ME.identifier)
disp(['File ' STR ' was not processed'])
end
end
end
end
추가 답변 (1개)
basha Shaik
2020년 2월 25일
sorry for making you trouble and thank you for helping me.
here, i attached the output i got but i didn't understand exactly, here i explain in brief
i need to solve 13000 images at once and need to save the value of wave length in .dat file or any numerical value format.
can u help me with the code for solving this problem.
do u solve the all the images at once....?
댓글 수: 7
basha Shaik
2020년 2월 25일
thank u very much.
2.jpg
3.jpg 15.9798035376983
4.jpg MATLAB:badsubscript
5.jpg 17.3668315184042
6.jpg
7.jpg 19.6975375353927
8.jpg
9.jpg 34.2065668340247
11.jpg
12.jpg 49.2911737269352
13.jpg 34.8050889623858
this the dat data. but it not showing for some images.
darova
2020년 2월 25일
Experiment with this line
>> STR = sprintf('%05d.jpg',15)
STR =
00015.jpg
>> STR = sprintf('%05d.jpg',8)
STR =
00008.jpg
>> STR = sprintf('%01d.jpg',8)
STR =
8.jpg
basha Shaik
2020년 2월 25일
i tried but the output it not detecting 2, 8 ,13. i attached the below output image
basha Shaik
2020년 2월 25일
darova
2020년 2월 25일
I changed angle of breakup for 2.jpg
if atan2d(dy(end),dx(end)) > 130 % angle of breakup
Result
I think 11.jpg is defective. I don't see here a wave. Can you see?
8.jpg is problem. I don't how to measure a wave length. Sorry
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
아시아 태평양
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)