Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

when do we do cropping, and cropping method.

1 view (last 30 days)
Esther
Esther on 12 Nov 2012
Closed: MATLAB Answer Bot on 20 Aug 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 Comment
Jan
Jan on 12 Nov 2012
Please format your code properly. Look for corresponding instructions in the forum.

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!