#Image Processing

#Learner

Answered

How to save clustergram as fig file using code?

One way: plot(cgo); saveas(gcf,'filename1.png')

How to save clustergram as fig file using code?

One way: plot(cgo); saveas(gcf,'filename1.png')

4 hours ago | 0

Answered

Creating a matrix with for and input

nnd=input('Enter nnd '); ... geom(i,j)=input('Enter the Value: ')' .. geom

Creating a matrix with for and input

nnd=input('Enter nnd '); ... geom(i,j)=input('Enter the Value: ')' .. geom

5 hours ago | 1

| accepted

Answered

How to increase axis of stem plots

xlim([0,1400 ]) Do the same for y axis ylim([0 16])

How to increase axis of stem plots

xlim([0,1400 ]) Do the same for y axis ylim([0 16])

8 hours ago | 0

Answered

Plot a graph from the given table

Graph: Please do learn about line/plot design here simu_result=[34 81 92 94 211 222 233 234 312 336 372]; ana_result=[36 98 ...

Plot a graph from the given table

Graph: Please do learn about line/plot design here simu_result=[34 81 92 94 211 222 233 234 312 336 372]; ana_result=[36 98 ...

8 hours ago | 0

| accepted

Answered

precision problem ? why ans for 10 ^ 5 * 0.0633 is 6.3299e+03

>> 10 ^ 5 * 0.0633 ans = 6.3300e+03 >> format shortG >> 10 ^ 5 * 0.0633 ans = 6330 See the other Format opti...

precision problem ? why ans for 10 ^ 5 * 0.0633 is 6.3299e+03

>> 10 ^ 5 * 0.0633 ans = 6.3300e+03 >> format shortG >> 10 ^ 5 * 0.0633 ans = 6330 See the other Format opti...

1 day 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...

2 days 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...

2 days 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 ...

2 days 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...

2 days 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...

2 days 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 ...

3 days 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...

3 days 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) = ...

3 days 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. ...

3 days 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...

3 days 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)

4 days 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...

4 days 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 ...

4 days 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);

4 days 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)

4 days 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...

4 days 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...

4 days 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(:)))

4 days 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...

5 days 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...

5 days 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 ...

5 days 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...

5 days 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...

5 days ago | 0