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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 1

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

oltre 3 anni fa | 1

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

quasi 4 anni fa | 1

| accettato

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 3

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

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

quasi 4 anni fa | 0

| accettato

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

quasi 4 anni fa | 0

| accettato

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

circa 4 anni fa | 0

| accettato

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

circa 4 anni fa | 0

| accettato

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

circa 4 anni fa | 1

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

circa 4 anni fa | 1

| accettato

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

circa 4 anni fa | 0

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

circa 4 anni fa | 0

| accettato

Carica altro