How to get GCODE in matlab ?

9 visualizaciones (últimos 30 días)
khushboo chhikara
khushboo chhikara el 22 de Abr. de 2018
Comentada: Walter Roberson el 3 de Mayo de 2018
I want a gcode to move my cnc machine on a particular path. how that can be done in matlab ??
  1 comentario
Walter Roberson
Walter Roberson el 3 de Mayo de 2018
Please do not close questions that have an Answer.

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 22 de Abr. de 2018
  7 comentarios
Walter Roberson
Walter Roberson el 22 de Abr. de 2018

Have you done an imclose() then bwskel(), possibly followed by spur removal from bwmorph ?

khushboo chhikara
khushboo chhikara el 22 de Abr. de 2018
clc,clear,close all;
% cam = webcam('HD Webcam C615')
% im1 = snapshot(cam);
% % set(handles.axes1,'Visible','on');
% % axes(handles.axes1)
im=rgb2gray(im1);
figure,imshow(im);
clear('cam')
% im = rgb2gray(imread('white_3.jpg'));
H = fspecial('Gaussian',[2 2],15);
im = imfilter(im,H);
imshow(im);title('Original image'); 
sim = edge(im, 'sobel');
se = strel('disk', 2);
sim = imdilate(sim, se);
sim = bwareaopen(sim, 50);
sim = imerode(sim, se);
imshow(sim);title('after Sobel');
 h = waitbar(0,'Sewing....');
[B,L] = bwboundaries(sim,'noholes');
imshow(label2rgb(L, @jet, [.5 .5 .5]))
imwrite(L,'new.jpg')
hold on
for k = 1:length(B)
   boundary = B{k};
   h1=plot(boundary(:,2), boundary(:,1), 'w', 'LineWidth',0.5)
          waitbar((.5+(k/length(B))/2),h);
end

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Biotech and Pharmaceutical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by