Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Analysis test P2

8 visualizaciones (últimos 30 días)
Sergio Federer
Sergio Federer el 5 de Dic. de 2022
Cerrada: Walter Roberson el 15 de Dic. de 2022
Imagem corrompida por um ruido (ruido senoidal continuo)
Para reestruturar: usar transformada de fourier para passar ele para dimensão da frequencia, a partir disso aplicar um filtro passa baixa para eliminar os ruidos senoidais. Após isso, aplicar a transformada inversa de fourier, voltando a imagem para o dominio do espaço
Camera monocromatica - identificar cores de peças
Camera monocroatica tem um sensor que lê as 3 cores em escala de cinza, assim é necessário uma conversão da escala de cinza para RGB, após a conversão será necessário separar as 3 faixas de cores.
imagem processada para alargamento de contraste
tecnica utilizada: limiarização, separa regiões de uma imagem quando esas apresenta duas classes (fundo e objeto). Limiarização produz uma imagem binária de saídas, mitas vezes o processo é denominada binarização
  5 comentarios
Ronald Mcdonald
Ronald Mcdonald el 7 de Dic. de 2022
Movida: John D'Errico el 14 de Dic. de 2022
O princípio da limiarização consiste em separar as regiões de uma imagem quando esta apresenta duas classes (o fundo e o objeto). Devido ao fato da limiarização produzir uma imagem binária à saída, o processo também é denominado, muitas vezes, binarização
Sergio Federer
Sergio Federer el 7 de Dic. de 2022
Movida: John D'Errico el 14 de Dic. de 2022
% --- Executes on slider movement.
function slider1_Callback(hObject, eventdata, handles)
% hObject handle to slider1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'Value') returns position of slider
% get(hObject,'Min') and get(hObject,'Max') to determine range of slider
global red ajuste1
gama1=get(hObject,'Value');
ajuste1=red;
ajuste1=imadjust(red,[],[],gama1);
colorida1=cat(1,ajuste1);
axes(handles.axes3);
imshow(colorida1);
% --- Executes during object creation, after setting all properties.
function slider1_CreateFcn(hObject, eventdata, handles)
% hObject handle to slider1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end
% --- Executes on slider movement.
function slider2_Callback(hObject, eventdata, handles)
% hObject handle to slider2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'Value') returns position of slider
% get(hObject,'Min') and get(hObject,'Max') to determine range of slider
global green ajuste2
gama2=get(hObject,'Value');
ajuste2=green;
ajuste2=imadjust(green,[],[],gama2);
colorida2=cat(1,ajuste2);
axes(handles.axes4);
imshow(colorida2);
% --- Executes during object creation, after setting all properties.
function slider2_CreateFcn(hObject, eventdata, handles)
% hObject handle to slider2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end
% --- Executes on slider movement.
function slider3_Callback(hObject, eventdata, handles)
% hObject handle to slider3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'Value') returns position of slider
% get(hObject,'Min') and get(hObject,'Max') to determine range of slider
global blue ajuste3
gama3=get(hObject,'Value');
ajuste3=blue;
ajuste3=imadjust(blue,[],[],gama3);
colorida3=cat(1,ajuste3);
axes(handles.axes5);
imshow(colorida3);
% --- Executes during object creation, after setting all properties.
function slider3_CreateFcn(hObject, eventdata, handles)
% hObject handle to slider3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global red green blue
[filename,path]=uigetfile('*.jpg;*.tif;*.png;*.gif','Selecione imagem');
f=imread(strcat(path,filename));
axes(handles.axes1);
imshow(f);
axes(handles.axes3);
red=f(:,:,1);
imshow(red);
axes(handles.axes4);
green=f(:,:,2);
imshow(green);
axes(handles.axes5);
blue=f(:,:,3);
imshow(blue);
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global ajuste1 ajuste2 ajuste3
ajustada=cat(3,ajuste1,ajuste2,ajuste3);
axes(handles.axes2);
imshow(ajustada);

Respuestas (1)

Ronald Mcdonald
Ronald Mcdonald el 14 de Dic. de 2022

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by