Answered
Fusing one rgb image with one grayscale image using imfuse function
The contribution of either image is reduced by half, because that's what a 50% opacity blend is. It's the simple arithmetic mea...

4 years ago | 0

| accepted

Answered
I wanna know how imadjust is working. The whole algorithm and its reference paper.
Barring all the validation and ancillary stuff, the core operations are very simple. You can open imadjust.m and see for yourse...

4 years ago | 0

Answered
Geometric mean with logarithmically spaced data?
"how do I do this?" % three vectors: A = logspace(0,2,10); B = logspace(0,1.9,10); C = logspace(0.2,2,10); % put them in ...

4 years ago | 0

| accepted

Answered
Meaning of 'offset' returned by imageinfo
imageinfo() is just a convenience tool for what imfinfo provides. That said, the metadata that's available depends on the file ...

4 years ago | 0

| accepted

Answered
Sum of products of odd index numbers (sum of content)
This is my guess. A = [1 2 3 ; 4 5 6; 7 8 9]; % assuming "index" means row/col subscripts sum(A(1:2:size(A,1),1:2:size(A,2)...

4 years ago | 0

Answered
Converting a 3d array into a 4d array
For what it's worth, MIMT imdetile() makes this sort of thing extremely easy to write. It's just one line. % image is 876x1314...

4 years ago | 0

Answered
I do not know how to make this condition on the hue work
You don't need any loops. You could just do: % no loops necessary mask = Hue>huev+0.1 | Hue<huev-0.1; imghsv(repmat(mask,[1 ...

4 years ago | 0

Answered
Help needed with regular expressions
I'm sure someone can be more precise with this explanation, but here goes: [G] any one of the characters within the square brac...

4 years ago | 1

Answered
Dilatation and Erosion as custom function for signal processing
The loop part can be cleaned up, but a big part of why the output looks messed up starts here: output = zeros(length(inputSigna...

4 years ago | 1

| accepted

Answered
I want to get result image and set to variable from output figure matlab
That depends on what exactly you mean by "image". If you want to capture the axes and its contents (plots, images, annotation...

4 years ago | 0

Answered
How to manipulate/change hue, saturation, and value of an image all together?
If you like reinventing the wheel every single time and only want to use HSV, feel free. There are advantages in terms of flexi...

4 years ago | 1

Answered
How do I overlay a contour plot for a ROI onto a grayscale image?
I'm not really sure what you're asking for. It might look like you're trying to restrict the domain of the contourf() plot, but...

4 years ago | 0

| accepted

Answered
Varying vector from [0 100] to [100 0]
Maybe something like this? npoints = 11; v = linspace(0,100,npoints); for p = 1:npoints thisv = [v(p) v(npoints-(p-1))];...

4 years ago | 0

| accepted

Answered
how to remove the zeros inside a 3D matrix?
Assuming that each dim3 vector contains either 2 or 0 nonzero elements: % an example array A = cat(3,[0 0 0; 0 1 0; 5 0 0], .....

4 years ago | 0

Answered
Changing contrast of the image
To preface, I have no idea how PS actually calculates anything internally, and I don't have the original image, so this is not n...

4 years ago | 0

Answered
Automatic Image Level Adjustment
A simple linear "Levels" type adjustment tool is exactly what imadjust() provides. In the Photoshop UI, you have five parameter...

4 years ago | 0

Answered
How can I convert a black and white positive image into negative.
Either use imcomplement(), or do simple additive inversion. https://www.mathworks.com/matlabcentral/answers/251519-i-need-neg...

4 years ago | 0

Answered
How to save images!?
I have no idea what this code is, but the images are grayscale. When you isolate one color channel, that's all it is. It's a s...

4 years ago | 0

Answered
How to enhance underwater image?
MIMT has a simple tool based on this paper. A = imread('image.jpeg'); B = uwredcomp(A); % using defaults imshow([A;B]) ...

4 years ago | 0

Answered
how can i calculate brightness,contrast,hue and saturation of a image?
@Jurgen's answer recommending HSV is probably as appropriate as the vague question warrants. Still, since it seems people are s...

4 years ago | 0

Answered
how to plot multiple graph on top of images together?
This is an oversimplified example: % a picture comes from somewhere A = imread('peppers.png'); % some data comes from somew...

4 years ago | 0

Answered
How can I remove unwanted area by mask?
Just get the file names somehow and read/process/write the files in a loop. This is one example based on simple pattern matchin...

4 years ago | 0

| accepted

Answered
Quickest way to join images preserving each colormap in MATLAB
Read the images into a cell array in the loop. If the images are indexed color images, then convert them to RGB using ind2rgb() ...

4 years ago | 0

| accepted

Answered
Sum values from one column vector based on another column vector
Assuming A and B are different variable names with the same length: A = [1; 2; 4; 1]; B = [34; 78; 3; 28]; mysum = sum(B(A==1...

4 years ago | 0

| accepted

Answered
Right-side text limit working erratically while changing the font
I played around with this in R2019b. Bear in mind that there are two relevant prefs here. The RH text limit is just an indicat...

4 years ago | 1

| accepted

Answered
use of strcmp with two conditions
Just a guess, since I have no idea what your array content or size are. strcmp() takes two arguments, but you're feeding it t...

4 years ago | 1

Answered
webread not returning full html contents
Webread() just reads the page. It doesn't execute all the tons of scripts that are used to build the DOM. https://www.mathwork...

4 years ago | 0

Answered
imshow breaks after changing uiaxes limits
You're specifying that the axes limits should be outside of the image region. currentimage = imread('cameraman.tif'); hi = i...

4 years ago | 0

| accepted

Answered
How can i fill NaN values on unwanted region of an image?
IPT regionfill() can do inpainting based on a logical mask. You could use isnan() to derive the mask from the image. Alterna...

4 years ago | 1

Answered
Openfig+hold on
openfig opens figures hold toggles properties of axes It doesn't make sense to try to put a figure inside an axes. Perhaps yo...

4 years ago | 1

Load more