フィルターのクリア

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