#Image Processing

#Learner

Answered

How to smooth plot without affecting the data. While I used smooth in plots, the data was reduced at some points.

There are multiple method you choose to smmoth, please refer the MTALAB Doc, like P = [0.8449;1.9194;3.6072;4.8034;6.1154;6.86...

How to smooth plot without affecting the data. While I used smooth in plots, the data was reduced at some points.

There are multiple method you choose to smmoth, please refer the MTALAB Doc, like P = [0.8449;1.9194;3.6072;4.8034;6.1154;6.86...

etwa 10 Stunden ago | 0

Answered

How to visualize a pixel intensity values into an image or a plot?

You can use the following function to read a txt file. readmatrix, readtable, load etc Example: data=readmatrix('post_mathwor...

How to visualize a pixel intensity values into an image or a plot?

You can use the following function to read a txt file. readmatrix, readtable, load etc Example: data=readmatrix('post_mathwor...

etwa 14 Stunden ago | 0

| accepted

Answered

Multiple conditions in an IF statement and they are not logical scalar values

Replace x with x(i) in all data, then code execute without any error. More: read about preallocation and logical indexing (MATL...

Multiple conditions in an IF statement and they are not logical scalar values

Replace x with x(i) in all data, then code execute without any error. More: read about preallocation and logical indexing (MATL...

etwa 15 Stunden ago | 0

| accepted

Answered

Check if Column has Correct Sequence of Numbers

Steps: 1.Create the complete Table with original data (including missing data) 2. use ismissing function to detect in Table ...

Check if Column has Correct Sequence of Numbers

Steps: 1.Create the complete Table with original data (including missing data) 2. use ismissing function to detect in Table ...

etwa 15 Stunden ago | 0

| accepted

Answered

Image Segmentation and Saving image

There are multiple threads are avalible on simmilar questions, please see my answer https://in.mathworks.com/matlabcentral/ans...

Image Segmentation and Saving image

There are multiple threads are avalible on simmilar questions, please see my answer https://in.mathworks.com/matlabcentral/ans...

etwa 15 Stunden ago | 0

Answered

Find first index that exceeds condition

"I would like to find the index and value of the 1st value > 2 after value (8)" Is this? data=[1,4,8,0,0,1,9,0,3] idx8=find(d...

Find first index that exceeds condition

"I would like to find the index and value of the 1st value > 2 after value (8)" Is this? data=[1,4,8,0,0,1,9,0,3] idx8=find(d...

etwa 15 Stunden ago | 0

Answered

How to split vector to columns based on index?

diff_data=diff(column_data); idx=find(diff_data<0) idx gives the indices of raspective array elements, where present value is ...

How to split vector to columns based on index?

diff_data=diff(column_data); idx=find(diff_data<0) idx gives the indices of raspective array elements, where present value is ...

ein Tag ago | 0

Answered

how to fill histogram legend markers

I tried to reproduce the same error, I did not get it data1=randi(10,[1,100]); data2=randi(10,[1,100]); histogram(data1,'Face...

how to fill histogram legend markers

I tried to reproduce the same error, I did not get it data1=randi(10,[1,100]); data2=randi(10,[1,100]); histogram(data1,'Face...

ein Tag ago | 0

Answered

Index exceeds number of array elements (1) Heuns method

Please verify (Read): Heuns Method h = 0.1; % number of steps % N = 10; y=zeros(1,N); x=zeros(1,N); x(1) = 0.1; y(1) = ...

Index exceeds number of array elements (1) Heuns method

Please verify (Read): Heuns Method h = 0.1; % number of steps % N = 10; y=zeros(1,N); x=zeros(1,N); x(1) = 0.1; y(1) = ...

ein Tag ago | 0

Answered

Getting RGB values out of an image into a matrix where I can retrieve specific elements

I = imread('yellowdot.jpg'); imshow(I) A = imread('yellowdot.jpg'); Red = A(:,:,1); Till here you are doing it correctly. ...

Getting RGB values out of an image into a matrix where I can retrieve specific elements

I = imread('yellowdot.jpg'); imshow(I) A = imread('yellowdot.jpg'); Red = A(:,:,1); Till here you are doing it correctly. ...

ein Tag ago | 0

| accepted

Answered

Comparing and matching random portion of a two images autonomously

"need to compare two photographs of same thing at different points of time,position of objects won't change but the frame might...

Comparing and matching random portion of a two images autonomously

"need to compare two photographs of same thing at different points of time,position of objects won't change but the frame might...

ein Tag ago | 0

Answered

How to display the Index of a matrix to other corresponding matrices by considering relations

No need to get the indices, you can directly map as per A>=10 condition in B and C A(A>=10) B(A>=10) C(A>=10)

How to display the Index of a matrix to other corresponding matrices by considering relations

No need to get the indices, you can directly map as per A>=10 condition in B and C A(A>=10) B(A>=10) C(A>=10)

2 Tage ago | 0

| accepted

Answered

Cell to data column

Try with cell2table https://in.mathworks.com/help/matlab/ref/cell2table.html Note that the single coulmn cell data having num...

Cell to data column

Try with cell2table https://in.mathworks.com/help/matlab/ref/cell2table.html Note that the single coulmn cell data having num...

2 Tage ago | 0

Answered

How to select 10% of a matrix with an increment of 10% until 80%

Note that the data are overlaping in each segment as per the requirements 1st cell 1% of data 2nd Cell 10% of data 3rd Cell ...

How to select 10% of a matrix with an increment of 10% until 80%

Note that the data are overlaping in each segment as per the requirements 1st cell 1% of data 2nd Cell 10% of data 3rd Cell ...

2 Tage ago | 0

Answered

How to remove vertical line noise from binary image

result=bwareafilt(bwImage,2); imshow(result);

How to remove vertical line noise from binary image

result=bwareafilt(bwImage,2); imshow(result);

2 Tage ago | 0

| accepted

Answered

Are there template codes I can use to convert image to heat map?

This way:? imagesc(rgrayImage)

Are there template codes I can use to convert image to heat map?

This way:? imagesc(rgrayImage)

2 Tage ago | 0

Answered

I want to create a conditional function

You have not completed the Code, If you are beginner Do Google MATLAB Onramp Read about if Else, For Loop and Logical Indexin...

I want to create a conditional function

You have not completed the Code, If you are beginner Do Google MATLAB Onramp Read about if Else, For Loop and Logical Indexin...

3 Tage ago | 0

| accepted

Answered

Nothing will be showing on plot

xo=0.65; x=xo; xold=x; iteration=1:22; err=zeros(1,length(iteration)); for i=1:length(iteration) x=xold; fx =x^10...

Nothing will be showing on plot

xo=0.65; x=xo; xold=x; iteration=1:22; err=zeros(1,length(iteration)); for i=1:length(iteration) x=xold; fx =x^10...

3 Tage ago | 0

Answered

How to find the indices of elements in an array?

[r,c]=find(matrix==min(matrix(:))) #Added Get the values matrix(matrix==min(matrix(:)))

How to find the indices of elements in an array?

[r,c]=find(matrix==min(matrix(:))) #Added Get the values matrix(matrix==min(matrix(:)))

3 Tage ago | 0

| accepted

Answered

How I can change the color of a small part of a white border around an image?

rgbImage=imread('Trial_with_margin.jpg'); grayImage=rgb2gray(rgbImage); [r,~]=find(grayImage==0); max_row=max(r); mid_col=ro...

How I can change the color of a small part of a white border around an image?

rgbImage=imread('Trial_with_margin.jpg'); grayImage=rgb2gray(rgbImage); [r,~]=find(grayImage==0); max_row=max(r); mid_col=ro...

3 Tage ago | 0

| accepted

Answered

Removing data from matrix

One way: int_dat=[4 0 0]; A =[1 0 0;2 0 0 ; 3 0 0; 4 0 0]; [r,c]=size(A); idx=A==int_dat; row_num=find(sum(idx')==c); A(ro...

Removing data from matrix

One way: int_dat=[4 0 0]; A =[1 0 0;2 0 0 ; 3 0 0; 4 0 0]; [r,c]=size(A); idx=A==int_dat; row_num=find(sum(idx')==c); A(ro...

3 Tage ago | 0

| accepted

Answered

Iterating an array in a for loop

You can avoid loop here focal_length = 50e-02; m = 1; diameter=0.5e-03:0.5e-03:6e-03; %% Create the Wavelength Array with ...

Iterating an array in a for loop

You can avoid loop here focal_length = 50e-02; m = 1; diameter=0.5e-03:0.5e-03:6e-03; %% Create the Wavelength Array with ...

3 Tage ago | 0

Answered

I want to repeat my input command and the if-else statement. The input has to be positive and must include 0 and not include inf.

cond=1; while cond==1 A=input('Enter the Code: '); if A>=0 && A~=inf B=A cond=0; else d...

I want to repeat my input command and the if-else statement. The input has to be positive and must include 0 and not include inf.

cond=1; while cond==1 A=input('Enter the Code: '); if A>=0 && A~=inf B=A cond=0; else d...

3 Tage ago | 0

| accepted

Answered

How to calculate moving average for data

Here One way: Using Loop (As the data is 1 D) data=1:60 % Random data as per Attached sample % Lets Decided the Segment size 5...

How to calculate moving average for data

Here One way: Using Loop (As the data is 1 D) data=1:60 % Random data as per Attached sample % Lets Decided the Segment size 5...

4 Tage ago | 0

Answered

How do I detect and find the discolored area as a percentage of selected area

rgbImage=imread('image_file_name'); [r,c]=size(rgbImage); grayImage=rgb2gray(rgbImage); bwImage=~bwareafilt(~imbinarize(grayI...

How do I detect and find the discolored area as a percentage of selected area

rgbImage=imread('image_file_name'); [r,c]=size(rgbImage); grayImage=rgb2gray(rgbImage); bwImage=~bwareafilt(~imbinarize(grayI...

4 Tage ago | 1

| accepted

Answered

Average every 3 Rows in Single Column in Table

Lets consider one Table Example LastName = {'A';'B';'C';'D';'E';'F'}; Age = [38;43;38;40;49;50]; T = table(LastName,Age); T...

Average every 3 Rows in Single Column in Table

Lets consider one Table Example LastName = {'A';'B';'C';'D';'E';'F'}; Age = [38;43;38;40;49;50]; T = table(LastName,Age); T...

4 Tage ago | 0

| accepted

Answered

How to separate data?

Following code remove all adata elements which are equal to 1024 result=data(~(data==1024)) Or data(data==1024)=[] More: ...

How to separate data?

Following code remove all adata elements which are equal to 1024 result=data(~(data==1024)) Or data(data==1024)=[] More: ...

4 Tage ago | 0

Answered

HOW to make constant values as new colum vector with the same values in my matrix

Example: Define Constant Values const1=10; const2=4; const3=6; Create the 1D Vector with Constant Values, consider any rows...

HOW to make constant values as new colum vector with the same values in my matrix

Example: Define Constant Values const1=10; const2=4; const3=6; Create the 1D Vector with Constant Values, consider any rows...

4 Tage ago | 0

| accepted