-
Recent Posts
Recent Comments
Archives
- March 2020
- May 2019
- December 2018
- June 2018
- December 2017
- October 2017
- July 2017
- June 2017
- May 2017
- March 2017
- February 2017
- January 2017
- August 2016
- July 2016
- May 2016
- April 2016
- March 2016
- February 2016
- December 2015
- November 2015
- September 2015
- August 2015
- July 2015
- June 2015
- April 2015
- March 2015
- February 2015
- January 2015
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
Categories
-
Join 53 other subscribers
MyCalendar
May 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Meta
Tag Archives: computer
Quaternions – Use them for Rotation and Transformation
This is the second tutorial on Quaternions. In the previous post, I explained how to use basics of quaternions from the pyquaternion python library. Check the previous post here. In this post, I will show you how to perform spatial … Continue reading
Posted in Linux, Machine Learning, programming, Python, Robotics, ROS, Software, Ubuntu
Tagged beginner, code, computer, easy, example, function, math, mathematics, matplotlib, matrix, numpy, programming, pyplot, pyquaternion, quaternion, rotation, sample, simple, software, source, source code, spatial rotation, spatial transformation, step by step, transformation, tutorial, vector, windows
Leave a comment
Compress files in MATLAB without other file compression software – Method 1, ZIP-UNZIP
You can easily zip a file (or a set of files) in MATLAB without requiring any external compression software being installed on your machine. This is useful to be able to compress files while still in MATLAB. In this post, … Continue reading
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 beginner, call, code, computer, easy, element, example, fix, for, for-loop, function, image, linux, math, mathematics, Matlab, matrix, mean, mean2, mod, optimization, performance, progemming, script, simple, software, source, source code, step by step, tutorial, ubuntu, windows
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 beginner, code, computer, convert, easy, function, gray, grayscale, im2bw, im2double, image, image processing, imread, linux, Matlab, octave, programming, rgb2gray, sample, script, simple, software, step, step by step, threshold, tutorial, ubuntu, windows
2 Comments
Estimating the value of Pi using Python (For educational Purposes)
You can estimate the value of `Pi` up to specific precision with the following method: 1- draw a square and draw the corresponding circle inside it (a quarter of the circle inscribed inside the square). So the edge length of … Continue reading
Posted in Linux, programming, Python, Software, Ubuntu
Tagged beginner, calculate, code, computer, easy, estimate, linux, math, mathematics, monte carlo, numpy, optimization, pi, programming, python, simple, software, source, step by step, tutorial, ubuntu, windows
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 beginner, BMP, code, command line, computer, easy, example, function, gif, hdf, image, jp2, JPEG, jpg, jpx, linux, Matlab, pbm, PCX, pgm, PNG, pnm, ppm, programming, ras, simple, software, step, step by step, tif, tiff, tutorial, windows, xwd
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 adaptive, AI, code, computer, cv2, easy, example, filter, gaussain, image, image processing, imread, imshow, linux, Machine Learning, matplotlib, median, numpy, opencv, plot, programming, python, sample, software, source, threshold, tutorial, vision, windows
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 code, computer, cv2, display, image, linux, numpy, opencv, processing, programming, python, read, robot, show, simple, step by step, tutorial, vision, windows, write
Leave a comment