Community Profile

photo

Subhadeep Koley


Last seen: Today

MathWorks

209 total contributions since 2019

I am a Software Engineer here at The MathWorks.

My areas of interest are Image Processing, Pattern Recognition, Computer Vision & Graphics, and plotting.

DISCLAIMER: Any advice or opinions here are my own and in no way reflect that of The MathWorks.

Contact

Subhadeep Koley's Badges

  • Pro
  • Revival Level 3
  • 3 Month Streak
  • Knowledgeable Level 3
  • Commenter
  • Promoter
  • Solver
  • First Answer

View details...

Contributions in
View by

Answered
Can i use imerode() function to perform top-hat transform?
You can achieve the same result as returned imtophat function only using imerode and imdilate. % Load the image original = imr...

13 days ago | 1

| accepted

Answered
PCA on a 3d Matrix
You can use the hyperpca function to achieve the same. % Definenumber of principal components you require numComponents = 10; ...

15 days ago | 0

Answered
Extracting wavelength vector from an .hdr file
You can use the enviinfo function to achieve the same. % Load the HDR information info = enviinfo('yourFile.hdr'); % Extract ...

15 days ago | 0

Answered
Grey Scale -> RGB images from augmentedImageSource
You can use the ColorPreprocessing Name-Value pair of augmentedImageSource to achieve what you want. imageSize = [227 227 3]; ...

15 days ago | 1

Answered
Increasing exposure of an image
A simple approach could be adding a constant value to the entire image. Like below, % Load the image img = imread('photo1.jpg'...

16 days ago | 0

Answered
How to write included function into other
First of all define these two functions, coin_flip and sum_tails function r = coin_flip(N) i = rand(1, N); r = (i > 0.5); en...

17 days ago | 0

| accepted

Answered
Vingetting an image using loop
Hope this works. colorImg = im2double(imread('kobi.png')); center = size(colorImg)/2+.5; [l,h,~] = size(colorImg); d = zeros...

17 days ago | 0

| accepted

Answered
I don't know what is wrong with my code when recreating a table
loop indices must be positive integers or logical values. In your code, you're trying to use fraction values as index. Also, you...

19 days ago | 0

Answered
View multiplage tiff in app designer
For multi-page file, imread only reads the first slice in the file (or a specific slice specified by an optional argument). If...

19 days ago | 0

| accepted

Answered
How to find the percentage of smaller than X in a specific column in all tables in a cell
clc load CELL.mat % Extract all 5th columns newMat = zeros(360, 1); for idx = 1:length(CELL) newMat(:, idx) = CELL{1}.c...

19 days ago | 1

| accepted

Answered
ImageDatastore from text file
Try this code snippet. The below code will read images, whose locations are specified in the testingdata.txt file and will also ...

22 days ago | 0

| accepted

Answered
how can n I export file with Excle format, with fprintf
fprintf can only write data to text file. It cannot write data to Excel file. TO write data in Excel format use the function wri...

22 days ago | 0

| accepted

Answered
color array to grayscale, images
% Read the image img1 = imread('photo1.jpg'); % Convert it to double img1Double = im2double(img1); % Convert from RGB to...

22 days ago | 0

| accepted

Answered
How to extract rows based on a particular column values in a matrix?
load 'D.mat'; D_new = D((D(:, 2) >= 1) | (D(:, 2) <= -1), :);

22 days ago | 0

| accepted

Answered
I have a row vector of dimension 1x300 and want to set its elements to zero without changing its dimension. I am trying to implement it using the example X = zeros(1,3,'uint32') provided in the documentation on zeros in mathworks.
Hi Sushma TV, the below code might help % Define a random vector 'X' for example X = rand(1, 300); % Set all elements of 'X' ...

23 days ago | 0

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

25 days ago | 0

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

26 days ago | 0

| accepted

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

26 days ago | 0

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

27 days ago | 1

| accepted

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

27 days ago | 0

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

27 days ago | 0

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

27 days ago | 1

| accepted

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

28 days ago | 0

| accepted

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

28 days ago | 0

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

28 days ago | 1

| accepted

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

28 days ago | 0

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

29 days ago | 0

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

2 months ago | 1

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

5 months ago | 1

| accepted

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

5 months ago | 0

| accepted

Load more