Tag Archives: image

Run local jupyter notebook on a Pytorch container

Introduction When, I was learning Pytorch I had already two separate Python version (2.x and 3.x) together with a lot of packages installed on my machine and I did not want to risk messing up my laptop. So, I decided … Continue reading

Posted in Linux, Machine Learning, Neural Networks, programming, Python, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 2 Comments

Investigating code performance in MATLAB – Part 1: For-loop

Here I want to show you a very simple example in MATLAB. Consider we have a large matrix (can be an image also) and we want to perform element-wise operation on the matrix elements. Let’s first create a large matrix: … Continue reading

Posted in Linux, MATLAB, Optimization, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 4 Comments

Convert a grayscale image into a black-white image in MATLAB without im2bw

In MATLAB there is a function ‘im2bw’ which converts an input image into a black&white image. You can provide the function with a level of thresholding otherwise the default value is 0.5. Here I show you how to implement the … Continue reading

Posted in Linux, Machine Learning, MATLAB, OpenCV, Optimization, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , | 2 Comments

A Script for Toolbox Validation in MATLAB

Sometimes you want to check (through your MATLAB code), if the user of your code has a specific toolbox. If you want to do it through command-line in MATLAB, you should use the following command: Otherwise, use the following piece … Continue reading

Posted in Linux, MATLAB, programming, SIMULINK, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Step-by-step Tutorial on Face Detection with MATLAB – Part 1

This is a step-by-step, easy to use, beginner level, and detailed tutorial for face detection with MATLAB. Let’s start!! List available devices In order to list the available webcams that can be detected and used by MATLAB do as follows: … Continue reading

Posted in Linux, Machine Learning, MATLAB, OpenCV, programming, Robotics, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Make PowerPoint presentation using MATLAB – toPPT

Short description: toPPT is a powerful tool for generating PowerPoint presentations programmatically defined in MATLAB. It will use different scripts to perform exports of figures, tables and texts. For this purpose it will use scripts written by Jens Richter main … Continue reading

Posted in Linux, MATLAB, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , | Leave a comment

Dealing with SVG files – issue no.1 (groupping issue)

Sometimes you have an SVG file and you want to add some objects to that. So you open the fine using Inkscape and make the object and insert it somewhere in the workspace. Afterwards, you want to save the result … Continue reading

Posted in Linux, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Convert Images in MATLAB to different file formats (bmp, gif, hdf, jpg, jpeg, jp2, jpx, pbm, pgm, ppm, pnm, pcx, png, ras, tif, tiff, xwd)

In MATLAB you can easily convert your image from a specific format to another format in the following list: bmp, gif, hdf, jpg, jpeg, jp2, jpx, pbm, pgm, ppm, pnm, pcx, png, ras, tif, tiff, xwd. Although here I mention … Continue reading

Posted in Linux, MATLAB, OpenCV, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 2 Comments

Simple Object Detection in 3 lines of Code (OpenCV/Python)

The main 3 lines of code is as follows: We read the original image in the first line using the imread function. By passing the 0 flag to this function the output would be a grayscale image. The resulting image … Continue reading

Posted in Linux, Machine Learning, OpenCV, programming, Python, Robotics, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 3 Comments

Read, write, show images in OpenCV (Python)

In order to load or read an image you can use imread function. In order to display an image you can use imshow function. After you applied some changes to an Image you can write it into the disk. In … Continue reading

Posted in Linux, Machine Learning, OpenCV, programming, Python, Robotics, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment