Info

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

when do we do cropping, and cropping method.

1 visualización (últimos 30 días)
Esther
Esther el 12 de Nov. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Matlab professionist, i really need some help here because i am confused and stuck on the project i am doing now.
Overview of my project: Development of algorithm for recognition of LCD 7 segment digits.
Task 1(done): I was told to use brute force method to come out a list of readings of my images with threshold value of 0-1. whereby i set T to many values between 0-1. this is my coding,
function [imgGray, imgBinary] = Threshold(x, T)
img_read = imread(x); subplot(3,3,1), imshow(img_read);
imgGray = rgb2gray(img_read); subplot(3,3,2),imshow(imgGray);
imgBinary = im2bw(imgGray, T); subplot(3,3,4),imshow(imgBinary);
Task 2: Cropping(problem) According to my prof, this was done to see which image gave the best threshold. And so, i will just use that threshold.
*Problem: *I do not know what cropping method i can use because since i manually set the threshold, i can't seems to autocrop it. My professor did not mention anything but all he says that, 'thresholding and cropping has nothing to do with it' And he says between grayscale to binary conversion there isn't any need to under go any image processing which i do not see how i can do it since cropping need morphology operation process?
Someone please advice me because i do not understand what i am suspose to do. This is a tough one and i need someone i can discuss with.
Appreciate alot, thank you.
  1 comentario
Jan
Jan el 12 de Nov. de 2012
Please format your code properly. Look for corresponding instructions in the forum.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by