DICOM and NifTi Viewer using Matlab

Currently I am working at Cardiovascular Imaging Lab at University of California, San Diego. I got hired by Dr. McVeigh to make a new website for his new lab right after summer 2016. Although my major is computer science and I don’t have that much knowledge in biology and cardiology, I got interested in their research. In addition to managing their website, I started working with our Postdoc Dr. Francisco Contijoch on a new local myocardial function measurement called CT SQUEEZ. It is a great experience and it can help me to become a master in Matlab and Matlab GUI and at the same time learn a lot about medical image processing. The following project is part of a bigger project and I will add more feature to it in the feature. You can use this project to view any medical images like DICOM (*.dcm) or Nifti (*.nii or *.nii.gz) and compare them. You can download it from Mathwork file exchange or you can check it out on Github.

A simple web view in Java

For one of my engineering classes I had to make a Java GUI browser that shows a Google map with some data on it. I am not a Java GUI expert, so I had to search a little bit and find the best free solution that I could. With Java swing you can show a basic web page, but it doesn’t support the latest version of Javascript and HTML so it is kind of useless. The other solution I found was from dzone website, which mentioned how to use Java swing library to make one. However, there was a big problem! They used a Java library that cost a lot and I thought there should be a free solution. Finally I found out that Java 8 has a new package that comes with a lot of features, and one of them was WebView. Yaay! Exactly what I wanted. I would like to share it with you, and teach you make a basic browser in Java. You need the latest Java SDK, which you can download it here.

If you want to load a HTML file in the current directory:

import javafx.application.Application;
import javafx.geometry.HPos;
import javafx.geometry.VPos;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;
import javafx.scene.layout.Region;
import javafx.scene.paint.Color;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;

public class Mapview extends Application {
private Scene scene;
@Override public void start(Stage stage) {
// create the scene
stage.setTitle("View Name");
scene = new Scene(new Browser(),800,600, Color.web("#666970"));

public static void main(String[] args){

class Browser extends Region {

final WebView browser = new WebView();
final WebEngine webEngine = browser.getEngine();

public Browser() {
// load the web page


//add the web view to the scene



Or maybe you just want to show a simple web page all you need to do is use


To learn more please check Oracle website here.

Hello world!

Back in 90’s when I played Atari’s River Raid for the first time, I was only four-five years old. I still remember how amazed and excited I was, controlling an aircraft like a pilot with those Atari 2600 Joystick Controller was a starting point to step in the digital world. Back then, I neither knew how computers worked nor did I know how they looked. Having heard a bunch of magical rumors, all I knew was that I wanted one. Given how pricy and luxury they were, there was no point of having one at such a young age, my parents thought. I didn’t give up though. Years later I saved money and bought one: a gigantic, noisy Windows 98 desktop with a monitor as large as our refrigerator. Being the autodidact that I was, I spent day and night delving into various programs and learning new things by myself even if my dial-up internet took days to download a simple program.

I immigrated to the United States when I was 20 years old, without my family members. I started school at Santa Monica College, in the beautiful city of Santa Monica and transferred to the one of the best public school in the nation University of California, San Diego. I studied my dream major, computer science and I can’t wait to enter the world of technology and make my American dream a reality. For me Silicon Valley is like Disney Land, an adult dream land! whenever I visit this part of California, I become the same 4 years old Ali who plays Atari’s River Raid. Excited, amazed and motivated.

“I believe, therefore I can,” is my version of Descartes’ infamous saying. Once I believe, I achieve regardless of the odds. It is in that sense – the sense of breaking away from the risk-averse crowd that fears the unknown – that ever since childhood, I’ve been the “odd one out.” When others simply mocked me and burst into laughter upon hearing my ambitions, I’ve always fought for and attained what I believed in.