Tuesday, December 16, 2008

What to do when your cellphone refuses to send and receive text messages

After a year and a half of using my Sony Ericsson P990i it suddenly lost the ability to send and receive text messages. Turning it off and on again resulted in an "MsvServer" error. Canceling this message sometimes lead to intermittent bursts of queued SMS's. I also receive a message saying the SIM card is already full even if I've erased much of its contents.

What worked was the suggestion of my friends who experienced the same problem.

The solution - MASTER RESET. Just make sure you've backed up all your contacts and other important data from your phone.

Master Reset is found in the Control Panel->Device menu.

Wednesday, August 13, 2008

Inserting images as background for OpenOffice Calc graphs

(Thanks to Eduardo David Jr. for tip.)

In verbatim, Ed's advice:

"1.)Click the plot ONCE
2.)Choose Area (see attached image)

3.)Go to Bitmaps tab, then choose Import
4.)Select the image
5.)Double click the plot then choose Chart Area
6.)Under the Area tab, choose Bitmap
The imported image should appear in the list :D"

Thursday, August 7, 2008

General Comments on the handwritten text activity (morphological operations) AP 186

I was delighted to find several of you succeeding in getting the outlines of the handwriting right. I noticed several common mistakes though:

1. Morphological operations work on white blobs. Most of you had the background on white and the handwriting in black. Such image must be bit-inverted (0 becomes 1, 1 becomes 0). So even if you did opening and closing with the intent of fixing the handwriting, the operations opened and closed the background.

2. The choice of structuring element is critical. Most of you simply used a 2x2 struct element even if this was not appropriate. Some of you wisely chose a 4x1 element since most handwriting have vertical elements. I would suggest that if the handwriting is slanted, use a slanted structuring element as well.

Finally, a tip. If the processed handwriting is fat, you might want to use thin to make it one pixel thick.

Tuesday, June 24, 2008

Image Histograms in Scilab

Two solutions were found by my students to display the histogram of a grayscale (or indexed) image.

The first solution is a code written by Jeric
//Jeric Tugaff
//Histogram
im=imread('grayscale.jpg'); //opens a 24 bit image
im=im(:,:,1);imwrite(im(:,:), 'gs.jpg'); //converts to 8 bit grayscale
imageim=imread('gs.jpg');
val=[];
num=[];
counter=1;
for i=0:1:255
[x,y]=find(im==i); //finds where im==i
val(counter)=i; num(counter)=length(x); //find how many pixels of im have value of i
counter=counter+1;end
plot(val, num); //plot. :)

The second was found by Jorge, a built-in function

histplot([0:1:255],c);

where c is the image variable.

Saturday, June 14, 2008

Collective comments on Activity 1 AP 186

AP 186 08-09 Class:

Most of you got the technique right. 10 point for those with correct reconstruction. 11 points for those with convincing overlays. There are a few who forgot the following important details, though:
1. The journal source - a number of you didn't cite what journal and paper they got the graphs from.
2. Collaborators - some of you forgot to mention who helped you. Please tell if you did it independently. Part of the learning is learning from each other. If you're not certain, ask around. If you're certain, share.
3. Details on how you got your graphs - some of you had no explanations.
4. Self-evaluation - remember you give your grade. If i think you got lower or higher than what you deserve I'll change it.

Sunday, March 2, 2008

Progressive scan camera ideal for image processing

Choose a progressive scan camera for detail-sensitive research applications. Interlaced cameras suffer from twitter and must be de-interlaced. De-interlacing causes blurring in output image. On the other hand, progressive scan cameras will send signals "progressively", as in horizontal line per line and not alternatingly.

Wednesday, February 27, 2008

Opening a new figure window in SciLab

To open a new graphics window in SciLab use
h = scf(fig_num).

Saturday, February 23, 2008

Reading "dates and time" in Matlab

If given a .txt data file with date entries enclosed in "quotes", open in xls and save as .csv. In Matlab call with textread and for the column corresponding to the date, use the format %q.

Counting the incidence of a name

In OpenOffice spreadsheet, suppose I want to count how many times a name appears, I found that one can use the countif function with the following syntax:

=countif( <range of cells to look at>;"="&<pattern>)

can be

"Name"
or
a cell such as
F65.

Caveat: This function is very strict with pattern matching. A space at the end of the name will result in no match so be careful.