Beantwortet
How to save images from for loop to use for machine learning algorithm?
imageDatastore can only create an image datastore from the collection of image data specified by their location. However, you're...

mehr als 5 Jahre vor | 0

Beantwortet
Can I create multiple anonymous functions with a for loop?
Hi Jarred, defining 'S' as a cell array should resolve the issue. % Pre-allocating 'S' as cell array S = cell(1, length(b)); ...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Cross-correlation for similarity measurement between two signals
This might help. % Creating random data for example sig1 = rand(1, 2048); sig2 = rand(1, 2048); % Calculate correlation co...

mehr als 5 Jahre vor | 0

Beantwortet
Analysis of png image
The below modification in your code might help. folder_name = uigetdir; %Prompts user to select folder filename = uigetfile([f...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
Concatenate large matrices a bottleneck in function
The horzcat() function is usually faster than cat() or [, ]. You may use it. A = ones(100000,90); B = 2*ones(100000,90); resu...

mehr als 5 Jahre vor | 0

Beantwortet
Local histogram equalization in matlab
The below code might help. % Read the image img = imread('cameraman.tif'); % Extract your Region-Of-Interest (ROI) ROI = img...

mehr als 5 Jahre vor | 0

Beantwortet
how to remove specific area of an image
Hi, you can use the interactive Color Thresholder app to achieve what you want. After performing segmentation, this app also gen...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
In this way, I got the image whose pixels location are shuffled randomly.How can I get or reconstruct the original image (img) from the shuffled image.Every help is appreciated
Hi Arwa, below code might help. W_log = imread('cameraman.tif'); Key1 = 100; s = size(W_log); ss = rng(Key1, 'twister'); % y...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
help for find the phase value of image using MATLAB coding
Hi Moiz, if you are looking for Fourier phase of an image then the below code might help. % Read the image img = imread('pout....

mehr als 5 Jahre vor | 0

Beantwortet
Applying 2D filter on RGB image
Hi Ozan, the below code might help! img = imread('kodim07.png'); imshow(img) img = imresize(img, 2, 'bicubic'); figure imsh...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
Automatilly read image files and apply filtre in Matlab
Hi, the below code snippet might help. % "imagefiles" variable contails each file detail (e.g. filename, size, etc.) imagefile...

mehr als 5 Jahre vor | 0

Beantwortet
Regarding Hyperspectral Image Processing
Hi, for reading a hypersepctral image in ENVI format you can use the hypercube function. E.g., % Read the ENVI format data hCu...

mehr als 5 Jahre vor | 1

Beantwortet
How to use multiple user input variable?
Alex, the below code might help! Have a look. % Create the webcam object. cam = webcam(1, 'Resolution', '640x480'); preview(c...

mehr als 5 Jahre vor | 1

Beantwortet
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side
Pre allocate B1x as cell array instead of numeric array to solve the problem. close clear clc %% mu0 = 4*pi*1e-7; % Vs/Am ...

mehr als 5 Jahre vor | 1

| akzeptiert

Beantwortet
How to save Type 2 Fuzzy system?
HI, After you convert fis1 to fis2, use the code below to save the fis2 system. The below code opens a dialog box for saving th...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Why does my code shows three outputs instead of one?
I suspect your dot.jpg is a RGB 3 channel image. When you are extracting the height and width of the image using the size functi...

mehr als 5 Jahre vor | 4

Beantwortet
load series of DICOM and convert it to volume to use volume viewer
Refer the example code below, close all; clc; % Load the demo DICOM image [X, map] = dicomread('US-PAL-8-10x-echo.dcm'); ...

mehr als 5 Jahre vor | 0

Beantwortet
Contourlet toolbox: Undefined function or variable 'pdfbdec
If you already installed and set up MinGW, then you need to create mex for the C source files before using the toolbox. You can ...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
display image similarity using pie and bar chart
I have used the ssim function to measure the similarity between to images. ssim metric value lies in the range of [0, 1]. Higher...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
background removal from image
Malini, here is a demo script for "...histogram of the person's face not the background..." close all clc img = imread('dklor...

mehr als 5 Jahre vor | 0

Beantwortet
Saveas function changes behaviour of Subplot in subsequent iterations of a loop
Ruairi, refer the demo example below, close all; clear; clc; for idx = 1:3 % Generating random image for demo img = ...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Saved Matrix as Image does not give me the right pixels
Hakan, you are getting a 1200-by-900 image because you're saving the entire figure window in the tif file. If you only need to s...

mehr als 5 Jahre vor | 0

Beantwortet
Which and where are each of HSI component image(Hue component,Intensity component,saturation component)
The image which you attached does not depict the saturation and intensity images. However, you can create that test image and se...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
Gaussian filter vs median filter vs wiener filter??Noise tackling performance with image corrupted with salt and pepper noise
Hi, The code (by which you are adding Salt & Pepper noise into the image) is modifying almost all the pixels in the input image...

mehr als 5 Jahre vor | 0

| akzeptiert

Beantwortet
how to i save loop data in a loop?
Access wn_i_all using the indexing variable i. Refer the code below. %% Linear Aeroelastic model of a flexible wing using assum...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to Store this attached rgbimage with a colormap. I tried the following code but could not write the image with colormap.
Your are writing the image in JPEG format and imwrite converts indexed images to RGB before writing data to JPEG files, because ...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to find energy of image ?
If you want to calculate "Energy" as defined from the gray level co-occurrence matrix of the image then the following code might...

fast 6 Jahre vor | 1

Beantwortet
Error: Too many output arguments
Hi, this is because you function crn is not returning anything. If you want to return dR_tow then use the code below. function ...

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
remove unwanted black pixels from binary image
It is difficult to fill the binary image exactly as you want but twaeking the various parameters of the function bwmorph we can ...

fast 6 Jahre vor | 0

Beantwortet
How to save property/variable to .mat file in app designer?
Hi Thomas, use this app.Location = uigetdir; temp = app.Net; save(fullfile(app.Location, 'Saved network'), 'temp'); Hope t...

fast 6 Jahre vor | 0

| akzeptiert

Mehr laden