A répondu

How to change background color with imrotate function?

Modifying or Replacing imrotate() I don't think reimplementing or modifying imrotate() is the easier solution, especially for a...

How to change background color with imrotate function?

Modifying or Replacing imrotate() I don't think reimplementing or modifying imrotate() is the easier solution, especially for a...

17 jours il y a | 1

A répondu

How to get the RGB values of each point on a surface when illuminated by 'light' objects?

In a sense, this is a non-serious answer, but perhaps consider this as tangential commentary. For what it's worth, this is what...

How to get the RGB values of each point on a surface when illuminated by 'light' objects?

In a sense, this is a non-serious answer, but perhaps consider this as tangential commentary. For what it's worth, this is what...

18 jours il y a | 0

A répondu

Median filter for rgb images

If you want something akin to medfilt2() that works with multichannel images, then you have a few options. % an RGB uint8 ima...

Median filter for rgb images

If you want something akin to medfilt2() that works with multichannel images, then you have a few options. % an RGB uint8 ima...

18 jours il y a | 0

A répondu

polarscatter point color stroke that changes according to the value of the point

What is the size of the value at the given points? If you have that, you can use that for mapping the color as described in the...

polarscatter point color stroke that changes according to the value of the point

What is the size of the value at the given points? If you have that, you can use that for mapping the color as described in the...

18 jours il y a | 0

| A accepté

A répondu

How to get the RGB values of each point on a surface when illuminated by 'light' objects?

I don't have exportgraphics(), and I can't seem to ever get predictably-clean (i.e. unpadded) results from saveas or print, so I...

How to get the RGB values of each point on a surface when illuminated by 'light' objects?

I don't have exportgraphics(), and I can't seem to ever get predictably-clean (i.e. unpadded) results from saveas or print, so I...

18 jours il y a | 1

| A accepté

A répondu

Adaptive median filter

Synchronicity is strange. After seeing this one question a month ago, I kept seeing similar threads in the following days. The...

Adaptive median filter

Synchronicity is strange. After seeing this one question a month ago, I kept seeing similar threads in the following days. The...

19 jours il y a | 0

A répondu

How to rotate the image without using the imrotate option...

If you don't have IPT, MIMT imrotateFB() will work, and the syntax is similar. It will run faster with IPT available, but will ...

How to rotate the image without using the imrotate option...

If you don't have IPT, MIMT imrotateFB() will work, and the syntax is similar. It will run faster with IPT available, but will ...

19 jours il y a | 0

A répondu

How to obtain specific located objects in binary image ?

There are multiple ways this can be done, but bwselect() is a convenient way, especially when the desired output is the union of...

How to obtain specific located objects in binary image ?

There are multiple ways this can be done, but bwselect() is a convenient way, especially when the desired output is the union of...

19 jours il y a | 0

A répondu

Using the find function to check if the numbers in an array are divisible by a given number

Using find() here is doesn't break anything, but it's not necessary except for one side benefit. Consider the examples: % inte...

Using the find function to check if the numbers in an array are divisible by a given number

Using find() here is doesn't break anything, but it's not necessary except for one side benefit. Consider the examples: % inte...

20 jours il y a | 0

| A accepté

A répondu

Can I change certain colors within an image to another color?

The attached function is simple, but it works. It works by considering a specified RGB tuple and doing a range (box) selection ...

Can I change certain colors within an image to another color?

The attached function is simple, but it works. It works by considering a specified RGB tuple and doing a range (box) selection ...

20 jours il y a | 0

A répondu

Change color from a circle form in an image

I'm just going to throw this out there as one idea. You could also pick colors in a region near the known center (if you can re...

Change color from a circle form in an image

I'm just going to throw this out there as one idea. You could also pick colors in a region near the known center (if you can re...

21 jours il y a | 0

A répondu

colourizatin of black and white video

Since this is going nowhere fast, I'll just take it one step past nowhere to illustrate the point. Here is an example showing s...

colourizatin of black and white video

Since this is going nowhere fast, I'll just take it one step past nowhere to illustrate the point. Here is an example showing s...

21 jours il y a | 0

A répondu

Compare each element of a vector with a number and if the element of the vector is higher than the number then replace that element with the number

Like so Av=[5;4;6.7;5.5;12;5.4;7] Av = min(Av,6)

Compare each element of a vector with a number and if the element of the vector is higher than the number then replace that element with the number

Like so Av=[5;4;6.7;5.5;12;5.4;7] Av = min(Av,6)

22 jours il y a | 0

| A accepté

A répondu

Why is matlab reading some images in rotated by 90 degrees?

If you're loading photographs from a digital camera (which is what that looks like), this is a likely outcome. Imread() does no...

Why is matlab reading some images in rotated by 90 degrees?

If you're loading photographs from a digital camera (which is what that looks like), this is a likely outcome. Imread() does no...

22 jours il y a | 0

A répondu

how can I remove the black mask from the image?

I'm sure there are multiple ways to approach this, but here's one. In this case, the rectangle is clearly darker than the rest ...

how can I remove the black mask from the image?

I'm sure there are multiple ways to approach this, but here's one. In this case, the rectangle is clearly darker than the rest ...

22 jours il y a | 0

A répondu

A program algorithm to change the values of brightness and contrast of an image, it must be simple

