Respondida
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...

más de 3 años hace | 0

Respondida
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)); ...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

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

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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....

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 1

Respondida
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 ...

casi 4 años hace | 1

| aceptada

Respondida
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...

casi 4 años hace | 0

| aceptada

Respondida
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...

casi 4 años hace | 3

Respondida
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'); ...

casi 4 años hace | 0

Respondida
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 ...

casi 4 años hace | 0

| aceptada

Respondida
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...

casi 4 años hace | 0

| aceptada

Respondida
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...

casi 4 años hace | 0

Respondida
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 = ...

casi 4 años hace | 0

| aceptada

Respondida
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...

casi 4 años hace | 0

Respondida
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...

casi 4 años hace | 0

| aceptada

Respondida
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...

casi 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Respondida
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 ...

alrededor de 4 años hace | 0

| aceptada

Respondida
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...

alrededor de 4 años hace | 1

Respondida
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 ...

alrededor de 4 años hace | 1

| aceptada

Respondida
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 ...

alrededor de 4 años hace | 0

Respondida
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...

alrededor de 4 años hace | 0

| aceptada

Cargar más