Interpolating along the 2-D image slices

I have a set of 100 2-D image slices of the same size. I have used MATLAB to stack them to create a volumetric data. While the size of the 2-D slices is 480×488 pixels, the direction in which the images are stacked is not wide enough to visualize the volume in different orientation when projected. I need to interpolate along the slices to increase the size for visualization.

I created a MATLAB function that performs interpolation along the image slices:

    function res = interp_along_slices( vol, scale )
    % Interpolation along the image slices

    % Get the size of the volume
      [r c p] = size(vol);

    % Pre-allocate the array:
    % the third dimension is scale times the p
      vol_interp = zeros(r,c,scale*p);

    % interpolate along the image slices 
      for inr = 1:r;
          for jnr = 1:c;
              xi = vol(inr,jnr,:);
              vol_interp(inr,jnr,:) = interp(xi, scale); 
          end;
      end;

      res = vol_interp;

    end

Cosmetically

Lately, I have been using the “Lakme – Perfect Radiance”. It’s a fairness day cream meant for external use only. It actually deserves the name “Perfect Radiance”. It truly gives a fair radiant skin, but, only for an hour or two.

I have been “smoothing on” every morning, and sometimes evening too, on cleansed skin. The skin “glows”, at least for an hour. As mentioned on the product’s cover, it also reduces the “skin oiliness”, “fades away dullness”, and “lightens the skin color”.

Some of my friends and peers have recognized, and acknowledged, that, my skin has been glowing past a few days.

Cosmetically, the appearance of my face’s skin is superficially attractive and shiny. Thank you, Lakme.

When I was super lazy

The time is 2:12 AM and  I am getting no sleep.

I have my laptop in front of me and I have been browsing the Internet past four hours. The laptop is getting hot, its processing power is dropping down and is running slower than usual. It will certainly shut down for no reason after sometime. Before that, a deathly blue screen appears (has happened quite a few times), signifying the over-heating of CPU. The laptop becomes very hot to touch in certain areas, and finally the machine shuts.

What do I do when it starts overheating?

To ensure that the air is circulating underneath the laptop, I have made two stacks of books. Each stack has two books about  the height of three centimetres. I have each stack kept below the leftmost and the rightmost edges of the rear-end of the laptop. In the front-end, I have an empty match-box kept underneath the touch-pad buttons.

Whew. Now it has adequate ventilation to cool down. The applications are running smoothly.

Captain Gopinath, an aspirant and a maniac

After having read the book “Simply fly”, by Captain Gopinath, I am highly inspired and motivated. I highly admire him. I say that he is a person who likes his work at an extreme degree, and is always ambitious for something.

I saw in him what Isaac Newton said, “No great discovery is made without a bold guess”, his child-like curiosity, his ability to explore, an open mind, and his sharp analytical skills. He has sprinkled himself as liberally as salt and pepper throughout his book in which the reader will find it an irresistible spice. In his great entrepreneurial journey, the book will actually transform the reader. It will teach about managing oneself, it will highly inspire, it lets you to think, discover, and try what you like.

This book is not only meant for budding entrepreneurs or entrepreneurs, every person should read this book.

Ants are one hell

I always keep my coffee mug beside my bed after drinking. One little problem I have is with the ants. They are one hell. They are all along the window sills scavenging. They swarm across my bed, gets into my stuffs, disrupts my sleep and study. My method of termination is to squish them. I feel disgust while killing them. Sometimes, I feel disagreeable while killing them, because they are intelligent creatures. They are just doing their job. Ants are unlucky creatures; they don’t have fate at all. People tread on them, knowingly or unknowingly and kill them. But still they are one hell.

A horrific experience

Horror is a feeling. If you really want to get scared, you have to experience it. As my cousin brother was going to Florida to do his masters, he had come to my place. I and my cousin brother were sleeping over at my granny’s place and were discussing about some topic, we suddenly heard the most awful and horrifying sound. We paused for a while and stood still to see if the noise would rank into the night silence again. Suddenly, without warning, we heard the same sound again. This time we were staggered, as the time was around 1:30 AM. It sounded like a glass bottle shattering into pieces. We then forced ourselves to sit up and try to wake completely. We then went downstairs to tell our granny. She then told us to chant some mantras and sleep off. In the morning we came to know that it was some drunkeres who threw glass bottles towards the window. We still shudder whenever we think about that night.