{"id":2353,"date":"2017-10-24T15:05:48","date_gmt":"2017-10-24T14:05:48","guid":{"rendered":"http:\/\/dronesonen.hibu.no\/?p=2353"},"modified":"2017-11-07T13:22:01","modified_gmt":"2017-11-07T12:22:01","slug":"medisch-wangedrag-group-7h17-week-43","status":"publish","type":"post","link":"https:\/\/dronesonen.usn.no\/?p=2353","title":{"rendered":"Medisch wangedrag (Group 7H17) Week 43"},"content":{"rendered":"<p>Analyzing images to find blood vessels.<\/p>\n<p>Our goal is have the system automatically recognize blood vessels in images taken by our NIR camera. Preferably a big and easy to reach blood vessel, but any blood vessel large enough to be stabbed with a needle is acceptable.<\/p>\n<p>We have not yet reached a final solution, but we have a rough outline of what the program will do.<\/p>\n<p>First we want to remove noise and unnecessary information from the images, by filtering the image. To do this we are considering using a FIR filter with machine learning to improve filtering over time, or the color thresholder app in matlab.<\/p>\n<p>The goal is to have an image containing only clearly visible blood vessels. To enhance them we can use the fibermetric function in matlab, which \u201cEnhances elongated or tubular structures in image\u201d. With this we will hopefully have an image which is easy to analyze.<\/p>\n<p>The image analyzer will send a point on a grid to the robot, which used the grid to place the needle. To find a point on a blood vessel we have currently settled on a hough transform, which identifies lines in images. A point on a blood vessel can be found by simply choosing a start or end point on a line found by the hough transform, but this is sub-optimal, since the point will be on the edge of the vessel, and not in center. This is why we have to analyze the resulting lines from the houghes transform, in order to find the center of a blood vessel. We have not yet settled on a method for doing this.<\/p>\n<p style=\"text-align: left\">We have create 2-D grid coordinates in Matlab, with\u00a0<span class=\"emphasis\"><em>x<\/em><\/span>-coordinates defined by the vector\u00a0<code class=\"literal\">x<\/code>\u00a0and\u00a0<span class=\"emphasis\"><em>y<\/em><\/span>-coordinates defined by the vector\u00a0<code class=\"literal\">y<\/code>. Set 1 mm between each dot. Can move 6.5 cm on the x-axis and 12 cm on the y-axis.\u00a0This gives 120 dots in the y-axis and 65 dots in\u00a0 x-axis. Before testing this in Raspberry pi, we want too\u00a0 get the camera working.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke-43_servo.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2382 alignleft\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke-43_servo-300x169.jpg\" alt=\"\" width=\"303\" height=\"171\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke-43_servo-300x169.jpg 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke-43_servo-768x432.jpg 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke-43_servo-1024x576.jpg 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke-43_servo.jpg 1920w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left\"><em>Matlab meshgrid<\/em><\/p>\n<p>But we have tested the servo motors in Arduino, just too see how they worked. They did not respond as they should, because it was\u00a0 just one of them who worked. Not the both of them at the same time.<\/p>\n<p><a href=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_teste_arduinoServo.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2383\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_teste_arduinoServo-300x169.jpg\" alt=\"\" width=\"306\" height=\"172\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_teste_arduinoServo-300x169.jpg 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_teste_arduinoServo-768x432.jpg 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_teste_arduinoServo-1024x576.jpg 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_teste_arduinoServo.jpg 1920w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/a><\/p>\n<p><em>Servo motor tested by Arduino<\/em><\/p>\n<p><a href=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_arduinoServo_2stk.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2384\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_arduinoServo_2stk-300x169.jpg\" alt=\"\" width=\"315\" height=\"177\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_arduinoServo_2stk-300x169.jpg 300w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_arduinoServo_2stk-768x432.jpg 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_arduinoServo_2stk-1024x576.jpg 1024w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_arduinoServo_2stk.jpg 1920w\" sizes=\"auto, (max-width: 315px) 100vw, 315px\" \/><\/a><\/p>\n<p><em>Two servo motor tested by Arduino<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>Still\u00a0working with optical response and\u00a0 troubleshooting to get the camera working.<\/p>\n<p><a href=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_camera.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2385 alignleft\" src=\"http:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_camera-169x300.jpg\" alt=\"\" width=\"156\" height=\"277\" srcset=\"https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_camera-169x300.jpg 169w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_camera-768x1365.jpg 768w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_camera-576x1024.jpg 576w, https:\/\/dronesonen.usn.no\/wp-content\/uploads\/2017\/10\/uke43_camera.jpg 1080w\" sizes=\"auto, (max-width: 156px) 100vw, 156px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Analyzing images to find blood vessels. Our goal is have the system automatically recognize blood vessels in images taken by our NIR camera. Preferably a big and easy to reach blood vessel, but any blood vessel large enough to be stabbed with a needle is acceptable. We have not yet reached a final solution, but [&hellip;]<\/p>\n","protected":false},"author":59,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2353","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/2353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/users\/59"}],"replies":[{"embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2353"}],"version-history":[{"count":9,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/2353\/revisions"}],"predecessor-version":[{"id":2505,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=\/wp\/v2\/posts\/2353\/revisions\/2505"}],"wp:attachment":[{"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dronesonen.usn.no\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}