Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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 ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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)...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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 ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 1

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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))];...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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], .....

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

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

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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]) ...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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() ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 1

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 1

Réponse apportée
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...

presque 4 ans il y a | 1

Charger plus