Info

此问题已关闭。 请重新打开它进行编辑或回答。

when do we do cropping, and cropping method.

1 次查看(过去 30 天)
Esther
Esther 2012-11-12
关闭: MATLAB Answer Bot 2021-8-20
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 个评论
Jan
Jan 2012-11-12
Please format your code properly. Look for corresponding instructions in the forum.

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by