corrected mistake in gaussian window and some implicit typecasts
added calcIntensity.m