If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Sample & Hold Pixel Colour
4 posts
• Page 1 of 1
Sample & Hold Pixel Colour
I don't know if someone can find a use for this and maybe improve on the schematic. It works OK when sampling the first time, but afterwards it is as if the mouse pointer [i.e. the finger symbol] gets ignored and the rear of the mouse pointer [i.e. the back of the hand symbol] then takes over. Maybe I am doing something wrong in the schematic?
Personal use: Sometimes I see a picture containing a nice colour which I want to use in a project, and since I am terrible with judging/picking colour, I thought of using this schematic for this purpose and also to share this with others.
Description: Load a Bitmap/Jpg Picture you want to sample by means of the schematic. Move the Mouse over the Bitmap/Jpg picture you want to take samples from, the Pixel Colour will be displayed in the "Display Colour Prior to.." window. Left Click with Mouse on the desired pixel Colour, and the Colour will be Sampled and Held in the "Display Colour after..." window. The corresponding Alpa Blend, Red, Green & Blue values [A, R, G, B] for the selected Pixel Colour can then be read from the four respective displays and be used elsewhere in other projects?
Credit: to pall for using his "Colour Matrix tool" in this project, very useful tool.
UPDATED SCHEMATIC TO VERSION 1.0.5:
1. Solved the problem with the mouse.
2. Solved the Image refreshing problem, images now load correctly.
3. Removed Scaling & Resizing functions as this is what mainly caused the problems.
4. IMPORTANT: THE SCHEMATIC IS CURRENTLY SET TO LOAD A MAXIMUM IMAGE SIZE OF 700 W x 560 H Pixels. If you load a larger file size than this, the schematic will read the pixel colours incorrectly.
Personal use: Sometimes I see a picture containing a nice colour which I want to use in a project, and since I am terrible with judging/picking colour, I thought of using this schematic for this purpose and also to share this with others.
Description: Load a Bitmap/Jpg Picture you want to sample by means of the schematic. Move the Mouse over the Bitmap/Jpg picture you want to take samples from, the Pixel Colour will be displayed in the "Display Colour Prior to.." window. Left Click with Mouse on the desired pixel Colour, and the Colour will be Sampled and Held in the "Display Colour after..." window. The corresponding Alpa Blend, Red, Green & Blue values [A, R, G, B] for the selected Pixel Colour can then be read from the four respective displays and be used elsewhere in other projects?
Credit: to pall for using his "Colour Matrix tool" in this project, very useful tool.
UPDATED SCHEMATIC TO VERSION 1.0.5:
1. Solved the problem with the mouse.
2. Solved the Image refreshing problem, images now load correctly.
3. Removed Scaling & Resizing functions as this is what mainly caused the problems.
4. IMPORTANT: THE SCHEMATIC IS CURRENTLY SET TO LOAD A MAXIMUM IMAGE SIZE OF 700 W x 560 H Pixels. If you load a larger file size than this, the schematic will read the pixel colours incorrectly.
- Attachments
-
- Sample & Hold Pixel Colour v1.0.5.fsm
- Updated Schematic solves previous problems with mouse & Image Refreshing.
- (841.01 KiB) Downloaded 1163 times
-
- Sample & Hold Pixel Colour v1.0.4.fsm
- (208.26 KiB) Downloaded 1134 times
Last edited by tiffy on Wed Nov 13, 2013 5:54 am, edited 2 times in total.
-
tiffy - Posts: 400
- Joined: Wed May 08, 2013 12:14 pm
Re: Sample & Hold Pixel Colour
Loogs verry good
But you may do some corrections that i got here:
* Load Pic does only refresh the image if you reset a scale
* Scale seems not to be included fine if you grab the color with a scale factor
Looks good
Regards
C.Hackl
But you may do some corrections that i got here:
* Load Pic does only refresh the image if you reset a scale
* Scale seems not to be included fine if you grab the color with a scale factor
Looks good
Regards
C.Hackl
100% accuracy is the guarantee to your success. The value alters if you combine it with musical creativity.
-
chackl - Posts: 233
- Joined: Tue Aug 17, 2010 8:46 pm
- Location: Austria / Salzburg
Re: Sample & Hold Pixel Colour
chackl wrote:Loogs verry good
But you may do some corrections that i got here:
* Load Pic does only refresh the image if you reset a scale
* Scale seems not to be included fine if you grab the color with a scale factor
Looks good
Regards
C.Hackl
Thank you chackl, since I do this only as a hobby in my 'spare' time and still learning FS DSP Robotics I will use your advice in the schematic as soon as possible - maybe someone else will be faster than me, you are welcome.
-
tiffy - Posts: 400
- Joined: Wed May 08, 2013 12:14 pm
Re: Sample & Hold Pixel Colour
I had a need for something along this line, and had put this basic idea together.
Nothing fancy, but it did what I needed at the time.
Nothing fancy, but it did what I needed at the time.
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 73 guests