{"id":1362,"date":"2021-07-26T15:03:21","date_gmt":"2021-07-26T14:03:21","guid":{"rendered":"http:\/\/laserphotonics.uk\/?p=1362"},"modified":"2021-07-26T20:20:55","modified_gmt":"2021-07-26T19:20:55","slug":"1d-profile-matlab","status":"publish","type":"post","link":"https:\/\/laserphotonics.uk\/?p=1362","title":{"rendered":"1D profile matlab"},"content":{"rendered":"\n<h2><strong>%&nbsp;Extract data from image along two point defined 1D line in MATLAB <\/strong><\/h2>\n\n\n\n<p>I=imread(&#8216;P1.jpg&#8217;);<br>J=rgb2gray(I);<br>imshow(J);<br>[x,y]=ginput(2); %force matlab show a vertial and horizental line for reading in coordinates<br>hold on   % shown line on figure<br>plot(x,y);<br>figure<br>improfile(J,x,y)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Digitizer:<\/p>\n\n\n\n<p><a href=\"https:\/\/apps.automeris.io\/wpd\/\">https:\/\/apps.automeris.io\/wpd\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>%&nbsp;Extract data from image along two point defined 1D line in MATLAB I=imread(&#8216;P1.jpg&#8217;);J=rgb2gray(I);imshow(J);[x,y]=ginput(2); %force matlab show a vertial and horizental line for reading in coordinateshold on % shown line on figureplot(x,y);figureimprofile(J,x,y) Digitizer: https:\/\/apps.automeris.io\/wpd\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,3],"tags":[],"_links":{"self":[{"href":"https:\/\/laserphotonics.uk\/index.php?rest_route=\/wp\/v2\/posts\/1362"}],"collection":[{"href":"https:\/\/laserphotonics.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laserphotonics.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laserphotonics.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laserphotonics.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1362"}],"version-history":[{"count":2,"href":"https:\/\/laserphotonics.uk\/index.php?rest_route=\/wp\/v2\/posts\/1362\/revisions"}],"predecessor-version":[{"id":1364,"href":"https:\/\/laserphotonics.uk\/index.php?rest_route=\/wp\/v2\/posts\/1362\/revisions\/1364"}],"wp:attachment":[{"href":"https:\/\/laserphotonics.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laserphotonics.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laserphotonics.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}