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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 1

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

alrededor de 4 años hace | 1

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 1

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 1

| aceptada

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

alrededor de 4 años hace | 1

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 1

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

alrededor de 4 años hace | 1

Cargar más