Question

How to save the image WITHOUT the white background using imwrite (advanced problem)

Hi RGB = imread('bird1.png'); figure imshow(RGB) Then I get: Then: s = size(RGB); rectangle('position',[1 1 s(2) s(...

2 years ago | 2 answers | 0

Answered

How to add box to an image?

clear close all clc RGB = imread('bird1.jpg'); s = size(RGB); figure imshow(RGB); rectangle('position',[1 1 s(2) ...

How to add box to an image?

clear close all clc RGB = imread('bird1.jpg'); s = size(RGB); figure imshow(RGB); rectangle('position',[1 1 s(2) ...

2 years ago | 0

Question

How to add box to an image?

Hi I have two images ('yellow.png' and 'bird.png'). See below. How can I make a box AROUND...

2 years ago | 4 answers | 0

Question

Why my 'bboxes' and 'scores' variables are all empty while certainly my image contains a person?

Hi, This is my example image clearly with a person in it. I would like to use Matlab's 'people detector' to detect the p...

3 years ago | 2 answers | 1

Question

How to identify skin or detect human or skin in an image using Matlab (detection problem not recognition problem) ?

Hi, I would like to detect whether there is any human or just skin in an image using Matlab. It doesn't have to be the face t...

3 years ago | 0 answers | 0

Question

Text Analytics Toolbox seems making lots of mistakes on recognizing language and PartOfSpeech

Hi, My input is a list of VERY BASIC ENGLISH words shown below. I would like to find out the part of speech of them. k...

3 years ago | 1 answer | 0

Question

How to parse noun and adjective words from an array of texts

Hi I have an array (n x 1) of strings. See example below. 'I thought about illness' 'I think I associated it with fresh or ...

3 years ago | 0 answers | 0

Question

Any possibilities of using sortrows for strings

Hi, I have a cell named 'b' consisted of n by 1 of strings, each row in a cell is a string. See below. The 1,2,3,4 is n...

3 years ago | 1 answer | 0

Question

Saving texts read from edit box in GUI

Hi, I have a edit box in GUI design. This edit box is specifically for puting texts/strings in rather than numbers. So I ...

3 years ago | 0 answers | 0

Question

GUI editbox can't evoke a pushbotton?

Hi, I'm working on a GUI design and I created a edit box and a pushbutton. Shown in the picture below. What I woul...

3 years ago | 1 answer | 0

Question

Is it possible to make 'uisetcolor' integrated in GUI?

Hi I'm trying to build 'uisetcolor' into my GUI. At the moment, if I run my GUI, the 'uisetcolor' pops up in a seperate w...

3 years ago | 2 answers | 0

Question

How to make a colour picker similar to this one in Matlab?

Hi, Below is the screenshots for a commercial colour picker available online. The good thing about designing the colour p...

3 years ago | 1 answer | 0

Question

How to display multiple images (non indexed images) with different sizes in a row?

Hi Say I have 3 images and they are not indexed images therefore they don't have X, map, they only have RGB values. And th...

3 years ago | 2 answers | 0

Question

imshow using double or uint8 RGB values - confusing

Hi, I'm a bit confused about 'imshow' My guessing is that imshow can be used with 2 types of RGB data. RGB values are b...

3 years ago | 1 answer | 0

Question

How to draw a L*a*b* colour space or HSV colour space (2D)?

Hi I would like to draw the LAB or HSV colour space in 2D (see below) but I don't know how to draw it. I found some code onl...

3 years ago | 4 answers | 0

Question

How to understand C in pcolor? Why are specific colours not other colours coming out of certain numbers?

Hi, I'm struggling to understand C in pcolor. From the official website, https://uk.mathworks.com/help/matlab/ref/pcolor...

3 years ago | 1 answer | 0

Question

How to make the white background whiter and black prints blacker and remove the highlight color (green) in an image?

3 years ago | 0 answers | 0

Question

Does PCA apply on the raw data or the data needs to be pre-normalized before applying pca function?

Hi, According to the link below, https://uk.mathworks.com/help/stats/pca.html coeff = pca(X) I'm wondering whether this ...

3 years ago | 0 answers | 0

Question

Should I use PCA to order the data points in order to find the mode of the data points?

Question 1: I roughly know that PCA is used for reducing dimensions, it is used for reducing the dimension of features not the d...

3 years ago | 1 answer | 0

Question

How to sort the files in a folder by date?

Hi, For example, I have 3 image files in a folder, looks like below (Fig 1). I then tried to get the information of th...

3 years ago | 1 answer | 1

Question

Faster way of replacing multiple rows with same vector without using a loop?

Hi, I have a matrix a (see below). I would like to replace the 1st and 3rd row with the same row vector [255 100 0]. a = ...

3 years ago | 3 answers | 0

Question

Fast way to replace elements in a matrix?

Hi, for eample I have an a matrix a = 245 255 255 254 252 255 251 250 239 rules: find the row i...

3 years ago | 1 answer | 0

Question

Why it is 94? corss-validation for regression tree problem.

Hi, Example shown on the page below. https://uk.mathworks.com/help/stats/regressiontree.crossval.html load carsmall X = [A...

3 years ago | 0 answers | 0

Question

cvloss or kfoldloss for regression tree?

Hi, I'm a bit confused with 'cvloss' and 'kfoldLoss'. kfoldLoss https://uk.mathworks.com/help/stats/regressio...

3 years ago | 1 answer | 0

Question

'MinParentSize' and 'MinLeafSize' -- regression tree

https://uk.mathworks.com/help/stats/fitrtree.html It introduces the MinParentSize below as: Minimum number of branch node ob...

3 years ago | 0 answers | 0

Question

Min objective and function evaluations

As I was learning to optimize regression tree, I'm struggling to understand some of the codes and graphs generated in the matlab...

3 years ago | 1 answer | 0

Answered

@(x)sum(x.IsBranch)

Anonymous Functions You can create handles to anonymous functions. An anonymous function is a one-line expression-based MATLAB ...

@(x)sum(x.IsBranch)

Anonymous Functions You can create handles to anonymous functions. An anonymous function is a one-line expression-based MATLAB ...

3 years ago | 0

Question

@(x)sum(x.IsBranch)

Hi, https://uk.mathworks.com/help/stats/fitrtree.html As I tried to understand the example line by line, I am stuck at bel...

3 years ago | 2 answers | 0

Question

What is 'categorical predictor' in decision tree for regression

Hi, I'd like to use Matlab's own example for the question. Please refer to https://uk.mathworks.com/help/stats/fitrtree.html for...

3 years ago | 1 answer | 0

Question

Entropy to calculate information gain for decision tree for classification problems.

Hi I wonder whether Matlab has the function to calculate the entropy in order to calcuate the information gain for decision ...

3 years ago | 0 answers | 0