The normal answer will be to use imadjust(). IPT imadjust is a basic tool for adjusting input/output levels and gamma. (5 para...

A program algorithm to change the values of brightness and contrast of an image, it must be simple

The normal answer will be to use imadjust(). IPT imadjust is a basic tool for adjusting input/output levels and gamma. (5 para...

23 jours il y a | 0

A répondu

Applying Mask (elliptical shape) on contourf plots.

One way would be to use ROI tools if you have those. % some arbitrary surface data [x y z] = peaks(100); % show the conto...

Applying Mask (elliptical shape) on contourf plots.

One way would be to use ROI tools if you have those. % some arbitrary surface data [x y z] = peaks(100); % show the conto...

23 jours il y a | 0

| A accepté

A répondu

Dimensions of arrays being concatenated are not consisten on workspace

Here, you're concatenating the object areas to form a variable-length row vector. area = cat(2,s.Area); Here, you're trying to...

Dimensions of arrays being concatenated are not consisten on workspace

Here, you're concatenating the object areas to form a variable-length row vector. area = cat(2,s.Area); Here, you're trying to...

23 jours il y a | 0

A répondu

Changing colors in an image

OP's original image is long gone, but I can perhaps guess at its appearance. While I have my suspicions, let's start where this...

Changing colors in an image

OP's original image is long gone, but I can perhaps guess at its appearance. While I have my suspicions, let's start where this...

23 jours il y a | 0

A répondu

In app designer, cursor disappears and all keyboard input stops working after clicking on window on Linux. How can I fix?

This is a bug that's been around for a while and is probably here to stay. Unless you want to change your environment for the s...

In app designer, cursor disappears and all keyboard input stops working after clicking on window on Linux. How can I fix?

This is a bug that's been around for a while and is probably here to stay. Unless you want to change your environment for the s...

23 jours il y a | 0

| A accepté

A répondu

is it possible to select the screenshots from word document and crop them and then resize them to full page?

Here. I'm sure there are better ways, but it seems to be simple enough that I can get away with directly editing the file. %...

is it possible to select the screenshots from word document and crop them and then resize them to full page?

Here. I'm sure there are better ways, but it seems to be simple enough that I can get away with directly editing the file. %...

24 jours il y a | 1

| A accepté

A répondu

Transpose does not support N-D arrays error

There are a couple problems. First, the error is because you're feeding a MxNx3 array to interp2(). You're also feeding an int...

Transpose does not support N-D arrays error

There are a couple problems. First, the error is because you're feeding a MxNx3 array to interp2(). You're also feeding an int...

24 jours il y a | 0

| A accepté

A répondu

Average function of squares

Here's one basic way: proms(5) proms(11) function mm = proms(nn) % MM = PROMS(NN) % calculate the mean square of the positi...

Average function of squares

Here's one basic way: proms(5) proms(11) function mm = proms(nn) % MM = PROMS(NN) % calculate the mean square of the positi...

24 jours il y a | 0

| A accepté

A répondu

operation error (red,green,blue)

Your indexing is going to cause problems. Setting channel 2 of an RGB image to 0 won't generally turn it red. I'm assuming tha...

operation error (red,green,blue)

Your indexing is going to cause problems. Setting channel 2 of an RGB image to 0 won't generally turn it red. I'm assuming tha...

25 jours il y a | 0

A répondu

Is it possible that Legend location option "best" chooses only between two specified locations?

If nothing else, you could try to find the best of those two locations. Depending on what's in the plot, this may be more cumbe...

Is it possible that Legend location option "best" chooses only between two specified locations?

If nothing else, you could try to find the best of those two locations. Depending on what's in the plot, this may be more cumbe...

26 jours il y a | 1

| A accepté

A répondu

use array vector to form a diagonal matrix

It seems to me like maybe you're talking about what blkdiag() does. A = [1 2; 3 4]; B = A*11; C = A*111; D = blkdiag(A,B...

use array vector to form a diagonal matrix

It seems to me like maybe you're talking about what blkdiag() does. A = [1 2; 3 4]; B = A*11; C = A*111; D = blkdiag(A,B...

26 jours il y a | 2

A répondu

Remanding integer from exponential distribution with mean

If I recall, there are other ways to do this. https://www.mathworks.com/matlabcentral/answers/327656-conditional-random-numbe...

Remanding integer from exponential distribution with mean

If I recall, there are other ways to do this. https://www.mathworks.com/matlabcentral/answers/327656-conditional-random-numbe...

26 jours il y a | 1

| A accepté

A répondu

Store cropped images in for loop

Keep track of array class and data scale when working with images. You likely have integer-class data, but you're storing it in...

Store cropped images in for loop

Keep track of array class and data scale when working with images. You likely have integer-class data, but you're storing it in...

28 jours il y a | 0

| A accepté

A répondu

How to construct a vector cell array from two cells with different dimensions

Perhaps something like this? allstationID = [vertcat(Station_ID_1{:}); Station_ID_2]

How to construct a vector cell array from two cells with different dimensions

Perhaps something like this? allstationID = [vertcat(Station_ID_1{:}); Station_ID_2]

28 jours il y a | 0

| A accepté

A répondu

Expanation for function length (x)-1

That's not a function, and it's not valid MATLAB syntax either. It's hard to say what it means, because I have to assume that i...

Expanation for function length (x)-1

That's not a function, and it's not valid MATLAB syntax either. It's hard to say what it means, because I have to assume that i...

28 jours il y a | 1